Cannot Compile

Asked by Travis "TeamColtra" McCrea

I was running through the steps in Jacky's blog, and even had to download a few extra deps (actually one wound up being 800MB big libxml I am sure I didn't need all of the packages downloaded but meh) -- I was hoping someone could tell me what needs to be fixed or whats up

teamcoltra@paradoxicon:~/Projects/linguistics-devel$ cmake .
CMake Error at CMakeLists.txt:26 (find_package):
  Could not find module FindWntrData.cmake or a configuration file for
  package WntrData.

  Adjust CMAKE_MODULE_PATH to find FindWntrData.cmake or set WntrData_DIR to
  the directory containing a CMake configuration file for WntrData. The file
  will have one of the following names:

    WntrDataConfig.cmake
    wntrdata-config.cmake

-- Found Glibmm
-- Found GIOmm
-- checking for module 'libxml++-2.6'
-- found libxml++-2.6, version 2.33.1
-- Found LibXML++
-- Configuring incomplete, errors occurred!

Question information

Language:
English Edit question
Status:
Expired
For:
The Wintermute Project Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Adrian Borucki (gentoolx) said :
#1

First of all, don't invoke 'cmake .' because it make mess in the main directory (and corrupts existing Makefile), use three commands instead: 'mkdir build', 'cd build', 'cmake ..'

CMake complains because you haven't installed WntrData library, do it first. Branch for it is lp:~wintermute-devel/wintermute/database

Revision history for this message
Travis "TeamColtra" McCrea (teamcoltra) said :
#2

 I am aware I am the biggest noob ever:

teamcoltra@paradoxicon:~/Projects/Wintermute/database$ mkdir build
teamcoltra@paradoxicon:~/Projects/Wintermute/database$ cd build
teamcoltra@paradoxicon:~/Projects/Wintermute/database/build$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- 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
CMake Error at CMakeLists.txt:4 (include):
  include could not find load file:

    WinterDefaults

CMake Error at CMakeLists.txt:5 (include):
  include could not find load file:

    WinterLibsDependencies

CMake Error at CMakeLists.txt:6 (include):
  include could not find load file:

    WinterMacros

-- checking for module 'libxml++-2.6'
-- found libxml++-2.6, version 2.33.1
-- Found LibXML++
CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1123 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files. Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  CMakeLists.txt:17 (find_package)

CMake Error at CMakeLists.txt:116 (install):
  install TARGETS given no LIBRARY DESTINATION for shared library target
  "wntrdata".

CMake Error at CMakeLists.txt:132 (install):
  install FILES given no DESTINATION!

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:
Boost_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /home/teamcoltra/Projects/Wintermute/database

-- Configuring incomplete, errors occurred!

Revision history for this message
Adrian Borucki (gentoolx) said :
#3

No, you are not :)

The first problem is that you haven't installed particular Boost devel packages, these are required:
    * libboost-filesystem-dev
    * libboost-signals-dev
    * libboost-serialization-dev

The second problem is that you haven't installed wintermutesdk-scripts package, you can do the following:
    1. Install bzr-builddeb package.
    2. Branch lp:~wintermute-devel/wintermute/wintermutesdk-scripts-debian branch.
    3. Enter to its directory and invoke `debian/rules get-orig-source'.
    4. Invoke `bzr builddeb'.

This will make a package that you can install by typing `sudo dpkg -i ../*.deb'.

And note: You have to provide few variables such as WNTRDATA_DATA_DIR to correctly build WntrData, if you don't want to do this manually, use the Makefile provided in the branch's root directory.

I hope this will resolve your problems and thank you for asking a question; this made me aware that we have to create documentation related to building.

Revision history for this message
Adrian Borucki (gentoolx) said :
#4

Expired as the code and building process changed.