[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: |
Thu, 23 Jun 2016 10:40:16 +0900 (JST) |
----- Original Message -----
> From: Tatsuro MATSUOKA
> To: Abhinav Tripathi
> Cc: "Octave-maintainer; "mtmiller
> Date: 2016/6/23, Thu 08:46
> Subject: Re: Building PyTave on windows - cygwin
> I could install numpy.
> Thanks!
>
> Tatsuro
In configure of Pytave the numpy test is passed (Thanks to Abhinav!)
Current configure command
export PATH=$PATH:/c/msys64_gcc530/usr/bin:/c/Python27:/c/Python27/scripts
export CPPFLAGS='-I/c/Python27/include
-I/d/usr/Tatsu/program/Pytave/PytaveBuild/boost/boost_1_16_inst/include'
export LDFLAGS='-L/c/Python27/libs
-L/d/usr/Tatsu/program/Pytave/PytaveBuild/boost/boost_1_16_inst/lib'
../pytave/configure LIBS="-L/c/Python27/libs"
--prefix=/d/usr/Tatsu/program/Pytave/PytaveInst
--with-octave=/c/octave/octave-4.1.0plus.2016-06-08-08-23 \
--build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 \
--with-boost=/d/usr/Tatsu/program/Pytave\/PytaveBuild/boost/boost_1_16_inst
checking whether linking to numpy library works... yes
checking build system type... x86_64-w64-mingw32
checking host system type... x86_64-w64-mingw32
checking for boostlib >= 1.20.0... yes
checking whether the Boost::Python library is available... yes
checking whether boost_python is the correct library... no
checking whether boost_python is the correct library... (cached) no
checking whether boost_python3 is the correct library... no
configure: error: in `/d/usr/Tatsu/program/Pytave/PytaveBuild/Pytave/build':
configure: error: unable to find Boost::Python development files
Corresponding part of config.log (some parts are omitted.)
configure:6179: x86_64-w64-mingw32-g++ -std=gnu++11 -c -g -O2
-I/c/Python27/include
-I/d/usr/Tatsu/program/Pytave/PytaveBuild/boost/boost_1_16_inst/include
-I/d/usr/Tatsu/program/Pytave/PytaveBuild/boost/boost_1_16_inst/include/boost-1_61
conftest.cpp >&5
configure:6179: $? = 0
configure:6181: result: yes
configure:6252: checking whether the Boost::Python library is available
configure:6270: x86_64-w64-mingw32-g++ -std=gnu++11 -c -g -O2
-I/d/usr/Tatsu/program/Pytave/PytaveBuild/boost/boost_1_16_inst/include/boost-1_61
-Ic:\Python27\include -I/c/Python27/include
-I/d/usr/Tatsu/program/Pytave/PytaveBuild/boost/boost_1_16_inst/include
conftest.cpp >&5
configure:6270: $? = 0
configure:6278: result: yes
configure:6297: checking whether boost_python is the correct library
configure:6316: x86_64-w64-mingw32-g++ -std=gnu++11 -o conftest.exe -g -O2
-I/d/usr/Tatsu/program/Pytave/PytaveBuild/boost/boost_1_16_inst/include/boost-1_61
-Ic:\Python27\include -I/c/Python27/include
-I/d/usr/Tatsu/program/Pytave/PytaveBuild/boost/boost_1_16_inst/include
-L/c/Python27/libs
-L/d/usr/Tatsu/program/Pytave/PytaveBuild/boost/boost_1_16_inst/lib
conftest.cpp -lboost_python -L/c/Python27/libs -Lc:\Python27\Lib\config
-lpython27 >&5
C:\Users\MATSUO~1\AppData\Local\Temp\ccIczhLD.o: In function `inittest':
D:\usr\Tatsu\program\Pytave\PytaveBuild\Pytave\build/conftest.cpp:17: undefined
reference to `__imp__ZN5boost6python6detail11init_moduleEPKcPFvvE'
collect2.exe: error: ld returned 1 exit status
configure:6316: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "pytave"
| #define PACKAGE_TARNAME "pytave"
| #define PACKAGE_VERSION "dev"
| #define PACKAGE_STRING "pytave dev"
| #define PACKAGE_BUGREPORT "https://bitbucket.org/mtmiller/pytave/issues"
| #define PACKAGE_URL ""
| #define HAVE_OCTAVE 1
| #define OCTAVE_INCLUDEDIR
"C:\octave\octave-4.1.0plus.2016-06-08-08-23\include\octave-4.1.0+"
| #define OCTAVE_LIBRARYDIR
"C:\octave\octave-4.1.0plus.2016-06-08-08-23\lib\octave\4.1.0+"
| #define HAVE_PYTHON "27"
| #define HAVE_BOOST /**/
| #define HAVE_BOOST_PYTHON /**/
| /* end confdefs.h. */
|
| #include <boost/python/module.hpp>
| BOOST_PYTHON_MODULE(test) { throw "Boost::Python test."; }
| int
| main ()
| {
|
| ;
| return 0;
| }
The origin of failure is
D:\usr\Tatsu\program\Pytave\PytaveBuild\Pytave\build/conftest.cpp:17: undefined
reference to `__imp__ZN5boost6python6detail11init_moduleEPKcPFvvE'
This kind of undefined reference error sometimes happens on windows build.
I do not have a good solution at the moment.
(Sometimes dynamic link library will solve the problem but I failed to build
the dynamic link libraries boost_python.
I do not know the reason)
Tatsuro
- Re: Building PyTave on windows - cygwin, (continued)
- Re: Building PyTave on windows - cygwin, Tatsuro MATSUOKA, 2016/06/20
- Re: Building PyTave on windows - cygwin, Abhinav Tripathi, 2016/06/20
- Re: Building PyTave on windows - cygwin, Abhinav Tripathi, 2016/06/20
- Re: Building PyTave on windows - cygwin, Tatsuro MATSUOKA, 2016/06/20
- Re: Building PyTave on windows - cygwin, Tatsuro MATSUOKA, 2016/06/21
- Re: Building PyTave on windows - cygwin, Tatsuro MATSUOKA, 2016/06/21
- Re: Building PyTave on windows - cygwin, Tatsuro MATSUOKA, 2016/06/22
- Re: Building PyTave on windows - cygwin, Tatsuro MATSUOKA, 2016/06/22
- Re: Building PyTave on windows - cygwin, Abhinav Tripathi, 2016/06/22
- Re: Building PyTave on windows - cygwin, Tatsuro MATSUOKA, 2016/06/22
- Re: Building PyTave on windows,
Tatsuro MATSUOKA <=
- Re: Building PyTave on windows, Tatsuro MATSUOKA, 2016/06/24
- Re: Building PyTave on windows, Tatsuro MATSUOKA, 2016/06/25
- Re: Building PyTave on windows, Tatsuro MATSUOKA, 2016/06/25
- Re: Building PyTave on windows, Tatsuro MATSUOKA, 2016/06/25
- Re: Building PyTave on windows, Tatsuro MATSUOKA, 2016/06/25
- Re: Building PyTave on windows - cygwin, Abhinav Tripathi, 2016/06/27
- Re: Building PyTave on windows - cygwin, Mike Miller, 2016/06/27
- Re: Building PyTave on windows - cygwin, Abhinav Tripathi, 2016/06/28
- Re: Building PyTave on windows - cygwin, Abhinav Tripathi, 2016/06/28
- Re: Building PyTave on windows - cygwin, Mike Miller, 2016/06/28