bugGNU Octave - Bugs: bug #50258, Cannot build MXE-Octave

 
 

bug #50258: Cannot build MXE-Octave

Submitter:  Avinoam Kalma <avinoam>
Submitted:  Wed 08 Feb 2017 09:34:03 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  None
Originator Name:  Avinoam Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Tue 14 Feb 2017 09:57:04 PM UTC, comment #11: 

Your fix works for me also.
Closing as fixed.

Avinoam Kalma <avinoam>
Group Member
Tue 14 Feb 2017 07:38:51 PM UTC, comment #10: 

I made the change suggested in comment #9 and it works for me.  I pushed it to the Mercurial archive for MXE so this is now ready for test.

Rik <rik5>
Group administrator
Sat 11 Feb 2017 03:01:12 AM UTC, comment #9: 

Now I see the issue

mxe-octave has set up UIC=...., MOC=xxxx etc in the default-octave.mk to make sure it uses the cross tools.

However recent changes to the default branch octave uses RCC_QTVER etc as the initial check.

So if default-octave.mk is modified to change the tool setting in its configure to XXX_QTVER for each, it should work.


John Donoghue <lostbard>
Group Member
Fri 10 Feb 2017 07:42:56 PM UTC, comment #8: 

Very possibly.  In order to build MXE octave I use a tcsh script which puts the mxe bin/ directory ahead of the native stuff.


setenv PATH /home/rik/wip/Projects_Mine/mxe-octave/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:.

make V=1 JOBS=4 OCTAVE_TARGET=default-octave nsis-installer


Checking for qtchooser shows


which qtchooser
/usr/bin/qtchooser


but using find in the mxe-octave directory shows that there is no qtchooser present there.

Is that another package that needs to be added to MXE?


Rik <rik5>
Group administrator
Fri 10 Feb 2017 06:48:58 PM UTC, comment #7: 

Is it finding qtchooser (native install) and then the mxe qt tools for the qt commands ?


John Donoghue <lostbard>
Group Member
Fri 10 Feb 2017 03:19:20 PM UTC, comment #6: 

Indeed, checking the patch from comment #4, did not work,
even after changing the else line to


  $(PKG)_QT_CONFIGURE_OPTIONS := --with-qt=4


Avinoam Kalma <avinoam>
Group Member
Fri 10 Feb 2017 03:07:42 PM UTC, comment #5: 

I'm seeing the same issue as Avinoam, although my system use Qt5 by default so the objection is that '-qt5' option is not supported.  I applied John D.'s patch from comment #4 but it doesn't help.  Again, because it is not the option, but the fact that uic doesn't seem to accept '-qt5'.


/bin/mkdir -p libgui/src && \
: > libgui/src/.octave-dirstamp
x86_64-w64-mingw32-uic -qt5 -o libgui/src/ui-settings-dialog.h /home/rik/wip/Projects_Mine/mxe-octave/tmp-default-octave/octave-4.3.0+/libgui/src/settings-dialog.ui
Unknown option 'qt5'.
Makefile:27374: recipe for target 'libgui/src/ui-settings-dialog.h' failed
make[2]: *** [libgui/src/ui-settings-dialog.h] Error 1
make[2]: Leaving directory '/home/rik/wip/Projects_Mine/mxe-octave/tmp-default-octave/octave-4.3.0+/.build'
/home/rik/wip/Projects_Mine/mxe-octave/Makefile:831: recipe for target 'build-only-default-octave' failed
make[1]: *** [build-only-default-octave] Error 2
make[1]: Leaving directory '/home/rik/wip/Projects_Mine/mxe-octave'


I tried changing directories to 'mxe-octave/usr/bin' and executing 'uic -qt5' and it fails.

By contrast, the native uic in '/usr/bin/' supplied by Ubuntu does support this option.

I'm trying to test out the patch I have for bug #50234 and file_stat but I can't build MXE Octave to test.

Rik <rik5>
Group administrator
Fri 10 Feb 2017 11:13:39 AM UTC, comment #4: 

See attached patch

(file #39716)

John Donoghue <lostbard>
Group Member
Fri 10 Feb 2017 06:49:28 AM UTC, comment #3: 

How can I add "--with-qt=4"  to default-octave.mk?

Avinoam Kalma <avinoam>
Group Member
Fri 10 Feb 2017 01:10:04 AM UTC, comment #2: 

what happens is you add --with-qt=4  to the configure opions in default-octave.mk (or --with-qt=5 if it was that was what was chosen in the top level configure)

John Donoghue <lostbard>
Group Member
Thu 09 Feb 2017 09:38:29 AM UTC, comment #1: 

Could be related to bug #50214?

Anonymous
Wed 08 Feb 2017 09:34:03 PM UTC, original submission:  



rm -f libgui/src/qrc-resource.cc-t libgui/src/qrc-resource.cc && ( echo "#if defined (HAVE_CONFIG_H)"; echo '#  include "config.h"'; echo "#endif"; echo "// Ignore unused variable warnings in generated code."; echo "#if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)"; echo "#pragma GCC diagnostic ignored \"-Wunused-variable\""; echo "#endif"; /home/avinoam/mxe-octave/usr/bin/x86_64-w64-mingw32-rcc -qt4 -name libgui/src /home/avinoam/mxe-octave/tmp-default-octave/octave-4.3.0+/libgui/src/resource.qrc ) > libgui/src/qrc-resource.cc-t && mv libgui/src/qrc-resource.cc-t libgui/src/qrc-resource.cc
Qt resource compiler
/home/avinoam/mxe-octave/usr/bin/x86_64-w64-mingw32-rcc: Unknown option: '-qt4'
Usage: /home/avinoam/mxe-octave/usr/bin/x86_64-w64-mingw32-rcc  [options] <inputs>


Avinoam Kalma <avinoam>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by avinoam (Submitted the item)
  • -email is unavailable- added by avinoam
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-02-14 avinoam StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2017-02-14 rik5 StatusNone Ready For Test
    2017-02-10 lostbard Attached File- Added default-octave-with-qt.patch, #39716
    2017-02-08 avinoam Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code