Error compiling Octave-Windows package on Cygwin (Win10)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Error compiling Octave-Windows package on Cygwin (Win10)

Ash46

Setup is Windows 10, 64-bit Cygwin, Octave 4.2.1 (installed under Cygwin), gcc/g++ both version 5.4.0

Seeing the following errors in __COM__.cc when installing Windows package in Octave (under Cygwin):

 

__COM__.cc: In function ‘octave_value com_to_octave(VARIANT*)’:

__COM__.cc:471:37: error: cannot convert ‘long int*’ to ‘LONG* {aka int*}’ for argument ‘3’ to ‘HRESULT SafeArrayGetLBound(SAFEARRAY*, UINT, LONG*)

     SafeArrayGetLBound(arr, k+1, &lb);

                                     ^

__COM__.cc:472:37: error: cannot convert ‘long int*’ to ‘LONG* {aka int*}’ for argument ‘3’ to ‘HRESULT SafeArrayGetUBound(SAFEARRAY*, UINT, LONG*)

     SafeArrayGetUBound(arr, k+1, &ub);

                                     ^

__COM__.cc:527:52: error: cannot convert ‘long int*’ to ‘LONG* {aka int*}’ for argument ‘2’ to ‘HRESULT SafeArrayGetElement(SAFEARRAY*, LONG*, void*

         if(SafeArrayGetElement(arr,arrDims,&cellVal)==S_OK)

                                                    ^

__COM__.cc:572:52: error: cannot convert ‘long int*’ to ‘LONG* {aka int*}’ for argument ‘2’ to ‘HRESULT SafeArrayGetElement(SAFEARRAY*, LONG*, void*

         if(SafeArrayGetElement(arr,arrDims,&cellVal)==S_OK)

                                                    ^

__COM__.cc:618:52: error: cannot convert ‘long int*’ to ‘LONG* {aka int*}’ for argument ‘2’ to ‘HRESULT SafeArrayGetElement(SAFEARRAY*, LONG*, void*

         if(SafeArrayGetElement(arr,arrDims,&cellVal)==S_OK)

                                                    ^

make: *** [Makeconf:67: __COM__.o] Error 1

make: Leaving directory '/tmp/oct-IbRRQm/windows/src'

 

pkg: error running `make' for the windows package.

error: called from

    configure_make at line 95 column 9

    install at line 192 column 7

    pkg at line 394 column 9

 

Any ideas?

 

Thanks

Ash

Reply | Threaded
Open this post in threaded view
|

Re: Error compiling Octave-Windows package on Cygwin (Win10)

marco atzeri-2
On 14/05/2017 00:47, Ash46 wrote:
> Setup is Windows 10, 64-bit Cygwin, Octave 4.2.1 (installed under
> Cygwin), gcc/g++ both version 5.4.0
>
> Seeing the following errors in __COM__.cc when installing Windows
> package in Octave (under Cygwin):
>

>
>
> Any ideas?
>

the Windows package is NOT for Cygwin.
Cygwin build is a Unix-like one


> Thanks
>
> Ash

Marco

Reply | Threaded
Open this post in threaded view
|

RE: Error compiling Octave-Windows package on Cygwin (Win10)

Ash46
Thanks Marco.

I got the windows package to build and install after changing the long type to int (since I'm on 64-bit platform). I also built and installed the io package - rather than downloading from Cygwin. But now when I run load these two packages and run it, I see the following errors:

octave:9> dd = xlsread('Book1.xlsx',1,[], 'COM');
Checking requested interface(s):
warning: xlsopen.m: file type not supported by COM
warning: called from
    xlsopen at line 338 column 7
    xlsread at line 197 column 11
warning: xlsread: some elements in list of return values are undefined
warning: called from
    xlsread at line 224 column 1
octave:10> dd = xlsread('Book1.xlsx',1,[], 'OCT');
Checking requested interface(s):
OCT*; (* = default interface)
file Book1.xlsx couldn't be unpacked. Is it the proper file format?
warning: __OCT_spsh_open__: some elements in list of return values are undefined
warning: called from
    __OCT_spsh_open__ at line 67 column 7
    xlsopen at line 318 column 30
    xlsread at line 197 column 11
warning: xlsopen.m: file type not supported by OCT
warning: called from
    xlsopen at line 338 column 7
    xlsread at line 197 column 11
warning: xlsread: some elements in list of return values are undefined
warning: called from
    xlsread at line 224 column 1
octave:11>

Would you be able to advise how I can read/write Excel (xlsx, xlsm) data in Octave? I through the 'OCT' method would work.

Rgds,
Ash

-----Original Message-----
From: Octave-maintainers [mailto:octave-maintainers-bounces+as_1000=[hidden email]] On Behalf Of Marco Atzeri
Sent: Sunday, May 14, 2017 6:42 AM
To: [hidden email]
Subject: Re: Error compiling Octave-Windows package on Cygwin (Win10)

On 14/05/2017 00:47, Ash46 wrote:
> Setup is Windows 10, 64-bit Cygwin, Octave 4.2.1 (installed under
> Cygwin), gcc/g++ both version 5.4.0
>
> Seeing the following errors in __COM__.cc when installing Windows
> package in Octave (under Cygwin):
>

>
>
> Any ideas?
>

the Windows package is NOT for Cygwin.
Cygwin build is a Unix-like one


> Thanks
>
> Ash

Marco