octave-maintainers
[Top][All Lists]
Advanced

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

Re: Building PyTave on windows - cygwin


From: Tatsuro MATSUOKA
Subject: Re: Building PyTave on windows - cygwin
Date: Tue, 28 Jun 2016 08:43:03 +0900 (JST)

----- Original Message -----

> From: "tmacchant
> To: Mike Miller  Abhinav Tripathi 
> Cc: Tatsuro MATSUOKA  "Octave-maintainers
> Date: 2016/6/28, Tue 08:02
> Subject: Re: Building PyTave on windows - cygwin
> 
> --- mtmiller> On Tue, Jun 28, 2016 at 02:03:19 +0530, Abhinav Tripathi wrote:
>>  > Hi,
>>  > I was resuming trying to build pytave on windows. As suggested by 
> Tatsuro,
>>  > I built 32 bit binaries for boost and just used Python27 downloaded 
> from
>>  > official python site.
>>  > After some tweaking (thanks to the config logs) I finally got to the 
> last
>>  > step of ./configure.
>>  > I am getting the error that *linking to octave failed*...
>>  > I have export LDFLAGS='-L/e/boost_1_61_0/stage/lib 
> -L/e/octave_dev/lib32
>>  > -L/e/octave_dev/lib/octave/4.1.0+'
>>  > I tried exporting /e/octave_dev/lib but it gave errors so I exported
>>  > /e/octave_dev/lib32 instead... It solved some problems but still I get 
> some
>>  > errors regarding undefined references!
>>  > .
>>  > In /e/octave_dev/lib/octave/4.1.0+ there are 3 files ending in 
> '.dll.a'...
>>  > I even copied them and renamed the copies to end in '*.a' 
> instead of
>>  > '*.dll.a' but still the same error.
>>  > The log says:
>>  > 
> -----------------------------------------------------------------------------------------------------------------------------------------
>>  > configure:5260: g++ -std=gnu++11 -o conftest.exe -g -O2
>>  > -IE:\octave_dev\include\octave-4.1.0+
>>  > -IE:\octave_dev\include\octave-4.1.0+/octave 
> -I/e/boost_1_61_0
>>  > -I/e/octave_dev/include/octave-4.1.0+
>>  > -I/e/octave_dev/include/octave-4.1.0+/octave
>>  > -LE:\octave_dev\lib\octave\4.1.0+ 
> -L/e/boost_1_61_0/stage/lib
>>  > -L/e/octave_dev/lib32 -L/e/octave_dev/lib/octave/4.1.0+ conftest.cpp
>>  > -loctinterp -loctave  >&5
>>  > 
> C:\Users\ABHINA~1\AppData\Local\Temp\ccDCXdjd.o: In 
> function `main':
>>  > e:\My_Repos\pytave/conftest.cpp:15: undefined reference to
>>  > `MatrixType::MatrixType()'
>>  > e:\My_Repos\pytave/conftest.cpp:15: undefined reference to
>>  > `MatrixType::~MatrixType()'
>>  > collect2.exe: error: ld returned 1 exit status
>>  > configure:5260: $? = 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 ""
>>  > | /* end confdefs.h.  */
>>  > | #include <octave/oct.h>
>>  > | #include <octave/Matrix.h>
>>  > | int
>>  > | main ()
>>  > | {
>>  > | MatrixType()
>>  > |   ;
>>  > |   return 0;
>>  > | }
>>  > configure:5280: result: no
>>  > configure:5303: WARNING:
>>  > 
> ========================================================================
>>  > Can not link with Octave.
>>  > 
>>  > Make sure the Octave development package is installed.
>>  > 
> ========================================================================
>>  > configure:5339: error: in `/e/My_Repos/pytave':
>>  > configure:5341: error: unable to find Octave development files
>>  > 
>>  > 
> -----------------------------------------------------------------------------------------------------------------------------------------
>>  > .
>>  > .
>>  > What libraries do I need to build the above program?
>> 
>>  The MatrixType constructor and destructor should be defined in
>>  liboctave, which is on the displayed command-line above.
>> 
>>  I've lost track of whether octave_dev was built with 
> --enable-windows-64
>>  or not, and I don't know what the lib32 directory is. I also don't 
> know
>>  how .dll.a and .dll libraries interact on Windows.
>> 
>>  Can you try copying that test program and building it in some temporary
>>  directory with
>> 
>>    /e/octave_dev/bin/mkoctfile --link-stand-alone --verbose foo.cc
>> 
> You need 32bit octave dev.
> I will upload 7zip archive when I reach my room at university.
> 
> You also need 32bit python. Did you install it?
> 
> Tatsuro


I will upload 7zip archive 32 bit window binary of octave 4.1.0+.


http://www.tatsuromatsuoka.com/octave/Eng/Win/tmp/octave-4.1.0plus_x86-2016-06-25-08-57.7z


octave-4.1.0plus_x86-2016-06-25-08-57.7z

size 142,477,223 byte

sha1sum 4d8703ffa7ee59d5918318552b325feb276428a6

Abhinav

Please let me know if you download it.

Tatsuro




reply via email to

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