[PD] pdlua compiling on mac

marius schebella marius.schebella at gmail.com
Sun Dec 2 02:37:13 CET 2007


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





More information about the Pd-list mailing list