Gallium OS, install script fails

I am trying to install using the Debian script, but fails to compile. At first it looked like qtmake was not installed and I apt-get installed qt4-qmake it installed. I then tried running the script again and now I get this error:

Creating build directory ‘build’:
The build process may take a few minutes.
Press enter to start.
Starting build process.
Project MESSAGE: Warning: unknown QT: serialport
WARNING: Failure to find: …/rtaudio/RTAudio.cpp
WARNING: Failure to find: …/qcustomplot/qcustomplot.cpp
WARNING: Failure to find: …/rtaudio/RTAUdio.h
WARNING: Failure to find: …/qcustomplot/qcustomplot.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic …/wfview/wfmain.ui -o ui_wfmain.h
make: /usr/lib/x86_64-linux-gnu/qt4/bin/uic: Command not found
Makefile:528: recipe for target ‘ui_wfmain.h’ failed
make: *** [ui_wfmain.h] Error 127
Error in make step.
wfview was not compiled.
Please consider posting the error(s) to https://forum.wfview.org/

I am pretty rusty on Linux as its been awhile since I have used it. I running a Dell Chrome book with Gallium OS installed. Hoping this setup will work for portable OPS.

73
Matt
KC7EQO

Hi Matt,

Did you press “Y” to install dependencies? It seems like a lot of expected files are not being found.

–E
de W6EL

Also You must use Qt5 not Qt4. I have never used Gallium so the dependant packages may have slightly different names?

73 Phil M0VSE

Yes, I did press y to install dependencies. Will try again and see if I can remove qt4. Will let you know what happens.

Thanks,

Matt

Well I removed QT4 and ran the script again. Still fails. This is what I get:

./fullbuild-wfview.sh
This script will download dependencies, build, and install wfview.
It is designed for debian-based systems and
makes use of the apt command to satisfy dependencies.

If it has been a while since this script was downloaded,
or if there are build errors, please use this command to
download a newer version of this script:

wget https://gitlab.com/eliggett/scripts/-/raw/master/fullbuild-wfview.sh?inline=false -O fullbuild-wfview.sh; chmod 755 fullbuild-wfview.sh

The ‘sudo’ command is used to run some commands as root.
It (the sudo command) will ask for your password during this process.
You should look at the source of this script if you have any doubts.

Do you wish to install dependencies first?
If this is your first time building wfview,
or, if you have not done so in a while,
please select ‘y’, otherwise, press ‘n’.
If you are not sure, select ‘y’ to be safe.

Press Y to install dependencies (Y/n): y
Reading package lists… Done
Building dependency tree
Reading state information… Done
build-essential is already the newest version (12.4ubuntu1).
The following packages were automatically installed and are no longer required:
efibootmgr libefiboot1 libefivar1 libllvm8 mokutil sbsigntool secureboot-db
shim
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists… Done
Building dependency tree
Reading state information… Done
qt5-qmake is already the newest version (5.9.5+dfsg-0ubuntu2.6).
The following packages were automatically installed and are no longer required:
efibootmgr libefiboot1 libefivar1 libllvm8 mokutil sbsigntool secureboot-db
shim
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists… Done
Building dependency tree
Reading state information… Done
libqt5core5a is already the newest version (5.9.5+dfsg-0ubuntu2.6).
The following packages were automatically installed and are no longer required:
efibootmgr libefiboot1 libefivar1 libllvm8 mokutil sbsigntool secureboot-db
shim
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists… Done
Building dependency tree
Reading state information… Done
qtbase5-dev is already the newest version (5.9.5+dfsg-0ubuntu2.6).
The following packages were automatically installed and are no longer required:
efibootmgr libefiboot1 libefivar1 libllvm8 mokutil sbsigntool secureboot-db
shim
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists… Done
Building dependency tree
Reading state information… Done
libqt5serialport5 is already the newest version (5.9.5-0ubuntu1).
libqt5serialport5-dev is already the newest version (5.9.5-0ubuntu1).
The following packages were automatically installed and are no longer required:
efibootmgr libefiboot1 libefivar1 libllvm8 mokutil sbsigntool secureboot-db
shim
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists… Done
Building dependency tree
Reading state information… Done
libqt5multimedia5 is already the newest version (5.9.5-0ubuntu1).
The following packages were automatically installed and are no longer required:
efibootmgr libefiboot1 libefivar1 libllvm8 mokutil sbsigntool secureboot-db
shim
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists… Done
Building dependency tree
Reading state information… Done
libqt5multimedia5-plugins is already the newest version (5.9.5-0ubuntu1).
The following packages were automatically installed and are no longer required:
efibootmgr libefiboot1 libefivar1 libllvm8 mokutil sbsigntool secureboot-db
shim
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists… Done
Building dependency tree
Reading state information… Done
qtmultimedia5-dev is already the newest version (5.9.5-0ubuntu1).
The following packages were automatically installed and are no longer required:
efibootmgr libefiboot1 libefivar1 libllvm8 mokutil sbsigntool secureboot-db
shim
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists… Done
Building dependency tree
Reading state information… Done
libopus-dev is already the newest version (1.1.2-1ubuntu1).
The following packages were automatically installed and are no longer required:
efibootmgr libefiboot1 libefivar1 libllvm8 mokutil sbsigntool secureboot-db
shim
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists… Done
Building dependency tree
Reading state information… Done
libeigen3-dev is already the newest version (3.3.4-4).
The following packages were automatically installed and are no longer required:
efibootmgr libefiboot1 libefivar1 libllvm8 mokutil sbsigntool secureboot-db
shim
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists… Done
Building dependency tree
Reading state information… Done
libportaudio2 is already the newest version (19.6.0-1).
libportaudiocpp0 is already the newest version (19.6.0-1).
The following packages were automatically installed and are no longer required:
efibootmgr libefiboot1 libefivar1 libllvm8 mokutil sbsigntool secureboot-db
shim
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists… Done
Building dependency tree
Reading state information… Done
portaudio19-dev is already the newest version (19.6.0-1).
The following packages were automatically installed and are no longer required:
efibootmgr libefiboot1 libefivar1 libllvm8 mokutil sbsigntool secureboot-db
shim
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists… Done
Building dependency tree
Reading state information… Done
librtaudio-dev is already the newest version (5.0.0~ds-2).
librtaudio6 is already the newest version (5.0.0~ds-2).
The following packages were automatically installed and are no longer required:
efibootmgr libefiboot1 libefivar1 libllvm8 mokutil sbsigntool secureboot-db
shim
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists… Done
Building dependency tree
Reading state information… Done
git is already the newest version (1:2.17.1-1ubuntu0.11).
The following packages were automatically installed and are no longer required:
efibootmgr libefiboot1 libefivar1 libllvm8 mokutil sbsigntool secureboot-db
shim
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Almost done. Now we will install libqcustomplot.
One of these two commands will fail, which is ok.
Only one of the next two commands need to work.
Reading package lists… Done
Building dependency tree
Reading state information… Done
libqcustomplot-dev is already the newest version (1.3.2+dfsg1-1).
libqcustomplot-doc is already the newest version (1.3.2+dfsg1-1).
libqcustomplot1.3 is already the newest version (1.3.2+dfsg1-1).
The following packages were automatically installed and are no longer required:
efibootmgr libefiboot1 libefivar1 libllvm8 mokutil sbsigntool secureboot-db
shim
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libqcustomplot2.0
E: Couldn’t find any package by glob ‘libqcustomplot2.0’
E: Couldn’t find any package by regex ‘libqcustomplot2.0’
Installing the required qcustomplot was successful.
Done installing dependencies.
Press enter to download wfview’s source code.
Now downloading the latest source code from the master branch.
The files will be downloaded into a directory named: wfview–20220704–06-25-08
Cloning into ‘wfview’…
remote: Enumerating objects: 161, done.
remote: Counting objects: 100% (161/161), done.
remote: Compressing objects: 100% (152/152), done.
remote: Total 161 (delta 14), reused 109 (delta 8), pack-reused 0
Receiving objects: 100% (161/161), 1.44 MiB | 808.00 KiB/s, done.
Resolving deltas: 100% (14/14), done.
Creating build directory ‘build’:
The build process may take a few minutes.
Press enter to start.
Starting build process.
qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’: No such file or directory
Error in qmake step.

what if you do a hash -r and restart the build?

It looks like it tres to execute qt4’s qmake here.

(it seems to rely on 18.04 LTS which is old. like OLD by the way)

I am not sure how to do that. I did try again, it failed. I also tried doing qmake -r and got this:

Error in qmake step.
cb@PortaMat:~/Downloads$ qmake -r
qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’: No such file or directory

Thanks for helping, hope we can sort this out.

73
Matt

open a console, type the above command, hit enter.

I did the command hash -r, then ran the script. it did the same thing stating " Starting build process.
qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’: No such file or directory
Error in qmake step."

no change :frowning:

why is qmake not found? I went to the path location and found in the bin qdbus and not qmake. weird. I checked the path with qt5 in it and see the files, but is the script calling qt4 path, is the system directing it to qt4 instead of qt5? if so how do I change it?

Thank you,
Matt

The script will call whatever is installed as the ‘current’ qmake.

It looks like something is screwed-up in your build environment? You can try the qtchooser command (if it’s available on your OS) https://manpages.ubuntu.com/manpages/jammy/man1/qtchooser.1.html

