Thanks Nat.
I'm wondering if there is a powerpc built binary including context to download?


On Thursday, June 5, 2014 8:25 AM, "boost-users-request@lists.boost.org" <boost-users-request@lists.boost.org> wrote:


Send Boost-users mailing list submissions to
    boost-users@lists.boost.org

To subscribe or unsubscribe via the World Wide Web, visit
    http://lists.boost.org/mailman/listinfo.cgi/boost-users
or, via email, send a message with subject or body 'help' to
    boost-users-request@lists.boost.org

You can reach the person managing the list at
    boost-users-owner@lists.boost.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Boost-users digest..."


Today's Topics:

  1. Re: [Python]compiling python library (Mikl?s T?th)
  2. Re: is boost context supported on powerpc?- (Nat Goodspeed)
  3. Re: Fwd: Lexical cast between narrow and wide strings
      (Nat Goodspeed)
  4. Re: [Python]compiling python library (Erik H)


----------------------------------------------------------------------

Message: 1
Date: Thu, 5 Jun 2014 13:18:44 +0200
From: Mikl?s T?th <spiralfuzet@gmail.com>
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] [Python]compiling python library
Message-ID:
    <CAHsDByksou9LpheA6g-Napu6GPKjbAdtYFZeC2psuRhRCUDivQ@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi Erik,

Unfortunatly Visual Studio is not an option for me.

I didn't find this page but as I understand it helps to install python libs
(extensions) with mingw. What I try to do is build python from src to get
an appropriate static library.
I can link it with my Qt toolchain (Mingw 4.6.3) and it compiles without
error, but it fails to run.
I double check it. All of my libs and tools are 32-bit.

Thank you very much for your help.

Regards,
Mikl?s


2014-06-04 18:50 GMT+02:00 Erik H <ice.rikh@gmail.com>:

