You are here

Building common (tried on UbuntuStudio and on Fedora)

Hello,
I cannot build neither on Ubuntu-Studio nor on Fedora.

I have installed the latest Version of Qt (5.8) right before I tried to build.
Configure tells me:
...
checking for qmake-qt5... no
checking for qmake... /usr/bin/qmake
checking for Qt major version... qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory

... and right - there is no qmake in this folder. in THIS folder is one executable qdbus
In /usr/lib/x86_64-linux-gnu/qt5/bin/ is qtwaylandscanner

I tried even:
./configure --prefix=/opt --with-qt5=/opt/Qt/5.8
with the same result.

further on:
configure: error: qmake-qt5 not found in current PATH. Maybe QT development environment isn't available. (qt5-devel)

/home/frank/Downloads/qtractor-0.8.0# apt-get install qt5-devel
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package qt5-devel

Any hint?
(The output from above comes from Ubuntu-Studio)

Forums: 
rncbc's picture

can't tell it for sure, but try installing qtchooser and setting the QT_SELECT environment variable accordingly:

export QT_SELECT=5

but wait, you're using a non-distro packaged Qt5 installation, right? probably you got it directly from http://qt.io and, i suppose, it's installed under /opt/Qt/5.8. now, i guess, you can try the build again, just make sure you get the configure option right "--with-qt5=/opt/Qt/5.8" might not be enough! as far as i can tell, it should be more explicit on the compiler platform you're into, like "--with-qt5=/opt/Qt/5.8/gcc_64"... could it be the case?

however, if you have another Qt5 installation around, possibly the official distro-supplied one, then you'll probbably need to make up with a new custom symlink for qmake-qt5 so that ./configure --with-qt5=/opt/Qt/5.8/gcc_64 will get the right configuration. please, do only this if you're sure there's yet another Qt5 installation out there:

cd /opt/Qt/5.8/gcc_64/bin
sudo ln -s qmake qmake-qt5

hth.
cheers

Hi and thanks a lot. That was it.
/usr/bin/qmake is a link to qtchooser anyway.

Now I hit another problem: configure succeeds but reports no support for LV2. I use LV2 plugins heavily in Ardour.
I installed the lv2-dev package and re-ran configure.
Everything related to LV2 support is reported as no.
configure --help says that for all this stuff default is yes.

Some thought?

Replying to myself.
It seems Ubuntu-Studio is not best equipped for building. ...and not equipped with recent versions of the software (that for I am doing the builds ;)
Installing all *-dev packages solved the problem.

Thanks for your time

configure: error: qmake-qt5 not found in current PATH

I have no idea what to do nor what you guys are talking about, I'm new to linux and i have this problem.

rncbc's picture

what distro? have you tried to install all the build requirements?
if on a debian/ubuntu based distro, try this before you start building from source:

sudo apt-get install qtbase5-dev qtbase5-dev-tools qttools5-dev-tools libqt5x11extras5-dev

and probably all the rest, unrelated to Qt5 per se:

sudo apt-get install libjack-dev libasound2-dev libsndfile-dev ladspa-sdk libvorbis-dev
sudo apt-get install libsamplerate-dev librubberband-dev dssi-dev liblo0-dev
sudo apt-get install liblilv-dev libsratom-dev libsord-dev libserd-dev libsuil-dev lv2-dev

however, if you don't know what all this' about you better go along withkxstudio and forget all the talking ;)

hth.
cheers

barbosa@barbosa-Ubuntu:~/qtractor-0.8.3$ ./configure --prefix=/qtractor-0.8.3
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for g++ major version... 5
checking for qmake-qt5... no
checking for qmake... /usr/bin/qmake
checking for Qt major version... qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
0
configure: error: qmake-qt5 not found in current PATH. Maybe QT development environment isn't available. (qt5-devel)

I have just installed those libs and the problem continues, yes I am using ubuntu. Thanks for the attention.

I actually didn't install all of the build requirements yet, i'll do it asap and come back here.

Turns out qt5 isn't free and takes 1.4GB of disk space, is that right? Is there something i'm not getting? I thought this was a more accessible program.

rncbc's picture

You probably have been wrong and ill advised.

Qt5 is perfectly open-source as its LGPL may go, which is a lot beyond most "freedoms" you may find on the whole out there.

Cheers

Add new comment