[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Problem compiling CD on OS X
- From: "Antonio Scuri" <scuri@...>
- Date: Fri, 11 Nov 2011 13:49:51 -0200
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.
> -----Original Message-----
> From: firstname.lastname@example.org [mailto:email@example.com] 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
> errors on every GTK distribution. But as soon as I'm trying to
> get the following error message:
> lua: error loading module 'cdlua' from file
> dlopen(/usr/local/lib/lua/5.1/libcdlua51.so, 2): Symbol not found:
> 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
> 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,