[tsc-devel] TSC Boost Build Issues

…8@g… | Sat, 01 Sep 2018 19:22:10 UTC

I seem to be getting boost build issues when I try to build the TSC source code.

I do have Kirbyfan64's boost fix commit present, the fix for issue #633.

What I tried is below.  What else might I need to do to get TSC building again?

===============

I first tried a basic cmake, after purging my build directory:

…d@d…:~/TSCX/TSC/tsc/build$ cmake ..

-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- Found Ruby: /usr/local/bin/ruby 
-- Found Gettext: /usr/bin/msgmerge (found version "0.18.3")
-- Searching for SFML audio library
--   found: /usr/local/lib/libsfml-audio.so
-- Searching for SFML graphics library
--   found: /usr/local/lib/libsfml-graphics.so
-- Searching for SFML window library
--   found: /usr/local/lib/libsfml-window.so
-- Searching for SFML system library
--   found: /usr/local/lib/libsfml-system.so
-- Found SFML: /usr/local/include/SFML 
-- Searching for Base CEGUI library
--   found: /usr/local/lib/libCEGUIBase-0.so
-- Searching for CoreWindowRendererSet CEGUI library
--   found: /usr/local/lib/cegui-0.8/libCEGUICoreWindowRendererSet.so
-- Searching for DevILImageCodec CEGUI library
--   found: /usr/local/lib/cegui-0.8/libCEGUIDevILImageCodec.so
-- Searching for LibXMLParser CEGUI library
--   found: /usr/local/lib/cegui-0.8/libCEGUILibXMLParser.so
-- Searching for OpenGLRenderer CEGUI library
--   found: /usr/local/lib/libCEGUIOpenGLRenderer-0.so
-- Found CEGUI: /usr/local/include/cegui-0 
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so 
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.50")
-- Found PCRE: /usr/include 
-- Found LibXmlPP: /usr/lib/libxml++-2.6.so (found suitable version "2.36.0", minimum required is "2.6")
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/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
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
CMake Error at /usr/local/share/cmake-3.2/Modules/FindBoost.cmake:1182 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.54.0

  Boost include path: /usr/include

  Could not find the following Boost libraries:

          boost_filesystem
          boost_chrono
          boost_thread

  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.
Call Stack (most recent call first):
  CMakeLists.txt:141 (find_package)


-- Building tinyclipboard statically
-- Scripting engine enabled: building mruby statically
-- Found BISON: /usr/bin/bison (found version "3.0.2")
-- --------------- Build info summary ----------------
-- TSC version:    2.1.0dev
-- Build type:    
-- Crosscompiling: No
-- --------------- Configuration summary -------------
-- Enable the in-game editor:         ON
-- Enable the mruby scripting engine: ON
-- Enable native language support:    ON
-- Use system-provided tinyclipboard: OFF
-- --------------- Path configuration -----------------
-- Install prefix:        /usr/local
-- Binary directory:      bin
-- Shared data directory: share
-- Manpage directory:     share/man
-- (relative pathes are relative to the install prefix;
-- the directory /tsc will be appended to the shared
-- data directory indicated above.)
-- ----------------------------------------------------
-- Configuring incomplete, errors occurred!
See also "/home/datahead/TSCX/TSC/tsc/build/CMakeFiles/CMakeOutput.log".

-------

I clearly have the include files in /usr/include:

…d@d…:/usr/include/boost$ ls | egrep "(filesystem|chrono|thread)"
chrono
chrono.hpp
filesystem
filesystem.hpp
thread
thread.hpp

There are no boost library files in /usr/lib or /usr/local/lib.

-------

I then tried pointing to the copy of boost I build a while back, after purging my TSC build directory again.  I used -DBOOST_ROOT to point it:

