cmake cannot find boost version 1.69.0

cmake cannot find boost version 1.69.0

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
builderror
Posts: 7
Joined: 04 May 2020, 01:47

cmake cannot find boost version 1.69.0

Post by builderror »

Code: Select all

[jeff@localhost spring]$ cmake .
-- gcc 9.3.1 detected
-- Checking to see if CXX compiler accepts flag -fvisibility=hidden
-- Checking to see if CXX compiler accepts flag -fvisibility=hidden - yes
-- Checking to see if CXX compiler accepts flag -std=gnu++11
-- Checking to see if CXX compiler accepts flag -std=gnu++11 - yes
-- Building Spring on 64bit environment
-- Targetting 64bit
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
  Could NOT find Boost (missing: Boost_INCLUDE_DIR regex system) (Required is
  at least version "1.69.0")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindBoost.cmake:2145 (find_package_handle_standard_args)
  CMakeLists.txt:254 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "/home/jeff/dev-game/spring/CMakeFiles/CMakeOutput.log".
See also "/home/jeff/dev-game/spring/CMakeFiles/CMakeError.log".

cmakelists.txt

Code: Select all

FIND_PACKAGE(Boost 1.69.0 COMPONENTS regex system REQUIRED)
#FIND_PACKAGE(Boost 1.51.0 COMPONENTS regex system REQUIRED)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
I tried to find the higher version number but no luck

Here is the error if I search for version 1.51.0 which is exactly the same problem as above.

Code: Select all

[jeff@localhost spring]$ cmake .
-- gcc 9.3.1 detected
-- Checking to see if CXX compiler accepts flag -fvisibility=hidden
-- Checking to see if CXX compiler accepts flag -fvisibility=hidden - yes
-- Checking to see if CXX compiler accepts flag -std=gnu++11
-- Checking to see if CXX compiler accepts flag -std=gnu++11 - yes
-- Building Spring on 64bit environment
-- Targetting 64bit
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
  Could NOT find Boost (missing: Boost_INCLUDE_DIR regex system) (Required is
  at least version "1.51.0")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindBoost.cmake:2145 (find_package_handle_standard_args)
  CMakeLists.txt:255 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "/home/jeff/dev-game/spring/CMakeFiles/CMakeOutput.log".
See also "/home/jeff/dev-game/spring/CMakeFiles/CMakeError.log".
plus

Code: Select all

Package boost-1.69.0-10.fc31.x86_64 is already installed.
I used git in the terminal to get the latest stable branch. Seems like it's looking in the wrong place for boost. Can someone please help?
0 x

User avatar
ivand
Posts: 155
Joined: 27 Jun 2007, 17:05

Re: cmake cannot find boost version 1.69.0

Post by ivand »

What do you call "last stable branch". IRC, modern spring has not been using boost for years, so you are probably pulling something ancient.

You should pull either maintenance (probably preferable for you) or develop branches to get up to date engines.
0 x

User avatar
ThinkSome
Posts: 335
Joined: 14 Jun 2015, 13:36

Re: cmake cannot find boost version 1.69.0

Post by ThinkSome »

Wrong,

@104.0.1-1486-gf266c8107b:
grep -r boost | wc -l
1052
0 x

User avatar
ivand
Posts: 155
Joined: 27 Jun 2007, 17:05

Re: cmake cannot find boost version 1.69.0

Post by ivand »

Yeah, some parts I don't care about might still use boost or mention boost license.
And I've just compiled maintenance branch with deleted boost libs subdirectory.
0 x

Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: cmake cannot find boost version 1.69.0

Post by Kloot »

I used git in the terminal to get the latest stable branch
CMakeLists.txt:254
You are trying to build 104.0 from master (where CMakeLists.txt still includes

Code: Select all

FIND_PACKAGE(Boost ...)
), which is probably not the version you want. Do a checkout of maintenance instead.
0 x

builderror
Posts: 7
Joined: 04 May 2020, 01:47

Re: cmake cannot find boost version 1.69.0

Post by builderror »

Alright I found how to download the branch with git

Code: Select all

git clone https://github.com/spring/spring.git --branch maintenance
Though the official guide says --recursive which I didn't include

https://springrts.com/wiki/Building_Spr ... _branch.29

Code: Select all

git clone --recursive git://github.com/spring/spring.git -b maintenance
----------------------------

When I started, I followed advice from the main download page which suggests the out-dated branch "master". I'll see about updating this wiki later

