Results 1 to 16 of 16

Thread: Qt 4.2.2 and SuSE Linux 9.3

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2006
    Location
    The Netherlands
    Posts
    64
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.2.2 and SuSE Linux 9.3

    I deleted all the Qt stuff and I did the whole procedure (downloading, unpacking, configuring and copying Qt) again like I did before.
    And now it works...

    I guess there was a glitch in the comp or I entered a cmd wrong...

    Tnx for the help and sorry for bothering.

  2. #2
    Join Date
    Aug 2006
    Location
    The Netherlands
    Posts
    64
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.2.2 and SuSE Linux 9.3

    I discovered what caused this problem. After I copied all the relevant files to /usr/local/Trolltech/Qt-4.2.2/ I deleted the directory where I unzipped, configured and
    compiled Qt. For some strange reason which only Trolltech knows, qmake has a hardcoded path to the local dir qt_src/src.
    Copying qt_src/src to /usr/local/Trolltech/Qt-4.2.2/src doesn't help. Obviously you can't delete the qt_src dir, at least you need to keep qt-src/src

    http://wiki.qtcentre.org/index.php?t...ic_Qt_on_Linux

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,372
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt 4.2.2 and SuSE Linux 9.3

    Quote Originally Posted by Teuniz View Post
    Obviously you can't delete the qt_src dir, at least you need to keep qt-src/src

    http://wiki.qtcentre.org/index.php?t...ic_Qt_on_Linux
    IMO you just need to set an appropriate prefix while recompiling Qt.
    Last edited by wysota; 22nd February 2007 at 11:35.

  4. #4
    Join Date
    Aug 2006
    Location
    The Netherlands
    Posts
    64
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.2.2 and SuSE Linux 9.3

    Quote Originally Posted by wysota View Post
    IMO you just need to set an appropriate prefix while recompiling Qt.
    You mean this one?

    Installation options:

    These are optional, but you may specify install directories.

    -prefix <dir> ...... This will install everything relative to <dir>
    (default /usr/local/Trolltech/Qt-4.2.2)

    * -prefix-install .... Force a sandboxed "local" installation of
    Qt. This will install into
    /usr/local/Trolltech/Qt-4.2.2, if this option is
    disabled then some platforms will attempt a
    "system" install by placing default values to
    be placed in a system location other than
    PREFIX.


    -prefix-install is enabled by default according to "configure -help".

    Any other suggestions?

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,372
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt 4.2.2 and SuSE Linux 9.3

    The point is to use a different prefix than your shared installation has and to call make install to install the static version there. You should end up with two distinct Qt trees, one shared and one static. You can then try to link the two trees together, for example by substituting the include directory with a link to the include directory of the other tree, etc. You should be able to do the same with the doc, mkspecs, translations and phrasebooks directories. And you can delete demos and examples as you probably won't need static versions of those. Note that I'm talking about full compilation here, not only about compiling sub-src. For sub-src you probably won't have some of the directories at all.

  6. #6
    Join Date
    Aug 2006
    Location
    The Netherlands
    Posts
    64
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.2.2 and SuSE Linux 9.3

    Quote Originally Posted by wysota View Post
    The point is to use a different prefix than your shared installation has and to call make install to install the static version there.
    That's the point, I don't have a shared installation, I don't use the command "make install".
    Look at the procedure I used in my first post. The reason is that compiling all the stuff takes more time, specially when you want to link static and I don't need need the shared libs anyway. My programs have to run on many distro's.

    According to AMan in his article http://wiki.qtcentre.org/index.php?t...ic_Qt_on_Linux you can not use "make install" when you need to link static.

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,372
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt 4.2.2 and SuSE Linux 9.3

    Quote Originally Posted by Teuniz View Post
    That's the point, I don't have a shared installation
    There is no problem then. But sub-src won't be enough, for example Designer and Assistant won't be built.

    According to AMan in his article http://wiki.qtcentre.org/index.php?t...ic_Qt_on_Linux you can not use "make install" when you need to link static.
    Have you tried?
    According to me it may only apply when having static and shared installations side by side to avoid overwriting one with the other.

  8. #8
    Join Date
    Aug 2006
    Location
    The Netherlands
    Posts
    64
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.2.2 and SuSE Linux 9.3

    Somebody from Trolltech was so kind to solve my problem.
    You can find the solution here: http://wiki.qtcentre.org/index.php?t...ic_Qt_on_Linux

    Regards.

  9. The following user says thank you to Teuniz for this useful post:

    jacek (26th February 2007)

Similar Threads

  1. Qt 4.1.4 & Mysql 5 on Linux x64
    By bothapn in forum Installation and Deployment
    Replies: 7
    Last Post: 4th August 2006, 13:23
  2. Replies: 4
    Last Post: 10th May 2006, 22:37
  3. KDevelop/Qt in SuSE 10.0
    By pandorazbox in forum Qt Programming
    Replies: 4
    Last Post: 14th February 2006, 02:21
  4. Replies: 4
    Last Post: 12th January 2006, 04:16
  5. Qt assistant under linux
    By jochen_r in forum Newbie
    Replies: 8
    Last Post: 10th January 2006, 08:39

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.