Need help with linux compile
I have been having trouble compiling the latest development version on Lubuntu 13.4. I had no problem with lubuntu 12, but now there are some new commands that this non-geek Linux user does not understand.
I was able to install Qt 5.1 32 bit, but do not understand how to implement the next instructions
"Add Qt bin directory in your $PATH.
For 32bit
echo "PATH=~/Qt/5.1.0/gcc/bin:$PATH" >> ~/.bashrc
source ~/.bashrc "
If I type:
echo $PATH
I get:
/root/Qt/5.1.0/gcc/bin:/root/Qt/5.1.0/gcc/bin:/root/Qt/5.1.0/gcc/bin:/root/Qt/5.1.0/gcc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
I've downloaded the dependencies and the source code but cannot make it any further than that. I would appreciate any hlp.
Thanks!
Comments
That's already fine. Your PATH looks ok. (Even if you have several times /root/Qt/5.1.0/gcc/bin). What happens if you keep following the instructions?
In reply to That's already fine. Your by [DELETED] 5
Thanks,
"Git clone..." fine
"make" returns:
--------------------------------------
if test ! -d build.release; then mkdir build.release; fi; \
cd build.release; \
export PATH=/root/Qt5.1.0/5.1.0/gcc_64/bin:/root/Qt/5.1.0/gcc/bin:/root/Qt/5.1.0/gcc/bin:/root/Qt/5.1.0/gcc/bin:/root/Qt/5.1.0/gcc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games; \
cmake -DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_INSTALL_PREFIX=""/usr/local"" ..; \
make lrelease; \
make -j `grep -c processor /proc/cpuinfo`; \
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
Doxygen not found
-- Found pulseaudio: /usr/lib/i386-linux-gnu/libpulse.so
-- Found lame: /usr/lib/i386-linux-gnu/libmp3lame.so
Alsa detected.
Pulseaudio found.
-- jack (jack audio connection kit) >= 0.98.0 found
portaudio detected /usr/include /usr/lib/i386-linux-gnu -lportaudio -lasound -lm -lpthread
-- precompiled header generation
CMake Error at mscore/CMakeLists.txt:164 (QT5_ADD_RESOURCES):
Unknown CMake command "QT5_ADD_RESOURCES".
-- Configuring incomplete, errors occurred!
make[1]: Entering directory `/home/dan/MuseScore/build.release'
make[1]: *** No rule to make target `lrelease'. Stop.
make[1]: Leaving directory `/home/dan/MuseScore/build.release'
make[1]: Entering directory `/home/dan/MuseScore/build.release'
make[1]: *** No targets specified and no makefile found. Stop.
make[1]: Leaving directory `/home/dan/MuseScore/build.release'
make: *** [release] Error 2
-------------------------------------------
That's as far as I get.
Thanks!
In reply to Thanks, "Git clone..." by danryan
"PATH=/root/Qt5.1.0/5.1.0/gcc_64/bin:/root/Qt/5.1.0/gcc/bin:/root/Qt/5.1.0/gcc/bin:/root/Qt/5.1.0/gcc/bin:/root/Qt/5.1.0/gcc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games;"
Isn't the first entry incorrect "/root/Qt5.1.0/5.1.0/gcc_64/bin". Shouldn't it be "/root/Qt/5.1.0/gcc_64/bin"?
In reply to "PATH=/root/Qt5.1.0/5.1.0/gcc by schepers
I installed Qt from http://qt-project.org/downloads and it is in /home/dan/qt
Do I need to change this?
Thanks.
In reply to I installed Qt from by danryan
Did you check the path as I asked? The first Qt entry seems wrong. it lists 5.1.0 twice ("Qt5.1.0/5.1.0"), and that shouldn't be.
In reply to I installed Qt from by danryan
You can check the content of ~/.bashrc
For example, you can digit
more ~/.bashrc
in a command prompt (better WITHOUT root privileges).
The instruction
echo "PATH=~/Qt/5.1.0/gcc/bin:$PATH" >> ~/.bashrc
should be run only once and then never run again: it adds the line
PATH=~/Qt/5.1.0/gcc/bin:$PATH
to .bashrc, and in particular this line adds the folder ~/Qt/5.1.0/gcc/bin to the PATH.
Now, I think that you sent that instruction under root privileges, and many times, while on the other hand you had installed Qt in another directory.
You can edit and correct your .bashrc by hand (for example by using gedit) and make sure that there is the line:
PATH=(address to Qt bin folder):$PATH
where instead of (address to Qt bin folder) you should put the actual address (remember that ~ means your home folder, for example ~=/home/dan in your case), and remember to leave :$PATH at the end of this line in order not to change the other command line functions (it just means: append the old PATH to this new PATH).
If you are in difficulty, you can try to post here the content of .bashrc (for example the output of "more ~/.bashrc"); just to be sure, check also the content of .bashrc under root privileges (if the /root/Qt/5.1.0/gcc/bin folder does not exist it is better to remove it from the PATH).
Hope this helps.
Ciao,
ABL
In reply to PATH to Qt by ABL
Thanks for your help so far, and sorry about the delayed response. Before making changes to my path, I notice that the directory structure of my Qt installation differs from the content of .bashrc.
more ~/.bashrc yields:
PATH=~home/dan/Qt/5.1.0/gcc/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/lo
cal/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:$PATH
Attached is the contents of my Qt folder.
Is this discrepancy relevant?
Thanks again!
In reply to Thanks for your help so far, by danryan
Yes it is. Your path is wrong... It should be
PATH=~/qt/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/lo
cal/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:$PATH
if ~/qt/bin contains qmake, it should work.
In reply to Yes it is. Your path is by [DELETED] 5
Thanks.
~/qt/bin does not make qmake. qmake is a subfolder of qt