polarbearzoo / maidsafe-dht

Automatically exported from code.google.com/p/maidsafe-dht
0 stars 0 forks source link

Python libs #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello all.

I have downloaded maidsafe-dht sources and try to compile it.

1. cd src/build/Linux
2. cmake ../..

I regularry have problem. Could not find PythonLibs (missing 
PYTHON_LIBRARIES). I try explicitly define path to python libraries - 
cmake ../../ -ВPYTHON_LIBRARIES=/lib/python2.5   , but problem remain 
unresolved.

What wrong???

I can't build your product. 

Very thanks.

Original issue reported on code.google.com by oleg.go...@gmail.com on 10 Feb 2010 at 11:05

GoogleCodeExporter commented 9 years ago
I misprint -> cmake ../../ -DPYTHON_LIBRARIES=/lib/python2.5

Original comment by oleg.go...@gmail.com on 10 Feb 2010 at 11:54

GoogleCodeExporter commented 9 years ago
Can you let us know what OS/compiler you are using. 
It is safe to comment out the python libs requirement. We will commit a change 
to
remove the requirement of python libs.  In the maentime please just put a hash 
in at
the start of line 338 of the CMakeLists.txt file in the src directory.

Original comment by irvine.d...@gmail.com on 11 Feb 2010 at 11:04

GoogleCodeExporter commented 9 years ago
Excuse me. I forget to give this information.

Os WinXp, Cygwin - compiler. 

Today I try to compile maidsafe-dht on Ubuntu Linux. Problem is the same.

Original comment by oleg.go...@gmail.com on 11 Feb 2010 at 12:51

GoogleCodeExporter commented 9 years ago
No problem thanks for that, a commit later today will fix this issue, but in 
the 
meantime if you comment out the line then you should be fine. Thanks again for 
your 
patience in this matter, were on it !

Original comment by irvine.d...@gmail.com on 11 Feb 2010 at 1:12

GoogleCodeExporter commented 9 years ago
Thanks for advice.

I comment 338 line as you say. But configure still incomplete.

I invoke cmake ../..    This is output.

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

Building a package which is OK to release.
------------------------------------------
CMake Error at /cygdrive/d/Distrib/Programming/cmake-2.8.0/cmake-2.8.0/Modules/
FindBoost.cmake:894 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.41.0

  Boost include path: /usr/include

  The following Boost libraries could not be found:

          boost_date_time
          boost_filesystem
          boost_thread
          boost_program_options
          boost_system
          boost_regex

  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:113 (FIND_PACKAGE)

Not using GLOG
-- Found python executable: style checking enabled.
-- Found library /lib/librt.a
-- Found library /lib/libc.a
-- Found library /lib/libm.a
-- Found library /lib/libdl.a
-- Found library /lib/libpthread.a
================================================================================

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

CMake Warning at CMakeLists.txt:683 (MESSAGE):
  Cannot find
  /cygdrive/d/Work/workspace/maidsafe/src/build/Linux/bin/TESTupnp

CMake Warning at CMakeLists.txt:683 (MESSAGE):
  Cannot find
  /cygdrive/d/Work/workspace/maidsafe/src/build/Linux/bin/TESTnatpmp

CMake Warning at CMakeLists.txt:683 (MESSAGE):
  Cannot find
  /cygdrive/d/Work/workspace/maidsafe/src/build/Linux/bin/TESTbase

CMake Warning at CMakeLists.txt:683 (MESSAGE):
  Cannot find
  /cygdrive/d/Work/workspace/maidsafe/src/build/Linux/bin/TESTknode

CMake Warning at CMakeLists.txt:683 (MESSAGE):
  Cannot find
  /cygdrive/d/Work/workspace/maidsafe/src/build/Linux/bin/TESTkademlia

CMake Warning at CMakeLists.txt:683 (MESSAGE):
  Cannot find
  /cygdrive/d/Work/workspace/maidsafe/src/build/Linux/bin/TESTtransport

CMake Warning at CMakeLists.txt:683 (MESSAGE):
  Cannot find
  /cygdrive/d/Work/workspace/maidsafe/src/build/Linux/bin/TESTrpcprotocol

Run cmake again after make to pick up tests.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Package version is set to "Thu110210"
================================================================================
Tests included: "BEH"
    To include all tests,          cmake ../.. -DMAIDSAFE_TEST_TYPE=_
    To include behavioural tests,  cmake ../.. -DMAIDSAFE_TEST_TYPE=BEH
    To include functional tests,   cmake ../.. -DMAIDSAFE_TEST_TYPE=FUNC
================================================================================
Build type is set to "Release"
    To alter this (e.g. to Debug), cmake ../.. -DCMAKE_BUILD_TYPE=Debug
    Options are Release, Debug, RelWithDebInfo, MinSizeRel
================================================================================

Install directory is set to "Maidsafe"
================================================================================
Configuring incomplete, errors occurred!!!

Original comment by oleg.go...@gmail.com on 11 Feb 2010 at 1:58

