Results 1 to 20 of 27

Thread: Qt 5.2.0 Releated Questions?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2006
    Posts
    42
    Thanks
    13
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Qt 5.2.0 Releated Questions?

    Recently I installed Qt 5.2.0 in Windows 7 success (?) and tried to install in Centos 6.0 but failed. I just wonder is there anyone has successful stories about both machines?

    1. In Windows 7, I installed qt-windows-opensource-5.2.0-mingw48_opengl-x86-offline.exe (my Windows 7 is set for 32 bits). It seems to me to use Qt Designer to create GUI and using its signal/slot tools did not work. (I have used Qt 3.3.6 in RedHat 5.X for years, to set for singal/slot worked very friendly and easily.) Does anyone has the same problem? I purchased two books: C++ GUI Programming with Qt 4 2nd edition by Jasmin Blanchette, and Advanced Qt Programing, Creating Great Sofware with C++ and Qt 4. Both books has talked very little about using Qt Designer to generate GUI, I wonder why? I knew the books are for Qt 4, but there is no Qt 5.2 book available ...)

    2. I Centos 6.0, I tried to install from qtx11extras-opensource-src-5.2.0.tar.gz, it failed. Then, I tried to install from qt-linux-opensource-5.2.0-x86_64-offline.run, it failed, too. (my Centos 6.0 machine is set for 64 bits) Can anyone instruct me how to install Qt 5.2.0 into Centos 6.0?

    Thanks

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

    Default Re: Qt 5.2.0 Releated Questions?

    Please provide more details about your problems. It is hard to help you in any way knowing only that something "fails".
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    mp33919 (17th February 2014)

  4. #3
    Join Date
    Jul 2006
    Posts
    42
    Thanks
    13
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Qt 5.2.0 Releated Questions?

    Thanks for your reply. Yes, I understand to describe something with "fail" without details are not a good way for asking some helps. But, since I had tried many ways and eventually crashed my system unexpectedly, it is a little hard to write down exactlly what happeded. So, let me started with install qt-linux-opensource-5.2.0-x86_64-offline.run in my Centos 6.0 first:
    1. run the .run program
    2. installer starts normally; I select ALL; I agreed Qt installer LGPL Agreement.
    3. Qt installer start to install components, such as Essentials, Qt Creator, Essential Modules, ...
    4. After installing "Create uninstaller", I press the "Finish" button. The README.txt file pops up. I think the Qt creator installation is done.
    5. I went to menu bar, under "Programming", I found two newly created "Qt Creator" and "Qt Creator (Opensource)" in it.
    6. Double click on Qt Creator (Opensource) -- nothing happened.
    7. Double click on Qt Creator: a message pops out: "Could not Launch Qt Creator": Failed to change directory /home/user_me/Qtcreator-3.0.0 (no such file or directory)
    8. It is true, I could not find anything about Qtcreator-3.0.0 in my machine. (But, why Qtcreator-3.0.0? even I could find it, should I need somthing Qtcreator 5.2....?)
    9. Anyway, at this moment, I think the installation of Qt5.2.0 from qt-linux-opensource-5.2.0-x86_64-offline.run failed. I could start to install Qt 5.2.0 from qtx11extras-opensource-src-5.2.0.tar.gz
    10. Is there anyway I could fix it before I un-install the Qt5.2.0 at this point?

    Thanks.

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

    Default Re: Qt 5.2.0 Releated Questions?

    Did you run the installation as root or as a normal user? What directory did you choose for the installation? Did you have appropriate access rights there?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #5
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt 5.2.0 Releated Questions?

    You appear to have tried installing a standalone QtCreator 3 at some stage in the past: this is the source of the desktop icon "Qt Creator"

    Qt Creator 3.0 is the version bundled with Qt5.2 in the binary download but that installer creates the other desktop icon pointing to ots bundles Qt Creator instance. The Qt bundle installer asks you for an install location and simply unpacks the entire installation under there. Apart from the desktop icons nothing goes outside that folder. The place to look for the install is where you told the installer to put it.

    The Qt X11 Extras installer is not needed to get a basic Qt install working on Linux.

  7. #6
    Join Date
    Jul 2006
    Posts
    42
    Thanks
    13
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Qt 5.2.0 Releated Questions?

    It might have been all the problems I have: I use as regular user not the root. Should I un-install it and use root to try again?
    I installed the Qt to /home/user_me/Qt5.2.0
    PS: the /user_me is my personal directory when I use it as a regular user.


    Added after 16 minutes:


    Yes, you are correct. I have Qt3.X in my system and I am still using it. I use it to migrate my Qt3.X programs from my old RedHat 5 32 bits machine to this Centos 6 64 bits. I wanted to write new projects with this Qt5.2.0. if I could get the Qt5.2.0 works. At the mean time, I hope that I could use Qt5.2.0 in my Windows 7 machine(s) so that I could have all my machines used the same IDE.
    So, I couldn't get rid of Qt3.X.
    Last edited by mp33919; 17th February 2014 at 22:02.

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

    Default Re: Qt 5.2.0 Releated Questions?

    Quote Originally Posted by mp33919 View Post
    It might have been all the problems I have: I use as regular user not the root. Should I un-install it and use root to try again?
    No, installing as regular user is ok.

    I installed the Qt to /home/user_me/Qt5.2.0
    Then look into /home/user_me/Qt5.2.0/Tools/QtCreator/bin. You should see QtCreator there.

    So, I couldn't get rid of Qt3.X.
    Qt3 can live alongside Qt5 just fine.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #8
    Join Date
    Jul 2006
    Posts
    42
    Thanks
    13
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Qt 5.2.0 Releated Questions?

    Yes, I did use prompt:
    /home/user_me/Qt5.2.0/Tools/QtCreator/bin]$ ./qtcreator

    I got the errors as below:

    Failed to load core: Can not load library /home/user_me/Qt5.2.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/libCore.so : Can not load library /home/user_me/Qt5.2.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/libCore.so : (usr/lib64/libstdc++.so 6: Version 'GLIBCXX_3.4.15' not found (required by /home/user_me/Qt5.2.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/../.././libQt5CLucene.so.5))

    I have checked both files libCore.so and libstdc++.so.6 are all in the directory as the error message specified.
    They are:
    -rwxr-xr-x. 1 me me Dec 10 11:49 libCore.so
    lrwxrwxrwx. 1 root root 19 Oct 2 2012 libstdc++.so.6 -> libstdc++.so.6.0.13

    "me" is my user name

    So the QtCreator can not be launched.

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

    Default Re: Qt 5.2.0 Releated Questions?

    Try with qtcreator.sh

    It seems you have an old system that doesn't have libstdc++6 installed.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  11. #10
    Join Date
    Jul 2006
    Posts
    42
    Thanks
    13
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Qt 5.2.0 Releated Questions?

    Same error messages!

  12. #11
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt 5.2.0 Releated Questions?

    The error message plainly explains that the library it is finding is not " Version 'GLIBCXX_3.4.15' " and therefore too old to be used. This is probably because your GCC is older than 4.6, probably GCC 4.4 or older. You are five release behind the current CentOS, so this should not be a surprise (although the current version still ships GCC 4.4.7)

    Update libstdc++. I do not know if it is a standalone package or part of GCC.

    There is even a Qt Project wiki page on dealing with the dated nature of CentOS by installing a private GCC version:
    http://qt-project.org/wiki/How-to-In...wt-on-CentOS-6

  13. The following user says thank you to ChrisW67 for this useful post:

    mp33919 (19th February 2014)

Similar Threads

  1. Need help with two questions please
    By phantom2323 in forum Qt Programming
    Replies: 1
    Last Post: 5th March 2012, 11:33
  2. two questions
    By jajdoo in forum Newbie
    Replies: 5
    Last Post: 18th July 2010, 21:12
  3. Some questions for Qt?
    By tszzp in forum Qt Programming
    Replies: 3
    Last Post: 14th December 2009, 09:46
  4. A few questions
    By T3AB4GG3R117 in forum Newbie
    Replies: 2
    Last Post: 21st January 2009, 08:01
  5. Sql questions
    By Nb2Qt in forum Qt Programming
    Replies: 4
    Last Post: 15th February 2007, 22:53

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.