Re: gl_extensions compile error

Bruce Sherwood <[email protected]> Thu, 19 Apr 2012 20:48:50 -0600
Newsgroups gmane.comp.python.visualpython.user
Message-ID <CAFDG03i59cnKYVvdAyK-+kWq06EKfzNEaHxwyd_mJDk3Cri6Uw@mail.gmail.com>
I uploaded some improvements to the Mac build instructions in
MAC-OSX.txt. In particular, while there were instructions about
placing the libboost files into dependencies/boost_files/mac_libs, it
didn't say that one also needs to place the boost folder (includes)
into dependencies/boost_files.

Since the version of Python 2.7.3 you have installed from python.org
says it was compiled with gcc 4.2.1, that means that you installed the
32_64 (32-bit/64-bit) version of Python, which will not work with
Visual because the Carbon framework works only with a pure 32-bit
version of Python. The Python 2.7.3 download on the Mac download page
at vpython.org is the one you need to use (the link is to python.org).
I should repeat that I'm actively searching for a solution to the
Carbon issue.

I built the Boost 1.49 libraries for Python 3.2 on the Mac just a few
days ago and didn't see anything about ./b2. Perhaps that is related
to trying to use the 32_64 version of Python?

I apologize for the failings in documentation. I think you're the
first person other than me to use these instructions to build VPython
on the Mac, and you're shaking out some omissions and errors on the
build instructions. Thank you!

Bruce Sherwood

On Thu, Apr 19, 2012 at 4:07 PM, K.-Michael Aye <[email protected]> wrote:
> On 2012-04-19 21:14:03 +0000, K.-Michael Aye said:
>
>> On 2012-04-19 20:47:24 +0000, Bruce Sherwood said:
>>
>>> I've not seen this in building for the Mac starting from a python.org
>>> distribution of Python. Line 50 in src/core/util/gl_extensions.cpp
>>> doesn't look much like the error that's reported, which is puzzling.
>
> Because of this statement I made 'make clean', changed the python dist
> in the makefile to the python.org python 2.7 and tried again, resulting
> in the same error.
>
> One question: python.org's 2.7 python is compiled with GCC 4.2.1:
>
> (master+)[maye@paradigm ~/Dropbox/src/mbuild]$ python
> Python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43)
> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
>
> But in your makefile you state:
>
> # Use 4.0 compiler rather than 4.2 so as to build in a way compatible
> with OSX 10.5
>
> How does that fit with the requirement that the boost libs had to be
> compiled with the same gcc version as the python we are building
> against? Isn't that inconsistent?
>
> As I don't have a g++4.0 available, all my trials are done with g++4.2,
> could this be our difference? Even so, I also need to understand above
> inconsistency, if it exists.
>
> Another oddity: the boost compile is now asking to use ./b2 instead of ./bjam.
> Indeed ./bjam even fails on me completely, while ./b2 only fails for
> the compilation of the .dylibs. The static ones are created fine though.
> But as I am not yet at linking stage that is for sure not the reason
> for the gl_extensions compile error.
>
>
> Michael

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Visualpython-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/visualpython-users