Page 1 of 1
Builder refuses to recognize newer version of JDK
Posted: 11 Oct 2015, 02:34
by inascime
Code: Select all
-- gcc 4.8.3 detected
-- Boost version: 1.53.0
-- Found the following Boost libraries:
-- thread
-- regex
-- program_options
-- system
-- chrono
-- signals
-- filesystem
-- Boost version: 1.53.0
-- Found the following Boost libraries:
-- timer
-- Found SDL2: /usr/local/lib/libSDL2main.a;/usr/local/lib/libSDL2.so;-lpthread (found version "2.0.3")
-- Building Spring for 64bit environment
-- Found ld.gold
-- Compiling with C++11
-- using mtune=generic
-- Building Assimp with flags -fuse-ld=gold -std=gnu++11 -fdiagnostics-color=always -mtune=generic -msse -mfpmath=sse -mno-sse2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4 -mno-sse4a -mno-avx -mno-fma -mno-fma4 -mno-xop -mno-lwp -mno-avx2 -frounding-math -mieee-fp -pipe -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -pthread
-- Found AI Wrapper: CUtils (sources only wrapper)
-- Could NOT find Java (missing: ) (found version "1.7.0.85")
-- Could NOT find Java (missing: ) (found version "1.7.0.85")
-- Could NOT find Java (missing: )
warning: Java AI Interface will not be built!
-- Found AI Interface: C-AIInterface 0.1
-- Found AI Wrapper: LegacyCpp-AIWrapper
-- Found AI Wrapper: LegacyCpp-Creg-AIWrapper
warning: Java OO AI Wrapper will not be built!
-- Found AI Wrapper: Cpp-AIWrapper
-- Found Skirmish AI: CppTestAI 0.1
-- Found Skirmish AI: NullAI 0.1
warning: NullOOJavaAI Skirmish AI will not be built!
-- Found Skirmish AI: E323AI 3.25.0
-- Found Skirmish AI: KAIK 0.13
-- Found Skirmish AI: AAI 0.9
warning: NullJavaAI Skirmish AI will not be built!
-- Found Skirmish AI: Shard dev
warning: HughAI Skirmish AI will not be built!
-- Found Skirmish AI: RAI 0.601
-- Command "/usr/bin/git;describe;--tags;--always;--candidates;999;--match;*" in directory /home/inascime/spring/spring_100.0/tools/pr-downloader/src failed with output:
"fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set)."
-- PR-Downloader version: tarball
-- libminizip was not found, using integrated
-- Boost version: 1.53.0
-- Found the following Boost libraries:
-- unit_test_framework
-- MAN pages will not be generated/installed; missing utilit(y|ies): asciidoc
-- /home/inascime/spring/spring_100.0/springsettings.cfg already exists!
-- Found libunwind libraries at /usr/lib64/libunwind.so
-- Found SDL2: /usr/local/lib/libSDL2main.a;/usr/local/lib/libSDL2main.a;/usr/local/lib/libSDL2.so;-lpthread;-lpthread (found version "2.0.3")
-- Using legacy as default engine
-- Boost version: 1.53.0
-- Found the following Boost libraries:
-- unit_test_framework
-- Configuring done
Re: Builder refuses to recognize newer version of JDK
Posted: 11 Oct 2015, 02:44
by abma
what do you mean with "builder"? you need to provide more details...
Re: Builder refuses to recognize newer version of JDK
Posted: 11 Oct 2015, 02:47
by inascime
Sorry. I mean when building from source in my CentOS 7 machine. I have read the building from source page and installed all required dependencies but when i run cmake . it complains about Java although i already have it installed. It does says it found version xxx but still give errors. i can still install spring since apparently this for a optinal AI feature just though i should report it
Re: Builder refuses to recognize newer version of JDK
Posted: 11 Oct 2015, 02:57
by abma
is the jdk installed?
can you please edit AI/Interfaces/Java/CMakeLists.txt and remove the line
and run cmake again please? (this makes the java detection more verbose)
Re: Builder refuses to recognize newer version of JDK
Posted: 11 Oct 2015, 03:10
by inascime
I have OpenJDK version 1.7.0.85
Code: Select all
-- gcc 4.8.3 detected
-- Boost version: 1.53.0
-- Found the following Boost libraries:
-- thread
-- regex
-- program_options
-- system
-- chrono
-- signals
-- filesystem
-- Boost version: 1.53.0
-- Found the following Boost libraries:
-- timer
-- Found SDL2: /usr/local/lib/libSDL2main.a;/usr/local/lib/libSDL2.so;-lpthread (found version "2.0.3")
-- Building Spring for 64bit environment
-- Found ld.gold
-- Compiling with C++11
-- using mtune=generic
-- Building Assimp with flags -fuse-ld=gold -std=gnu++11 -fdiagnostics-color=always -mtune=generic -msse -mfpmath=sse -mno-sse2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4 -mno-sse4a -mno-avx -mno-fma -mno-fma4 -mno-xop -mno-lwp -mno-avx2 -frounding-math -mieee-fp -pipe -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -pthread
-- Found AI Wrapper: CUtils (sources only wrapper)
-- Autodetecting Java...
-- Could NOT find Java (missing: ) (found version "1.7.0.85")
-- Could NOT find Java (missing: ) (found version "1.7.0.85")
[b]-- Java binary /bin/java is a symbolic link to /etc/alternatives/java
-- Java binary /etc/alternatives/java is a symbolic link to /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.85-2.6.1.2.el7_1.x86_64/jre/bin/java[/b]
-- Could NOT find Java (missing: )
warning: Java AI Interface will not be built!
-- Found AI Interface: C-AIInterface 0.1
-- Found AI Wrapper: LegacyCpp-AIWrapper
-- Found AI Wrapper: LegacyCpp-Creg-AIWrapper
warning: Java OO AI Wrapper will not be built!
-- Found AI Wrapper: Cpp-AIWrapper
-- Found Skirmish AI: CppTestAI 0.1
-- Found Skirmish AI: NullAI 0.1
warning: NullOOJavaAI Skirmish AI will not be built!
-- Found Skirmish AI: E323AI 3.25.0
-- Found Skirmish AI: KAIK 0.13
-- Found Skirmish AI: AAI 0.9
warning: NullJavaAI Skirmish AI will not be built!
-- Found Skirmish AI: Shard dev
warning: HughAI Skirmish AI will not be built!
-- Found Skirmish AI: RAI 0.601
-- Command "/usr/bin/git;describe;--tags;--always;--candidates;999;--match;*" in directory /home/inascime/spring/spring_100.0/tools/pr-downloader/src failed with output:
"fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set)."
-- PR-Downloader version: tarball
-- libminizip was not found, using integrated
-- Boost version: 1.53.0
-- Found the following Boost libraries:
-- unit_test_framework
-- MAN pages will not be generated/installed; missing utilit(y|ies): asciidoc
-- /home/inascime/spring/spring_100.0/springsettings.cfg already exists!
-- Found libunwind libraries at /usr/lib64/libunwind.so
-- Found SDL2: /usr/local/lib/libSDL2main.a;/usr/local/lib/libSDL2main.a;/usr/local/lib/libSDL2.so;-lpthread;-lpthread (found version "2.0.3")
-- Using legacy as default engine
-- Boost version: 1.53.0
-- Found the following Boost libraries:
-- unit_test_framework
-- Configuring done
-- Generating done
-- Build files have been written to: /home/inascime/spring/spring_100.0
Re: Builder refuses to recognize newer version of JDK
Posted: 11 Oct 2015, 03:33
by abma
something in the java detection code seems broken.
you can try this:
Code: Select all
JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.85-2.6.1.2.el7_1.x86_64/ cmake .
FYI: you don't need java to compile spring, this is just needed for some java ais / the java ai interface.
Re: Builder refuses to recognize newer version of JDK
Posted: 11 Oct 2015, 11:58
by hokomoko
gcc 4.8.3 may have issues compiling btw.