Compiling CEGUI 0.4.0 on Mac OS X

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
EDarkness
Just popping in
Just popping in
Posts: 11
Joined: Wed Jul 20, 2005 19:57

Compiling CEGUI 0.4.0 on Mac OS X

Postby EDarkness » Fri Sep 09, 2005 04:15

Hey guys,

I have a bit of a problem trying to compile and link CEGUI under Xcode. For some odd reason I get the following error when linking...

Code: Select all

       mkdir /Developer/cegui_mk2/makefiles/mac/Xcode2/CrazyEddiesGUI/build/Development/CEGUI.framework/Versions/A
    cd /Developer/cegui_mk2/makefiles/mac/Xcode2/CrazyEddiesGUI
    /usr/bin/g++-4.0 -o /Developer/cegui_mk2/makefiles/mac/Xcode2/CrazyEddiesGUI/build/Development/CEGUI.framework/Versions/A/CEGUI
-L/Developer/cegui_mk2/makefiles/mac/Xcode2/CrazyEddiesGUI/build/Development
-L/usr/X11R6/lib
-F/Developer/cegui_mk2/makefiles/mac/Xcode2/CrazyEddiesGUI/build/Development
-F/Library/Frameworks -filelist

/Developer/cegui_mk2/makefiles/mac/Xcode2/CrazyEddiesGUI/build/CrazyEddiesGUI.build/Development/CEGUIBase.build/Objects-normal/ppc/CEGUI.LinkFileList
-arch ppc -Wl,-single_module -dynamiclib
-compatibility_version 1 -current_version 1 -install_name
/Library/Frameworks/CEGUI.framework/Versions/A/CEGUI
-framework Carbon

ld: warning multiple definitions of symbol _regcomp
/Developer/cegui_mk2/makefiles/mac/Xcode2/CrazyEddiesGUI/build/CrazyEddiesGUI.build/Development/CEGUIBase.build/Objects-normal/ppc/pcreposix.o definition of _regcomp in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libSystem.dylib(regcomp.So) definition of _regcomp
ld: warning multiple definitions of symbol _regexec
/Developer/cegui_mk2/makefiles/mac/Xcode2/CrazyEddiesGUI/build/CrazyEddiesGUI.build/Development/CEGUIBase.build/Objects-normal/ppc/pcreposix.o definition of _regexec in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libSystem.dylib(regexec.So) definition of _regexec
ld: warning multiple definitions of symbol _regfree
/Developer/cegui_mk2/makefiles/mac/Xcode2/CrazyEddiesGUI/build/CrazyEddiesGUI.build/Development/CEGUIBase.build/Objects-normal/ppc/pcreposix.o definition of _regfree in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libSystem.dylib(regfree.So) definition of _regfree
ld: Undefined symbols:
_FT_Done_Face
_FT_Load_Char
_FT_New_Memory_Face
_FT_Set_Char_Size
_FT_Done_FreeType
_FT_Init_FreeType
/usr/bin/libtool: internal link edit command failed
      ld: warning multiple definitions of symbol _regcomp
      ld: warning multiple definitions of symbol _regexec
      ld: warning multiple definitions of symbol _regfree
      ld: Undefined symbols:
      _FT_Done_Face
      _FT_Load_Char
      _FT_New_Memory_Face
      _FT_Set_Char_Size
      _FT_Done_FreeType
      _FT_Init_FreeType
      /usr/bin/libtool: internal link edit command failed
Build failed for target "CEGUI" (2 errors, 3 warnings)


Thing is, I thought I had it linked to the FreeType stuff in the X11 folder, but apparently something is wrong with the link. Anyone have any ideas about how to go about fixing this? Or is this a known issue?


-EDarkness

User avatar
SwiftCoder
Just popping in
Just popping in
Posts: 3
Joined: Sat Sep 17, 2005 16:48
Location: US Virgin Islands

Re: Compiling CEGUI 0.4.0 on Mac OS X

Postby SwiftCoder » Sat Sep 17, 2005 17:00

It sounds like you may actually be linking against the Freetype framework, maybe from the OGRE dependencies package. It has several problems with symbols.
Otherwise it may just be XCode losing track of the lib, it does this quite often if you remove and then add in library.

Try deleting all references to freetype libraries from the XCode Project and adding back in '/usr/X11R6/lib/libfreetype.a' (you could use the dylib instead, but then it won't run on most macs, because X11 is not installed by default).

Also check that the build settings for your current build style has '/usr/X11R6/lib' added to the 'Library Search Paths'.

Hope this helps.
Here's to the crazy ones, the misfits, the rebels, the troublemakers, the round pegs in the square holes, the ones who see things differently.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 1 guest