Builder refuses to recognize newer version of JDK

Builder refuses to recognize newer version of JDK

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
inascime
Posts: 4
Joined: 11 Oct 2015, 02:31

Builder refuses to recognize newer version of JDK

Post 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
Last edited by abma on 11 Oct 2015, 02:50, edited 1 time in total.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Builder refuses to recognize newer version of JDK

Post by abma »

what do you mean with "builder"? you need to provide more details...
inascime
Posts: 4
Joined: 11 Oct 2015, 02:31

Re: Builder refuses to recognize newer version of JDK

Post 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
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Builder refuses to recognize newer version of JDK

Post by abma »

is the jdk installed?

can you please edit AI/Interfaces/Java/CMakeLists.txt and remove the line

Code: Select all

set(JAVA_FIND_QUIETLY TRUE)
and run cmake again please? (this makes the java detection more verbose)
inascime
Posts: 4
Joined: 11 Oct 2015, 02:31

Re: Builder refuses to recognize newer version of JDK

Post 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
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Builder refuses to recognize newer version of JDK

Post 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.
hokomoko
Spring Developer
Posts: 593
Joined: 02 Jun 2014, 00:46

Re: Builder refuses to recognize newer version of JDK

Post by hokomoko »

gcc 4.8.3 may have issues compiling btw.
Post Reply

Return to “Help & Bugs”