Results 1 to 7 of 7

Thread: QApplication: No such file or directory

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: QApplication: No such file or directory

    Quote Originally Posted by graciano View Post
    Humm ... i found qmake in /usr/bin( lrwxrwxrwx 1 root root 23 Abr 27 16:10 /usr/bin/qmake -> /etc/alternatives/qmake ) and /usr/local/Trolltech/Qt-4.5.0/bin
    That's good so, because Qt uses ($QTDIR)/bin/qmake and ($QTDIR)/include, so simple change your system variable and all should work fine!

  2. #2
    Join Date
    Sep 2008
    Location
    Portugal
    Posts
    171
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    57
    Thanked 4 Times in 4 Posts

    Default Re: QApplication: No such file or directory

    I had no idea that qmake was already in a fresh install.
    This is were my confusion started.
    I will try again after building Qt.

  3. #3
    Join Date
    Sep 2008
    Location
    Portugal
    Posts
    171
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    57
    Thanked 4 Times in 4 Posts

    Default Re: QApplication: No such file or directory

    uff...it's OK again.
    After a fresh install and building Qt again i went back to the environment variables issue.
    I edited /etc/profile and added this lines:
    Qt Code:
    1. QTDIR="/usr/local/Trolltech/Qt-4.5.1"
    2. export QTDIR
    3.  
    4. PATH=$QTDIR/bin:$PATH
    5. export PATH
    To copy to clipboard, switch view to plain text mode 

    One thing is still bothering me ...
    Qt Code:
    1. # find -name qmake
    2. ./usr/share/qt3/bin/qmake ( lrwxrwxrwx 1 root root 22 Jun 14 19:16 qmake -> ../../../bin/qmake-qt3 )
    3. ./usr/local/Trolltech/Qt-4.5.1/bin/qmake ( -rwxr-xr-x 1 root staff 3917992 Jun 14 22:20 qmake )
    4. ./usr/bin/qmake ( lrwxrwxrwx 1 root root 23 Jun 14 19:16 qmake -> /etc/alternatives/qmake )
    5. ./etc/alternatives/qmake ( lrwxrwxrwx 1 root root 18 Jun 14 22:43 qmake -> /usr/bin/qmake-qt3 )
    6. ./var/lib/dpkg/alternatives/qmake ( -rw-r--r-- 1 root root 44 Jun 14 22:43 qmake
    7. ./home/torrao/qt-x11-opensource-src-4.5.1/bin/qmake ( this is the path i used to buil Qt ...)
    To copy to clipboard, switch view to plain text mode 

    Got lost here trying to follow the simbolic links ... but looks like "there are no alternatives to qmake -> /usr/bin/qmake-qt3" ... at least i don't know how.

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: QApplication: No such file or directory

    For building Qt you don't need any settings. Just invoke the qmake of your "source-directory" only after successfully build it you must tell the application you are going to build which qmake to use. You can do it over your ~./profile, create new symbol links or simply call the qmake with the full path. That on your system are also qmake-qt3 is no problem at all. Just make sure, that a simple "qmake" in your console reaches the right qmake. (I'd preferre the ~/.profile approach.)

Similar Threads

  1. QApplication: no such file or directory
    By jochen_r in forum Newbie
    Replies: 13
    Last Post: 15th November 2008, 21:46
  2. QApplication: No such file or directory
    By panos in forum Newbie
    Replies: 10
    Last Post: 27th August 2007, 11:08
  3. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  4. QApplication: No such file or directory
    By Dolinski in forum Newbie
    Replies: 4
    Last Post: 24th May 2007, 05:13
  5. create file in another directory
    By raphaelf in forum Qt Programming
    Replies: 3
    Last Post: 16th February 2006, 10:04

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.