
January 7th, 2013, 08:33 AM
|
|
Registered User
|
|
Join Date: Jan 2013
Posts: 4
Time spent in forums: 50 m 20 sec
Reputation Power: 0
|
|
|
Boost Python and Eclipse PyDev problem
Hi,
When I try to run the practice code from the boost python tutorial in Eclipse's PyDev environment , I get the following error
Quote: ImportError: Shared object "libboost_python.so.1.52.0" not found, required by "libhelloext. |
Despite including the path to that file in the environment variable LD_LIBRARY_PATH.
I also copied the libboost_python.so.1.52.0 file in the same working directory of my python program
Also I included the path to the file in Eclipse's Linked resources property field, same error
This is the tutorial code I'm using
Code:
char const* greet()
{
return "hello, world";
}
#include <boost/python.hpp>
BOOST_PYTHON_MODULE(libhelloext)
{
using namespace boost::python;
def("greet", greet);
}
Eclipse code
Code:
import libhelloext
print hello.greet()
Tried this too
Code:
from libhelloext import *
print hello.greet()
Machine: Unix, boost 1.52, python 2.7
Any suggestion? please
|