[PD] pdlua compiling on mac

marius schebella marius.schebella at gmail.com
Mon Dec 3 04:01:06 CET 2007


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=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 at 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.
>>
>>
>>
> 
> 





More information about the Pd-list mailing list