> This is educational for me; to minimize pain, I settled on visual studio +
> intel compiler long ago whenever I am coerced into windows development.
>
> You mentioned that did some surfing; did you encounter this page
> <http://www.secker.nl/2012/03/08/setup-python-2-7-2-and-mingw-on-windows-xp/>?
> Apparently, mingw should be able to link against the standard, visual
> studio compiled python lib.  Which would be a blessing for you if it
> works... Are you trying to build 32-bit binaries linked against 64-bit
> python libs by any chance?
>
> If you don't get any joy, I'll try setting up an official python binaries
> + mingw environment on my windwoes system at home after work today or
> tomorrow.  Are you strictly targeting 2.7?
>
> -Erik
>
>
> On Wed, Jun 4, 2014 at 3:07 AM, Mikl?s T?th <spiralfuzet@gmail.com> wrote:
>
>> Hi Erik,
>>
>> Thanks for the response.
>> Yes I'm using makefile but I think the problem is different.
>> Here is the gcc command that fails:
>> gcc -c -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall
>> -Wstrict-prototypes  -I. -IInclude -I./Include  -DPy_BUILD_CORE -o
>> Python/asdl.o Python/asdl.c
>> It has a -I./Include argument.
>>
>> So, I surf the Internet (a lot) and I found that at initial there were no
>> autotool support for installing python from source.
>> Later I found a Python 3.4 page were I could download an src setup for
>> mingw installation. Unfortunatly that doesn't work either.
>> So I reinstalled my Python and somehow I could link the library to my
>> project. (I don't know how this possible, but the latest version of 2.7
>> works with my project. Blind luck I guess.) I could use
>> PyRun_SimpleString but the PyRun_SimpleFileEx call crashes for some
>> reason.
>> Than I tried boost::python and it crashes aswell at the first object
>> result = eval("5/2"); call.
>> (I didn't forget to call Py_Initialize();).
>>
>> Any suggestions?
>>
>> Thanks,
>> Mikl?s
>>
>>
>> 2014-06-03 23:18 GMT+02:00 Erik H <ice.rikh@gmail.com>:
>>
>> Hi Mikl?s,
>>>
>>> Are you using a makefile?  If so, it looks like you need to
>>> add -I/cygdrive/e/INSTALL/python_src/Python-2.7.6/Include to the Makefile's
>>> CFLAGS or CC variable, or somehow ensure that
>>> -I/cygdrive/e/INSTALL/python_src/Python-2.7.6/Include is passed to the
>>> compiler in any case.
>>>
>>> Regards,
>>> Erik
>>>
>>>
>>> On Mon, Jun 2, 2014 at 3:17 AM, Mikl?s T?th <spiralfuzet@gmail.com>
>>> wrote:
>>>
>>>> Hi!
>>>>
>>>> Any updates on this?
>>>> I get the following error:
>>>>
>>>> /cygdrive/e/INSTALL/python_src/Python-2.7.6
>>>> $ mingw32-make
>>>> process_begin: CreateProcess(NULL, /usr/bin/mkdir -p Include, ...) failed.
>>>> make (e=2): The system cannot find the file specified.
>>>> mingw32-make: *** [Include/graminit.h] Error 2
>>>>
>>>> but the corresponding file is there:
>>>>
>>>> /cygdrive/e/INSTALL/python_src/Python-2.7.6
>>>> $ ls Include/g*Include/genobject.h  Include/graminit.h  Include/grammar.h
>>>>
>>>> What am I missing? Any thoughts?
>>>>
>>>> Thanks,
>>>> Mikl?s
>>>>
>>>>
>>>> 2014-05-27 14:06 GMT+02:00 Mikl?s T?th <spiralfuzet@gmail.com>:
>>>>
>>>> Hi All,
>>>>> I want to embed python in my c++ code using boost.python library.
>>>>> As far as I understand I need python headers and libs.
>>>>> So my python27.lib is "incompatible". I want to compile it from code
>>>>> but I failed with mingw32.
>>>>> Could you give me some advice, or links to achieve my goal?
>>>>> I'm using gcc4.6.3 and qt 4.8.2 and boost 1.49 on windows 7.
>>>>> Thanks,
>>>>> Mikl?s
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Boost-users mailing list
>>>> Boost-users@lists.boost.org
>>>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>>>>
>>>
>>>
>>> _______________________________________________
>>> Boost-users mailing list
>>> Boost-users@lists.boost.org
>>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>>>
>>
>>
>> _______________________________________________
>> Boost-users mailing list
>> Boost-users@lists.boost.org
>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users@lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
-------------- next part --------------
HTML attachment scrubbed and removed

------------------------------

Message: 2
Date: Thu, 5 Jun 2014 10:58:30 -0400
From: Nat Goodspeed <nat@lindenlab.com>
To: "boost-users@lists.boost.org" <boost-users@lists.boost.org>
Subject: Re: [Boost-users] is boost context supported on powerpc?-
Message-ID:
    <CAKQaxCbGK68PMpbA_W3zFk=kJx61ss3xL9fszY5y7dZz-7DNgA@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

On Wed, Jun 4, 2014 at 8:07 PM, David Frank <david_frank56@yahoo.com> wrote:

> If it is supported how do I cross compile it from x86 machine, especially
> the assembler code part?

I think we can answer affirmatively as to whether it's supported:
https://github.com/boostorg/context/tree/master/src/asm

This directory appears to contain PowerPC implementations for elf,
macho and xcoff, 32 and 64 bits, and even "universal" for macho.

But I do not know how you would cross-compile (cross-assemble?) that
on an x86 machine, sorry.


------------------------------

Message: 3
Date: Thu, 5 Jun 2014 11:02:27 -0400
From: Nat Goodspeed <nat@lindenlab.com>
To: "boost-users@lists.boost.org" <boost-users@lists.boost.org>
Subject: Re: [Boost-users] Fwd: Lexical cast between narrow and wide
    strings
Message-ID:
    <CAKQaxCapGA6qpeSa0ZETeqpuynEb9x5VgTGn3dWCzkso4rh25A@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

On Thu, Jun 5, 2014 at 2:50 AM, Andrew Marlow <marlow.agents@gmail.com> wrote:

> Do you know what version of boost
> the locale stuff was introduced at?  It doesn't seem to be in 1.42 in the
> same way.

This list:
http://www.boost.org/doc/libs/
includes for each library the Boost release in which it was first
introduced. According to that, Locale was introduced in 1.48.


------------------------------

Message: 4
Date: Thu, 5 Jun 2014 10:24:51 -0500
From: Erik H <ice.rikh@gmail.com>
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] [Python]compiling python library
Message-ID:
    <CAJOi7ysq8OO3JNG5spvmxfJDRsF6m=OEdHPCFAgtLvDibGCo4g@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

But you do want to build a Python lib (extension).  Boost::python uses the
cpython API in the same way as any other python extension and it has the
same requirements.  Just as you should be able to build pyqt with mingw
linking against the official Python binaries, you should be able to build a
boost::python extension with mingw linking against the official Python
binaries.

However, that is all hearsay.  It *should* work, according to *stuff I read
online*.  I will try it at home tonight to confirm/deny this putative
workingness.

Glad to be of help.

-Erik


On Thu, Jun 5, 2014 at 6:18 AM, Mikl?s T?th <spiralfuzet@gmail.com> wrote:

> Hi Erik,
>
> Unfortunatly Visual Studio is not an option for me.
>
> I didn't find this page but as I understand it helps to install python
> libs (extensions) with mingw. What I try to do is build python from src to
> get an appropriate static library.
> I can link it with my Qt toolchain (Mingw 4.6.3) and it compiles without
> error, but it fails to run.
> I double check it. All of my libs and tools are 32-bit.
>
> Thank you very much for your help.
>
> Regards,
> Mikl?s
>
>
> 2014-06-04 18:50 GMT+02:00 Erik H <ice.rikh@gmail.com>:
>
> This is educational for me; to minimize pain, I settled on visual studio +
>> intel compiler long ago whenever I am coerced into windows development.
>>
>> You mentioned that did some surfing; did you encounter this page
>> <http://www.secker.nl/2012/03/08/setup-python-2-7-2-and-mingw-on-windows-xp/>?
>> Apparently, mingw should be able to link against the standard, visual
>> studio compiled python lib.  Which would be a blessing for you if it
>> works... Are you trying to build 32-bit binaries linked against 64-bit
>> python libs by any chance?
>>
>> If you don't get any joy, I'll try setting up an official python binaries
>> + mingw environment on my windwoes system at home after work today or
>> tomorrow.  Are you strictly targeting 2.7?
>>
>> -Erik
>>
>>
>> On Wed, Jun 4, 2014 at 3:07 AM, Mikl?s T?th <spiralfuzet@gmail.com>
>> wrote:
>>
>>> Hi Erik,
>>>
>>> Thanks for the response.
>>> Yes I'm using makefile but I think the problem is different.
>>> Here is the gcc command that fails:
>>> gcc -c -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall
>>> -Wstrict-prototypes  -I. -IInclude -I./Include  -DPy_BUILD_CORE -o
>>> Python/asdl.o Python/asdl.c
>>> It has a -I./Include argument.
>>>
>>> So, I surf the Internet (a lot) and I found that at initial there were
>>> no autotool support for installing python from source.
>>> Later I found a Python 3.4 page were I could download an src setup for
>>> mingw installation. Unfortunatly that doesn't work either.
>>> So I reinstalled my Python and somehow I could link the library to my
>>> project. (I don't know how this possible, but the latest version of 2.7
>>> works with my project. Blind luck I guess.) I could use
>>> PyRun_SimpleString but the PyRun_SimpleFileEx call crashes for some
>>> reason.
>>> Than I tried boost::python and it crashes aswell at the first object
>>> result = eval("5/2"); call.
>>> (I didn't forget to call Py_Initialize();).
>>>
>>> Any suggestions?
>>>
>>> Thanks,
>>> Mikl?s
>>>
>>>
>>> 2014-06-03 23:18 GMT+02:00 Erik H <ice.rikh@gmail.com>:
>>>
>>> Hi Mikl?s,
>>>>
>>>> Are you using a makefile?  If so, it looks like you need to
>>>> add -I/cygdrive/e/INSTALL/python_src/Python-2.7.6/Include to the Makefile's
>>>> CFLAGS or CC variable, or somehow ensure that
>>>> -I/cygdrive/e/INSTALL/python_src/Python-2.7.6/Include is passed to the
>>>> compiler in any case.
>>>>
>>>> Regards,
>>>> Erik
>>>>
>>>>
>>>> On Mon, Jun 2, 2014 at 3:17 AM, Mikl?s T?th <spiralfuzet@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi!
>>>>>
>>>>> Any updates on this?
>>>>> I get the following error:
>>>>>
>>>>> /cygdrive/e/INSTALL/python_src/Python-2.7.6
>>>>> $ mingw32-make
>>>>> process_begin: CreateProcess(NULL, /usr/bin/mkdir -p Include, ...) failed.
>>>>> make (e=2): The system cannot find the file specified.
>>>>> mingw32-make: *** [Include/graminit.h] Error 2
>>>>>
>>>>> but the corresponding file is there:
>>>>>
>>>>> /cygdrive/e/INSTALL/python_src/Python-2.7.6
>>>>> $ ls Include/g*Include/genobject.h  Include/graminit.h  Include/grammar.h
>>>>>
>>>>> What am I missing? Any thoughts?
>>>>>
>>>>> Thanks,
>>>>> Mikl?s
>>>>>
>>>>>
>>>>> 2014-05-27 14:06 GMT+02:00 Mikl?s T?th <spiralfuzet@gmail.com>:
>>>>>
>>>>> Hi All,
>>>>>> I want to embed python in my c++ code using boost.python library.
>>>>>> As far as I understand I need python headers and libs.
>>>>>> So my python27.lib is "incompatible". I want to compile it from code
>>>>>> but I failed with mingw32.
>>>>>> Could you give me some advice, or links to achieve my goal?
>>>>>> I'm using gcc4.6.3 and qt 4.8.2 and boost 1.49 on windows 7.
>>>>>> Thanks,
>>>>>> Mikl?s
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Boost-users mailing list
>>>>> Boost-users@lists.boost.org
>>>>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Boost-users mailing list
>>>> Boost-users@lists.boost.org
>>>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>>>>
>>>
>>>
>>> _______________________________________________
>>> Boost-users mailing list
>>> Boost-users@lists.boost.org
>>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>>>
>>
>>
>> _______________________________________________
>> Boost-users mailing list
>> Boost-users@lists.boost.org
>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users@lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
-------------- next part --------------
HTML attachment scrubbed and removed

------------------------------

Subject: Digest Footer

_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

------------------------------

End of Boost-users Digest, Vol 3819, Issue 2
********************************************