bugGNU Octave - Bugs: bug #59474, qtchooser no longer accepts -qt5...

 
 

bug #59474: qtchooser no longer accepts -qt5 argument

Submitter:  None
Submitted:  Tue 17 Nov 2020 03:36:24 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Installation Failure
Status:  Fixed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 6.0.92
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 19 Nov 2020 03:46:27 AM UTC, comment #16: 

Thanks, comment #15 is what I expected.  I pushed a change to use the long form '-qt=5' on the stable branch (http://hg.savannah.gnu.org/hgweb/octave/rev/c6796a1c35b2).

Marking as fixed and closing report.

Rik <rik5>
Group administrator
Thu 19 Nov 2020 03:27:05 AM UTC, comment #15: 

There's an Anaconda 'moc'.
Here/s /usr/bin/moc

$ /usr/bin/moc -qt=5
^C
(ai) ubuntu@ip-10-0-1-82:~/SuiteSparse$ /usr/bin/rcc -qt=5
/usr/lib/qt5/bin/rcc: No input files specified.
Usage: /usr/lib/qt5/bin/rcc [options] inputs
Qt Resource Compiler version 5.12.8

Options:
  -h, --help                 Displays this help.
  -v, --version              Displays version information.
  -o, --output <file>        Write output to <file> rather than stdout.
  -t, --temp <file>          Use temporary <file> for big resources.
  --name <name>              Create an external initialization function with
                             <name>.
  --root <path>              Prefix resource access path with root path.
  --compress <level>         Compress input files by <level>.
  --no-compress              Disable all compression.
  --threshold <level>        Threshold to consider compressing files.
  --binary                   Output a binary file for use as a dynamic
                             resource.
  --pass <number>            Pass number for big resources
  --namespace                Turn off namespace macros.
  --verbose                  Enable verbose mode.
  --list                     Only list .qrc file entries, do not generate code.
  --list-mapping             Only output a mapping of resource paths to file
                             system paths defined in the .qrc file, do not
                             generate code.
  --project                  Output a resource file containing all files from
                             the current directory.
  --format-version <number>  The RCC format version to write

Arguments:
  inputs                     Input files (*.qrc).
(ai) ubuntu@ip-10-0-1-82:~/SuiteSparse$

david laxer <davidlaxer>
Thu 19 Nov 2020 03:17:24 AM UTC, comment #14: 

$ moc -qt=5
Unknown option 'qt'.
$ rcc -qt=5
Unknown option 'qt'.

Also, what about UICFLAGS?

david laxer <davidlaxer>
Thu 19 Nov 2020 12:20:09 AM UTC, comment #13: 

Okay, I think there is something here that needs to be fixed.  Apparently, in previous versions of qtchooser '-qt5' was an accepted argument.  It is on my version.  But, if I look at the man page for qtchooser I see


QTCHOOSER(1)                              General Commands Manual                             QTCHOOSER(1)

NAME
       qtchooser - a wrapper used to select between Qt development binary versions

SYNOPSIS
       qtchooser -list-versions
       qtchooser -print-env [-qt=version]
       qtchooser -run-tool=tool [-qt=version] [program_arguments]
       <executable_name> [-qt=version] [program_arguments]


It looks to me like the argument should read "-qt=5".

On the command line, could you try


moc -qt=5


and see if that works?  If it does you will need to Ctrl+C out of it.

If that is the case it is a simple change to a configure macro to generate this longer form.

Rik <rik5>
Group administrator
Tue 17 Nov 2020 10:18:30 PM UTC, comment #12: 

(ai) ubuntu@ip-10-0-1-82:~/OpenBLAS$ ls -l /usr/bin/moc
lrwxrwxrwx 1 root root 9 Mar 22  2020 /usr/bin/moc -> qtchooser
(ai) ubuntu@ip-10-0-1-82:~/OpenBLAS$ ls -l /usr/bin/rcc
lrwxrwxrwx 1 root root 9 Mar 22  2020 /usr/bin/rcc -> qtchooser

(ai) ubuntu@ip-10-0-1-82:~/OpenBLAS$ qtchooser -l
4
5
default
qt4-x86_64-linux-gnu
qt4
qt5-x86_64-linux-gnu
qt5

david laxer <davidlaxer>
Tue 17 Nov 2020 09:51:24 PM UTC, comment #11: 

If you try


ls -l /usr/bin/moc


is it a symlink to qtchooser?

Rik <rik5>
Group administrator
Tue 17 Nov 2020 09:47:58 PM UTC, comment #10: 

 rcc --version
rcc 5.12.9
(ai) ubuntu@ip-10-0-1-82:~/OpenBLAS$ moc --version
moc 5.12.9

david laxer <davidlaxer>
Tue 17 Nov 2020 09:45:12 PM UTC, comment #9: 

$ moc -qt5
Unknown option 'qt5'.

$ rcc -qt5
Unknown option 'qt5'.

david laxer <davidlaxer>
Tue 17 Nov 2020 09:40:21 PM UTC, comment #8: 

Do you have qtchooser package installed?  If not, can you install it.  After install, see if


moc -qt5


works.  This should not throw an error, but give you a blank line as the moc interpreter is waiting for input from stdin.  You can use Ctrl+D or Ctrl+C to get out of it.

Rik <rik5>
Group administrator
Tue 17 Nov 2020 09:34:10 PM UTC, comment #7: 

Any idea why this happened?

ROC_FLAGS = -qt5
MOC_FLAGS = -qt5
UICFLAGS = -qt5

david laxer <davidlaxer>
Tue 17 Nov 2020 09:19:59 PM UTC, comment #6: 
david laxer <davidlaxer>
Tue 17 Nov 2020 09:10:57 PM UTC, comment #5: 

Where did you get the code for Octave development sources?  Did you clone the Mercurial repository?

Rik <rik5>
Group administrator
Tue 17 Nov 2020 08:26:59 PM UTC, comment #4: 

(ai) ubuntu@ip-10-0-1-82:~/octave/.build$ cat HG-ID
unknown

WARNING: ./../HG-ID is missing!

david laxer <davidlaxer>
Tue 17 Nov 2020 08:07:49 PM UTC, comment #3: 

On Debian systems, any easy way to get all the dependencies before running configure is


apt-get build-dep octave


What is the hg id of the source code you are trying to compile?

Rik <rik5>
Group administrator
Tue 17 Nov 2020 07:41:34 PM UTC, comment #2: 

I am using qt5 (not qt4).
The issue is that ./configure generated a Makefile with FLAGS that generated compilation errors.  Here’s what was generated which caused errors:

Makefile Issues:
ROC_FLAGS = -qt5
MOC_FLAGS = -qt5
UICFLAGS = -qt5

On Ubuntu 20.04LTS moc and roc do not have a -qt5 argument.

All the dependencies were already installed:

$ sudo apt-get install gcc g++ gfortran make libblas-dev liblapack-dev libpcre3-dev libarpack2-dev libcurl4-gnutls-dev epstool libfftw3-dev fig2dev libfltk1.3-dev libfontconfig1-dev libfreetype6-dev libgl2ps-dev libglpk-dev libreadline-dev gnuplot-x11 libgraphicsmagick++1-dev libhdf5-dev openjdk-8-jdk libsndfile1-dev llvm-dev texinfo libgl1-mesa-dev libosmesa6-dev pstoedit portaudio19-dev libqhull-dev libqrupdate-dev libsuitesparse-dev texlive-latex-extra libxft-dev zlib1g-dev autoconf automake bison flex gperf gzip icoutils librsvg2-bin libtool perl rsync tar qtbase5-dev qttools5-dev qttools5-dev-tools libqscintilla2-qt5-dev libsundials-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
autoconf is already the newest version (2.69-11.1).
automake is already the newest version (1:1.16.1-4ubuntu6).
bison is already the newest version (2:3.5.1+dfsg-1).
flex is already the newest version (2.6.4-6.2).
g++ is already the newest version (4:9.3.0-1ubuntu2).
gcc is already the newest version (4:9.3.0-1ubuntu2).
gfortran is already the newest version (4:9.3.0-1ubuntu2).
gzip is already the newest version (1.10-0ubuntu4).
libblas-dev is already the newest version (3.9.0-1build1).
libfftw3-dev is already the newest version (3.3.8-2ubuntu1).
libfontconfig1-dev is already the newest version (2.13.1-2ubuntu3).
liblapack-dev is already the newest version (3.9.0-1build1).
libpcre3-dev is already the newest version (2:8.39-12build1).
libreadline-dev is already the newest version (8.0-4).
libsndfile1-dev is already the newest version (1.0.28-7).
libsuitesparse-dev is already the newest version (1:5.7.1+dfsg-2).
libtool is already the newest version (2.4.6-14).
libxft-dev is already the newest version (2.3.3-0ubuntu1).
make is already the newest version (4.2.1-1.2).
rsync is already the newest version (3.1.3-8).
tar is already the newest version (1.30+dfsg-7).
epstool is already the newest version (3.09-2).
fig2dev is already the newest version (1:3.2.7a-7).
gnuplot-x11 is already the newest version (5.2.8+dfsg1-2).
gperf is already the newest version (3.1-1build1).
icoutils is already the newest version (0.32.3-3).
libarpack2-dev is already the newest version (3.7.0-3).
libfltk1.3-dev is already the newest version (1.3.4-10build1).
libgl2ps-dev is already the newest version (1.4.0+dfsg1-2).
libglpk-dev is already the newest version (4.65-2).
libgraphicsmagick++1-dev is already the newest version (1.4+really1.3.35-1).
libhdf5-dev is already the newest version (1.10.4+repack-11ubuntu1).
libqhull-dev is already the newest version (2015.2-4).
libqrupdate-dev is already the newest version (1.1.2-3).
libqscintilla2-qt5-dev is already the newest version (2.11.2+dfsg-6).
libsundials-dev is already the newest version (3.1.2+dfsg-3ubuntu2).
llvm-dev is already the newest version (1:10.0-50~exp1).
portaudio19-dev is already the newest version (19.6.0-1build1).
pstoedit is already the newest version (3.75-1build1).
qtbase5-dev is already the newest version (5.12.8+dfsg-0ubuntu1).
qttools5-dev is already the newest version (5.12.8-0ubuntu1).
qttools5-dev-tools is already the newest version (5.12.8-0ubuntu1).
texinfo is already the newest version (6.7.0.dfsg.2-5).
texlive-latex-extra is already the newest version (2019.202000218-1).
libcurl4-gnutls-dev is already the newest version (7.68.0-1ubuntu2.2).
libfreetype6-dev is already the newest version (2.10.1-2ubuntu0.1).
libgl1-mesa-dev is already the newest version (20.0.8-0ubuntu1~20.04.1).
libosmesa6-dev is already the newest version (20.0.8-0ubuntu1~20.04.1).
perl is already the newest version (5.30.0-9ubuntu0.2).
zlib1g-dev is already the newest version (1:1.2.11.dfsg-2ubuntu1.2).
librsvg2-bin is already the newest version (2.48.7-1ubuntu0.20.04.1).
openjdk-8-jdk is already the newest version (8u275-b01-0ubuntu1~20.04).
The following packages were automatically installed and are no longer required:
  linux-headers-5.4.0-52 linux-headers-5.4.0-52-generic
  linux-image-5.4.0-52-generic linux-modules-5.4.0-52-generic
  linux-modules-extra-5.4.0-52-generic
Use 'sudo apt autoremove' to remove them.

  1. upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
david laxer <davidlaxer>
Tue 17 Nov 2020 07:15:48 PM UTC, comment #1: 

Support for Qt4 has been removed with version 7 of Octave. Only Qt5 is supported for that version.

Please, see this Wiki page that lists build dependencies on Ubuntu 20.04 (not sure if that list is up-to-date though...):
https://wiki.octave.org/Octave_for_Debian_systems

Does installing those dependencies resolve the issue you are seeing?

Markus Mützel <mmuetzel>
Group administrator
Tue 17 Nov 2020 03:36:24 PM UTC, original submission:  

I am building octave from source on Ubuntu 20.04 LTS

Here's my configure command:
{{{
./../configure --prefix=$HOME/my_octave CPPFLAGS="-I/usr/include/suitesparse" --with-blas="-lopenblas" -with-lapack=-llapack

}}}

The Makefile had these variables assigned with '-qt5', however
they cause compilation errors.  The programs 'moc' and 'roc' did not have '-qt5' parameter.
Makefile Issues:
ROC_FLAGS = -qt5
MOC_FLAGS = -qt5
UICFLAGS = -qt5

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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 davidlaxer (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    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
    2020-11-19 rik5 StatusNeed Info Fixed
        Open/ClosedOpen Closed
        Releasedev 6.0.92
    2020-11-19 rik5 SummaryMakefile Issue(s) qtchooser no longer accepts -qt5 argument
    2020-11-17 rik5 StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code