Fwd: cmake

Benjamin nystire at gmail.com
Sat Apr 4 21:50:00 PDT 2015


Forwarding to the list. I blame my lack of coffee for forgetting to hit
"reply all" instead of "reply" :(
---------- Forwarded message ----------
From: Benjamin <nystire at gmail.com>
Date: 5 April 2015 at 07:46
Subject: Re: cmake
To: Dirk Hohndel <dirk at hohndel.org>


Good morning!

This is the output from your suggested set of switches:
cmake -DCMAKE_BUILD_TYPE=Debug -DLIBDCDEVEL=../libdivecomputer
-DLIBDCSTATIC=1 -DLIBGIT2DEVEL=../libgit2 -DLIBGIT2STATIC=1
-dLIBMARBLEDEVEL=../marble/build ../subsurface
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/lib64/ccache/cc
-- Check for working C compiler: /usr/lib64/ccache/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib64/ccache/c++
-- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- checking for module 'libxml-2.0'
--   found libxml-2.0, version 2.9.1
-- checking for module 'sqlite3'
--   found sqlite3, version 3.8.8.3
-- checking for module 'libxslt'
--   found libxslt, version 1.1.28
-- checking for module 'libzip'
--   found libzip, version 0.11.2
-- Found marble: /usr/local/include
-- Configuring done
CMake Warning (dev) at CMakeLists.txt:446 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target
  "/home/nystire/src/subsurface-build/translations/subsurface_bg_BG.qm" of
  target "subsurface" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:446 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target
  "/home/nystire/src/subsurface-build/translations/subsurface_cs.qm" of
  target "subsurface" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:446 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target
  "/home/nystire/src/subsurface-build/translations/subsurface_da_DK.qm" of
  target "subsurface" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:446 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target
  "/home/nystire/src/subsurface-build/translations/subsurface_de_CH.qm" of
  target "subsurface" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:446 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target
  "/home/nystire/src/subsurface-build/translations/subsurface_de_DE.qm" of
  target "subsurface" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:446 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target
  "/home/nystire/src/subsurface-build/translations/subsurface_en_GB.qm" of
  target "subsurface" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:446 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target
  "/home/nystire/src/subsurface-build/translations/subsurface_es_ES.qm" of
  target "subsurface" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:446 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target
  "/home/nystire/src/subsurface-build/translations/subsurface_et_EE.qm" of
  target "subsurface" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:446 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target
  "/home/nystire/src/subsurface-build/translations/subsurface_fi_FI.qm" of
  target "subsurface" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:446 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target
  "/home/nystire/src/subsurface-build/translations/subsurface_fr_FR.qm" of
  target "subsurface" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:446 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target
  "/home/nystire/src/subsurface-build/translations/subsurface_it_IT.qm" of
  target "subsurface" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:446 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target
  "/home/nystire/src/subsurface-build/translations/subsurface_lv_LV.qm" of
  target "subsurface" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:446 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target
  "/home/nystire/src/subsurface-build/translations/subsurface_nb_NO.qm" of
  target "subsurface" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:446 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target
  "/home/nystire/src/subsurface-build/translations/subsurface_nl_NL.qm" of
  target "subsurface" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:446 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target
  "/home/nystire/src/subsurface-build/translations/subsurface_pl_PL.qm" of
  target "subsurface" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:446 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target
  "/home/nystire/src/subsurface-build/translations/subsurface_pt_BR.qm" of
  target "subsurface" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:446 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target
  "/home/nystire/src/subsurface-build/translations/subsurface_pt_PT.qm" of
  target "subsurface" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:446 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target
  "/home/nystire/src/subsurface-build/translations/subsurface_ru_RU.qm" of
  target "subsurface" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:446 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target
  "/home/nystire/src/subsurface-build/translations/subsurface_sk_SK.qm" of
  target "subsurface" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:446 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target
  "/home/nystire/src/subsurface-build/translations/subsurface_source.qm" of
  target "subsurface" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:446 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target
  "/home/nystire/src/subsurface-build/translations/subsurface_sv_SE.qm" of
  target "subsurface" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:446 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target
  "/home/nystire/src/subsurface-build/translations/subsurface_tr.qm" of
  target "subsurface" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:446 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target
  "/home/nystire/src/subsurface-build/translations/subsurface_zh_TW.qm" of
  target "subsurface" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    LIBDCSTATIC
    LIBGIT2STATIC


-- Build files have been written to: /home/nystire/src/subsurface-build

Calling make after that results is the following:
make
Scanning dependencies of target version
[  0%] Built target version
Scanning dependencies of target subsurface_corelib_automoc
[  1%] Automatic moc and uic for target subsurface_corelib
Generating moc_configuredivecomputer.cpp
Generating moc_configuredivecomputerthreads.cpp
Generating moc_devicedetails.cpp
[  1%] Built target subsurface_corelib_automoc
Scanning dependencies of target subsurface_corelib
[  1%] Building C object CMakeFiles/subsurface_corelib.dir/cochran.c.o
[  2%] Building C object
CMakeFiles/subsurface_corelib.dir/datatrak.c.o
[  3%] Building C object
CMakeFiles/subsurface_corelib.dir/deco.c.o
[  3%] Building C object
CMakeFiles/subsurface_corelib.dir/device.c.o
[  4%] Building C object
CMakeFiles/subsurface_corelib.dir/dive.c.o
[  5%] Building C object
CMakeFiles/subsurface_corelib.dir/divesite.c.o
[  5%] Building C object
CMakeFiles/subsurface_corelib.dir/divelist.c.o
[  6%] Building C object
CMakeFiles/subsurface_corelib.dir/equipment.c.o
[  6%] Building C object
CMakeFiles/subsurface_corelib.dir/file.c.o
[  7%] Building C object
CMakeFiles/subsurface_corelib.dir/git-access.c.o
[  8%] Building C object
CMakeFiles/subsurface_corelib.dir/libdivecomputer.c.o
[  8%] Building C object
CMakeFiles/subsurface_corelib.dir/liquivision.c.o
[  9%] Building C object
CMakeFiles/subsurface_corelib.dir/load-git.c.o
[ 10%] Building C object
CMakeFiles/subsurface_corelib.dir/membuffer.c.o
[ 10%] Building C object
CMakeFiles/subsurface_corelib.dir/ostctools.c.o
[ 11%] Building C object
CMakeFiles/subsurface_corelib.dir/parse-xml.c.o
[ 12%] Building C object
CMakeFiles/subsurface_corelib.dir/planner.c.o
[ 12%] Building C object
CMakeFiles/subsurface_corelib.dir/profile.c.o
[ 13%] Building C object
CMakeFiles/subsurface_corelib.dir/gaspressures.c.o
[ 13%] Building C object
CMakeFiles/subsurface_corelib.dir/worldmap-save.c.o
[ 14%] Building C object
CMakeFiles/subsurface_corelib.dir/save-git.c.o
[ 15%] Building C object
CMakeFiles/subsurface_corelib.dir/save-xml.c.o
[ 15%] Building C object
CMakeFiles/subsurface_corelib.dir/save-html.c.o
[ 16%] Building C object
CMakeFiles/subsurface_corelib.dir/sha1.c.o
[ 17%] Building C object
CMakeFiles/subsurface_corelib.dir/statistics.c.o
[ 17%] Building C object
CMakeFiles/subsurface_corelib.dir/strtod.c.o
[ 18%] Building C object
CMakeFiles/subsurface_corelib.dir/subsurfacestartup.c.o
[ 19%] Building C object
CMakeFiles/subsurface_corelib.dir/time.c.o
[ 19%] Building C object CMakeFiles/subsurface_corelib.dir/uemis.c.o
[ 20%] Building C object
CMakeFiles/subsurface_corelib.dir/uemis-downloader.c.o
[ 20%] Building C object CMakeFiles/subsurface_corelib.dir/version.c.o
[ 21%] Building CXX object
CMakeFiles/subsurface_corelib.dir/gettextfromc.cpp.o
[ 22%] Building CXX object CMakeFiles/subsurface_corelib.dir/qthelper.cpp.o
[ 22%] Building CXX object
CMakeFiles/subsurface_corelib.dir/divecomputer.cpp.o
[ 23%] Building CXX object CMakeFiles/subsurface_corelib.dir/exif.cpp.o
[ 24%] Building CXX object
CMakeFiles/subsurface_corelib.dir/subsurfacesysinfo.cpp.o
[ 24%] Building CXX object
CMakeFiles/subsurface_corelib.dir/devicedetails.cpp.o
[ 25%] Building CXX object
CMakeFiles/subsurface_corelib.dir/configuredivecomputer.cpp.o
[ 26%] Building CXX object
CMakeFiles/subsurface_corelib.dir/configuredivecomputerthreads.cpp.o
[ 26%] Building CXX object
CMakeFiles/subsurface_corelib.dir/divesitehelpers.cpp.o
[ 27%] Building C object CMakeFiles/subsurface_corelib.dir/linux.c.o
[ 27%] Building CXX object
CMakeFiles/subsurface_corelib.dir/subsurface_corelib_automoc.cpp.o
Linking CXX static library libsubsurface_corelib.a
[ 27%] Built target subsurface_corelib
Scanning dependencies of target TestGpsCoords_automoc
[ 28%] Automatic moc and uic for target TestGpsCoords
Generating moc_testgpscoords.cpp
[ 28%] Built target TestGpsCoords_automoc
[ 28%] Generating qrc_subsurface.cpp
Scanning dependencies of target TestGpsCoords
[ 29%] Building CXX object
CMakeFiles/TestGpsCoords.dir/tests/testgpscoords.cpp.o
[ 29%] Building CXX object CMakeFiles/TestGpsCoords.dir/qrc_subsurface.cpp.o
[ 30%] Building CXX object
CMakeFiles/TestGpsCoords.dir/TestGpsCoords_automoc.cpp.o
Linking CXX executable TestGpsCoords
/usr/bin/ld: cannot find -lgit2
/usr/bin/ld: cannot find -lgit2
collect2: error: ld returned 1 exit status
CMakeFiles/TestGpsCoords.dir/build.make:230: recipe for target
'TestGpsCoords' failed
make[2]: *** [TestGpsCoords] Error 1
CMakeFiles/Makefile2:61: recipe for target
'CMakeFiles/TestGpsCoords.dir/all' failed
make[1]: *** [CMakeFiles/TestGpsCoords.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

The src was first used to build a working version of Subsurface with the
build.sh script.

Benjamin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150405/7a0be6b4/attachment-0001.html>


More information about the subsurface mailing list