lua-users home
lua-l archive

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


Hi,

 

  Second problem, change the last part of the “iup/srclua5/iupim.mak” to:

 

ifneq ($(findstring MacOS, $(TEC_UNAME)), )

  USE_IUPLUA:=

  USE_IMLUA:=

  USE_IM = Yes

endif

 

   First problem, change the last part of the “iup/srclua5/iupim.mak” to:

 

ifneq ($(findstring MacOS, $(TEC_UNAME)), )

  LIBS:=

  ifdef USE_MACOS_OPENGL

    LFLAGS = -framework OpenGL

    USE_OPENGL :=

  endif

endif

 

   And define USE_MACOS_OPENGL on your environment before compiling the code.

 

   These changes are done in the CVS version of IUP, CD and IM.

 

Best,

Scuri

 

From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org] On Behalf Of roman.maire@besonet.ch
Sent: segunda-feira, 14 de novembro de 2011 12:28
To: lua-l@lists.lua.org
Subject: Some more problems, IUP this time. Was: Problem compiling CD on OS X

 

Hello
 
Now that CD compiles, I'm fiddling with IUP. If I try to make from the iup directory, I get the following error message:
 

Tecmake: linking libiupluagl51.so ...

gcc -bundle -undefined dynamic_lookup -o ../lib/MacOS106/libiupluagl51.so ../obj/iupluagl51/MacOS106/iuplua_glcanvas.o ../obj/iupluagl51/MacOS106/il_glcanvas.o  -L../lib/MacOS106 -liupgl -liup -lGLU -lGL -lm

ld: library not found for -lGLU

collect2: ld returned 1 exit status

make[2]: *** [../lib/MacOS106/libiupluagl51.so] Error 1

make[1]: *** [iupluagl] Error 2

make: *** [iuplua5] Error 2
 
It seems that the flag -framework OpenGL is missing. Adding it in the toplevel tecmake.mak didn't work.
 
Out of curiosity I was then trying to uncomment the target for iupluagl in the Makefile in iup/srclua5. I got the following error message:
 

Tecmake: linking libiupluaim51.so ...

gcc -bundle -undefined dynamic_lookup -o ../lib/MacOS106/libiupluaim51.so ../obj/iupluaim51/MacOS106/iuplua_im.o  -L../lib/MacOS106 -L../lib/MacOS106 -L../../im/lib/MacOS106 -liupim -limlua51 -liup -lim -lm

ld: in ../../im/lib/MacOS106/libimlua51.so, can't link with bundle (MH_BUNDLE) only dylibs (MH_DYLIB)

collect2: ld returned 1 exit status

make[2]: *** [../lib/MacOS106/libiupluaim51.so] Error 1

make[1]: *** [iupluaim] Error 2

make: *** [iuplua5] Error 2
 
 
Some ideas?
 
Kind regards,
 
Roman Maire