The error actually seems to originate in pkg-config not finding lua5.1:
make -C /Users/pd/auto-build/pd-extended/externals/loaders/pdlua/src PD_PATH=/Users/pd/auto-build/pd-extended/pd CFLAGS="-DPD -I/Users/pd/auto-build/pd-extended/pd/src -Wall -W -ggdb -I/Users/pd/auto-build/pd-extended/Gem/src -I/sw/include -I/Users/pd/auto-build/pd-extended/externals/pdp/include -DMACOSX -DUNIX -Dunix -DDL_OPEN" compiling pdlua version 0.6 cflags are -DPD -I/Users/pd/auto-build/pd-extended/pd/src -Wall -W -ggdb -I/Users/pd/auto-build/pd-extended/Gem/src -I/sw/include -I/Users/pd/auto-build/pd-extended/externals/pdp/include -DMACOSX -DUNIX -Dunix -DDL_OPEN optcflags are -fast -fPIC -ftree-vectorize -ftree-vectorizer-verbose=2 -march=pentium4 -msse3 -mfpmath=sse Package lua5.1 was not found in the pkg-config search path. Perhaps you should add the directory containing `lua5.1.pc' to the PKG_CONFIG_PATH environment variable No package 'lua5.1' found luacflags are -DVERSION='0.6' ldflags are -mmacosx-version-min=10.4 -bundle -undefined dynamic_lookup -L/sw/lib
Not sure how to fix that...
Martin
On 18/03/11 12:46 PM, Hans-Christoph Steiner wrote:
Ok, its built and included, but its not finding the liblua on Mac OS X:
/Applications/Pd-0.43.0-extended-20110318.app/Contents/Resources/Scripts/../extra/pdlua/pdlua.pd_darwin: dlopen(/Applications/Pd-0.43.0-extended-20110318.app/Contents/Resources/Scripts/../extra/pdlua/pdlua.pd_darwin, 10): Symbol not found: _lua_type Referenced from: /Applications/Pd-0.43.0-extended-20110318.app/Contents/Resources/Scripts/../extra/pdlua/pdlua.pd_darwin Expected in: dynamic lookup
One advantage of actually linking pdlua to liblua is that the embed-macosx-dependencies.sh script will automatically include the needed lib into the Pd-extended package.
"pkg-config lua --libs" should do it on Mac OS X/Fink.
.hc
On Mar 16, 2011, at 4:58 PM, Hans-Christoph Steiner wrote:
Hey Martin,
Glad to see you are working on getting pdlua integrated into Pd-extended. It is now dying with a linking error on Mac OS X:
http://autobuild.puredata.info/auto-build/2011-03-16/logs/2011-03-16_15.50.0...
pdlua.c:877: warning: comparison between signed and unsigned linking pdlua with -llua5.1 -lc cc -mmacosx-version-min=10.4 -bundle -undefined dynamic_lookup -L/sw/lib -o "pdlua.pd_darwin" "pdlua.o" -llua5.1 -lc /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: can't locate file for: -llua5.1
It looks like you should use -llua.5.1 since the dylib is called /sw/lib/liblua.5.1.dylib
.hc
I hate it when they say, "He gave his life for his country." Nobody gives their life for anything. We steal the lives of these kids. -Admiral Gene LeRocque
"[T]he greatest purveyor of violence in the world today [is] my own government." - Martin Luther King, Jr.
Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev