Login  Register

Re: Cannot build jogl-2.1.1

Posted by elect on Sep 03, 2014; 2:49pm
URL: https://forum.jogamp.org/Cannot-build-jogl-2-1-1-tp4030392p4033022.html

Wade Walker wrote
It's pretty easy to check your JDK and gcc versions:

java -version
gcc -v

Java should report "64-Bit Server", and gcc should report "Target: x86_64" (assuming you're on a 64-bit OS).

You're also building strangely with "ant -f". You're supposed to cd into gluegen/make and do "ant clean", then "ant". Then cd to jogl/make and do the same thing. You have to build exactly as the instructions say or it may not work correctly :)

C:\Users\gbarbieri>java -version
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

C:\Users\gbarbieri>gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/program files (x86)/codeblocks/mingw/bin/../libexec/gcc/m
ingw32/4.7.1/lto-wrapper.exe
Target: mingw32
Configured with: ../../src/gcc-4.7.1/configure --build=mingw32 --enable-language
s=c,c++,ada,fortran,objc,obj-c++ --enable-threads=win32 --enable-libgomp --enabl
e-lto --enable-fully-dynamic-string --enable-libstdcxx-debug --enable-version-sp
ecific-runtime-libs --with-gnu-ld --disable-nls --disable-win32-registry --disab
le-symvers --disable-build-poststage1-with-cxx --disable-werror --prefix=/mingw3
2tdm --with-local-prefix=/mingw32tdm --enable-cxx-flags='-fno-function-sections
-fno-data-sections' --with-pkgversion=tdm-1 --enable-sjlj-exceptions --with-bugu
rl=http://tdm-gcc.tdragon.net/bugs
Thread model: win32
gcc version 4.7.1 (tdm-1)

You were right, it is using a x86 gcc (coming from codeblocks)

If I search for gcc.exe, I get the right one here:

C:\Program Files\mingw-builds\x64-4.8.1-win32-sjlj-rev5\mingw64\bin

and the codeblocks one here:

C:\Program Files (x86)\CodeBlocks\MinGW\bin

This is my PATH:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft Windows Performance Toolkit\;C:\Program Files (x86)\GNU\GnuPG\pub;C:\Program Files (x86)\CodeBlocks\MinGW\bin;C:\Program Files\NetBeans 8.0\extide\ant\bin;C:\Program Files\Java\jdk1.7.0_51\jre\bin\server;C:\Program Files\Internet Explorer


How can I make them co-exist together? Is exchanging the codeblocks path with the x64 mingw the only way?