473,225 Members | 787 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,225 software developers and data experts.

Problems with Boost.Python

I'm trying to get Boost.Python to working using the instructions here: http://www.boost.org/libs/python/doc/building.html. I am on step 3.1.4 and am getting a linking error that I can't figure out. This is the error:

Expand|Select|Wrap|Line Numbers
  1. ~/Desktop/boost_1_34_1/libs/python/example/quickstart$ bjam toolset=gcc --verbose-test test
  2. Building Boost.Regex with the optional Unicode/ICU support disabled.
  3. Please refer to the Boost.Regex documentation for more information
  4. (don't panic: this is a strictly optional feature).
  5. ...patience...
  6. ...found 1085 targets...
  7. ...using 1 temp target...
  8. ...updating 5 targets...
  9. ...using <pbin/gcc-4.1.2/debug>extending.so...
  10. capture-output bin/test_ext.test/gcc-4.1.2/debug/test_ext
  11. ====== BEGIN OUTPUT ======
  12. Trying:
  13.     from extending import *
  14. Expecting nothing
  15. ok
  16. Trying:
  17.     hi = hello('California')
  18. Expecting nothing
  19. ok
  20. Trying:
  21.     hi.greet()
  22. Expecting:
  23.     'Hello from California'
  24. ok
  25. Trying:
  26.     invite(hi)
  27. Expecting:
  28.     'Hello from California! Please come soon!'
  29. ok
  30. Trying:
  31.     hi.invite()
  32. Expecting:
  33.     'Hello from California! Please come soon!'
  34. ok
  35. Trying:
  36.     class wordy(hello):
  37.         def greet(self):
  38.             return hello.greet(self) + ', where the weather is fine'
  39. Expecting nothing
  40. ok
  41. Trying:
  42.     hi2 = wordy('Florida')
  43. Expecting nothing
  44. ok
  45. Trying:
  46.     hi2.greet()
  47. Expecting:
  48.     'Hello from Florida, where the weather is fine'
  49. ok
  50. Trying:
  51.     invite(hi2)
  52. Expecting:
  53.     'Hello from Florida! Please come soon!'
  54. ok
  55. 1 items had no tests:
  56.     test_extending.run
  57. 1 items passed all tests:
  58.    9 tests in test_extending
  59. 9 tests in 2 items.
  60. 9 passed and 0 failed.
  61. Test passed.
  62.  
  63. EXIT STATUS: 0
  64. ====== END OUTPUT ======
  65. **passed** bin/test_ext.test/gcc-4.1.2/debug/test_ext.test
  66. gcc.link bin/gcc-4.1.2/debug/embedding
  67. /usr/bin/ld: cannot find -lpython2.5
  68. collect2: ld returned 1 exit status
  69.  
  70.     "g++" -L"/usr/lib" -L"/usr/lib/python2.5/config" -Wl,-R -Wl,"/home/lolomg/Desktop/boost_1_34_1/bin.v2/libs/python/build/gcc-4.1.2/debug" -Wl,-R -Wl,"/usr/lib" -Wl,-R -Wl,"/usr/lib/python2.5/config" -Wl,-rpath-link -Wl,"/home/lolomg/Desktop/boost_1_34_1/bin.v2/libs/python/build/gcc-4.1.2/debug" -o "bin/gcc-4.1.2/debug/embedding" -Wl,--start-group "bin/gcc-4.1.2/debug/embedding.o" "../../../../bin.v2/libs/python/build/gcc-4.1.2/debug/libboost_python-gcc41-d-1_34_1.so.1.34.1"   -lpython2.5 -lutil -lpthread -ldl -Wl,--end-group -g 
  71.  
  72. ...failed gcc.link bin/gcc-4.1.2/debug/embedding...
  73. ...skipped <pbin/test_embed.test/gcc-4.1.2/debug>test_embed.run for lack of <pbin/gcc-4.1.2/debug>embedding...
  74. ...failed updating 1 target...
  75. ...skipped 2 targets...
  76. ...updated 2 targets...
  77.  
I using Ubuntu 7.04 and Python 2.5. I've tried configuring the .jam file, but it didn't seem to help. Any help would be appreciated--I'm stuck here, and I'm a bit hazy on compilers/linkers to begin with (I haven't taken the compiler class in school yet). Thanks.
Sep 11 '07 #1
0 2068

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Gouda Man | last post by:
I'm planning to write a large program that will have advanced scripting in python in which the scripter will subclass c++ objects to add functionality. this leads me to boost.python (if you dont...
0
by: Li Daobing | last post by:
I can't use .def(str(self)) I write a simple example, without `str', I can build it well, but with this one, I can't build //Rational.cpp #include <boost/python.hpp> #include <iostream> ...
0
by: Andrew Ayre | last post by:
Hi, I can't seem to get the library built, and any help is greatly appreciated. Here is the info: Windows XP Borland C++ Builder 5 Latest Boost source code (downloaded at the weekend) Windows...
1
by: Max Wilson | last post by:
Hi, Has anyone here built Boost.Python modules under MinGW? I'm trying to build the Boost.Python tutorial under MinGW and getting an error that says it depends on MSVC, which puzzles me because...
11
by: Osiris | last post by:
I have these pieces of C-code (NOT C++ !!) I want to call from Python. I found Boost. I have MS Visual Studio 2005 with C++. is this the idea: I write the following C source file:...
0
by: Osiris | last post by:
My experiences with BOOST on Windows XP and Visual C++ 2005 I'm new to Python. I built software in more than ten other computer languages. I'm not sure if that is not a handicap, when reading...
4
by: Shawn McGrath | last post by:
Hi, I'm trying to expose a C++ class' internals to python via boost::python. I can do integer/boolean functions fine, but as soon as I do a string get/set it craps out. ...
2
by: mr_gees100_peas | last post by:
Hi, I've been trying for days to make either boost.python or swig to work for me. The one I have gotten the closest to is boost. Note that this is for windows XP. I'm not much of an unix person...
0
by: devito | last post by:
hi there, for some days i try to build the boost.python tutorial "hello world" without bjam on winxp by using mingw. so i wrote a *.bat-file like the following: // --- snip...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.