Home > Fatal Error > Fatal Error Boost/python.hpp

Fatal Error Boost/python.hpp

c++ ubuntu gcc boost boost-python share|improve this question asked Nov 6 '13 at 11:30 Phorce 1,22311741 First, In all the examples I see and in my code there is Do you know how to fix this issue? Reply ↓ rseed42 February 22, 2014 at 4:02 pm Thanks, dude Reply ↓ Menaka March 19, 2014 at 10:18 am hi! It almost feels like it was crafted not to be used by anyone but the core developers. http://bashprofile.net/fatal-error/fatal-error-boost-smart-ptr-hpp.html

Is there any job that can't be automated? Reply ↓ Ross February 28, 2013 at 4:59 pm Craig, I expect you will get lots of traffic with your solution. I've successfully run Build a Simple Program Using Boost from the tutorial, so I know that boost python is installed on my system. The following directory should be added to compiler include paths: /home/gg/Downloads/DOWNLOAD/test/boost_1_57_0 The following directory should be added to linker library paths: /home/gg/Downloads/DOWNLOAD/test/boost_1_57_0/stage/lib I added also "b2 --debug-configuration" now above :) comment:5 http://stackoverflow.com/questions/1771063/no-such-file-or-directory-error-with-boost-python

You can use a build system like CMake to find the dependencies and sort out the compiler commands for you. Clone in SourceTree Atlassian SourceTree is a free Git and Mercurial client for Windows. Can you add "project-config.jam" too? We recommend upgrading to the latest Safari, Google Chrome, or Firefox.

  1. Hope this helps Hari and Alam… Reply ↓ Leave a Reply Cancel reply Search for: Pages About Craig Finch GPG Public Key Open-source tool chain Portfolio What is a shock solution?
  2. If Dumbledore is the most powerful wizard (allegedly), why would he work at a glorified boarding school?
  3. You should find the path to this library on your system and provide that path to the linker with a -L flag as you have done with the other library paths.
  4. std::string greet() { return "hello, world"; } int square(int number) { return number * number; } } #include using namespace boost::python; BOOST_PYTHON_MODULE(getting_started1) { // Add regular functions to the module.
  5. Let me know if there are any further problems.
  6. I am using Python3.4.3 on Ubuntu15.10: (cv) [email protected]:~/computer_vision/py-faster-rcnn/caffe-fast-rcnn$ make -j8 && make pycaffe PROTOC src/caffe/proto/caffe.proto CXX src/caffe/blob.cpp CXX src/caffe/data_reader.cpp CXX src/caffe/layer.cpp CXX src/caffe/solvers/adadelta_solver.cpp CXX src/caffe/solvers/rmsprop_solver.cpp CXX src/caffe/solvers/adagrad_solver.cpp CXX src/caffe/solvers/nesterov_solver.cpp CXX src/caffe/solvers/sgd_solver.cpp
  7. It worked for me.
  8. The minimal CMakeLists.txt to use CMake with a boost python project is this: project (MyProject) cmake_minimum_required(VERSION 2.8) find_package(PythonLibs) include_directories (${PYTHON_INCLUDE_DIRS}) find_package(Boost 1.45.0 COMPONENTS python) include_directories (${Boost_INCLUDE_DIRS}) add_library ( mylibinterface SHARED mylib.cpp
  9. RazvanRanca pushed a commit to RazvanRanca/caffe that referenced this issue Nov 4, 2014 crizCraig

    In it, you'll get: The week's top questions and answers Important community announcements Questions that need answers see an example newsletter By subscribing, you agree to the privacy policy and terms Tutorials and Examples Unfortunately, the Boost.Python documentation is not written for beginners, and there is not a lot of help on other web sites. Thanks again for the tutorial, simple and to the point! http://stackoverflow.com/questions/15136671/unable-to-build-boost-python Removing elements from an array that are in another array How to handle a senior developer diva who seems unaware that his skills are obsolete?

    and try to close it. Reload to refresh your session. Boost.Python provides seamless interoperability between C++ and Python. The -export-dynamic option is a linker (LD) flag, NOT a compiler (GCC) flag.

    How to deal with players rejecting the question premise Unusual keyboard in a picture What's the most recent specific historical element that is common between Star Trek and the real world? https://github.com/BVLC/caffe/issues/489 Reply ↓ Akim March 17, 2015 at 9:53 am You should rather call python-config (with -ldflags, -libs etc.) to get the flags to use. The compile errors I'm getting are similar to this: gcc.compile.c++ bin.v2/libs/python/build/gcc-4.8.1/release/link-static/threading-multi/object/function_doc_signature.o In file included from ./boost/python/detail/prefix.hpp:13:0, from ./boost/python/converter/registrations.hpp:8, from libs/python/src/object/function_doc_signature.cpp:9: ./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory # include Makefile:565: recipe for target '.build_release/src/caffe/layer_factory.o' failed make: *** [.build_release/src/caffe/layer_factory.o] Error 1 make: *** Waiting for unfinished jobs....

    codetrash commented May 30, 2014 just this : export PYTHONPATH=/path/to/caffe/python and it works Cheng-Wang commented May 30, 2014 Hi, codetrash, I typed export PYTHONPATH=/home/XXXX/Caffe/python and make pycaffe, but I still get check over here You signed out in another tab or window. I've been trying to get your files to compile, but I'm having a few Makefile issues. Going to be away for 4 months, should we turn off the refrigerator or leave it on with water inside?

    Earlier, when I ran to compile using ./b2 or ./bjam, I was getting error like error: No best alternative for /python_for_extensions next alternative: required properties: 2.6 linux matched next alternative: required giving hollow objects a thickness Why is the spacesuit design so strange in Sunshine? This did the trick for me. http://bashprofile.net/fatal-error/fatal-error-boost-program-options-hpp.html CAD/CAM IGES file reader LaTeX Lighting Portfolio Photography Python Basics: Tutorials and Examples Boost.python Numpy example Linking Python and C++ with Boost.python Sage Beginner's Guide: Code and Errata Scientific Computing Alternate

    asked 3 years ago viewed 1694 times active 3 years ago Related 13Visual Studio not auto-building when I press the debug button2How to build Ubuntu packages, so the install layout will Thanks in anticipation. But it is giving me following error: ImportError: No module named hello_ext I am not sure whether Boost Python is installed on my system.

    asked 3 years ago viewed 5995 times active 1 year ago Get the weekly newsletter!

    You signed out in another tab or window. gcc.compile.c++ bin.v2/libs/python/build/gcc-4.1.2/release/link-static/threading multi/numeric.o In file included from ./boost/python/detail/prefix.hpp:13, from ./boost/python/numeric.hpp:8, from libs/python/src/numeric.cpp:6: ./boost/python/detail/wrap_python.hpp:50:23: error: pyconfig.h: No such file or directory ./boost/python/detail/wrap_python.hpp:75:24: error: patchlevel.h: No such file or directory ./boost/python/detail/wrap_python.hpp:78:2: error: #error Attachments boost.log (176.6 KB) - added by tele 19 months ago. Just in case if anyone uses Debian aswell - squeeze has a python-dev and python2.6-dev package (cost me another 5 minutes of looking around for a fix ;) –tr9sh Aug 19

    How do I help minimize interruptions during group meetings as a student? Reply ↓ Nima Hazar May 26, 2014 at 11:30 pm in the Makefile try -lboost_python instead of -lboost_python-$(PYTHON_VERSION) In my case the boost_python library name does not have the python version comment:9 Changed 19 months ago by steven_watanabe The offending code in python.jam is includes ?= $(prefix)/include/python$(version) ; A better workaround is to edit project-config.jam to pass the correct include path explicitly. weblink Cheng-Wang commented May 30, 2014 same error...

    Second, Are you sure your path is correct? How do investigators always know the logged flight time of the pilots? im using CPU /usr/bin/g++ -shared -o python/caffe/_caffe.so python/caffe/_caffe.cpp \ build/lib/libcaffe.a -pthread -fPIC -DNDEBUG -O2 -I/usr/local/include/python2.7 - I/usr/local/lib/python2.7/dist- packages/numpy/core/include -I/usr/local/include -Ibuild/src -I./src -I./include -I/usr/local/cuda/include -L/usr/local/lib -L/usr/local/lib -L/usr/lib -L/usr/local/cuda/lib64 - L/usr/local/cuda/lib -lcudart -lcublas ardila commented Jul 23, 2014 Also solve my issue, thank you yanchen036 commented Aug 8, 2014 Thanks @hsinfu , it works!

    boost.proj.conf.jam.log (52.9 KB) - added by tele 19 months ago. You signed out in another tab or window. After searching around I found that you need to install python-devel to get pyconfig.h share|improve this answer answered Nov 16 '14 at 15:38 Ben 3851312 add a comment| Your Answer EvenSt-ring C ode - g ol!f Exploded Suffixes A better way to evaluate a certain determinant Digital Diversity Physically locating the server Sed replace specific line in file Going to be

    Isn't that more expensive than an elevated system? Use the caffe-users list instead.