<< return to Pixycam.com

LINUX install instruction incomplete - HELP!

Howdy all!

Running Mint 17 64 bit (MATE)
I did the instructions for ubuntu from README.linux:

~ $ sudo apt-get install g++
~ $ sudo apt-get install qt4-dev-tools
~ $ sudo apt-get install libusb-1.0.0-dev

But I get an error next step:

~/Downloads/pixymon $ ./buildpixymon.sh
Building for linux
./buildpixymon.sh: line 15: qmake-qt4: command not found
make: Entering directory /home/.../Downloads/pixymon/src/host/pixymon' make: *** No targets specified and no makefile found. Stop. make: Leaving directory/home/…/Downloads/pixymon/src/host/pixymon’
mkdir: cannot create directory ‘bin’: File exists
cp: cannot stat ‘src/host/pixymon/PixyMon’: No such file or directory
strip: ‘bin/PixyMon’: No such file

other posts for qmake-qt4 errors suggest:

~ $ which qmake
/usr/bin/qmake
~ $ ls -al /usr/bin/qmake
lrwxrwxrwx 1 root root 9 Apr 12 19:42 /usr/bin/qmake -> qtchooser
~ $ update-alternatives --list qmake
update-alternatives: error: no alternatives for qmake

what am I missing?

Thanks!

Looks like you are missing qt4-dev-tools or something specific to mint that replaces it. Run ‘apt-cache search qmake-qt4’ and install whatever pops up as a result. Worked for me on my debian squeeze.

max myroshnychenko wrote:

Looks like you are missing qt4-dev-tools or something specific to mint that replaces it. Run ‘apt-cache search qmake-qt4’ and install whatever pops up as a result. Worked for me on my debian squeeze.

Thanks max!

I did this:

~ $ apt-cache search qmake-qt4
qt4-qmake - Qt 4 qmake Makefile generator tool
~ $ qt4-qmake
qt4-qmake: command not found
~ $

I reran

~ $ sudo apt-get install qt4-dev-tools

and discovered that this did not install last time. Which is whacky, because I did the install process on a couple different machine (one mint 16-64, one mint 16-32, and one mint 17-64) to make sure it wasn’t funky only on a particular box.

Do we have to install this to a specific directoy (rather than just run it where ever we happen to be)?

Do we have to install as superuser/administrator? The first time I ran it as a regular user, would that be the cause?

I’m not so good with linux OS and compiling from source just yet.

testing to see if the install qt4-dev-tools fixes it…

nope, still gives same error, trying the second part…

~ $ sudo apt-get install qt4-qmake

This installed something. Running the script again results in:

~ $ ./buildpixymon.sh
Building for linux
Project MESSAGE: Warning: unknown QT: widgets
make: Entering directory /home/braino/Downloads/pixymon/src/host/pixymon' /usr/lib/x86_64-linux-gnu/qt4/bin/uic mainwindow.ui -o ui_mainwindow.h make: /usr/lib/x86_64-linux-gnu/qt4/bin/uic: Command not found make: *** [ui_mainwindow.h] Error 127 make: Leaving directory/home/braino/Downloads/pixymon/src/host/pixymon’
mkdir: cannot create directory ‘bin’: File exists
cp: cannot stat ‘src/host/pixymon/PixyMon’: No such file or directory
strip: ‘bin/PixyMon’: No such file
~ $

any more suggestions?

Thanks!

try sudo apt-get install uic

I looked for uic, this was not found on my system.

~ $ sudo apt-get install uic
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package uic

I found http://www.yeasoft.com/site/projects:uic but this requires a custom ppa. This makes me feel I’m going down the wrong rabbit hole.

My thought is that there is a “normal” way to install qt on ubuntu (from which mint is derived) which should “just work”. Or is Qt still so new that it is not part of standard releases?

I’m being cautious, last time I added non-standard items to my linux system, the whole thing got trashed as I could not identify the incorrect installs to undo them. I’m still new at this.

Thanks!

prof braino wrote:

I looked for uic, this was not found on my system.

~ $ sudo apt-get install uic
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package uic

I found http://www.yeasoft.com/site/projects:uic but this requires a custom ppa. This makes me feel I’m going down the wrong rabbit hole.

My thought is that there is a “normal” way to install qt on ubuntu (from which mint is derived) which should “just work”. Or is Qt still so new that it is not part of standard releases?

I’m being cautious, last time I added non-standard items to my linux system, the whole thing got trashed as I could not identify the incorrect installs to undo them. I’m still new at this.

Thanks!
sudo apt-get install qt4-qmake did it. you have qt.

So, back to the original question, what do I need to make the build script run?

Thanks!

what does

~ $ apt-cache search uic

tell you? It will probably list many packages:-(

My Ubuntu box has it installed

$ dpkg -S bin/uic
qtchooser: /usr/bin/uic3
qtchooser: /usr/bin/uic
libqt4-dev-bin: /usr/share/qt4/bin/uic
libqt4-dev-bin: /usr/bin/uic-qt4
libqt4-dev-bin: /usr/lib/x86_64-linux-gnu/qt4/bin/uic
libqt4-dev-bin: /usr/lib/x86_64-linux-gnu/qt4/bin/uic3

Try to find something similar.

I hope that helps
– Marco

Marco Walther wrote:

what does
[…]

tell you? It will probably list many packages:-(

yes, about 32 screens worth, attached in uic.txt

~ $ dpkg -S bin/uic
qtchooser: /usr/bin/uic3
qtchooser: /usr/bin/uic
~ $

mine only lists the first two lines, is this the problem? How to install the rest?

Thanks!

Do these tell us anything new?

~ $ update-alternatives --list qmake
update-alternatives: error: no alternatives for qmake
~ $

~ $ dpkg -S /usr/bin/qmake-qt4
dpkg-query: no path found matching pattern /usr/bin/qmake-qt4
~ $

Did you try to install the libqt4-dev package?

sudo apt-get install libqt4-dev

That’s from http://forums.linuxmint.com/viewtopic.php?f=197&t=103268

Not sure if you also have a libqt4-dev-bin package?!
In the end, you can try uic -h' andqmake -h’ and they should give you some help info.

– Marco

Hi,

I had the same issue as your original post

./buildpixymon.sh: line 15: qmake-qt4: command not found 

and I fixed it by creating a link to @qmake@ called @qmake-qt4@ like so:

ln -s /usr/bin/qmake /usr/bin/qmake-qt4

after that it all worked for me - hope it helps!

All,

We have a new walk through up on the wiki for installing PixyMon on Linux:

http://cmucam.org/projects/cmucam5/wiki/Installing_PixyMon_on_Linux

Your feedback is always welcome.

Thanks,
John