clabra / opennero

Automatically exported from code.google.com/p/opennero
Other
0 stars 0 forks source link

Building opennero on windows 7 does not work - wiki page is not complete? #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Try to build opennero according to 
http://code.google.com/p/opennero/wiki/BuildingOpenNero
on a 'fresh' install of windows 7. This does not work. CMake chokes with 
the following errors:

Could NOT find Doxygen  (missing:  DOXYGEN_EXECUTABLE)
Could NOT find ZLIB  (missing:  ZLIB_LIBRARIES ZLIB_INCLUDE_DIRS)
Could NOT find ZLIB  (missing:  ZLIB_LIBRARIES ZLIB_INCLUDE_DIRS)
Could NOT find PNG  (missing:  PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
Could NOT find JPEG  (missing:  JPEG_LIBRARY JPEG_INCLUDE_DIR)
CMake Error at source/CMakeLists.txt:23 (MESSAGE):
  Boost libraries were not found

I have installed the boost library, but this does not seem to make a 
difference. Any thoughts on what I'm doing wrong?

Original issue reported on code.google.com by okke.formsma on 15 Apr 2010 at 9:26

GoogleCodeExporter commented 9 years ago
I re-installed boost by using the boost installer from 
http://www.boostpro.com/download

I checked all 'default variants' of boost ('multithread debug, dll', 
'multithread, 
dll', 'multithread', 'multithread debug', 'multithread, static runtime', 
'multithread 
debug, static runtime', 'single thread, static runtime', 'single thread debug, 
static 
runtime') as I'm not sure which I need.

I chose to install the libraries 
  python
  filesystem
  serialization
  system
  date_time

This solved the first problems with boost.

Now I'm stuck with the following output from CMake:
==========================================
Could NOT find Doxygen  (missing:  DOXYGEN_EXECUTABLE)
Could NOT find ZLIB  (missing:  ZLIB_LIBRARIES ZLIB_INCLUDE_DIRS)
Could NOT find ZLIB  (missing:  ZLIB_LIBRARIES ZLIB_INCLUDE_DIRS)
Could NOT find PNG  (missing:  PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
Could NOT find JPEG  (missing:  JPEG_LIBRARY JPEG_INCLUDE_DIR)
Boost version: 1.42.0
Found the following Boost libraries:
  python
  filesystem
  serialization
  system
  date_time
Could NOT find PythonLibs  (missing:  PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
Python not found, using internal
Found Python libraries in D:/Okke/documents/universiteit/autonomous 
agents/opennero/external/include/Python and python25.lib
CMake Warning (dev) at source/CMakeLists.txt:62 (LINK_DIRECTORIES):
  This command specifies the relative path

    optimized

  as a link directory.

  Policy CMP0015 is not set: link_directories() treats paths relative to the
  source dir.  Run "cmake --help-policy CMP0015" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at source/CMakeLists.txt:62 (LINK_DIRECTORIES):
  This command specifies the relative path

    debug

  as a link directory.

  Policy CMP0015 is not set: link_directories() treats paths relative to the
  source dir.  Run "cmake --help-policy CMP0015" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.
======================================================

There are directories in my /build directory, but they are mostly empty.

Original comment by okke.formsma on 15 Apr 2010 at 10:43

GoogleCodeExporter commented 9 years ago
There is a flag in CMake, -WNo-dev, which can be set in the CMake gui in the 
options 
menu.

After enabling this, I could configure and generate with CMake.

Which version of CMake are you using? I'm at the most recent version (2.8.1).

Original comment by okke.formsma on 15 Apr 2010 at 11:59

GoogleCodeExporter commented 9 years ago
Both Python and Boost have to be installed on the system in order for the code 
to be 
built. If they are not installed, they won't be found and cmake won't be able 
to 
configure.

The first part of this problem stems from boost binaries not being installed. 
Your 
solution to that is correct.

The second part of the problem stems from Python not being installed. The 
solution is 
to install Python from www.python.org.

The third part of the problem is just a warning having to do with the more 
recent 
version of cmake. I am closing this bug as invalid, however, we might need to 
make 
the instructions more clear.

Original comment by ikarpov on 15 Apr 2010 at 2:55

GoogleCodeExporter commented 9 years ago
I now have both boost and python 2.6.2 installed. This does not solve the 
problem. I 
think this might be related to issue 3.

Original comment by okke.formsma on 15 Apr 2010 at 7:56