Results 1 to 7 of 7

Thread: Qt and linux: how can i compil ?

  1. #1
    Join Date
    May 2011
    Posts
    122
    Platforms
    Windows
    Thanks
    34

    Default Qt and linux: how can i compil ?

    hello world,
    i have installed Qt on my linux OS (i have both windows and Linux), all things works on windows but when i use linux i can compil my project.
    This is my error message:

    (see attached item)

    how can i solve this problem please ?
    i have tried to delete the file ".pro.user" before using the Qmake command but it don't change something...
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: Qt and linux: how can i compil ?

    Is there 'C:' on linux?
    Or are you working on a dual boot system, and you mounted your windows partition under linux as well?
    If so, you didn't install Qt on linux, and using the one on windows is not really a good idea.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Apr 2010
    Posts
    769
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 94 Times in 86 Posts

    Default Re: Qt and linux: how can i compil ?

    It looks like Qt can't figure out which qmakespecs file to use during compilation/linking. This file contains all the flags needed for building on a particular platform; there are typically several of them to choose from, installed wherever Qt is installed - looks like /usr/share/qt/mkspecs on your system. Root around in there and find one that looks like a good match - linux-g++ will probably do - and set your QMAKESPEC environment variable to that value: 'setenv QMAKESPEC linux-g++' will do in the C shell. Then try again.

    It does seem odd that your current QMAKESPEC is set for a Windows system, so pay attention to high_flyer's post as well and make sure you're not trying to use a Windows installation under Linux.

  4. #4
    Join Date
    May 2011
    Posts
    122
    Platforms
    Windows
    Thanks
    34

    Default Re: Qt and linux: how can i compil ?

    thank you for your help

    i have a dual boot:
    - windows 7 with QtSDK under windows
    - ubuntu with QtSDK under linux

    i have make all my project on windows but now i just try to compil under linux but it don't work even with the linux Qt version.

    sixDegrees:
    i don't understand very well, what should i do this this /user/share/lib ?

  5. #5
    Join Date
    May 2011
    Posts
    122
    Platforms
    Windows
    Thanks
    34

    Default Re: Qt and linux: how can i compil ?

    i have found something very interesting in the Qt option (on the left when i click on the project button) this is the QMAKE options:

    -config: release
    -additional arguments: -spec c:QtSDKDesktopQt4.7.3mingwmkspecswin32-g++ QMLJSDEBUGGER_PATH=C:/QtSDK/QtCreator/share/qtcreator/qml/qmljsdebugger
    -call Qmake:
    CONFIG+=debug_and_release -spec c:QtSDKDesktopQt4.7.3mingwmkspecswin32-g++ QMLJSDEBUGGER_PATH=C:/QtSDK/QtCreator/share/qtcreator/qml/qmljsdebugger

    we can see that QtCreator doesn't go on the good place to launch QMAKE on linux; but i don't know what are the thing that i must have to put to replace them.
    i just know that Qt is installed here: USER/SHARE/Qt4

    can you help me please to replace this lines ? thanks a lot

    EDIT:

    I searched in the default settings qtcreator and it will appear by default in a folder windows

    I must show him the way to install the linux QMake but I do not know, I just know that my installation is in USR/SHARE/Qt4
    but then I do not know where to find the PATH QMake

    can you tell me please?
    Last edited by 21did21; 3rd September 2011 at 18:20.

  6. #6
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: Qt and linux: how can i compil ?

    can you tell me please?
    We did tell you, but you don't seem to be reading, or to understand...
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  7. #7
    Join Date
    May 2011
    Posts
    122
    Platforms
    Windows
    Thanks
    34

    Default Re: Qt and linux: how can i compil ?

    excuse me for the late:
    => my problem is solved

    i have found the path to correct it

    ps: sorry for my bad understanding my english is bad

    see you

Similar Threads

  1. difference between source in Qt for X11/Linux Qt for Embedded Linux
    By sanjeet in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 7th June 2011, 02:58
  2. Is 4.7.1 available for Linux?
    By MattPhillips in forum Installation and Deployment
    Replies: 6
    Last Post: 26th February 2011, 00:30
  3. Qwt compil problem
    By didcea in forum Qwt
    Replies: 0
    Last Post: 19th July 2010, 18:47
  4. linux-ipaq-g++ Vs linux-arm-g++
    By alejo in forum Installation and Deployment
    Replies: 0
    Last Post: 22nd February 2010, 00:23
  5. Linux API(?)
    By lszk in forum General Programming
    Replies: 2
    Last Post: 17th March 2006, 14:38

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.