GoogleCodeExporter commented 9 years ago
But I have installed Boost 1.41 on my computer. I try   

cmake -DBoost_LIBRARYDIR=/home/Admin/boost1_41_0/stage/lib ../..

But error still remain.

Original comment by oleg.go...@gmail.com on 11 Feb 2010 at 2:07

GoogleCodeExporter commented 9 years ago
I have attach file with verbose output

Original comment by oleg.go...@gmail.com on 11 Feb 2010 at 2:14

Attachments:

GoogleCodeExporter commented 9 years ago
Hi Can you try cmake ..\.. -DBOOST_ROOT=<installed location of boost> 
You should be in src/build/<OS>/ and run cmake from there 

Hope this helps
David

Original comment by irvine.d...@gmail.com on 11 Feb 2010 at 2:34

GoogleCodeExporter commented 9 years ago
Don't help.

I attach file in  previous post . Open it and you will see, that ,at first, 
cmake 
print - "No boost libraries were found" and then cmake print "Found Boost 1_41"

Original comment by oleg.go...@gmail.com on 11 Feb 2010 at 3:09

GoogleCodeExporter commented 9 years ago
Can you tell me where you installed the boost libraries to and if you used the 
cmake 
or bjam install method. This seems to be an error in cmake FindBoost module. 

I assume this is the Linux box now ?

Original comment by irvine.d...@gmail.com on 11 Feb 2010 at 3:19

GoogleCodeExporter commented 9 years ago
I use cygwin and work under cygwin enviroment. Path to boost libararies - /home/
Admin/boost1_41_0.    To build boost libraries I used bjam method. 

Original comment by oleg.go...@gmail.com on 11 Feb 2010 at 3:25

GoogleCodeExporter commented 9 years ago
I see we are currently looking for static versions of the boost libraries. 
Perhaps 
these are not compiled.

Original comment by irvine.d...@gmail.com on 11 Feb 2010 at 3:41

GoogleCodeExporter commented 9 years ago
Can I check if that worked for you ? (compiling the static versions of the 
boost 
libraries)

Original comment by irvine.d...@gmail.com on 12 Feb 2010 at 1:13

GoogleCodeExporter commented 9 years ago
I build boost libraries with static option by means of invoke a command -> bjam 
--
toolset=gcc --link=static. Then cmake ../.. -DBOOST_ROOT=/home/Admin/
boost1_41_0      But problem still unresolved.

Original comment by oleg.go...@gmail.com on 12 Feb 2010 at 7:23

GoogleCodeExporter commented 9 years ago
Perhaps problem in cmake????

Original comment by oleg.go...@gmail.com on 12 Feb 2010 at 7:32

GoogleCodeExporter commented 9 years ago
This seems to be a problem in cmake, we will work it out though, I wonder if by 
not 
installing the libraries to a default place (usr/lib or usr/local/lib) 
libconfig has 
not picked them up. I would think the findboost module in cmake would work for 
a 
situation like you have here. 

Is it possible for you to install boost to a prefix of /usr ? I realise this is 
not 
great and perhaps /use/local is preferred, but as a test. 

Really sorry your having these issues but it does help us to get feedback like 
this.

Original comment by irvine.d...@gmail.com on 12 Feb 2010 at 8:17

GoogleCodeExporter commented 9 years ago
Hello friends.

I had install boost libraries with --prefix=/usr     But problem stiil 
unresolved.
I had intstall cmake 2.6.4 but problem is same. What's wrong
This is output

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

Building a package which is OK to release.
------------------------------------------
CMake Error at CMakeLists.txt:145 (MESSAGE):

  Found Boost headers at /cygdrive/c/cygwin/usr/include/ but could not find
  Boost "date_time" library.

  Required Boost libraries are "date_time", "filesystem", "program_options",
  "system" and "thread".

  You can download Boost libraries at http://www.boost.org

  If the required Boost libraries are already installed, run:

  cmake ../..  -DBOOST_LIB_DIR=<Path to Boost library directory> and/or

  cmake ../..  -DBOOST_INC_DIR=<Path to Boost include directory>

-- Configuring incomplete, errors occurred! 

Original comment by oleg.go...@gmail.com on 16 Feb 2010 at 10:16

GoogleCodeExporter commented 9 years ago
Hi can you confirm there are boost libraries in /cygdrive/c/cygwin/usr/lib/

The names should be libboost_date_time XXX etc. If you can ls these lib names 
we can 
take a look here. Sorry again for the trouble I am sure were doing something we 
should not be and this will enable us to fix it. 

FYI we use mingw to compile all our windows code although we are working to get 
msvc 
going. 

Original comment by irvine.d...@gmail.com on 16 Feb 2010 at 1:10

GoogleCodeExporter commented 9 years ago
I am marking as fixed for the moment till we hear more. The pythonlib and paths 
to 
libs have been amended now. 

Original comment by irvine.d...@gmail.com on 19 Feb 2010 at 5:43