[PD] pdlua compiling on mac

marius schebella marius.schebella at gmail.com
Wed Nov 28 23:55:38 CET 2007


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, at 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 at 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
> 
> 
> 





More information about the Pd-list mailing list