Login  Register

Jogl won't build on OS X 10.6.4

Posted by Alvaro Perez Shirley on Nov 01, 2010; 11:23pm
URL: https://forum.jogamp.org/Jogl-won-t-build-on-OS-X-10-6-4-tp1825078.html

Hello, I followed the instructions for building jogl from this website but the build fails. I installed git, ant 1.8.1 (mine had 1.7.1), antlr, and when I build with ant it fails, I won't post everything that came up in the shell but the last few lines say the following:


c.build.newt.windowlib:
     [echo] Output lib name = newt
     [echo] Compiling newt
       [cc] Starting dependency analysis for 2 files.
       [cc] 1 files are up to date.
       [cc] 1 files to be recompiled from dependency analysis.
       [cc] 2 total files to be compiled.
       [cc] cc1obj: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for ObjC
       [cc] /Users/myusername/jogl/src/newt/native/MacWindow.m: In function ‘setFrameTopLeftPoint’:
       [cc] /Users/myusername/jogl/src/newt/native/MacWindow.m:82: warning: format ‘%d’ expects type ‘int’, but argument 11 has type ‘jint’
       [cc] /Users/myusername/jogl/src/newt/native/MacWindow.m:82: warning: format ‘%d’ expects type ‘int’, but argument 12 has type ‘jint’
       [cc] /Users/myusername/jogl/src/newt/native/MacWindow.m:62: warning: unused variable ‘d_ptx’
       [cc] cc1obj: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for ObjC
       [cc] /Users/myusername/jogl/src/newt/native/MacWindow.m: In function ‘setFrameTopLeftPoint’:
       [cc] /Users/myusername/jogl/src/newt/native/MacWindow.m:62: warning: unused variable ‘d_ptx’
       [cc] cc1obj: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for ObjC
       [cc] /Users/myusername/jogl/src/newt/native/NewtMacWindow.m: In function ‘-[NewtView viewDidHide]’:
       [cc] /Users/myusername/jogl/src/newt/native/NewtMacWindow.m:111: error: ‘visibleChangedID’ undeclared (first use in this function)
       [cc] /Users/myusername/jogl/src/newt/native/NewtMacWindow.m:111: error: (Each undeclared identifier is reported only once
       [cc] /Users/myusername/jogl/src/newt/native/NewtMacWindow.m:111: error: for each function it appears in.)
       [cc] /Users/myusername/jogl/src/newt/native/NewtMacWindow.m: In function ‘-[NewtView viewDidUnhide]’:
       [cc] /Users/myusername/jogl/src/newt/native/NewtMacWindow.m:117: error: ‘visibleChangedID’ undeclared (first use in this function)
       [cc] cc1obj: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for ObjC
       [cc] /Users/myusername/jogl/src/newt/native/NewtMacWindow.m: In function ‘-[NewtView viewDidHide]’:
       [cc] /Users/myusername/jogl/src/newt/native/NewtMacWindow.m:111: error: ‘visibleChangedID’ undeclared (first use in this function)
       [cc] /Users/myusername/jogl/src/newt/native/NewtMacWindow.m:111: error: (Each undeclared identifier is reported only once
       [cc] /Users/myusername/jogl/src/newt/native/NewtMacWindow.m:111: error: for each function it appears in.)
       [cc] /Users/myusername/jogl/src/newt/native/NewtMacWindow.m: In function ‘-[NewtView viewDidUnhide]’:
       [cc] /Users/myusername/jogl/src/newt/native/NewtMacWindow.m:117: error: ‘visibleChangedID’ undeclared (first use in this function)
       [cc] lipo: can't figure out the architecture type of: /var/folders/6L/6L1G1DpwFuWvgrS8-qVaRk+++TI/-Tmp-//ccf5IXQI.out


BUILD FAILED
/Users/myusername/jogl/make/build.xml:41: The following error occurred while executing this line:
/Users/myusername/jogl/make/build-newt.xml:554: The following error occurred while executing this line:
/Users/myusername/jogl/make/build-newt.xml:469: gcc failed with return code 1

By the way, I say it fails on 10.6.4 because I've tried it on two separate machines and it fails on both with the same gcc failed with return code 1 error on the same lines of the same xml.