octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building PyTave on windows


From: Tatsuro MATSUOKA
Subject: Re: Building PyTave on windows
Date: Sat, 25 Jun 2016 19:28:02 +0900 (JST)

> Using 32 bit octave 4.1.0+ and libboost_python 32 bit with share build.

> I could complete the configure with some workaround.
> 
> configure:
> ========================================================================
> Pytave is configured with the following setup
> 
> Dependencies
>   Octave ............. 
> C:\octave\octave-4.1.0plus_x86-2016-06-25-08-57\include\octave-4.1.0+
>   Python ............. -Ic:\Python27_32\include
>     library .......... -Lc:\Python27_32\Lib\config -lpython27
>     executable ....... /c/Python27_32/python
>   Boost::Python ...... boost_python
> 
> Features
>   uselocale .......... no
> 
> ========================================================================
> configure: WARNING: This system doesn't have uselocale support.
>            The Octave interpreter will NOT work correctly in any
>            locale but the C (POSIX) locale.  Pytave would use the
>            uselocale function to work around this limitation.  Pytave
>            can be compiled without it but will only work correcly in C
>            (POSIX) locale.
> 
> 
> But at the make
> make[1]: Entering directory 
> `/d/usr/Tatsu/program/Pytave/PytaveBuild/Pytave/build32'
> /bin/sh ./libtool  --tag=CXX   --mode=compile i686-w64-mingw32-g++ 
> -std=gnu++11 
> -DHAVE_CONFIG_H -I. -I../pytave 
>  -IC:\octave\octave-4.1.0plus_x86-2016-06-25-08-57\include\octave-4.1.0+ 
> -IC:\octave\octave-4.1.0plus_x86-2016-06-25-08-57\include\octave-4.1.0+/octave
>  
> -Ic:\Python27_32\include 
> -Ic:\Python27_32\lib\site-packages\numpy\core\include 
> -IC:/Python27_32/include 
> -ID:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include
>  
> -ID:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61
>  
>  -g -O2 -MT _pytave_la-pytave.lo -MD -MP -MF .deps/_pytave_la-pytave.Tpo -c 
> -o 
> _pytave_la-pytave.lo `test -f 'pytave.cc' || echo 
> '../pytave/'`pytave.cc
> libtool: compile:  i686-w64-mingw32-g++ -std=gnu++11 -DHAVE_CONFIG_H -I. 
> -I../pytave 
> -IC:octaveoctave-4.1.0plus_x86-2016-06-25-08-57includeoctave-4.1.0+ 
> -IC:octaveoctave-4.1.0plus_x86-2016-06-25-08-57includeoctave-4.1.0+/octave 
> -Ic:Python27_32include -Ic:Python27_32libsite-packagesnumpycoreinclude 
> -IC:/Python27_32/include 
> -ID:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include
>  
> -ID:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61
>  
> -g -O2 -MT _pytave_la-pytave.lo -MD -MP -MF .deps/_pytave_la-pytave.Tpo -c 
> ../pytave/pytave.cc  -DDLL_EXPORT -DPIC -o .libs/_pytave_la-pytave.o
> ../pytave/pytave.cc:32:24: fatal error: octave/oct.h: No such file or 
> directory
>  #include <octave/oct.h>
> 
> 
> 
> -IC:octaveoctave-4.1.0plus_x86-2016-06-25-08-57includeoctave-4.1.0+ 
> -IC:octaveoctave-4.1.0plus_x86-2016-06-25-08-57includeoctave-4.1.0+/octave 
> -Ic:Python27_32include -Ic:Python27_32libsite-packagesnumpycoreinclude
> 
> 
> It seems that path separators '\' (back slash) are lost and lead to 
> error.
> 
> Mike. 
> 
> What can I do? 
> 
> Tatsuro


Sorry my repeated post.
I manage CPPFLAGS and  Error
fatal error: octave/oct.h: No such file or directory

was disappeared.
But another error appeared



In file included from 
c:\octave\octave-4.1.0plus_x86-2016-06-25-08-57\lib\gcc\i686-w64-mingw32\4.9.3\include\c++\random:38:0,
                 from 
c:\octave\octave-4.1.0plus_x86-2016-06-25-08-57\lib\gcc\i686-w64-mingw32\4.9.3\include\c++\bits\stl_algo.h:66,
                 from 
c:\octave\octave-4.1.0plus_x86-2016-06-25-08-57\lib\gcc\i686-w64-mingw32\4.9.3\include\c++\algorithm:62,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/function/detail/prologue.hpp:13,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/function/function_template.hpp:13,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/function/detail/maybe_include.hpp:13,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/function/function0.hpp:11,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/python/errors.hpp:13,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/python/handle.hpp:11,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/python/args_fwd.hpp:10,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/python/args.hpp:10,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/python.hpp:11,
                 from ../pytave/pytave.cc:29:
c:\octave\octave-4.1.0plus_x86-2016-06-25-08-57\lib\gcc\i686-w64-mingw32\4.9.3\include\c++\cmath:1094:11:
 error: '::hypot' has not been declared
   using ::hypot;


I commented out in lib\gcc\i686-w64-mingw32\4.9.3\include\c++\cmath

1094 //  using ::hypot;
1095 //  using ::hypotf;
1096 //  using ::hypotl;

Build goes further.

Tatsuro



Full message

/bin/sh ./libtool  --tag=CXX   --mode=compile i686-w64-mingw32-g++ -std=gnu++11 
-DHAVE_CONFIG_H -I. -I../pytave  
-IC:\octave\octave-4.1.0plus_x86-2016-06-25-08-57\include\octave-4.1.0+ 
-IC:\octave\octave-4.1.0plus_x86-2016-06-25-08-57\include\octave-4.1.0+/octave 
-Ic:\Python27_32\include -Ic:\Python27_32\lib\site-packages\numpy\core\include 
-IC:/Python27_32/include 
-ID:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include 
-ID:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61
 -IC:/octave/octave-4.1.0plus_x86-2016-06-25-08-57/include/octave-4.1.0+ 
-IC:/octave/octave-4.1.0plus_x86-2016-06-25-08-57/include/octave-4.1.0+/octave 
-Ic:/Python27_32/include -Ic:/Python27_32/lib/site-packages/numpy/core/include  
-g -O2 -MT _pytave_la-pytave.lo -MD -MP -MF .deps/_pytave_la-pytave.Tpo -c -o 
_pytave_la-pytave.lo `test -f 'pytave.cc' || echo '../pytave/'`pytave.cc
libtool: compile:  i686-w64-mingw32-g++ -std=gnu++11 -DHAVE_CONFIG_H -I. 
-I../pytave -IC:octaveoctave-4.1.0plus_x86-2016-06-25-08-57includeoctave-4.1.0+ 
-IC:octaveoctave-4.1.0plus_x86-2016-06-25-08-57includeoctave-4.1.0+/octave 
-Ic:Python27_32include -Ic:Python27_32libsite-packagesnumpycoreinclude 
-IC:/Python27_32/include 
-ID:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include 
-ID:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61
 -IC:/octave/octave-4.1.0plus_x86-2016-06-25-08-57/include/octave-4.1.0+ 
-IC:/octave/octave-4.1.0plus_x86-2016-06-25-08-57/include/octave-4.1.0+/octave 
-Ic:/Python27_32/include -Ic:/Python27_32/lib/site-packages/numpy/core/include 
-g -O2 -MT _pytave_la-pytave.lo -MD -MP -MF .deps/_pytave_la-pytave.Tpo -c 
../pytave/pytave.cc  -DDLL_EXPORT -DPIC -o .libs/_pytave_la-pytave.o
In file included from 
c:\octave\octave-4.1.0plus_x86-2016-06-25-08-57\lib\gcc\i686-w64-mingw32\4.9.3\include\c++\random:38:0,
                 from 
c:\octave\octave-4.1.0plus_x86-2016-06-25-08-57\lib\gcc\i686-w64-mingw32\4.9.3\include\c++\bits\stl_algo.h:66,
                 from 
c:\octave\octave-4.1.0plus_x86-2016-06-25-08-57\lib\gcc\i686-w64-mingw32\4.9.3\include\c++\algorithm:62,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/function/detail/prologue.hpp:13,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/function/function_template.hpp:13,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/function/detail/maybe_include.hpp:13,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/function/function0.hpp:11,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/python/errors.hpp:13,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/python/handle.hpp:11,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/python/args_fwd.hpp:10,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/python/args.hpp:10,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/python.hpp:11,
                 from ../pytave/pytave.cc:29:
c:\octave\octave-4.1.0plus_x86-2016-06-25-08-57\lib\gcc\i686-w64-mingw32\4.9.3\include\c++\cmath:1094:11:
 error: '::hypot' has not been declared
   using ::hypot;
           ^
In file included from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/python/object/make_instance.hpp:9:0,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/python/object/make_ptr_instance.hpp:8,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/python/to_python_indirect.hpp:11,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/python/converter/arg_to_python.hpp:10,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/python/call.hpp:15,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/python/object_core.hpp:14,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/python/args.hpp:25,
                 from 
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/python.hpp:11,
                 from ../pytave/pytave.cc:29:
D:/usr/Tatsu/program/Pytave/PytaveBuild/boost/mingw32/boost_1_16_inst/include/boost-1_61/boost/python/object/instance.hpp:14:36:
 warning: type attributes ignored after type is already defined [-Wattributes]
   struct BOOST_PYTHON_DECL_FORWARD instance_holder;
                                    ^
make[1]: *** [_pytave_la-pytave.lo] Error 1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]