Boost logo

Boost Users :

Subject: Re: [Boost-users] [Python]compiling python library
From: Erik H (ice.rikh_at_[hidden])
Date: 2014-06-03 17:18:52


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_at_[hidden]> 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_at_[hidden]>:
>
> 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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net