It should not be a problem. I have them too.
Your error indicates that ta3d does not have a global exported function main(), which is called by crt.so, for any C Program.
Are you running a PPC version ? What is your Gcc version ? Please provide the output of CMake.
Code: Select all
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- TA3D - v0.6.0 (Rev: 1670)
-- System: Darwin-9.6.0 (i386)
-- Default C++ flags set to `-O2 -g -Wall -ffast-math -pipe `
-- [DEBUG] The Debug mode has been enabled
-- [OpenGL] Mesa: NO
-- [OpenGL] GLu: YES
-- [OpenGL] Include dir: /System/Library/Frameworks/OpenGL.framework
-- [OpenGL] The GL library: /System/Library/Frameworks/OpenGL.framework
-- [OpenGL] The GLU library: /System/Library/Frameworks/AGL.framework
-- [OpenGL] Added Frameworks: AGL, OpenGL, Carbon
-- [SDL] SDL: YES
-- [SDL] SDL_image: YES
-- [SDL] SDL_mixer: YES
-- [SDL] SDL_net: YES
-- [SDL] Include dir: /opt/local/include/SDL
-- [SDL] The SDL library: /opt/local/lib/libSDLmain.a;/opt/local/lib/libSDL.dylib;-framework Cocoa
-- [SDL] The SDL_image library: /opt/local/lib/libSDL_image.dylib
-- [SDL] The SDL_mixer library: /opt/local/lib/libSDL_mixer.dylib
-- [SDL] The SDL_net library: /opt/local/lib/libSDL_net.dylib
-- GLEW Library : /opt/local/lib/libGLEW.dylib
-- FTGL Library : -framework OpenGL -L/opt/local/lib -lobjc -lfreetype -lz -lftgl
-- FTGL CFLags : -I/opt/local/include -I/opt/local/include/freetype2
-- TA3D will be installed in: /usr/local
-- [bundle] Adding resources 'sky'...
-- [bundle] Adding resources 'shaders'...
-- [bundle] Adding resources 'ai'...
-- [bundle] Adding resources 'gfx'...
-- [bundle] Adding resources 'gui'...
-- [bundle] Adding resources 'mods'...
-- [bundle] Adding resources 'objects3d'...
-- [bundle] Adding resources 'fonts'...
-- [bundle] Adding resources 'scripts'...
-- [bundle] Adding resources 'pictures'...
-- [bundle] Adding resources 'intro'...
-- [bundle] Adding resources 'languages'...
-- Configuring done
-- Generating done
It seems you have 3dmeditor compiled
Code: Select all
Shani-2 [milipili] ~/Projects/TA3D/trunk % otool -L ./3dmeditor
./3dmeditor:
/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 136.0.0)
/opt/local/lib/libSDL-1.2.0.dylib (compatibility version 12.0.0, current version 12.2.0)
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 12.0.0)
/opt/local/lib/libSDL_image-1.2.0.dylib (compatibility version 2.0.0, current version 2.6.0)
/opt/local/lib/libSDL_mixer-1.2.0.dylib (compatibility version 3.0.0, current version 3.6.0)
/opt/local/lib/libSDL_net-1.2.0.dylib (compatibility version 1.0.0, current version 1.7.0)
/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
/opt/local/lib/libGLEW.1.5.1.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 227.0.0)
/opt/local/lib/libfreetype.6.dylib (compatibility version 10.0.0, current version 10.20.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.3)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.17.0)
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 949.43.0)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 34.0.0)
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 677.22.0)
Gcc:
Code: Select all
Shani-2 [milipili] ~/Projects/TA3D/trunk % gcc --version
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5490)
Code: Select all
Shani-2 [milipili] ~ % which gcc
/usr/bin/gcc
Code: Select all
port list installed :
[...]
coreutils @6.12 sysutils/coreutils
[...]
freetype @2.3.9 print/freetype
ftgl @2.1.2 graphics/ftgl
[...]
glew @1.5.1 graphics/glew
glib2 @2.20.0 devel/glib2
glut @3.7 graphics/glut
[...]
libsdl @1.2.13 devel/libsdl
libsdl-framework @1.2.13 devel/libsdl-framework
libsdl_gfx @2.0.18 devel/libsdl_gfx
libsdl_gfx-framework @2.0.17 devel/libsdl_gfx-framework
libsdl_image @1.2.7 devel/libsdl_image
libsdl_image-framework @1.2.6 devel/libsdl_image-framework
libsdl_mixer @1.2.8 audio/libsdl_mixer
libsdl_mixer-framework @1.2.8 audio/libsdl_mixer-framework
libsdl_net @1.2.7 devel/libsdl_net
libsdl_net-framework @1.2.7 devel/libsdl_net-framework
libsdl_pango @0.1.2 devel/libsdl_pango
libsdl_sound @1.0.3 audio/libsdl_sound
libsdl_sound-framework @1.0.3 audio/libsdl_sound-framework
libsdl_ttf @2.0.9 devel/libsdl_ttf
libsdl_ttf-framework @2.0.9 devel/libsdl_ttf-framework