maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Frustrating problem with QMake in Scratchbox under Ubuntu 9.04 (emulated in VMWare) (https://talk.maemo.org/showthread.php?t=33769)

efekt 2009-10-31 11:51

Frustrating problem with QMake in Scratchbox under Ubuntu 9.04 (emulated in VMWare)
 
Hey everyone! I'm having difficulties with running QMake command in Scratchbox (needless to say that QMake works just fine outside Scratchbox)...
I tried numerous "ln" commands and even though the path where QT is installed and QMake resides is - apparently - registered correctly in PATH, when I try running QMake I get "bash: qmake: command not found".
I even tried - in a desperate act - to copy the QMake file to my workspace in Scratchbox and try running it again, but I still get the "command not found" error...

What am I doing wrong?! I installed QT well (as far as I know) - so why isn't everything working like a charm like in Nokia's tutorial video?

Thanks in advance everyone!

P.S - I tried searching the forum (and the net) for a solution, but found none that actually helped...

jeremiah 2009-10-31 12:30

Re: Frustrating problem with QMake in Scratchbox under Ubuntu 9.04 (emulated in VMWare)
 
Can you do a `which qmake` and if you get no answer do `echo $PATH`. That should show you where qmake is and the second command describes the path in your environment.

If you cannot find qmake those ways, you may need to do a `find / -name qmake` and if nothing shows up there, you may need to install it. Also, try `dpkg - l qmake` to see if dpkg knows about qmake.

efekt 2009-10-31 16:46

Re: Frustrating problem with QMake in Scratchbox under Ubuntu 9.04 (emulated in VMWare)
 
Thanks for replying jeremiah. "find / -name qmake" returns a list of sub-directories of /proc/ with "permission denied" next to them (I guess this is normal, as this directory is protected).
"dpkg -l qmake" returned "No packages found matching qmake."...

How can I install it again? I previously installed all of QT's components - so as I mentioned in my first post - QMake works just fine outside of scratchbox (at the "~$" prompt)...

jeremiah 2009-10-31 17:55

Re: Frustrating problem with QMake in Scratchbox under Ubuntu 9.04 (emulated in VMWare)
 
Hi efekt!

Yeah, to search in /proc with find you'll need to be root. :)

This is what I did to find qmake: apt-cache search qmake
libqt4-dev - Qt development files

Install libqt4-dev and you should be all set, installation is easy with;

Code:

apt-get install libqt4-dev

efekt 2009-10-31 23:28

Re: Frustrating problem with QMake in Scratchbox under Ubuntu 9.04 (emulated in VMWare)
 
Thanks again jeremiah. I'll have to try installing libqt4-dev later, as for now my terminal keeps getting "Temporary failure resolving 'repository.maemo.org'" when trying to install with apt-get...
I think its a problem in the repository (as I can connect to the internet without any difficulties from Firefox) so I hope it'll be fixed soon...
I'll keep this thread updated :)

efekt 2009-11-01 11:50

Re: Frustrating problem with QMake in Scratchbox under Ubuntu 9.04 (emulated in VMWare)
 
Sorry for bouncing the thread again, but anyone could help me with the problem I described in comment #5 here ("Temporary failure resolving 'repository.maemo.org'" when trying to install with apt-get in scratchbox)?
Also, I checked the repository site manually and couldn't find "libqt4-dev" anywhere.
I also tried:
Code:

vi /etc/apt/sources.list
but I couldn't understand if there's something wrong in it. That's what I get inside:
Quote:

deb http://repository.maemo.org/ fremantle/sdk free non-free
deb-src http://repository.maemo.org/ fremantle/sdk free
deb http://repository.maemo.org/ fremantle/tools free non-free
deb-src http://repository.maemo.org/ fremantle/tools free
deb http://repository.maemo.org/ fremantle/--my code-- nokia-binaries

yerga 2009-11-01 12:10

Re: Frustrating problem with QMake in Scratchbox under Ubuntu 9.04 (emulated in VMWare)
 
Quote:

Originally Posted by efekt (Post 362900)
Sorry for bouncing the thread again, but anyone could help me with the problem I described in comment #5 here ("Temporary failure resolving 'repository.maemo.org'" when trying to install with apt-get in scratchbox)?
Also, I checked the repository site manually and couldn't find "libqt4-dev" anywhere.
I also tried:
Code:

vi /etc/apt/sources.list
but I couldn't understand if there's something wrong in it. That's what I get inside:

About the connection problem, check this:
https://wiki.maemo.org/Q%26A_-_SDK_a..._Scratchbox.3F


libqt4-dev is in the sdk repository, here: http://repository.maemo.org/pool/fre...ree/q/qt4-x11/

efekt 2009-11-01 13:12

Re: Frustrating problem with QMake in Scratchbox under Ubuntu 9.04 (emulated in VMWare)
 
Thanks yerga! that actually worked!
Strange stuff, I tell you - I was googling this problem for a whole day and couldn't find the solution (this solution, anyhow) - I think it should be added to the SDK installation guide and highlighted so it could be more accessible and could be found quickly.
Thanks again yerga, and thank you too jeremiah - QMake appears to be working just fine now :)


All times are GMT. The time now is 03:36.

vBulletin® Version 3.8.8