svn6592 / no LIBRARY DESTINATION for shared library target

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

svn6592 / no LIBRARY DESTINATION for shared library target

#1 Post by Nagilum »

The changes in svn commit 6592 break the build for me:

Code: Select all

root@pb6460b:~/freeorion-0.4.3+svn6594/debian# cmake ../FreeOrion/GG -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_DOCUMENTATION=off -DBUILD_TUTORIALS=off -DBUILD_OGRE_DRIVER=ON -DBUILD_OGRE_OIS_PLUGIN=ON -DLIB_SUFFIX=/freeorion -DUILD_DEVEL_PACKAGE=ON -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed"
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - 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
-- Boost version: 1.49.0
-- Found the following Boost libraries:
--   chrono
--   date_time
--   filesystem
--   signals
--   system
--   thread
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.7")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.49")
-- Found TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (found version "4.0.2")
-- 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
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
-- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version "2.4.10")
-- Configuring GiGi
CMake Error at src/CMakeLists.txt:217 (install):
  install TARGETS given no LIBRARY DESTINATION for shared library target
  "GiGi".


-- Configuring GiGiSDL
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found.
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found  
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found SDL: /usr/lib/x86_64-linux-gnu/libSDL.so;-lpthread
CMake Error at src/SDL/CMakeLists.txt:31 (install):
  install TARGETS given no LIBRARY DESTINATION for shared library target
  "GiGiSDL".


-- Configuring GiGiOgre
-- Looking for OGRE...
-- OGRE_PREFIX_WATCH changed.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- checking for module 'OGRE'
--   found OGRE, version 1.8.0
-- Found Ogre Byatis (1.8.0)
-- Found OGRE: optimized;/usr/lib/x86_64-linux-gnu/libOgreMain.so;debug;/usr/lib/x86_64-linux-gnu/libOgreMain.so
-- Looking for OGRE_Paging...
-- Found OGRE_Paging: optimized;/usr/lib/x86_64-linux-gnu/libOgrePaging.so;debug;/usr/lib/x86_64-linux-gnu/libOgrePaging.so
-- Looking for OGRE_Terrain...
-- Found OGRE_Terrain: optimized;/usr/lib/x86_64-linux-gnu/libOgreTerrain.so;debug;/usr/lib/x86_64-linux-gnu/libOgreTerrain.so
-- Looking for OGRE_Property...
-- Found OGRE_Property: optimized;/usr/lib/x86_64-linux-gnu/libOgreProperty.so;debug;/usr/lib/x86_64-linux-gnu/libOgreProperty.so
-- Looking for OGRE_RTShaderSystem...
-- Found OGRE_RTShaderSystem: optimized;/usr/lib/x86_64-linux-gnu/libOgreRTShaderSystem.so;debug;/usr/lib/x86_64-linux-gnu/libOgreRTShaderSystem.so
CMake Error at src/Ogre/CMakeLists.txt:35 (install):   
  install TARGETS given no LIBRARY DESTINATION for shared library target
  "GiGiOgre".


-- Configuring Ogre OIS Input Plugin
-- Looking for OIS...
-- OIS_PREFIX_PATH changed.
-- checking for module 'OIS'
--   found OIS, version 1.3.0
-- Found OIS: optimized;/usr/lib/x86_64-linux-gnu/libOIS.so;debug;/usr/lib/x86_64-linux-gnu/libOIS.so
CMake Error at src/Ogre/Plugins/CMakeLists.txt:34 (install):
  install TARGETS given no LIBRARY DESTINATION for shared library target
  "GiGiOgrePlugin_OIS".


-- Configuring incomplete, errors occurred!
I'm hoping there is some -D to fix this but I have no clue about cmake :( (I tried "-DUILD_DEVEL_PACKAGE=ON" - no dice).
Thanks.

User avatar
adrian_broher
Programmer
Posts: 1156
Joined: Fri Mar 01, 2013 9:52 am
Location: Germany

Re: svn6592 / no LIBRARY DESTINATION for shared library targ

#2 Post by adrian_broher »

Why do you build GG separately?
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: svn6592 / no LIBRARY DESTINATION for shared library targ

#3 Post by Nagilum »

That's just how the Debian package does/did it historically.
Let me try it without..

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: svn6592 / no LIBRARY DESTINATION for shared library targ

#4 Post by Nagilum »

Hmm, the normal build doesn't seem to build the GiGi libs.
So I need to build them separately - no?

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: svn6592 / no LIBRARY DESTINATION for shared library targ

#5 Post by Nagilum »

Hmm, actually they are build just land in a different location than before.
Sorry for the confusion.

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: svn6592 / no LIBRARY DESTINATION for shared library targ

#6 Post by Nagilum »

Just to close the matter.
Everything works and the packages are building again.
I'll probably not upload new builds though since the chances between 6591 and 6594 are minimal.

Post Reply