lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


That worked flawlessly, thank you very much.

Kind regards,

Roman

Am 12.11.2011 03:02, schrieb Antonio Scuri:
>   Hi,
> 
>   Comment the lines 80 and 85 in the "cd/src/config.mak" file. They are
> preventing a file to be included in the compilation that has the declaration
> that it is missing.
> 
> Best,
> Scuri
> 
>> -----Original Message-----
>> From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org] On
>> Behalf Of Roman Maire
>> Sent: sexta-feira, 11 de novembro de 2011 17:51
>> To: Lua mailing list
>> Subject: Re: Problem compiling CD on OS X
>>
>> Hi,
>>
>> Thanks for your answer. Basically, I've modified only tecmake.mak in the
>> toplevel directory to use the correct path if nececary (the tecmake file
> seems
>> to prefer the Fink distribution, I'm normally using MacPorts).
>> Also, a symlink was necessary because the path GL/gl.h isn't present on my
>> mac. Following commands will build and install CD without errors with the
>> attached tecmake.mak file and the MacPorts GTK distribution:
>>
>> sudo ln -s /System/Library/Frameworks/OpenGL.framework/Headers
>> /usr/include/GL
>> cd cd/src
>> make
>> cp ../include/*.h /usr/local/include/
>> cp ../lib/MacOS106/*.dylib /usr/local/lib/ cp ../lib/MacOS106/*.so
>> /usr/local/lib/lua/5.1/
>>
>> The Lua version is 5.1.4 built from the Lua Binaries source package.
>>
>> Kind regards,
>>
>> Roman
>>
>> Am 11.11.2011 16:49, schrieb Antonio Scuri:
>>>    Hi,
>>>
>>>    This seems to be a Makefile problem. The "cdcairoprn_unix.c" module
>>> contains that function. I did not have that problem when linking CD in
>>> MacOS, but I did not test the require"cdlua" call. My access to a Mac
>>> is restricted, so I did not run many tests.
>>>
>>>    Can you send me all the files you need to change to compile CD? I
>>> could check those changes, and some could also be included in the
>>> distribution to make your life simple in the future.
>>>
>>> Best,
>>> Scuri
>>>
>>>> -----Original Message-----
>>>> From: lua-l-bounces@lists.lua.org
>>>> [mailto:lua-l-bounces@lists.lua.org] On Behalf Of Roman Maire
>>>> Sent: sexta-feira, 11 de novembro de 2011 07:31
>>>> To: Lua mailing list
>>>> Subject: Problem compiling CD on OS X
>>>>
>>>> Hello All
>>>>
>>>> I'm trying to compile CD 5.4.1 on a Macbook with Snow Leopard 32bit.
>>>> Until now, I've tried the following GTK packages:
>>>>
>>>> - Newest stable MacPorts
>>>> - Newest stable Fink
>>>> - Manually compiled GTK-OSX
>>>>
>>>> After some fiddling with the tecmake file, I was able to compile CD
>>> without
>>>> errors on every GTK distribution. But as soon as I'm trying to
>>> "require'cd'", I
>>>> get the following error message:
>>>>
>>>> lua: error loading module 'cdlua' from file
>>>> '/usr/local/lib/lua/5.1/libcdlua51.so':
>>>> 	dlopen(/usr/local/lib/lua/5.1/libcdlua51.so, 2): Symbol not found:
>>>> _cdContextCairoPrinter
>>>>     Referenced from: /usr/local/lib/libcd.dylib
>>>>     Expected in: flat namespace
>>>>    in /usr/local/lib/libcd.dylib
>>>> stack traceback:
>>>> 	[C]: ?
>>>> 	[C]: in function 'require'
>>>> 	simpledraw.lua:1: in main chunk
>>>> 	[C]: ?
>>>>
>>>> As a noob with OS X development, I've googled some time around and
>>>> found out that OS X is using a two-level namespace as default. the
>>>> error message suggests, that this could be the problem. If this is
>>>> true, can someone
>>> tell me
>>>> how I could change the CD lib to be compiled with flat namespace? If
>>>> not, has someone had success using a self compiled CD on this
>>>> platforms and would share som hints? Thanks in advance...
>>>>
>>>> Kind regards,
>>>> Roman
>>>
>