octave-maintainers
[Top][All Lists]
Advanced

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

Re: [MXE] Building 64-b indexing Windows binary fails at nsis /, scons


From: PhilipNienhuis
Subject: Re: [MXE] Building 64-b indexing Windows binary fails at nsis /, scons
Date: Fri, 18 Jul 2014 03:17:16 -0700 (PDT)

John Donoghue-2 wrote
> On 07/15/2014 10:36 PM, 

> octave-maintainers-request@

>  wrote:
>> Message: 1
>> Date: Tue, 15 Jul 2014 15:33:04 -0700 (PDT)
>> From: PhilipNienhuis<

> pr.nienhuis@

> >
>> To:

> octave-maintainers@

>> Subject: [MXE] Building 64-b indexing Windows binary fails at nsis /
>>      scons
>> Message-ID:<

> address@hidden

>>
>> Content-Type: text/plain; charset=us-ascii
>>
>>
>>> >     John W. Eaton wrote
>>> >     On 07/15/2014 01:14 PM, PhilipNienhuis wrote:
>>> >     > Is 64-bit indexing possible right away with current mxe-octave?
>>> >
>>> >     It should be.  Have you tried configuring mxe-octave with
>>> --enable-64?
>>> >     You'll need to start fresh so that you build a 64-bit GCC and all
>>> >     dependencies are built with that compiler.
>>> >
>>> >No I haven't tried yet (I didn't know mxe-octave was already that far).
>>> >But your message came right on time to initiate a 64-b build tonight
>>> >before going to sleep. Starting soon after clicking "send"....
>>> >
>>> >Tomorrow morning I'll see how far it went. BTW I'm building on a32-b
>>> >Linux, I hope that doesn't spoil the party...
>> Didn't have to wait long:-(    Build breaks at building nsis:
>>
>>
>> Failed to build package nsis!
>> ------------------------------------------------------------
>>           section *sec=g_sections+x;
>>                        ^
>> scons: *** [build/release/stub_bzip2/exec.o] Error 1
>> scons: building terminated because of errors.
>>
>>
>> and the nsis log says (during build of scons ?), after lots of:
>>
>> "warning: cast to pointer from integer of different size
>> [-Wint-to-pointer-cast]" :
>>
>> :
>> Source/exehead/exec.c:784:47: error: 'GWL_USERDATA' undeclared (first use
>> in
>> this function)
>>         SetWindowLong((HWND) GetIntFromParm(0), GWL_USERDATA, (long) c);
>> :
>> :
>> scons: *** [build/release/stub_bzip2/exec.o] Error 1
>> scons: building terminated because of errors.
>> make[1]: *** [build-only-nsis] Error 2
>> make[1]: Leaving directory `/home/philip/devel/octdev/mxe/mxe201407'
>>
>>
>> Philip
>>
>>
> Thats a known issue with nsis in mxe-octave, mentioned in the index.html.
> It also doesnt work with mxe unless you have built the 32 bit compiler.
> 
> GWL_USERDATA is a win32 define, which needs to change to GWLP_USERDATA 
> and use SetWindowLongPtr instead of SetWindowLong.
> There are a number of other similar issues as well.
> 
> nsis is only required for the install, so building a tarball disto is 
> still possible.

Well, the dependencies do get built with --enable-64 and running make
tar-dist, indeed.
But building Octave stops with:

:
/home/philip/devel/octdev/mxe/mxe201407/tmp-octave/octave-4.1.0+/libgui/graphics
/QtHandlesUtils.cc: In function 'QImage
QtHandles::Utils::makeImageFromCData(con
st octave_value&, int, int)':
/home/philip/devel/octdev/mxe/mxe201407/tmp-octave/octave-4.1.0+/libgui/graphics
/QtHandlesUtils.cc:223:33: error: no matching function for call to
'qMin(octave_
idx_type&, int&)'
       int w = qMin (dv(1), width);
                                 ^
/home/philip/devel/octdev/mxe/mxe201407/tmp-octave/octave-4.1.0+/libgui/graphics
/QtHandlesUtils.cc:223:33: note: candidate is:
In file included from
/home/philip/devel/octdev/mxe/mxe201407/usr/x86_64-w64-min
gw32/include/QtCore/qnamespace.h:45:0,
                 from
/home/philip/devel/octdev/mxe/mxe201407/usr/x86_64-w64-min
gw32/include/QtCore/qobjectdefs.h:45,
                 from
/home/philip/devel/octdev/mxe/mxe201407/usr/x86_64-w64-min
gw32/include/QtCore/qobject.h:47,
                 from
/home/philip/devel/octdev/mxe/mxe201407/usr/x86_64-w64-min
gw32/include/QtCore/qcoreapplication.h:45,
                 from
/home/philip/devel/octdev/mxe/mxe201407/usr/x86_64-w64-min
gw32/include/QtGui/qapplication.h:45,
                 from
/home/philip/devel/octdev/mxe/mxe201407/usr/x86_64-w64-mingw32/include/QtGui/QApplication:1,
                 from
/home/philip/devel/octdev/mxe/mxe201407/tmp-octave/octave-4.1.0+/libgui/graphics/QtHandlesUtils.cc:27:
/home/philip/devel/octdev/mxe/mxe201407/usr/x86_64-w64-mingw32/include/QtCore/qglobal.h:1217:34:
note: template<class T> const T& qMin(const T&, const T&)
 Q_DECL_CONSTEXPR inline const T &qMin(const T &a, const T &b) { return (a <
b) ? a : b; }
:

followed by  a number of similarly looking qMin-related errors.

Philip



--
View this message in context: 
http://octave.1599824.n4.nabble.com/MXE-Building-64-b-indexing-Windows-binary-fails-at-nsis-scons-tp4665575p4665583.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.



reply via email to

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