hi (hans), I am trying to compile a recent version of pdlua on my mac. I know that last time I did this by putting lua.c into pd-extended and compile it from there, but I don't know anymore, how that is done. the makefile that comes with the tarball does not work for os x, and I also don't know how and what to include. what needs to be done to include this in pd-extended. is this possible at all, since it relies on a lua installation. or could that also be included in the pdlua package, since these files are not very big. thanks, marius.
Hallo, marius schebella hat gesagt: // marius schebella wrote:
I am trying to compile a recent version of pdlua on my mac. I know that last time I did this by putting lua.c into pd-extended and compile it from there, but I don't know anymore, how that is done. the makefile that comes with the tarball does not work for os x, and I also don't know how and what to include. what needs to be done to include this in pd-extended. is this possible at all, since it relies on a lua installation. or could that also be included in the pdlua package, since these files are not very big.
For fat systems like OS-X and MS-Windows I would recommend to consider linking Lua statically. Lua itself is tiny:
$ ll /usr/lib/liblua5.1.a -rw-r--r-- 1 root root 212128 Sep 10 2006 /usr/lib/liblua5.1.a
so you could avoid relying on a Lua installation altogether. It only requires ANSI-C so building it should be a breeze for someone in the know of OS-X like Hans.
Frank Barknecht _ ______footils.org__
Put it in a folder that has the Pd-extended build system setup, like
"externals/hcs", then run "make" in that folder. That will build it
on your own machine.
Lua 5.0 is in Fink, so it can easily be added to Pd-extended, and the
build system will automatically included the Lua dylib into the
Pd.app. It seems like "externals/loaders/lua" would be a good place
for it.
.hc
On Nov 27, 2007, at 9:36 PM, marius schebella wrote:
hi (hans), I am trying to compile a recent version of pdlua on my mac. I know
that last time I did this by putting lua.c into pd-extended and compile it from there, but I don't know anymore, how that is done. the makefile that comes with the tarball does not work for os x, and I also don't know how and what to include. what needs to be done to include this in pd-extended. is this possible at all, since it relies on a lua installation. or could that also be included in the pdlua package, since these files are not very big. thanks, marius.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
You can't steal a gift. Bird gave the world his music, and if you can
hear it, you can have it. - Dizzy Gillespie
Hallo, Hans-Christoph Steiner hat gesagt: // Hans-Christoph Steiner wrote:
Put it in a folder that has the Pd-extended build system setup, like
"externals/hcs", then run "make" in that folder. That will build it
on your own machine.Lua 5.0 is in Fink, so it can easily be added to Pd-extended, and the
build system will automatically included the Lua dylib into the
Pd.app. It seems like "externals/loaders/lua" would be a good place
for it.
Sooner than later you'll wont Lua 5.1. Actually as Lua is designed to be used embedded, I'd actually (surprise!) vote for including the core Lua sources in the CVS as well and built static binaries.
Frank Barknecht
Hans-Christoph Steiner wrote:
Lua 5.0 is in Fink, so it can easily be added to Pd-extended, and the
build system will automatically included the Lua dylib into the
Pd.app. It seems like "externals/loaders/lua" would be a good place
for it.
First, apologies for the non-working lua.pd_darwin part of the Makefile
them. I don't have a Mac to test.
I'm not 100% sure, but I think pdlua requires Lua 5.1. At least I had weird problems with Lua 5.0...
One caveat about putting it somewhere in the Pd.app - the file pd.lua needs to be in Pd's path so it can be found by the lua.pd_whatever external. I usually just have:
.../lib/pd/extra/lua.pd_linux .../lib/pd/extra/pd.lua
Maybe I could take a leaf out of Mathieu's book and use the code from GridFlow that finds itself and adds necessary things to Pd's path(s).
where do I get the Pd-extended build system? marius.
Hans-Christoph Steiner wrote:
Put it in a folder that has the Pd-extended build system setup, like "externals/hcs", then run "make" in that folder. That will build it on your own machine.
Lua 5.0 is in Fink, so it can easily be added to Pd-extended, and the build system will automatically included the Lua dylib into the Pd.app.
It seems like "externals/loaders/lua" would be a good place for it..hc
On Nov 27, 2007, at 9:36 PM, marius schebella wrote:
hi (hans), I am trying to compile a recent version of pdlua on my mac. I know that last time I did this by putting lua.c into pd-extended and compile it from there, but I don't know anymore, how that is done. the makefile that comes with the tarball does not work for os x, and I also don't know how and what to include. what needs to be done to include this in pd-extended. is this possible at all, since it relies on a lua installation. or could that also be included in the pdlua package, since these files are not very big. thanks, marius.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
You can't steal a gift. Bird gave the world his music, and if you can hear it, you can have it. - Dizzy Gillespie
hi (hans), I grabed what I thout is the pd-extended build system from rsync -av --delete rsync://128.238.56.50/distros/pd-extended/ pd-extended/ when I cd to hcs (or any other directory I tested) and run make, I get a bunch of errors
marius-schebellas-computer:hcs marius$ make
make -C /Users/marius/devel/pd-rsync/pd-extended/externals hcs
cc -DPD -O2 -I/Users/marius/devel/pd-rsync/pd-extended/pd/src -Wall -W
-ggdb -I/sw/include -DMACOSX -DUNIX -Dunix -o
"/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.o"
-c "/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.c"
cc -bundle -bundle_loader
/Users/marius/devel/pd-rsync/pd-extended/pd/bin/pd -L/sw/lib
-weak_framework Carbon -o
"/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.pd_darwin"
"/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.o"
-lm -lc
test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.libs && cat /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.libs
my_dylib=hcs; test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lib${my_dylib}.dylib && echo -L/Users/marius/devel/pd-rsync/pd-extended/externals/hcs -l$my_dylib
my_obj=hcs; test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/shared/${my_obj}.o && echo /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/shared/${my_obj}.o
test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/../darwin/canvas_name.libs && \ cat /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/../darwin/canvas_name.libs
ld: file not found: /Users/marius/devel/pd-rsync/pd-extended/pd/bin/pd
collect2: ld returned 1 exit status
make[1]: ***
[/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.pd_darwin]
Error 1
rm /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.o
make: *** [default] Error 2
need help, marius.
Hans-Christoph Steiner wrote:
Put it in a folder that has the Pd-extended build system setup, like "externals/hcs", then run "make" in that folder. That will build it on your own machine.
Lua 5.0 is in Fink, so it can easily be added to Pd-extended, and the build system will automatically included the Lua dylib into the Pd.app.
It seems like "externals/loaders/lua" would be a good place for it..hc
On Nov 27, 2007, at 9:36 PM, marius schebella wrote:
hi (hans), I am trying to compile a recent version of pdlua on my mac. I know that last time I did this by putting lua.c into pd-extended and compile it from there, but I don't know anymore, how that is done. the makefile that comes with the tarball does not work for os x, and I also don't know how and what to include. what needs to be done to include this in pd-extended. is this possible at all, since it relies on a lua installation. or could that also be included in the pdlua package, since these files are not very big. thanks, marius.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
You can't steal a gift. Bird gave the world his music, and if you can hear it, you can have it. - Dizzy Gillespie
Here's the key error line:
ld: file not found: /Users/marius/devel/pd-rsync/pd-extended/pd/bin/pd
You need to build Pd first:
cd /Users/marius/devel/pd-rsync/pd-extended/pd/src autoconf ./configure make
now:
cd /Users/marius/devel/pd-rsync/pd-extended/externals/hcs make
.hc
On Nov 28, 2007, at 4:30 PM, marius schebella wrote:
hi (hans), I grabed what I thout is the pd-extended build system from rsync -av --delete rsync://128.238.56.50/distros/pd-extended/ pd- extended/ when I cd to hcs (or any other directory I tested) and run make, I
get a bunch of errorsmarius-schebellas-computer:hcs marius$ make make -C /Users/marius/devel/pd-rsync/pd-extended/externals hcs cc -DPD -O2 -I/Users/marius/devel/pd-rsync/pd-extended/pd/src -Wall
-W -ggdb -I/sw/include -DMACOSX -DUNIX -Dunix -o "/Users/marius/ devel/pd-rsync/pd-extended/externals/hcs/canvas_name.o" -c "/Users/ marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.c" cc -bundle -bundle_loader /Users/marius/devel/pd-rsync/pd-extended/ pd/bin/pd -L/sw/lib -weak_framework Carbon -o "/Users/marius/devel/ pd-rsync/pd-extended/externals/hcs/canvas_name.pd_darwin" "/Users/ marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.o" -lm - lc
test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/ canvas_name.libs && cat /Users/marius/devel/pd-rsync/pd-extended/ externals/hcs/canvas_name.libs
my_dylib=hcs; test -f /Users/marius/devel/pd-rsync/pd-extended/ externals/hcs/lib${my_dylib}.dylib && echo -L/Users/marius/devel/pd- rsync/pd-extended/externals/hcs -l$my_dylib
my_obj=hcs; test -f /Users/marius/devel/pd-rsync/pd-extended/ externals/hcs/shared/${my_obj}.o && echo /Users/marius/devel/pd- rsync/pd-extended/externals/hcs/shared/${my_obj}.o
test -f /Users/marius/devel/pd-rsync/pd-extended/externals/ hcs/../darwin/canvas_name.libs && \ cat /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/../ darwin/canvas_name.libs
ld: file not found: /Users/marius/devel/pd-rsync/pd-extended/pd/bin/pd collect2: ld returned 1 exit status make[1]: *** [/Users/marius/devel/pd-rsync/pd-extended/externals/ hcs/canvas_name.pd_darwin] Error 1 rm /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/ canvas_name.o make: *** [default] Error 2need help, marius.
Hans-Christoph Steiner wrote:
Put it in a folder that has the Pd-extended build system setup,
like "externals/hcs", then run "make" in that folder. That will
build it on your own machine. Lua 5.0 is in Fink, so it can easily be added to Pd-extended, and
the build system will automatically included the Lua dylib into
the Pd.app. It seems like "externals/loaders/lua" would be a good
place for it. .hc On Nov 27, 2007, at 9:36 PM, marius schebella wrote:hi (hans), I am trying to compile a recent version of pdlua on my mac. I
know that last time I did this by putting lua.c into pd-extended and
compile it from there, but I don't know anymore, how that is done. the makefile that comes with the tarball does not work for os x,
and I also don't know how and what to include. what needs to be done to include this in pd-extended. is this
possible at all, since it relies on a lua installation. or could that also be included in the pdlua package, since these files are not very big. thanks, marius.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
------- You can't steal a gift. Bird gave the world his music, and
if you can hear it, you can have it. - Dizzy Gillespie
News is what people want to keep hidden and everything else is
publicity. - Bill Moyers
hi, I am not sure what the error means, I have tcl/tk8.4 installed. does wrong architecture mean, wrong version of tcltk or wrong version of os x?
cd ../obj && cc -g -O2 -DPD -Wall -W -Wstrict-prototypes -Wno-unused
-Wno-parentheses -Wno-switch -DDL_OPEN -DMACOSX -DUNISTD
-I/usr/X11R6/include -I../portaudio/pa_common -I../portaudio/pablio
-I../portmidi/pm_common -I../portmidi/pm_mac -I../portmidi/porttime
-DUSEAPI_PORTAUDIO -DPA19 -DPA_USE_COREAUDIO -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc
-Wno-error -O2 -dynamiclib -read_only_relocs warning
-o ../bin/libPdTcl.dylib t_main.o t_tkcmd.o
-F/Library/Frameworks
-framework Tcl -framework Tk -framework System
-Wl,-install_name,@executable_path/../Resources/bin/libPdTcl.dylib
ld: warning in
/Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/Tcl.framework/Tcl,
file is not of required architecture
ld: warning in
/Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/Tk.framework/Tk, file
is not of required architecture
Undefined symbols:
"_Tcl_CreateCommand", referenced from:
_pdgui_startup in t_tkcmd.o
"_Tcl_CreateFileHandler", referenced from:
_pdgui_startup in t_tkcmd.o
_pdgui_startup in t_tkcmd.o
"_Tcl_Eval", referenced from:
_tcl_mess in t_tkcmd.o
"_Tcl_GetVar", referenced from:
_pdgui_startup in t_tkcmd.o
_Pdtcl_Init in t_tkcmd.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
lipo: can't open input file:
/var/folders/TH/THjm5UAnEZSSB-y6nQY-6++++TI/-Tmp-//ccuA1Xyz.out (No such
file or directory)
make: *** [../bin/libPdTcl.dylib] Error 1
marius.
Hans-Christoph Steiner wrote:
Here's the key error line:
ld: file not found: /Users/marius/devel/pd-rsync/pd-extended/pd/bin/pd
You need to build Pd first:
cd /Users/marius/devel/pd-rsync/pd-extended/pd/src autoconf ./configure make
now:
cd /Users/marius/devel/pd-rsync/pd-extended/externals/hcs make
.hc
On Nov 28, 2007, at 4:30 PM, marius schebella wrote:
hi (hans), I grabed what I thout is the pd-extended build system from rsync -av --delete rsync://128.238.56.50/distros/pd-extended/ pd-extended/ when I cd to hcs (or any other directory I tested) and run make, I get a bunch of errors
marius-schebellas-computer:hcs marius$ make make -C /Users/marius/devel/pd-rsync/pd-extended/externals hcs cc -DPD -O2 -I/Users/marius/devel/pd-rsync/pd-extended/pd/src -Wall -W -ggdb -I/sw/include -DMACOSX -DUNIX -Dunix -o "/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.o" -c "/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.c" cc -bundle -bundle_loader /Users/marius/devel/pd-rsync/pd-extended/pd/bin/pd -L/sw/lib -weak_framework Carbon -o "/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.pd_darwin" "/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.o" -lm -lc
test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.libs && cat /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.libs
my_dylib=hcs; test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lib${my_dylib}.dylib && echo -L/Users/marius/devel/pd-rsync/pd-extended/externals/hcs -l$my_dylib
my_obj=hcs; test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/shared/${my_obj}.o && echo /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/shared/${my_obj}.o
test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/../darwin/canvas_name.libs && \ cat /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/../darwin/canvas_name.libs
ld: file not found: /Users/marius/devel/pd-rsync/pd-extended/pd/bin/pd collect2: ld returned 1 exit status make[1]: *** [/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.pd_darwin] Error 1 rm /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.o make: *** [default] Error 2
need help, marius.
Hans-Christoph Steiner wrote:
Put it in a folder that has the Pd-extended build system setup, like "externals/hcs", then run "make" in that folder. That will build it on your own machine. Lua 5.0 is in Fink, so it can easily be added to Pd-extended, and the build system will automatically included the Lua dylib into the Pd.app. It seems like "externals/loaders/lua" would be a good place for it. .hc On Nov 27, 2007, at 9:36 PM, marius schebella wrote:
hi (hans), I am trying to compile a recent version of pdlua on my mac. I know that last time I did this by putting lua.c into pd-extended and compile it from there, but I don't know anymore, how that is done. the makefile that comes with the tarball does not work for os x, and I also don't know how and what to include. what needs to be done to include this in pd-extended. is this possible at all, since it relies on a lua installation. or could that also be included in the pdlua package, since these files are not very big. thanks, marius.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
You can't steal a gift. Bird gave the world his music, and if you can hear it, you can have it. - Dizzy Gillespie
News is what people want to keep hidden and everything else is publicity. - Bill Moyers
The universal build stuff in pd-vanilla doesn't always fully work,
try doing this instead to build Pd:
cd /Users/marius/devel/pd-rsync/pd-extended/pd/src autoconf ./configure --disable-fat make
now:
cd /Users/marius/devel/pd-rsync/pd-extended/externals/hcs make
On Nov 28, 2007, at 5:55 PM, marius schebella wrote:
hi, I am not sure what the error means, I have tcl/tk8.4 installed.
does wrong architecture mean, wrong version of tcltk or wrong
version of os x?cd ../obj && cc -g -O2 -DPD -Wall -W -Wstrict-prototypes -Wno- unused -Wno-parentheses -Wno-switch -DDL_OPEN -DMACOSX -DUNISTD -I/ usr/X11R6/include -I../portaudio/pa_common -I../portaudio/pablio - I../portmidi/pm_common -I../portmidi/pm_mac -I../portmidi/porttime
-DUSEAPI_PORTAUDIO -DPA19 -DPA_USE_COREAUDIO -isysroot /Developer/ SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -Wno-error - O2 -dynamiclib -read_only_relocs warning
-o ../bin/libPdTcl.dylib t_main.o t_tkcmd.o
-F/Library/Frameworks
-framework Tcl -framework Tk -framework System
-Wl,-install_name,@executable_path/../Resources/bin/libPdTcl.dylib ld: warning in /Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/ Tcl.framework/Tcl, file is not of required architecture ld: warning in /Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/ Tk.framework/Tk, file is not of required architecture Undefined symbols: "_Tcl_CreateCommand", referenced from: _pdgui_startup in t_tkcmd.o "_Tcl_CreateFileHandler", referenced from: _pdgui_startup in t_tkcmd.o _pdgui_startup in t_tkcmd.o "_Tcl_Eval", referenced from: _tcl_mess in t_tkcmd.o "_Tcl_GetVar", referenced from: _pdgui_startup in t_tkcmd.o _Pdtcl_Init in t_tkcmd.o ld: symbol(s) not found collect2: ld returned 1 exit status lipo: can't open input file: /var/folders/TH/THjm5UAnEZSSB-y6nQY-6++ ++TI/-Tmp-//ccuA1Xyz.out (No such file or directory) make: *** [../bin/libPdTcl.dylib] Error 1marius.
Hans-Christoph Steiner wrote:
Here's the key error line:
ld: file not found: /Users/marius/devel/pd-rsync/pd-extended/pd/ bin/pd
You need to build Pd first: cd /Users/marius/devel/pd-rsync/pd-extended/pd/src autoconf ./configure make now: cd /Users/marius/devel/pd-rsync/pd-extended/externals/hcs make .hc On Nov 28, 2007, at 4:30 PM, marius schebella wrote:
hi (hans), I grabed what I thout is the pd-extended build system from rsync -av --delete rsync://128.238.56.50/distros/pd-extended/ pd- extended/ when I cd to hcs (or any other directory I tested) and run make,
I get a bunch of errorsmarius-schebellas-computer:hcs marius$ make make -C /Users/marius/devel/pd-rsync/pd-extended/externals hcs cc -DPD -O2 -I/Users/marius/devel/pd-rsync/pd-extended/pd/src - Wall -W -ggdb -I/sw/include -DMACOSX -DUNIX -Dunix -o "/Users/ marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.o" -c
"/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/ canvas_name.c" cc -bundle -bundle_loader /Users/marius/devel/pd-rsync/pd- extended/pd/bin/pd -L/sw/lib -weak_framework Carbon -o "/Users/ marius/devel/pd-rsync/pd-extended/externals/hcs/ canvas_name.pd_darwin" "/Users/marius/devel/pd-rsync/pd-extended/ externals/hcs/canvas_name.o" -lm -lc
test -f /Users/marius/devel/pd-rsync/pd-extended/ externals/hcs/canvas_name.libs && cat /Users/marius/devel/pd- rsync/pd-extended/externals/hcs/canvas_name.libs
my_dylib=hcs; test -f /Users/marius/devel/pd-rsync/pd- extended/externals/hcs/lib${my_dylib}.dylib && echo -L/Users/ marius/devel/pd-rsync/pd-extended/externals/hcs -l$my_dylib
my_obj=hcs; test -f /Users/marius/devel/pd-rsync/pd- extended/externals/hcs/shared/${my_obj}.o && echo /Users/marius/ devel/pd-rsync/pd-extended/externals/hcs/shared/${my_obj}.o
test -f /Users/marius/devel/pd-rsync/pd-extended/ externals/hcs/../darwin/canvas_name.libs && \ cat /Users/marius/devel/pd-rsync/pd-extended/ externals/hcs/../darwin/canvas_name.libs
ld: file not found: /Users/marius/devel/pd-rsync/pd-extended/pd/ bin/pd collect2: ld returned 1 exit status make[1]: *** [/Users/marius/devel/pd-rsync/pd-extended/externals/ hcs/canvas_name.pd_darwin] Error 1 rm /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/ canvas_name.o make: *** [default] Error 2need help, marius.
Hans-Christoph Steiner wrote:
Put it in a folder that has the Pd-extended build system setup,
like "externals/hcs", then run "make" in that folder. That will
build it on your own machine. Lua 5.0 is in Fink, so it can easily be added to Pd-extended,
and the build system will automatically included the Lua dylib
into the Pd.app. It seems like "externals/loaders/lua" would be
a good place for it. .hc On Nov 27, 2007, at 9:36 PM, marius schebella wrote:hi (hans), I am trying to compile a recent version of pdlua on my mac. I
know that last time I did this by putting lua.c into pd-extended and
compile it from there, but I don't know anymore, how that is done. the makefile that comes with the tarball does not work for os
x, and I also don't know how and what to include. what needs to be done to include this in pd-extended. is this
possible at all, since it relies on a lua installation. or could that
also be included in the pdlua package, since these files are not very big. thanks, marius.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http:// lists.puredata.info/listinfo/pd-list
--------- You can't steal a gift. Bird gave the world his music,
and if you can hear it, you can have it. - Dizzy Gillespie
------- News is what people want to keep hidden and everything
else is publicity. - Bill Moyers
The arc of history bends towards justice. - Dr. Martin Luther
King, Jr.
thank you, but the error remains. what does this line mean? ld: warning in /Library/Frameworks/Tcl.framework/Tcl, file is not of required architecture which tcl version should I use??? marius.
Hans-Christoph Steiner wrote:
The universal build stuff in pd-vanilla doesn't always fully work, try doing this instead to build Pd:
cd /Users/marius/devel/pd-rsync/pd-extended/pd/src autoconf ./configure --disable-fat make
now:
cd /Users/marius/devel/pd-rsync/pd-extended/externals/hcs make
On Nov 28, 2007, at 5:55 PM, marius schebella wrote:
hi, I am not sure what the error means, I have tcl/tk8.4 installed. does wrong architecture mean, wrong version of tcltk or wrong version of os x?
cd ../obj && cc -g -O2 -DPD -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -DDL_OPEN -DMACOSX -DUNISTD -I/usr/X11R6/include -I../portaudio/pa_common -I../portaudio/pablio -I../portmidi/pm_common -I../portmidi/pm_mac
-I../portmidi/porttime -DUSEAPI_PORTAUDIO -DPA19 -DPA_USE_COREAUDIO -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -Wno-error -O2 -dynamiclib -read_only_relocs warning
-o ../bin/libPdTcl.dylib t_main.o t_tkcmd.o
-F/Library/Frameworks
-framework Tcl -framework Tk -framework System \-Wl,-install_name,@executable_path/../Resources/bin/libPdTcl.dylib ld: warning in /Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/Tcl.framework/Tcl, file is not of required architecture ld: warning in /Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/Tk.framework/Tk, file is not of required architecture Undefined symbols: "_Tcl_CreateCommand", referenced from: _pdgui_startup in t_tkcmd.o "_Tcl_CreateFileHandler", referenced from: _pdgui_startup in t_tkcmd.o _pdgui_startup in t_tkcmd.o "_Tcl_Eval", referenced from: _tcl_mess in t_tkcmd.o "_Tcl_GetVar", referenced from: _pdgui_startup in t_tkcmd.o _Pdtcl_Init in t_tkcmd.o ld: symbol(s) not found collect2: ld returned 1 exit status lipo: can't open input file: /var/folders/TH/THjm5UAnEZSSB-y6nQY-6++++TI/-Tmp-//ccuA1Xyz.out (No such file or directory) make: *** [../bin/libPdTcl.dylib] Error 1
marius.
Hans-Christoph Steiner wrote:
Here's the key error line:
ld: file not found: /Users/marius/devel/pd-rsync/pd-extended/pd/bin/pd
You need to build Pd first: cd /Users/marius/devel/pd-rsync/pd-extended/pd/src autoconf ./configure make now: cd /Users/marius/devel/pd-rsync/pd-extended/externals/hcs make .hc On Nov 28, 2007, at 4:30 PM, marius schebella wrote:
hi (hans), I grabed what I thout is the pd-extended build system from rsync -av --delete rsync://128.238.56.50/distros/pd-extended/ pd-extended/ when I cd to hcs (or any other directory I tested) and run make, I get a bunch of errors
marius-schebellas-computer:hcs marius$ make make -C /Users/marius/devel/pd-rsync/pd-extended/externals hcs cc -DPD -O2 -I/Users/marius/devel/pd-rsync/pd-extended/pd/src -Wall -W -ggdb -I/sw/include -DMACOSX -DUNIX -Dunix -o "/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.o" -c "/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.c" cc -bundle -bundle_loader /Users/marius/devel/pd-rsync/pd-extended/pd/bin/pd -L/sw/lib -weak_framework Carbon -o "/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.pd_darwin" "/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.o" -lm -lc
test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.libs && cat /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.libs
my_dylib=hcs; test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lib${my_dylib}.dylib && echo -L/Users/marius/devel/pd-rsync/pd-extended/externals/hcs -l$my_dylib
my_obj=hcs; test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/shared/${my_obj}.o && echo /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/shared/${my_obj}.o
test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/../darwin/canvas_name.libs && \ cat /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/../darwin/canvas_name.libs
ld: file not found: /Users/marius/devel/pd-rsync/pd-extended/pd/bin/pd collect2: ld returned 1 exit status make[1]: *** [/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.pd_darwin] Error 1 rm /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.o make: *** [default] Error 2
need help, marius.
Hans-Christoph Steiner wrote:
Put it in a folder that has the Pd-extended build system setup, like "externals/hcs", then run "make" in that folder. That will build it on your own machine. Lua 5.0 is in Fink, so it can easily be added to Pd-extended, and the build system will automatically included the Lua dylib into the Pd.app. It seems like "externals/loaders/lua" would be a good place for it. .hc On Nov 27, 2007, at 9:36 PM, marius schebella wrote:
hi (hans), I am trying to compile a recent version of pdlua on my mac. I know that last time I did this by putting lua.c into pd-extended and compile it from there, but I don't know anymore, how that is done. the makefile that comes with the tarball does not work for os x, and I also don't know how and what to include. what needs to be done to include this in pd-extended. is this possible at all, since it relies on a lua installation. or could that also be included in the pdlua package, since these files are not very big. thanks, marius.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
You can't steal a gift. Bird gave the world his music, and if you can hear it, you can have it. - Dizzy Gillespie
News is what people want to keep hidden and everything else is publicity. - Bill Moyers
The arc of history bends towards justice. - Dr. Martin Luther King, Jr.
It means that the Tcl framework version doesn't provide the same
architecture that you are building as.
Try removing those frameworks and just using the built-in ones:
rm -r /Library/Frameworks/Tcl.framework rm -r /Library/Frameworks/Tk.framework
Or try the ones currently in use on the auto-build Intel Mac (they
are universal):
http://idmi.poly.edu/pdlab/TclTk4Pd-2007-11-16.zip
.hc
On Nov 29, 2007, at 1:16 AM, marius schebella wrote:
thank you, but the error remains. what does this line mean? ld: warning in /Library/Frameworks/Tcl.framework/Tcl, file is not
of required architecture which tcl version should I use??? marius.Hans-Christoph Steiner wrote:
The universal build stuff in pd-vanilla doesn't always fully work,
try doing this instead to build Pd: cd /Users/marius/devel/pd-rsync/pd-extended/pd/src autoconf ./configure --disable-fat make now: cd /Users/marius/devel/pd-rsync/pd-extended/externals/hcs make On Nov 28, 2007, at 5:55 PM, marius schebella wrote:hi, I am not sure what the error means, I have tcl/tk8.4 installed.
does wrong architecture mean, wrong version of tcltk or wrong
version of os x?cd ../obj && cc -g -O2 -DPD -Wall -W -Wstrict-prototypes -Wno- unused -Wno-parentheses -Wno-switch -DDL_OPEN -DMACOSX -DUNISTD - I/usr/X11R6/include -I../portaudio/pa_common -I../portaudio/ pablio -I../portmidi/pm_common -I../portmidi/pm_mac -I../ portmidi/porttime -DUSEAPI_PORTAUDIO -DPA19 -DPA_USE_COREAUDIO - isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 - arch ppc -Wno-error -O2 -dynamiclib -read_only_relocs warning
-o ../bin/libPdTcl.dylib t_main.o t_tkcmd.o
-F/Library/Frameworks
-framework Tcl -framework Tk -framework System
-Wl,-install_name,@executable_path/../Resources/bin/ libPdTcl.dylib ld: warning in /Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/ Tcl.framework/Tcl, file is not of required architecture ld: warning in /Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/ Tk.framework/Tk, file is not of required architecture Undefined symbols: "_Tcl_CreateCommand", referenced from: _pdgui_startup in t_tkcmd.o "_Tcl_CreateFileHandler", referenced from: _pdgui_startup in t_tkcmd.o _pdgui_startup in t_tkcmd.o "_Tcl_Eval", referenced from: _tcl_mess in t_tkcmd.o "_Tcl_GetVar", referenced from: _pdgui_startup in t_tkcmd.o _Pdtcl_Init in t_tkcmd.o ld: symbol(s) not found collect2: ld returned 1 exit status lipo: can't open input file: /var/folders/TH/THjm5UAnEZSSB-y6nQY-6 ++++TI/-Tmp-//ccuA1Xyz.out (No such file or directory) make: *** [../bin/libPdTcl.dylib] Error 1marius.
Hans-Christoph Steiner wrote:
Here's the key error line:
ld: file not found: /Users/marius/devel/pd-rsync/pd-extended/pd/ bin/pd
You need to build Pd first: cd /Users/marius/devel/pd-rsync/pd-extended/pd/src autoconf ./configure make now: cd /Users/marius/devel/pd-rsync/pd-extended/externals/hcs make .hc On Nov 28, 2007, at 4:30 PM, marius schebella wrote:
hi (hans), I grabed what I thout is the pd-extended build system from rsync -av --delete rsync://128.238.56.50/distros/pd-extended/
pd-extended/ when I cd to hcs (or any other directory I tested) and run
make, I get a bunch of errorsmarius-schebellas-computer:hcs marius$ make make -C /Users/marius/devel/pd-rsync/pd-extended/externals hcs cc -DPD -O2 -I/Users/marius/devel/pd-rsync/pd-extended/pd/src - Wall -W -ggdb -I/sw/include -DMACOSX -DUNIX -Dunix -o "/Users/ marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.o" - c "/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/ canvas_name.c" cc -bundle -bundle_loader /Users/marius/devel/pd-rsync/pd- extended/pd/bin/pd -L/sw/lib -weak_framework Carbon -o "/Users/ marius/devel/pd-rsync/pd-extended/externals/hcs/ canvas_name.pd_darwin" "/Users/marius/devel/pd-rsync/pd- extended/externals/hcs/canvas_name.o" -lm -lc
test -f /Users/marius/devel/pd-rsync/pd-extended/ externals/hcs/canvas_name.libs && cat /Users/marius/devel/pd- rsync/pd-extended/externals/hcs/canvas_name.libs
my_dylib=hcs; test -f /Users/marius/devel/pd-rsync/pd- extended/externals/hcs/lib${my_dylib}.dylib && echo -L/Users/ marius/devel/pd-rsync/pd-extended/externals/hcs -l$my_dylib
my_obj=hcs; test -f /Users/marius/devel/pd-rsync/pd- extended/externals/hcs/shared/${my_obj}.o && echo /Users/marius/ devel/pd-rsync/pd-extended/externals/hcs/shared/${my_obj}.o
test -f /Users/marius/devel/pd-rsync/pd-extended/ externals/hcs/../darwin/canvas_name.libs && \ cat /Users/marius/devel/pd-rsync/pd-extended/ externals/hcs/../darwin/canvas_name.libs
ld: file not found: /Users/marius/devel/pd-rsync/pd-extended/pd/ bin/pd collect2: ld returned 1 exit status make[1]: *** [/Users/marius/devel/pd-rsync/pd-extended/ externals/hcs/canvas_name.pd_darwin] Error 1 rm /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/ canvas_name.o make: *** [default] Error 2need help, marius.
Hans-Christoph Steiner wrote:
Put it in a folder that has the Pd-extended build system
setup, like "externals/hcs", then run "make" in that folder.
That will build it on your own machine. Lua 5.0 is in Fink, so it can easily be added to Pd-extended,
and the build system will automatically included the Lua dylib
into the Pd.app. It seems like "externals/loaders/lua" would
be a good place for it. .hc On Nov 27, 2007, at 9:36 PM, marius schebella wrote: > hi (hans), > I am trying to compile a recent version of pdlua on my mac. I
> know that > last time I did this by putting lua.c into pd-extended and
> compile it > from there, but I don't know anymore, how that is done. > the makefile that comes with the tarball does not work for os
> x, and I > also don't know how and what to include. > what needs to be done to include this in pd-extended. is this
> possible > at all, since it relies on a lua installation. or could that
> also be > included in the pdlua package, since these files are not very
> big. > thanks, > marius. > > _______________________________________________ > PD-list@iem.at mailing list > UNSUBSCRIBE and account-management -> http://> lists.puredata.info/listinfo/pd-list
----------- You can't steal a gift. Bird gave the world his
music, and if you can hear it, you can have it. - Dizzy Gillespie
--------- News is what people want to keep hidden and everything
else is publicity. - Bill Moyers
------- The arc of history bends towards justice. - Dr. Martin
Luther King, Jr.
You can't steal a gift. Bird gave the world his music, and if you can
hear it, you can have it. - Dizzy Gillespie
hi, still not luck. here is the error I am getting now, m.
cc -DPD -O2 -I/Users/marius/devel/pd-rsync/pd-extended/pd/src -Wall -W
-ggdb -I/sw/include -DMACOSX -DUNIX -Dunix -o
"/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lua.o" -c
"/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lua.c"
/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lua.c: In
function ‘pdlua_reader’:
/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lua.c:51:
warning: unused parameter ‘L’
/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lua.c: In
function ‘pdlua_outlet’:
/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lua.c:399:
warning: comparison between signed and unsigned
/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lua.c:388:
warning: ‘count’ may be used uninitialized in this function
cc -bundle -bundle_loader
/Users/marius/devel/pd-rsync/pd-extended/pd/bin/pd -L/sw/lib
-weak_framework Carbon -o
"/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lua.pd_darwin"
"/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lua.o" -lm -lc
test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lua.libs && cat /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lua.libs
my_dylib=hcs; test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lib${my_dylib}.dylib && echo -L/Users/marius/devel/pd-rsync/pd-extended/externals/hcs -l$my_dylib
my_obj=hcs; test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/shared/${my_obj}.o && echo /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/shared/${my_obj}.o
test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/../darwin/lua.libs && \ cat /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/../darwin/lua.libs
Undefined symbols:
"_lua_touserdata", referenced from:
_pdlua_new in lua.o
_pdlua_object_new in lua.o
_pdlua_object_createinlets in lua.o
_pdlua_object_createoutlets in lua.o
_pdlua_object_free in lua.o
_pdlua_outlet in lua.o
_pdlua_outlet in lua.o
_pdlua_error in lua.o
_pdlua_dofile in lua.o
"_lua_pushvalue", referenced from:
_pdlua_outlet in lua.o
"_lua_settable", referenced from:
_pdlua_pushatomtable in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
"_luaL_newstate", referenced from:
_lua_setup in lua.o
"_luaL_checknumber", referenced from:
_pdlua_object_createinlets in lua.o
_pdlua_object_createoutlets in lua.o
"_luaL_checklstring", referenced from:
_pdlua_class_new in lua.o
_pdlua_post in lua.o
_pdlua_error in lua.o
"_lua_tonumber", referenced from:
_pdlua_outlet in lua.o
_pdlua_outlet in lua.o
"_luaL_openlibs", referenced from:
_lua_setup in lua.o
"_lua_setfield", referenced from:
_lua_setup in lua.o
"_lua_pushlightuserdata", referenced from:
_pdlua_pushatomtable in lua.o
_pdlua_free in lua.o
_pdlua_class_new in lua.o
_pdlua_object_new in lua.o
_pdlua_proxyinlet_anything in lua.o
"_lua_isnumber", referenced from:
_pdlua_outlet in lua.o
"_lua_isstring", referenced from:
_pdlua_outlet in lua.o
"_lua_gettop", referenced from:
_pdlua_dofile in lua.o
_pdlua_dofile in lua.o
"_lua_objlen", referenced from:
_pdlua_outlet in lua.o
"_lua_pushnil", referenced from:
_pdlua_pushatomtable in lua.o
_pdlua_outlet in lua.o
"_lua_pushnumber", referenced from:
_pdlua_pushatomtable in lua.o
_pdlua_pushatomtable in lua.o
_pdlua_proxyinlet_anything in lua.o
"_lua_tolstring", referenced from:
_pdlua_new in lua.o
_pdlua_free in lua.o
_pdlua_proxyinlet_anything in lua.o
_pdlua_outlet in lua.o
_pdlua_outlet in lua.o
_pdlua_dofile in lua.o
_pdlua_loader in lua.o
_lua_setup in lua.o
"_lua_pushstring", referenced from:
_pdlua_pushatomtable in lua.o
_pdlua_new in lua.o
_pdlua_proxyinlet_anything in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
"_lua_pcall", referenced from:
_pdlua_new in lua.o
_pdlua_free in lua.o
_pdlua_proxyinlet_anything in lua.o
_pdlua_dofile in lua.o
_pdlua_loader in lua.o
_lua_setup in lua.o
"_lua_next", referenced from:
_pdlua_outlet in lua.o
"_luaL_optlstring", referenced from:
_pdlua_dofile in lua.o
"_lua_settop", referenced from:
_pdlua_new in lua.o
_pdlua_new in lua.o
_pdlua_free in lua.o
_pdlua_proxyinlet_anything in lua.o
_pdlua_outlet in lua.o
_pdlua_outlet in lua.o
_pdlua_dofile in lua.o
_pdlua_loader in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
"_lua_createtable", referenced from:
_pdlua_pushatomtable in lua.o
_lua_setup in lua.o
"_lua_type", referenced from:
_pdlua_new in lua.o
_pdlua_object_new in lua.o
_pdlua_object_createinlets in lua.o
_pdlua_object_createoutlets in lua.o
_pdlua_object_free in lua.o
_pdlua_outlet in lua.o
_pdlua_outlet in lua.o
_pdlua_outlet in lua.o
_pdlua_error in lua.o
_pdlua_dofile in lua.o
"_lua_getfield", referenced from:
_pdlua_new in lua.o
_pdlua_new in lua.o
_pdlua_free in lua.o
_pdlua_free in lua.o
_pdlua_proxyinlet_anything in lua.o
_pdlua_proxyinlet_anything in lua.o
_lua_setup in lua.o
"_lua_load", referenced from:
_pdlua_dofile in lua.o
_pdlua_loader in lua.o
_lua_setup in lua.o
"_lua_error", referenced from:
_pdlua_dofile in lua.o
"_lua_pushcclosure", referenced from:
_lua_setup in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
_lua_setup in lua.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: ***
[/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lua.pd_darwin]
Error 1
rm /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lua.o
make: *** [default] Error 2
Hans-Christoph Steiner wrote:
It means that the Tcl framework version doesn't provide the same architecture that you are building as.
Try removing those frameworks and just using the built-in ones:
rm -r /Library/Frameworks/Tcl.framework rm -r /Library/Frameworks/Tk.framework
Or try the ones currently in use on the auto-build Intel Mac (they are universal):
http://idmi.poly.edu/pdlab/TclTk4Pd-2007-11-16.zip
.hc
On Nov 29, 2007, at 1:16 AM, marius schebella wrote:
thank you, but the error remains. what does this line mean? ld: warning in /Library/Frameworks/Tcl.framework/Tcl, file is not of required architecture which tcl version should I use??? marius.
Hans-Christoph Steiner wrote:
The universal build stuff in pd-vanilla doesn't always fully work, try doing this instead to build Pd: cd /Users/marius/devel/pd-rsync/pd-extended/pd/src autoconf ./configure --disable-fat make now: cd /Users/marius/devel/pd-rsync/pd-extended/externals/hcs make On Nov 28, 2007, at 5:55 PM, marius schebella wrote:
hi, I am not sure what the error means, I have tcl/tk8.4 installed. does wrong architecture mean, wrong version of tcltk or wrong version of os x?
cd ../obj && cc -g -O2 -DPD -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -DDL_OPEN -DMACOSX -DUNISTD -I/usr/X11R6/include -I../portaudio/pa_common -I../portaudio/pablio -I../portmidi/pm_common -I../portmidi/pm_mac -I../portmidi/porttime -DUSEAPI_PORTAUDIO -DPA19 -DPA_USE_COREAUDIO -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -Wno-error -O2 -dynamiclib -read_only_relocs warning
-o ../bin/libPdTcl.dylib t_main.o t_tkcmd.o
-F/Library/Frameworks
-framework Tcl -framework Tk -framework System \-Wl,-install_name,@executable_path/../Resources/bin/libPdTcl.dylib ld: warning in /Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/Tcl.framework/Tcl, file is not of required architecture ld: warning in /Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/Tk.framework/Tk, file is not of required architecture Undefined symbols: "_Tcl_CreateCommand", referenced from: _pdgui_startup in t_tkcmd.o "_Tcl_CreateFileHandler", referenced from: _pdgui_startup in t_tkcmd.o _pdgui_startup in t_tkcmd.o "_Tcl_Eval", referenced from: _tcl_mess in t_tkcmd.o "_Tcl_GetVar", referenced from: _pdgui_startup in t_tkcmd.o _Pdtcl_Init in t_tkcmd.o ld: symbol(s) not found collect2: ld returned 1 exit status lipo: can't open input file: /var/folders/TH/THjm5UAnEZSSB-y6nQY-6++++TI/-Tmp-//ccuA1Xyz.out (No such file or directory) make: *** [../bin/libPdTcl.dylib] Error 1
marius.
Hans-Christoph Steiner wrote:
Here's the key error line:
ld: file not found: /Users/marius/devel/pd-rsync/pd-extended/pd/bin/pd
You need to build Pd first: cd /Users/marius/devel/pd-rsync/pd-extended/pd/src autoconf ./configure make now: cd /Users/marius/devel/pd-rsync/pd-extended/externals/hcs make .hc On Nov 28, 2007, at 4:30 PM, marius schebella wrote:
hi (hans), I grabed what I thout is the pd-extended build system from rsync -av --delete rsync://128.238.56.50/distros/pd-extended/ pd-extended/ when I cd to hcs (or any other directory I tested) and run make, I get a bunch of errors
marius-schebellas-computer:hcs marius$ make make -C /Users/marius/devel/pd-rsync/pd-extended/externals hcs cc -DPD -O2 -I/Users/marius/devel/pd-rsync/pd-extended/pd/src -Wall -W -ggdb -I/sw/include -DMACOSX -DUNIX -Dunix -o "/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.o" -c "/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.c"
cc -bundle -bundle_loader /Users/marius/devel/pd-rsync/pd-extended/pd/bin/pd -L/sw/lib -weak_framework Carbon -o "/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.pd_darwin" "/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.o" -lm -lc
test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.libs && cat /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.libs
my_dylib=hcs; test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lib${my_dylib}.dylib && echo -L/Users/marius/devel/pd-rsync/pd-extended/externals/hcs -l$my_dylib
my_obj=hcs; test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/shared/${my_obj}.o && echo /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/shared/${my_obj}.o
test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/../darwin/canvas_name.libs && \ cat /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/../darwin/canvas_name.libs
ld: file not found: /Users/marius/devel/pd-rsync/pd-extended/pd/bin/pd collect2: ld returned 1 exit status make[1]: *** [/Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.pd_darwin] Error 1 rm /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/canvas_name.o make: *** [default] Error 2
need help, marius.
Hans-Christoph Steiner wrote: > Put it in a folder that has the Pd-extended build system setup, > like "externals/hcs", then run "make" in that folder. That will > build it on your own machine. > Lua 5.0 is in Fink, so it can easily be added to Pd-extended, and > the build system will automatically included the Lua dylib into > the Pd.app. It seems like "externals/loaders/lua" would be a > good place for it. > .hc > On Nov 27, 2007, at 9:36 PM, marius schebella wrote: >> hi (hans), >> I am trying to compile a recent version of pdlua on my mac. I >> know that >> last time I did this by putting lua.c into pd-extended and >> compile it >> from there, but I don't know anymore, how that is done. >> the makefile that comes with the tarball does not work for os x, >> and I >> also don't know how and what to include. >> what needs to be done to include this in pd-extended. is this >> possible >> at all, since it relies on a lua installation. or could that >> also be >> included in the pdlua package, since these files are not very big. >> thanks, >> marius. >> >> _______________________________________________ >> PD-list@iem.at mailing list >> UNSUBSCRIBE and account-management -> >> http://lists.puredata.info/listinfo/pd-list > ---------------------------------------------------------------------------- > You can't steal a gift. Bird gave the world his music, and if you > can hear it, you can have it. - Dizzy Gillespie
News is what people want to keep hidden and everything else is publicity. - Bill Moyers
The arc of history bends towards justice. - Dr. Martin Luther King, Jr.
You can't steal a gift. Bird gave the world his music, and if you can hear it, you can have it. - Dizzy Gillespie
marius schebella wrote:
hi, still not luck. here is the error I am getting now, m.
[snip]
test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lua.libs && cat /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lua.libs
[snip]
Maybe the lua.libs file should contain some flags to link with Lua, but I'm not familiar with this build system...
The "symbol not found" errors are because the Lua installation isn't found. I guess the simplest solution would be to try a static build, get the development version for this:
https://devel.goto10.org/dl.php?repname=maximus&path=%2Fpdlua%2F&rev...
and follow the instructions in the INSTALL file in the Static section.
Hope this helps,
On Dec 2, 2007, at 8:16 AM, Claude Heiland-Allen wrote:
marius schebella wrote:
hi, still not luck. here is the error I am getting now, m.
[snip]
test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/ lua.libs && cat /Users/marius/devel/pd-rsync/pd-extended/externals/ hcs/lua.libs
[snip]
Maybe the lua.libs file should contain some flags to link with Lua,
but I'm not familiar with this build system...The "symbol not found" errors are because the Lua installation
isn't found. I guess the simplest solution would be to try a
static build, get the development version for this:https://devel.goto10.org/dl.php?repname=maximus&path=%2Fpdlua% 2F&rev=0&isdir=1
and follow the instructions in the INSTALL file in the Static section.
Hope this helps,
Sounds like this should be in pure-data CVS and integrated into Pd- extended. I'll be happy to help with that if you guys want.
For Mac OS X, it looks like Fink has the packages you need:
root@macosx104-powerpc.idmi.poly.edu:~ > fink list lua
Information about 7424 packages read in 4 seconds.
lua 5.0.2-1005 Small, compilable scripting
language
lua-shlibs 5.0.2-1005 lua shared libraries
lua51 5.1.2-3 Small and fast embeddable scripting
lua51-dev 5.1.2-3 Files needed to make Lua/C bindings
lua51-shlibs 5.1.2-3 Shared libraries for linking Lua
5.1 engine
tolua 5.0-12 Greatly simplifies the
integration of C/C++
.hc
The arc of history bends towards justice. - Dr. Martin Luther
King, Jr.
ok, I am trying now to statically link the lua library and I only have one more (small I guess) problem, that is, that the compiler doesnot find m_pd.h, I dont know where to put a line like this into the Makefile.Static I = -I../../../pd/src actually I tried that, and that is relative to the directory where I run make -f Makefile.static lua.pd_darwin but it does not work. I took this line from another makefile (for linux). So I don't know, what the reason is, why it is not working. I am sure this is an easy fix, and probably I will then also figure out how to include this into pd-extended... marius.
Hans-Christoph Steiner wrote:
On Dec 2, 2007, at 8:16 AM, Claude Heiland-Allen wrote:
marius schebella wrote:
hi, still not luck. here is the error I am getting now, m.
[snip]
test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lua.libs && cat /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lua.libs
[snip]
Maybe the lua.libs file should contain some flags to link with Lua, but I'm not familiar with this build system...
The "symbol not found" errors are because the Lua installation isn't found. I guess the simplest solution would be to try a static build, get the development version for this:
https://devel.goto10.org/dl.php?repname=maximus&path=%2Fpdlua%2F&rev...
and follow the instructions in the INSTALL file in the Static section.
Hope this helps,
Sounds like this should be in pure-data CVS and integrated into Pd-extended. I'll be happy to help with that if you guys want.
For Mac OS X, it looks like Fink has the packages you need:
root@macosx104-powerpc.idmi.poly.edu:~ > fink list lua Information about 7424 packages read in 4 seconds. lua 5.0.2-1005 Small, compilable scripting language lua-shlibs 5.0.2-1005 lua shared libraries lua51 5.1.2-3 Small and fast embeddable scripting lua51-dev 5.1.2-3 Files needed to make Lua/C bindings lua51-shlibs 5.1.2-3 Shared libraries for linking Lua 5.1 engine tolua 5.0-12 Greatly simplifies the integration of C/C++
.hc
The arc of history bends towards justice. - Dr. Martin Luther King, Jr.
omg, why can't just someone who knows how to compile, do this! please notice, that I also want to have luagl included. I already got pdlua running. the fink solution that hans was talking about only brings me back to same problem I was running into some days ago, that I did not get it running with luagl.
marius$ make -f Makefile.static lua.pd_darwin gcc -ansi -pedantic -Wall -fPIC -I/Users/marius/include -I./lua-5.1.2/include -L./lua-5.1.2/lib -I../../../pd/src -static -bundle -undefined suppress -flat_namespace -o lua.pd_darwin lua.c -llua /var/folders/TH/THjm5UAnEZSSB-y6nQY-6++++TI/-Tmp-//ccmgXja6.s:2858:FATAL:incompatible feature used: section type symbol_stubs (must specify "-dynamic" to be used) make: *** [lua.pd_darwin] Error 1
I can't do this without step by step instruction, sorry. where do I have to put lua, where luagl (which luagl), and where pd. and how do I make sure that everything works out together? marius.
marius schebella wrote:
ok, I am trying now to statically link the lua library and I only have one more (small I guess) problem, that is, that the compiler doesnot find m_pd.h, I dont know where to put a line like this into the Makefile.Static I = -I../../../pd/src actually I tried that, and that is relative to the directory where I run make -f Makefile.static lua.pd_darwin but it does not work. I took this line from another makefile (for linux). So I don't know, what the reason is, why it is not working. I am sure this is an easy fix, and probably I will then also figure out how to include this into pd-extended... marius.
Hans-Christoph Steiner wrote:
On Dec 2, 2007, at 8:16 AM, Claude Heiland-Allen wrote:
marius schebella wrote:
hi, still not luck. here is the error I am getting now, m.
[snip]
test -f /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lua.libs && cat /Users/marius/devel/pd-rsync/pd-extended/externals/hcs/lua.libs
[snip]
Maybe the lua.libs file should contain some flags to link with Lua, but I'm not familiar with this build system...
The "symbol not found" errors are because the Lua installation isn't found. I guess the simplest solution would be to try a static build, get the development version for this:
https://devel.goto10.org/dl.php?repname=maximus&path=%2Fpdlua%2F&rev...
and follow the instructions in the INSTALL file in the Static section.
Hope this helps,
Sounds like this should be in pure-data CVS and integrated into Pd-extended. I'll be happy to help with that if you guys want.
For Mac OS X, it looks like Fink has the packages you need:
root@macosx104-powerpc.idmi.poly.edu:~ > fink list lua Information about 7424 packages read in 4 seconds. lua 5.0.2-1005 Small, compilable scripting language lua-shlibs 5.0.2-1005 lua shared libraries lua51 5.1.2-3 Small and fast embeddable scripting lua51-dev 5.1.2-3 Files needed to make Lua/C bindings lua51-shlibs 5.1.2-3 Shared libraries for linking Lua 5.1 engine tolua 5.0-12 Greatly simplifies the integration of C/C++
.hc
The arc of history bends towards justice. - Dr. Martin Luther King, Jr.
Hans-Christoph Steiner a écrit :
Here's the key error line:
ld: file not found: /Users/marius/devel/pd-rsync/pd-extended/pd/bin/pd
You need to build Pd first:
cd /Users/marius/devel/pd-rsync/pd-extended/pd/src autoconf ./configure make
Hi, I tried to make it with cygwin and got this error message:
makefile.dependencies d_osc.c:39:2: #error No byte order defined d_array.c:527:2: #error No byte order defined make: *** [makefile.dependencies] Erreur 1
On Nov 28, 2007, at 7:20 PM, Patrice Colet wrote:
Hans-Christoph Steiner a écrit :
Here's the key error line:
ld: file not found: /Users/marius/devel/pd-rsync/pd-extended/pd/ bin/pd
You need to build Pd first: cd /Users/marius/devel/pd-rsync/pd-extended/pd/src autoconf ./configure make
Hi, I tried to make it with cygwin and got this error message:
makefile.dependencies d_osc.c:39:2: #error No byte order defined d_array.c:527:2: #error No byte order defined make: *** [makefile.dependencies] Erreur 1
If you want to build Pd and externals with Cygwin, you'll have to add
some stuff to the build system. No one has done it before. Pd-
extended is built with MinGW/msys on Windows. It would be nice to be
able to do it with Cygwin too.
.hc
All mankind is of one author, and is one volume; when one man dies,
one chapter is not torn out of the book, but translated into a better
language; and every chapter must be so translated.... -John Donne