Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building on MacOS with pd-lib-builder #1

Open
wants to merge 80 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
16517a2
Makefile.pdlibbuilder version 0.0.0
katjav Jun 25, 2015
9c7e501
changed some comments
katjav Jun 25, 2015
3906a92
corrected futile typo in comment
katjav Jun 25, 2015
9e1fa90
added vim modeline for syntax highlighting
katjav Jun 25, 2015
b43f7ad
another try at syntax highlighting modeline
katjav Jun 25, 2015
84ae43e
Added reference to helloworld project in README.md.
katjav Jul 6, 2015
0a7d057
use $(metafile) in version expansion
umlaeute Oct 28, 2015
d2fa193
Merge pull request #3 from umlaeute/patch-1
katjav Oct 29, 2015
9015ba7
fix expansion of variable lib.version in cflags during compilation
katjav Oct 31, 2015
974b617
bump version to 0.0.1
katjav Oct 31, 2015
164d294
Evaluate optional per-system multiline defines
katjav Dec 4, 2015
589d7fc
Use CPPFLAGS, CFLAGS and LDFLAGS to override/add build flags
katjav Dec 5, 2015
0595e44
Improve methods for searching Pd include paths.
katjav Dec 6, 2015
15832b5
Small fix: add LDFLAGS to shared.ldflags too.
katjav Dec 6, 2015
ed37e6b
Bumped to version 0.0.2.
katjav Dec 6, 2015
e08bab9
Updated README.md to include reference to xeq.
katjav Dec 6, 2015
c428456
Introduce pre and post targets.
katjav Dec 8, 2015
a5678ac
bump version 0.0.2 > 0.1.0 for added feature (targets pre / post)
katjav Dec 8, 2015
abeb4de
Remove cruft from .PHONY:
katjav Dec 8, 2015
8cba158
Remove cruft from a variable definition
katjav Dec 8, 2015
3946ea5
Merge branch 'eval-system-specific-defines', update version to 0.2.0
katjav Dec 19, 2015
c6fe183
Document CPPFLAGS, CFLAGS, LDFLAGS
katjav Dec 21, 2015
c887569
Replaced outdated link to cyclone repository in README.md
katjav Dec 22, 2015
98f3582
Merge branch 'command-line-build-flags', bump version to 0.2.1
katjav Dec 27, 2015
d94538e
Remove target 'pre' from Makefile.pdlibbuilder
katjav Mar 26, 2016
c989c8e
Bump to version 0.2.2 after removal of 'pre' target
katjav Mar 26, 2016
eb614fd
Disable dep. checking for fat builds on OSX <= 10.5. Version 0.2.3
katjav Mar 29, 2016
1d7bb5e
Fix regression bug that disabled all dependency checking
katjav Jun 25, 2016
b1a4c9b
Print Makefile.pdlibbuilder version
katjav Jun 25, 2016
f06e550
Fix dependency checking for object files in other directories
katjav Jun 26, 2016
49a0b2f
allow installed files to contain weirdo characters
umlaeute Jun 28, 2016
9fd1795
Do not pass architecture flags for dependency checking
katjav Sep 20, 2016
2832db3
Remove old dependency-check workaround for OSX <= 10.5
katjav Sep 20, 2016
5c9fed1
updated cyclone link
danomatika Sep 30, 2016
dc9a8df
re-added cyclone link & added contextual info
danomatika Oct 2, 2016
a6a89dc
Scrap all default include / bin paths except vanilla's
katjav Oct 4, 2016
4815915
Add more projects that use pd-lib-builder in README.md
katjav Oct 5, 2016
7b5e359
Merge branch 'install-dollarfiles'
katjav Oct 5, 2016
a7d3098
Respect flag '-mmacosx-version-min=*' from lib makefile
katjav Oct 9, 2016
5b920b1
Set version to 0.2.8 after merging 'install-dollarfiles'
katjav Oct 9, 2016
41e9743
Introduce variable 'PD_PATH', bump version to 0.3.0
katjav Oct 9, 2016
a0c87be
Defer expansion of $(pdbinpath) to correctly find pd.dll (bugfix)
katjav Oct 13, 2016
b0dab72
Introduce variables PDDIR, PDINCLUDEDIR, PDBINDIR, PDLIBDIR
katjav Oct 13, 2016
cf04da9
Rewrite variable descriptions after introduction of 'PDDIR' & Co.
katjav Oct 14, 2016
ff9b40c
Merge branch 'configurable-minimum-osxversion'
katjav Oct 26, 2016
48c4127
Bump version to 0.4.1 after merging 'configurable-minimum-osxversion'
katjav Oct 26, 2016
4c680bf
Add 'path' and 'documentation' sections in README.md
katjav Oct 26, 2016
006d957
Add CHANGELOG.txt to the project
katjav Oct 28, 2016
058ba82
Add section 'versioning' in README.md
katjav Oct 28, 2016
2e13d8f
Fix bug where incorrect message about m_pd.h is given
katjav Oct 30, 2016
426b38b
Replace flags '-fpic' with '-fPIC'
katjav Nov 2, 2016
6120db1
Update CHANGELOG.txt
katjav Nov 2, 2016
cdd3b43
removed trailing whitespace
umlaeute Nov 22, 2016
cb839ed
note (within the pd-lib-builder Makefile) how to update the file.
umlaeute Nov 22, 2016
2c14110
Use variable 'system' when evaluating 'for{Linux,Darwin,Windows}
katjav Nov 22, 2016
872c34b
Update CHANGELOG.txt for v0.4.4
katjav Nov 22, 2016
4be3e99
Swap OS and machine detection so OS comes first
katjav Jan 20, 2018
fa3c2ca
Introduce variable 'target.arch'
katjav Jan 20, 2018
ef21a16
Introduce architecture dependent settings for Windows
katjav Jan 20, 2018
37d2353
Leave out architecture 'ia64'
katjav Jan 21, 2018
f83d429
Introduce remainder architecture category for Windows
katjav Jan 21, 2018
867ad5e
Introduce general remainder architecture category
katjav Jan 21, 2018
231e344
Use variables 'build.arch' and 'target.arch' consistently
katjav Jan 21, 2018
e4d42f2
Assume system is "Windows" when uname says "MSYS"
katjav Jan 21, 2018
77ff876
Fix conditional checks broken in commits e4d42f2 and f83d429
katjav Jan 21, 2018
13796bf
Add option '-msse3' for Windows on x86_64 architecture
katjav Jan 21, 2018
a01ee16
Revert 'uname --machine' to 'uname -m' (bug fix OSX)
katjav Jan 22, 2018
215bf3e
Merge branch 'target-arch-mingw'
katjav Jan 23, 2018
80d7dc0
Bump version to 0.5.0, ready for Windows 64 bit
katjav Jan 23, 2018
9189e33
Add 'pd-lib-builder/' from commit '7d4c0ca9bb184acfde98469f1ba9670f8f…
megrimm Feb 22, 2018
3d977e3
add makefile for pd-lib-builder
megrimm Feb 22, 2018
8dd9ec2
add pd-lib-builder instructions
megrimm Feb 22, 2018
035fd8d
use libpocketsphinx.dylib not *.so
megrimm Feb 25, 2018
258f025
add MacOS dependency embed script
megrimm Feb 25, 2018
2a72ee7
add filetype git ignore
megrimm Feb 25, 2018
1fef154
remove unused lines
megrimm Feb 25, 2018
4d085d5
replace models with newer
megrimm Feb 26, 2018
86d6a1a
add new models
megrimm Feb 26, 2018
c7eeaed
remove because unnessasary
megrimm Feb 26, 2018
71f872a
replace homebrew sphinx locations MacOS
megrimm Feb 26, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.pd_darwin
*.o
*.pd_linux
*.dylib
18 changes: 18 additions & 0 deletions Makefile.pdlibbuilder
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Makefile for mylib

lib.name = recog~

class.sources = recog~.c

datafiles = recog~-help.pd

# build for 64 bit only ??

# You have to define MODELDIR in Makefile. Something like
cflags += -DMODELDIR "/usr/local/share/pocketsphinx/model" -I/usr/local/include/pocketsphinx -I/usr/local/include/sphinxbase

# link to dylib's
ldlibs = -lpocketsphinx -lsphinxbase

PDLIBBUILDER_DIR=pd-lib-builder/
include $(PDLIBBUILDER_DIR)/Makefile.pdlibbuilder
11 changes: 11 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,17 @@ current: pd_darwin

then, it's the same as for linux. The makefile uses the same variable PDPATH for both linux and mac build options, so the same deal applies.



building w/ pd-lib-builder:
---------

on osx:
$ make -f Makefile.pdlibbuilder LDFLAGS="-arch x86_64"
$ ./osx_dependencies.sh



installing:
-----------
You will also need to tell Pd where the extern is. If it is in the extra folder, you should be fine just renaming the folder 'recog_tilde' to 'recog~' otherwise you will need to add the path to Pd's path list, or declare the path using the [declare] object with the -path flag and the path to recog~.pd_linux.
Expand Down
119 changes: 0 additions & 119 deletions makefile~

This file was deleted.

Loading