https://springrts.com/wiki/Download

^
0 x

builderror
Posts: 7
Joined: 04 May 2020, 01:47

Re: cmake cannot find boost version 1.69.0

Post by builderror »

Code: Select all

[jeff@localhost spring]$ cmake .
-- gcc 9.3.1 detected
-- Checking to see if CXX compiler accepts flag -fvisibility=hidden
-- Checking to see if CXX compiler accepts flag -fvisibility=hidden - yes
-- Checking to see if CXX compiler accepts flag -std=gnu++11
-- Checking to see if CXX compiler accepts flag -std=gnu++11 - yes
-- Building Spring on 64bit environment
-- Targetting 64bit
-- Could NOT find DevIL (missing: IL_LIBRARIES ILU_LIBRARIES IL_INCLUDE_DIR) 
-- Found ld.gold
-- Compiling with C++11
-- Checking to see if CXX compiler accepts flag -fdiagnostics-color=auto
-- Checking to see if CXX compiler accepts flag -fdiagnostics-color=auto - yes
-- using mtune=generic
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
  The package name passed to `find_package_handle_standard_args` (GIT) does
  not match the name of the calling package (Git).  This can lead to problems
  in calling code that expects `find_package` result variables (e.g.,
  `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  rts/build/cmake/FindGit.cmake:51 (find_package_handle_standard_args)
  CMakeLists.txt:502 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
  The package name passed to `find_package_handle_standard_args` (MINIZIP)
  does not match the name of the calling package (MiniZip).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  rts/build/cmake/FindMiniZip.cmake:24 (Find_Package_Handle_Standard_Args)
  rts/build/cmake/PreferStaticLibs.cmake:64 (find_package)
  rts/lib/minizip/CMakeLists.txt:4 (FIND_PACKAGE_STATIC)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Forcing assimp option ASSIMP_BUILD_STATIC_LIB to on
-- Forcing assimp option ASSIMP_NO_EXPORT to on
-- Shared libraries disabled
-- Build an import-only version of Assimp.
INFO RT-extension not found. glTF import/export will be built without Open3DGC-compression.
-- Enabled formats: 3DS COLLADA LWO OBJ BLEND
-- Disabled formats: AMF AC ASE ASSBIN ASSXML B3D BVH DXF CSM HMP IRRMESH IRR LWS MD2 MD3 MD5 MDC MDL NFF NDO OFF OGRE OPENGEX PLY MS3D COB IFC XGL FBX Q3D Q3BSP RAW SIB SMD STL TERRAGEN 3D X X3D GLTF 3MF MMD
-- Found AI Wrapper: CUtils (sources only wrapper)
-- Found AI Interface: C-AIInterface 0.1
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
  Could NOT find Java (missing: Java_JAVAC_EXECUTABLE Java_JAR_EXECUTABLE
  Java_JAVADOC_EXECUTABLE Java_JAVAH_EXECUTABLE Development) (found version
  "1.8.0.242")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindJava.cmake:320 (find_package_handle_standard_args)
  AI/Interfaces/Java/CMakeLists.txt:245 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/jeff/dev-game/spring/CMakeFiles/CMakeOutput.log".
See also "/home/jeff/dev-game/spring/CMakeFiles/CMakeError.log".
[jeff@localhost spring]$
Missing Java packages?

Code: Select all

[root@localhost spring]# dnf search java | grep devel
Last metadata expiration check: 0:31:49 ago on Wed 06 May 2020 11:44:28 NZST.
genders-java-devel.i686 : Java Development libraries
genders-java-devel.x86_64 : Java Development libraries
openmpi-java-devel.i686 : Java development files for openmpi
openmpi-java-devel.x86_64 : Java development files for openmpi
libvirt-java-devel.noarch : Compressed Java source files for libvirt-java
libdb-java-devel.i686 : Development files for using the Berkeley DB with Java
libdb-java-devel.x86_64 : Development files for using the Berkeley DB with Java
R-java-devel.i686 : Development package for use with Java enabled R components
R-java-devel.x86_64 : Development package for use with Java enabled R components
ghc-language-java-devel.x86_64 : Haskell language-java library development files
ghc-language-javascript-devel.x86_64 : Haskell language-javascript library development files
libdb4-java-devel.i686 : Development files for using the Berkeley DB (version 4) with Java
libdb4-java-devel.x86_64 : Development files for using the Berkeley DB (version 4) with Java
mariadb-java-client.noarch : Connects applications developed in Java to MariaDB and MySQL databases
link-grammar-java-devel.i686 : Support files necessary to compile Java applications with liblink-grammar
link-grammar-java-devel.x86_64 : Support files necessary to compile Java applications with liblink-grammar
java-1.8.0-openjdk-openjfx-devel.i686 : OpenJDK x OpenJFX connector for FX developers. This package adds symliks finishing Java FX integration to java-1.8.0-openjdk-devel
java-1.8.0-openjdk-openjfx-devel.x86_64 : OpenJDK x OpenJFX connector for FX developers. This package adds symliks finishing Java FX integration to java-1.8.0-openjdk-devel
java-1.8.0-openjdk-openjfx-devel-slowdebug.x86_64 : OpenJDK x OpenJFX connector for FX developers for packages with debug on. This package adds symliks finishing Java FX integration to java-1.8.0-openjdk-devel-slowdebug
plplot-java-devel.i686 : Development files for using PLplot GNOME
plplot-java-devel.x86_64 : Development files for using PLplot GNOME
java-11-openjdk-devel.i686 : OpenJDK Development Environment 11
java-11-openjdk-devel.x86_64 : OpenJDK Development Environment 11
java-1.8.0-openjdk-devel.x86_64 : OpenJDK Development Environment 8
java-latest-openjdk-devel.i686 : OpenJDK Development Environment 14
java-latest-openjdk-devel.x86_64 : OpenJDK Development Environment 14
java-11-openjdk-devel-slowdebug.x86_64 : OpenJDK Development Environment 11 with full debug on
java-1.8.0-openjdk-devel-slowdebug.x86_64 : OpenJDK Development Environment 8 with full debug on
java-latest-openjdk-devel-slowdebug.x86_64 : OpenJDK Development Environment 14 with full debug on
golang-github-robertkrimen-otto-devel.noarch : JavaScript interpreter in Go
golang-github-magiconair-properties-devel.noarch : Java properties scanner for Go
nodejs-devel.i686 : JavaScript runtime - development headers
nodejs-devel.x86_64 : JavaScript runtime - development headers
golang-github-neelance-sourcemap-devel.noarch : JavaScript source map reader & writer for Go
golang-honnef-js-dom-devel.noarch : GopherJS bindings for the JavaScript DOM APIs
libsvm-devel.i686 : Development files for libsvm in C, C++ and Java
libsvm-devel.x86_64 : Development files for libsvm in C, C++ and Java
R-core-devel.i686 : Core files for development of R packages (no Java)
R-core-devel.x86_64 : Core files for development of R packages (no Java)
nodejs-typescript.noarch : A language for application scale JavaScript development
webkit2gtk3-jsc-devel.i686 : Development files for JavaScript engine from webkit2gtk3
webkit2gtk3-jsc-devel.x86_64 : Development files for JavaScript engine from webkit2gtk3
libcephfs_jni-devel.x86_64 : Development files for CephFS Java Native Interface library
nodejs-jscoverage.noarch : A JavaScript coverage tool for Node.js and browser development
golang-github-gopherjs-devel.noarch : Compiler from Go to JavaScript for running Go code in a browser
golang-github-dvsekhvalnov-jose2go-devel.noarch : Go implementation of Javascript Object Signing and Encryption specification
[root@localhost spring]#
0 x

User avatar
ThinkSome
Posts: 335
Joined: 14 Jun 2015, 13:36

Re: cmake cannot find boost version 1.69.0

Post by ThinkSome »

Java AIs are not necessary, you can disable them with -DAI_TYPES=NATIVE:

ccmake ../spring/ -DAI_TYPES=NATIVE -DCMAKE_INSTALL_PREFIX="$HOME/install/spring/104.0.1_p1474" -Wno-dev

Tell me if you hit the uint* and Z_BEST_COMPRESSION errors around 25%.
0 x

builderror
Posts: 7
Joined: 04 May 2020, 01:47

Re: cmake cannot find boost version 1.69.0

Post by builderror »

I was missing quite a few libs

Code: Select all

sudo dnf install DevIL-devel openal-soft-devel libcurl-devel libvorbis-devel libunwind-devel
Progress

Code: Select all

[jeff@localhost spring]$ cmake . -DAI_TYPES=NATIVE -DCMAKE_INSTALL_PREFIX="$HOME/install/spring/104.0.1_p1474" -Wno-dev
-- gcc 9.3.1 detected
-- Checking to see if CXX compiler accepts flag -fvisibility=hidden
-- Checking to see if CXX compiler accepts flag -fvisibility=hidden - yes
-- Checking to see if CXX compiler accepts flag -std=gnu++11
-- Checking to see if CXX compiler accepts flag -std=gnu++11 - yes
-- Building Spring on 64bit environment
-- Targetting 64bit
-- Found SDL2: /usr/lib64/libSDL2main.a;/usr/lib64/libSDL2.so;-lpthread (found version "2.0.12") 
-- Found ld.gold
-- Compiling with C++11
-- Checking to see if CXX compiler accepts flag -fdiagnostics-color=auto
-- Checking to see if CXX compiler accepts flag -fdiagnostics-color=auto - yes
-- using mtune=generic
-- Forcing assimp option ASSIMP_BUILD_STATIC_LIB to on
-- Forcing assimp option ASSIMP_NO_EXPORT to on
-- Shared libraries disabled
-- Build an import-only version of Assimp.
INFO RT-extension not found. glTF import/export will be built without Open3DGC-compression.
-- Enabled formats: 3DS COLLADA LWO OBJ BLEND
-- Disabled formats: AMF AC ASE ASSBIN ASSXML B3D BVH DXF CSM HMP IRRMESH IRR LWS MD2 MD3 MD5 MDC MDL NFF NDO OFF OGRE OPENGEX PLY MS3D COB IFC XGL FBX Q3D Q3BSP RAW SIB SMD STL TERRAGEN 3D X X3D GLTF 3MF MMD
-- Found AI Wrapper: CUtils (sources only wrapper)
-- Found AI Interface: C-AIInterface 0.1
warning: Java AI Interface will not be built!
-- Found AI Wrapper: Cpp-AIWrapper
warning: Java OO AI Wrapper will not be built!
-- Found AI Wrapper: LegacyCpp-AIWrapper
-- Found AI Wrapper: LegacyCpp-Creg-AIWrapper
-- Found Skirmish AI: CircuitAI stable
-- Found Skirmish AI: CppTestAI 0.1
warning: HughAI Skirmish AI will not be built!
-- Found Skirmish AI: KAIK 0.13
-- Found Skirmish AI: NullAI 0.1
warning: NullJavaAI Skirmish AI will not be built!
warning: NullOOJavaAI Skirmish AI will not be built!
-- Found Skirmish AI: Shard dev
-- Checking for module 'jsoncpp'
--   Package 'jsoncpp', required by 'virtual:world', not found
-- PR-Downloader version: 0.7-544-gd3e5a4a
-- Could NOT find MINIZIP (missing: MINIZIP_LIBRARY MINIZIP_INCLUDE_DIR) 
-- libminizip was not found, using integrated
CMake Warning at tools/pr-downloader/CMakeLists.txt:168 (message):
  clang-format not found


-- Could NOT find DocBook (missing: DOCBOOK_XSL) 
-- MAN pages will not be generated/installed; missing utilit(y|ies): asciidoc docbook-xsl
-- /home/jeff/dev-game/spring/springsettings.cfg already exists!
-- Found SDL2: /usr/lib64/libSDL2main.a;/usr/lib64/libSDL2main.a;/usr/lib64/libSDL2.so;-lpthread;-lpthread (found version "2.0.12") 
-- Found libunwind libraries at /usr/lib64/libunwind.so
-- Found OpenGL: /usr/lib64/libOpenGL.so   
-- Found FONTCONFIG: /usr/lib64/libfontconfig.so  
-- Found Freetype: /usr/lib64/libfreetype.so (found version "2.10.0") 
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Using legacy as default engine
PING ::1(::1) 56 data bytes
64 bytes from ::1: icmp_seq=1 ttl=64 time=0.048 ms

--- ::1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.048/0.048/0.048/0.000 ms
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GLEW_LIBRARIES (ADVANCED)
    linked by target "engine-legacy" in directory /home/jeff/dev-game/spring/rts/builds/legacy

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
[jeff@localhost spring]$
0 x

User avatar
ThinkSome
Posts: 335
Joined: 14 Jun 2015, 13:36

Re: cmake cannot find boost version 1.69.0

Post by ThinkSome »

There is a list of what you need to install on the building spring wikipage.
0 x

builderror
Posts: 7
Joined: 04 May 2020, 01:47

Re: cmake cannot find boost version 1.69.0

Post by builderror »

That doesn't appear to be the cause.

Code: Select all

CMake Generate step failed.  Build files cannot be regenerated correctly.
[jeff@localhost spring]$
I need to "make clean" but in cmake I read that there's no such feature and I must delete manually. Either I delete these

Code: Select all

[jeff@localhost CMakeFiles]$ ls -c
Makefile2             generateVersionFiles.dir         CMakeOutput.log
Makefile.cmake        TargetDirectories.txt            CMakeTmp
progress.marks        CMakeRuleHashes.txt              CheckTypeSize
platform_sources.dir  CMakeDirectoryInformation.cmake  CMakeError.log
generateSources.dir   cmake.check_cache                3.17.1
or these

Code: Select all

[jeff@localhost cmake]$ ls -c
UtilGit.cmake       FindFontConfig.cmake  FindMarkdown.cmake   FindSDL2.cmake      FindWin32Libs.cmake  PreferStaticLibs.cmake  ConfigureVersion.cmake
UtilJava.cmake      FindGit.cmake         FindMiniZip.cmake    FindSevenZip.cmake  FindWindres.cmake    TestCXXFlags.cmake      COPYING-CMAKE-SCRIPTS
UtilVersion.cmake   FindGLEW.cmake        FindOggVorbis.cmake  FindTCMalloc.cmake  FindXCB.cmake        Util.cmake              FindAWK.cmake
FindAsciiDoc.cmake  FindLibunwind.cmake   FindPandoc.cmake     FindValgrind.cmake  OverrideFlags.cmake  ConfigureFile.cmake
I don't know which.
0 x

User avatar
ThinkSome
Posts: 335
Joined: 14 Jun 2015, 13:36

Re: cmake cannot find boost version 1.69.0

Post by ThinkSome »

You are wrong. I installed fresh F31 to a VM, installed all the requirements stated on that page and got past generating.

You shouldn't build inside the source directory, always build outside. That makes it much easier to clean. Now you have to do rm .gitignore and some invocation of git clean.
0 x

builderror
Posts: 7
Joined: 04 May 2020, 01:47

Re: cmake cannot find boost version 1.69.0

Post by builderror »

I started over. Now I'm building to a folder in the directory above

Code: Select all

[jeff@localhost spring]$ cmake -S . -B ../build -DAI_TYPES=NATIVE -DCMAKE_INSTALL_PREFIX="/home/jeff/install/spring" -Wno-dev
but I get the same error

Code: Select all

[jeff@localhost spring]$ cmake -S . -B ../build -DAI_TYPES=NATIVE -DCMAKE_INSTALL_PREFIX="/home/jeff/install/spring" -Wno-dev
-- gcc 9.3.1 detected
-- Checking to see if CXX compiler accepts flag -fvisibility=hidden
-- Checking to see if CXX compiler accepts flag -fvisibility=hidden - yes
-- Checking to see if CXX compiler accepts flag -std=gnu++11
-- Checking to see if CXX compiler accepts flag -std=gnu++11 - yes
-- Building Spring on 64bit environment
-- Targetting 64bit
-- Found ld.gold
-- Compiling with C++11
-- Checking to see if CXX compiler accepts flag -fdiagnostics-color=auto
-- Checking to see if CXX compiler accepts flag -fdiagnostics-color=auto - yes
-- using mtune=generic
-- Forcing assimp option ASSIMP_BUILD_STATIC_LIB to on
-- Forcing assimp option ASSIMP_NO_EXPORT to on
-- Shared libraries disabled
-- Build an import-only version of Assimp.
INFO RT-extension not found. glTF import/export will be built without Open3DGC-compression.
-- Enabled formats: 3DS COLLADA LWO OBJ BLEND
-- Disabled formats: AMF AC ASE ASSBIN ASSXML B3D BVH DXF CSM HMP IRRMESH IRR LWS MD2 MD3 MD5 MDC MDL NFF NDO OFF OGRE OPENGEX PLY MS3D COB IFC XGL FBX Q3D Q3BSP RAW SIB SMD STL TERRAGEN 3D X X3D GLTF 3MF MMD
-- Found AI Wrapper: CUtils (sources only wrapper)
-- Found AI Interface: C-AIInterface 0.1
warning: Java AI Interface will not be built!
-- Found AI Wrapper: Cpp-AIWrapper
warning: Java OO AI Wrapper will not be built!
-- Found AI Wrapper: LegacyCpp-AIWrapper
-- Found AI Wrapper: LegacyCpp-Creg-AIWrapper
-- Found Skirmish AI: CircuitAI stable
-- Found Skirmish AI: CppTestAI 0.1
warning: HughAI Skirmish AI will not be built!
-- Found Skirmish AI: KAIK 0.13
-- Found Skirmish AI: NullAI 0.1
warning: NullJavaAI Skirmish AI will not be built!
warning: NullOOJavaAI Skirmish AI will not be built!
-- Found Skirmish AI: Shard dev
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.6.3") 
-- Checking for module 'jsoncpp'
--   Package 'jsoncpp', required by 'virtual:world', not found
-- PR-Downloader version: 0.7-544-gd3e5a4a
-- Found CURL: /usr/lib64/libcurl.so (found version "7.66.0")  
-- Could NOT find MINIZIP (missing: MINIZIP_LIBRARY MINIZIP_INCLUDE_DIR) 
-- libminizip was not found, using integrated
CMake Warning at tools/pr-downloader/CMakeLists.txt:168 (message):
  clang-format not found


-- Found SevenZip: /bin/7za  
-- Found XSLTProc: /usr/bin/xsltproc  
-- Could NOT find DocBook (missing: DOCBOOK_XSL) 
-- MAN pages will not be generated/installed; missing utilit(y|ies): asciidoc docbook-xsl
-- Found OpenAL: /usr/lib64/libopenal.so  
-- Looking for vorbis_bitrate_addblock in vorbis
-- Looking for vorbis_bitrate_addblock in vorbis - found
-- Found OggVorbis: /usr/lib64/libogg.so;/usr/lib64/libvorbis.so;/usr/lib64/libvorbisfile.so;/usr/lib64/libvorbisenc.so
-- Found SDL2: /usr/lib64/libSDL2main.a;/usr/lib64/libSDL2main.a;/usr/lib64/libSDL2.so;-lpthread;-lpthread (found version "2.0.12") 
-- Found libunwind libraries at /usr/lib64/libunwind.so
-- Found OpenGL: /usr/lib64/libOpenGL.so   
-- Found FONTCONFIG: /usr/lib64/libfontconfig.so  
-- Found Freetype: /usr/lib64/libfreetype.so (found version "2.10.0") 
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Using legacy as default engine
PING ::1(::1) 56 data bytes
64 bytes from ::1: icmp_seq=1 ttl=64 time=0.050 ms

--- ::1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.050/0.050/0.050/0.000 ms
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GLEW_LIBRARIES (ADVANCED)
    linked by target "engine-legacy" in directory /home/jeff/dev-game/spring/rts/builds/legacy

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
[jeff@localhost spring]$ cmake -S . -B ../build -DAI_TYPES=NATIVE -DCMAKE_INSTALL_PREFIX="/home/jeff/install/spring" -Wno-dev
0 x

MasterBel
Posts: 198
Joined: 18 Mar 2018, 07:48

Re: cmake cannot find boost version 1.69.0

Post by MasterBel »

I remember the dependency game. It was almost fun.

Code: Select all

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GLEW_LIBRARIES (ADVANCED)
    linked by target "engine-legacy" in directory /home/jeff/dev-game/spring/rts/builds/legacy
1. Check that you've installed GLEW
2. -DGLEW_INCLUDE_DIR=/path/to/glew

Not sure if this is also a blocking issue:

Code: Select all

-- Checking for module 'jsoncpp'
--   Package 'jsoncpp', required by 'virtual:world', not found
Just another missing dependency.
0 x

builderror
Posts: 7
Joined: 04 May 2020, 01:47

Re: cmake cannot find boost version 1.69.0

Post by builderror »

That should have been obvious to me but my brain skipped it. Required: jsoncpp-devel glew-devel

I added this to the Wiki for Fedora

https://springrts.com/wiki/Building_Spr ... nux#Fedora

I'm currently running 'make'

edit: finished, it runs! now I'll try installing some of the games.
0 x

MasterBel
Posts: 198
Joined: 18 Mar 2018, 07:48

Re: cmake cannot find boost version 1.69.0

Post by MasterBel »

Awesome, and thanks for updating the wiki!
0 x

Post Reply

Return to “Help & Bugs”