473,416 Members | 1,547 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,416 software developers and data experts.

Boost Python tutorial needs MSVC?

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 Boost built using
g++. Here's some of my output:

Student@YGGDRASIL /c/Boost/libs/python/example/tutorial
$ bjam -sTOOLS=mingw -d+2
....found 1508 targets...
....updating 32 targets...
vc-C++
bin\boost\libs\python\build\boost_python.dll\vc-7_1\debug\threading-multi\numeric.obj
'"C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\bin\VCVARS32.BAT"' is not recognized as an internal or
external command,
operable program or batch file.

CALL "C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\bin\VCVARS32.BAT" >nul
"C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\bin\cl"
/Zm800 -nologo /EHsc -c -DBOOST_PYTHON_DYNAMIC_LIB
-DBOOST_PYTHON_SOURCE /Z7 /Od /Ob0 /EHsc /GR /MDd /Op /wd4675
/Zc:forScope /Zc:wchar_t -I"bin\boost\libs\python\build" -I"c:\Boost"
-I"c:\Python24\include"
-Fo"bin\boost\libs\python\build\boost_python.dll\ vc-7_1\debug\threading-multi\numeric.obj"
-Tp"c:\Boost\libs\python\build\../src/numeric.cpp"

[etc.]

1. I'm using the standard Python.org windows Python interpreter for
Python 2.4.3 (Enthought edition), and mingw g++ 3.4.5.
2. PYTHON_ROOT and PYTHON_VERSION have been set to /c/Python24 and 2.4
respectively.
3. I'm running the unmodified Jamfile/Jamrules straight from the Boost
subdirectory, and as you can see I'm using the sTOOLS=gcc option.
4. So why is it looking for Visual Studio and how do I stop it?

Any ideas much appreciated.

-Max Wilson

Dec 20 '06 #1
1 2474
Cancel that--I found the answer.
http://groups.google.com/group/boost...60f2038d6e6cca

Short answer: bjam.exe should not be in /bin or /usr/bin because MinGW
treats programs in there differently. In my case I simply copied
bjam.exe to my working directory, for now.

-Max Wilson

Dec 20 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bren | last post by:
Hi, Pardon my stupid, but I'm having a problem building Boost.Python as per the instructions at http://www.boost.org/libs/python/doc/building.html I got boost-build-2.0-m6.zip from...
1
by: TheDustbustr | last post by:
I'm writing a game in C++ which calls out to python for scripting. I'd like to expose the instance of my Game class (a singleton) to python (so that the instances of Clock, Camera, etc are...
0
by: matt.keyes | last post by:
Hey all, i'm trying to create an application that both embeds and extends python through boost. i've got a rough framework up and running, but now that i'm finally to the python part i'm having...
4
by: Hoop | last post by:
Hi, I have been working in getting Boost.Python running on my PC, seems to work now. I have what I believe is somewhat of basic question here. I am starting on an application that will...
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...
6
by: Soren | last post by:
Hi! I'm trying to extend my python program with some C++ code. Right now I've spent hours just trying to get boost to work! I'm trying to get the example hello.cpp to work. Using Windows XP...
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: Ling | last post by:
I am using boost.python to wrap C++ function which includes directmusic libraries to simply play the midi, but lots of linkage errors "error LNK2001: unresolved external symbol". I wonder if it is...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.