…d@d…:~/TSCX/TSC/tsc/build$ cmake -DBOOST_ROOT=/home/datahead/boost_libs ..-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- Found Ruby: /usr/local/bin/ruby 
-- Found Gettext: /usr/bin/msgmerge (found version "0.18.3")
-- Searching for SFML audio library
--   found: /usr/local/lib/libsfml-audio.so
-- Searching for SFML graphics library
--   found: /usr/local/lib/libsfml-graphics.so
-- Searching for SFML window library
--   found: /usr/local/lib/libsfml-window.so
-- Searching for SFML system library
--   found: /usr/local/lib/libsfml-system.so
-- Found SFML: /usr/local/include/SFML 
-- Searching for Base CEGUI library
--   found: /usr/local/lib/libCEGUIBase-0.so
-- Searching for CoreWindowRendererSet CEGUI library
--   found: /usr/local/lib/cegui-0.8/libCEGUICoreWindowRendererSet.so
-- Searching for DevILImageCodec CEGUI library
--   found: /usr/local/lib/cegui-0.8/libCEGUIDevILImageCodec.so
-- Searching for LibXMLParser CEGUI library
--   found: /usr/local/lib/cegui-0.8/libCEGUILibXMLParser.so
-- Searching for OpenGLRenderer CEGUI library
--   found: /usr/local/lib/libCEGUIOpenGLRenderer-0.so
-- Found CEGUI: /usr/local/include/cegui-0 
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so 
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.50")
-- Found PCRE: /usr/include 
-- Found LibXmlPP: /usr/lib/libxml++-2.6.so (found suitable version "2.36.0", minimum required is "2.6")
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/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
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   filesystem
--   chrono
--   thread
-- Building tinyclipboard statically
-- Scripting engine enabled: building mruby statically
-- Found BISON: /usr/bin/bison (found version "3.0.2")
-- --------------- Build info summary ----------------
-- TSC version:    2.1.0dev
-- Build type:    
-- Crosscompiling: No
-- --------------- Configuration summary -------------
-- Enable the in-game editor:         ON
-- Enable the mruby scripting engine: ON
-- Enable native language support:    ON
-- Use system-provided tinyclipboard: OFF
-- --------------- Path configuration -----------------
-- Install prefix:        /usr/local
-- Binary directory:      bin
-- Shared data directory: share
-- Manpage directory:     share/man
-- (relative pathes are relative to the install prefix;
-- the directory /tsc will be appended to the shared
-- data directory indicated above.)
-- ----------------------------------------------------
-- Configuring done
CMake Error at CMakeLists.txt:219 (add_executable):
  Target "tsc" links to target "Boost::filesystem" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?


CMake Error at CMakeLists.txt:219 (add_executable):
  Target "tsc" links to target "Boost::chrono" but the target was not found.
  Perhaps a find_package() call is missing for an IMPORTED target, or an
  ALIAS target is missing?


CMake Error at CMakeLists.txt:219 (add_executable):
  Target "tsc" links to target "Boost::thread" but the target was not found.
  Perhaps a find_package() call is missing for an IMPORTED target, or an
  ALIAS target is missing?


-- Generating done
-- Build files have been written to: /home/datahead/TSCX/TSC/tsc/build
-----------------------

This installation has both the library files and the header files:

…d@d…:~/boost_libs/include/boost$ ls | egrep "(filesystem|chrono|thread)"
chrono
chrono.hpp
filesystem
filesystem.hpp
thread
thread.hpp

…d@d…:~/boost_libs/lib$ ls | egrep "(filesystem|chrono|thread)"
libboost_chrono.a
libboost_chrono.so
libboost_chrono.so.1.55.0
libboost_filesystem.a
libboost_filesystem.so
libboost_filesystem.so.1.55.0
libboost_thread.a
libboost_thread.so
libboost_thread.so.1.55.0
_______________________________________________
tsc-devel mailing list -- …l@l…
To unsubscribe send an email to …e@l…
By Thread
2018-09-01 19:22:10…8@g…[tsc-devel] TSC Boost Build Issues
2018-09-01 19:39:59Ryan Gonzalez[tsc-devel] Re: TSC Boost Build Issues
2018-09-01 21:27:32Marvin Gülker[tsc-devel] Re: TSC Boost Build Issues
By Date
[tsc-devel] TSC Boost Build Issues…8@g…2018-09-01 19:22:10
[tsc-devel] Re: TSC Boost Build IssuesRyan Gonzalez2018-09-01 19:39:59
[tsc-devel] Re: TSC Boost Build IssuesMarvin Gülker2018-09-01 21:27:32