73 Phil M0VSE

Thanks Phil, Here is my build environment:
qtchooser -print-env
QT_SELECT=“default”
QTTOOLDIR=“/usr/lib/x86_64-linux-gnu/qt4/bin”
QTLIBDIR=“/usr/lib/x86_64-linux-gnu”

As I see looks like the path is set for qt4/bin. I am now trying to figure out how to edit the path.

This the the listed versions:
cb@PortaMat:~/Downloads$ qtchooser -l
4
5
default
qt4-x86_64-linux-gnu
qt4
qt5-x86_64-linux-gnu
qt5

I do have qt5 installed, I also tried removing qt4 but my systems says qt4 is not installed. Grrr. how ever I am stuck figuring out how to edit the path. The online doc is not very clear to me and trying to use the qtchooser does not seem to like me.

Hope to understand and figure this out. I am learning too. Thanks, Matt

I DID IT! I DID IT!!!

all I had to do was use the following command: export QT_SELECT=qt5

that changed my path to use qt5

So I ran the script again, with fingers crossed and it started compiling!!!
WFview is now installed and I was able to launch it!!! Now to configure it to use my IC705.

WOOT!

Thank you very much for helping and pointing me in the right direction!! I am sure I will have more questions to ask and you guys rock with support and responsiveness. Looking forward to testing this out.

BTW I am running a DELL Rugged Chrome Book with custom firmware. only paid $40 for it, cheaper than a Raspberry PI. I cant wait to see how this works.

73!
Matt
KC7EQO

1 Like

Matt, I look forward to hearing how it goes! Glad you got it!

—E
de W6EL

1 Like

That’s great Matt!

73 Phil M0VSE

Thanks guys, now I cant seem to connect the radio via wireless. I have set the IC705 to AP mode and connected to it, set my user1 user name and password, set the host name to the IP address of the radio 192.168.59.1 CVI is on and set to transceive. WFVIew cant find the radio. I can ping the radio from the laptop but no workie. I am looking to see if there is a firewall blocking traffic now. Hope to get this connected. One step closer.

73

Matt
KC7EQO

well I got it working!!! I missed to setup under remote setting to turn on Network control. whoops! So when I connect to the radio WFview’s window expands and goes out of bounds on my screen. On the right side it gets cut off just before the E on exit program.

I also have TX and RX audio working too!!! This is awesome!! works great on the chrome book, nice and smooth very little lag if any. Thanks again!!

73
Matt KC7EQO

Here is my screenshot of it working:

Thanks for reporting your experience; you saved me a BUNCH of time.

Now:

 -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o commhandler.o ../wfview/commhandler.cpp
g++ -c -pipe -s -fvisibility=hidden -fvisibility-inlines-hidden -faligned-new -O2 -Wall -W -D_REENTRANT -fPIC -DWFVIEW_VERSION=\"1.52\" -DBUILD_WFVIEW -D__LINUX_PULSE__ -DQT_DEPRECATED_WARNINGS -DQCUSTOMPLOT_COMPILE_LIBRARY -DUSE_SSE -DUSE_SSE2 -DOUTSIDE_SPEEX -DRANDOM_PREFIX=wf -DEIGEN_MPL2_ONLY -DEIGEN_DONT_VECTORIZE -DEIGEN_VECTORIZE_SSE3 -DPREFIX=\"/usr/local\" -DHOST=\"`hostname`\" -DUNAME=\"`whoami`\" -DGITSHORT=\"b57e4eb\" -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SERIALPORT_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_CORE_LIB -I../wfview -I. -I../wfview/resampler -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtMultimedia -isystem /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtSerialPort -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtXml -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -isystem /usr/include/libdrm -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o rigcommander.o ../wfview/rigcommander.cpp
../wfview/wfmain.cpp: In member function ‘void wfmain::receiveSpots(QList<spotData>)’:
../wfview/wfmain.cpp:7782:74: error: ‘class QCPItemPosition’ has no member named ‘pixelPosition’; did you mean ‘pixelPoint’?
                 QCPAbstractItem* item = plot->itemAt(sp->text->position->pixelPosition(), true);
                                                                          ^~~~~~~~~~~~~
                                                                          pixelPoint
Makefile:1024: recipe for target 'wfmain.o' failed
make: *** [wfmain.o] Error 1
make: *** Waiting for unfinished jobs....
Error in make step.
wfview was not compiled.
Please consider posting the error(s) to https://forum.wfview.org/
maggie@ex-chromebook:~$ 

I made that suggested change from pixelPosition() to pixelPoint() and did the export QT_SELECT=qt5 and it’s working like a champ

73 DE Maggie K3XS

1 Like