Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Getting Qt Creator setup properly
Forum Updated to NodeBB v4.3 + New Features

Getting Qt Creator setup properly

Scheduled Pinned Locked Moved Installation and Deployment
23 Posts 4 Posters 16.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hdevine
    wrote on last edited by
    #12

    The QT version says "Qt in PATH". When I check Tools->Options->Qt4, I get the following:

    Auto-detected
    Qt in Path /usr/bin/qmake-qt4
    Manual
    Qt 4.6.3 OpenSource /opt/qtsdk-2010.04/qt/bin/qmake

    Sorry if these seem like dumb questions. I'm feeling my away around Qt after being a Windows/MFC/Developer Studio programmer for over 10 years.

    Harry

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lyuts
      wrote on last edited by
      #13

      I bet your Qt in Path has version < 4.6. The item QKeySequence::Quit appeared in QKeySequence::StandardKey enum only in Qt 4.6 (according to documentation). Modify the build settings for your project in Qt Creator and explicitly tell it to use Qt 4.6.3.

      I'm a rebel in the S.D.G.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hdevine
        wrote on last edited by
        #14

        When I do that, it says "This Qt version is invalid" next to the Qt version drop down box (which says Qt 4.6.3 OpenSource at the moment). So, how do I get the Creator to see a valid Qt version?

        Harry

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lyuts
          wrote on last edited by
          #15

          This is means that Qt 4.6.3 has not been registered correctly.
          Please show the output of the following cmd

          $ ls -l/opt/qtsdk-2010.04/qt/bin

          I'm a rebel in the S.D.G.

          1 Reply Last reply
          0
          • H Offline
            H Offline
            hdevine
            wrote on last edited by
            #16

            Here it is:

            total 107232
            -rwxrwxr-x 1 root root 954622 2010-07-08 12:40 assistant
            -rwxrwxr-x 1 root root 556588 2010-07-08 12:41 assistant_adp
            -rw-r--r-- 1 root root 3466954 2010-07-08 12:41 assistant_adp.debug
            -rw-r--r-- 1 root root 4327151 2010-07-08 12:40 assistant.debug
            -rwxr-xr-x 1 root root 2009 2010-06-01 22:03 createpackage.bat
            -rwxr-xr-x 1 root root 11341 2010-06-01 22:03 createpackage.pl
            -rwxrwxr-x 1 root root 544330 2010-07-08 12:49 designer
            -rw-r--r-- 1 root root 5324944 2010-07-08 12:49 designer.debug
            -rwxr-xr-x 1 root root 4160 2010-06-01 22:03 findtr
            -rwxrwxr-x 1 root root 274758 2010-07-08 12:51 lconvert
            -rw-r--r-- 1 root root 1728638 2010-07-08 12:51 lconvert.debug
            -rwxrwxr-x 1 root root 1698636 2010-07-08 12:50 linguist
            -rw-r--r-- 1 root root 11738182 2010-07-08 12:50 linguist.debug
            -rwxrwxr-x 1 root root 1896048 2010-07-08 12:51 lrelease
            -rw-r--r-- 1 root root 6334083 2010-07-08 12:51 lrelease.debug
            -rwxrwxr-x 1 root root 656709 2010-07-08 12:51 lupdate
            -rw-r--r-- 1 root root 3576714 2010-07-08 12:51 lupdate.debug
            -rwxrwxr-x 1 root root 1150347 2010-07-08 11:38 moc
            -rw-r--r-- 1 root root 3760193 2010-07-08 11:38 moc.debug
            -rw-r--r-- 1 root root 43 2010-06-01 22:03 patch_capabilities.bat
            -rwxr-xr-x 1 root root 7974 2010-06-01 22:03 patch_capabilities.pl
            -rwxrwxr-x 1 root root 53704 2010-07-08 12:41 pixeltool
            -rw-r--r-- 1 root root 493114 2010-07-08 12:41 pixeltool.debug
            -rwxrwxr-x 1 root root 55832 2010-07-08 12:40 qcollectiongenerator
            -rw-r--r-- 1 root root 383716 2010-07-08 12:40 qcollectiongenerator.debug
            -rwxr-xr-x 1 root root 441481 2010-06-02 08:17 qdbus
            -rwxr-xr-x 1 root root 225878 2010-06-02 08:17 qdbuscpp2xml
            -rwxr-xr-x 1 root root 1317969 2010-06-02 08:17 qdbusviewer
            -rwxr-xr-x 1 root root 592544 2010-06-02 08:17 qdbusxml2cpp
            -rwxr-xr-x 1 root root 11855776 2010-06-02 08:17 qdoc3
            -rwxrwxr-x 1 root root 182351 2010-07-08 12:41 qhelpconverter
            -rw-r--r-- 1 root root 2734951 2010-07-08 12:41 qhelpconverter.debug
            -rwxrwxr-x 1 root root 20825 2010-07-08 12:40 qhelpgenerator
            -rw-r--r-- 1 root root 249557 2010-07-08 12:40 qhelpgenerator.debug
            -rwxrwxr-x 1 root root 3488831 2010-07-08 11:34 qmake
            -rwxrwxr-x 1 root root 1040684 2010-07-08 12:42 qt3to4
            -rw-r--r-- 1 root root 5548861 2010-07-08 12:42 qt3to4.debug
            -rwxr-xr-x 1 root root 3015021 2010-06-02 08:17 qtconfig
            -rwxr-xr-x 1 root root 5034401 2010-06-02 08:17 qtdemo
            -rwxrwxr-x 1 root root 32030 2010-07-08 12:42 qttracereplay
            -rw-r--r-- 1 root root 419806 2010-07-08 12:42 qttracereplay.debug
            -rwxrwxr-x 1 root root 1307043 2010-07-08 11:38 rcc
            -rw-r--r-- 1 root root 3882638 2010-07-08 11:38 rcc.debug
            -rwxr-xr-x 1 root root 8464 2010-06-01 22:03 setcepaths.bat
            -rwxr-xr-x 1 root root 39021 2010-06-01 22:03 syncqt
            -rwxr-xr-x 1 root root 2021 2010-06-01 22:03 syncqt.bat
            -rwxrwxr-x 1 root root 1827685 2010-07-08 11:38 uic
            -rwxrwxr-x 1 root root 1199238 2010-07-08 11:53 uic3
            -rw-r--r-- 1 root root 7898122 2010-07-08 11:53 uic3.debug
            -rw-r--r-- 1 root root 7561206 2010-07-08 11:38 uic.debug
            -rwxr-xr-x 1 root root 610105 2010-06-02 08:17 xmlpatterns
            -rwxr-xr-x 1 root root 157151 2010-06-02 08:17 xmlpatternsvalidator

            Thanks,
            Harry

            1 Reply Last reply
            0
            • H Offline
              H Offline
              hdevine
              wrote on last edited by
              #17

              I started looking back at this again today, and I see that the Qt4 section in Qt Creator says "Qt version is not properly installed, please run make install". So, when I do that in the area where I have the 4.6.3 source, I get the following compile error:

              make[2]: Entering directory /opt/qtsdk-2010.04/qt/tools/qtconfig' g++ -c -pipe -g -O2 -I/usr/include/freetype2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_GUI_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include/QtGui -I../../include/Qt3Support -I../../include -I. -I/usr/X11R6/include -I.moc/release-shared -I.uic/release-shared -o .obj/release-shared/mainwindow.o mainwindow.cpp mainwindow.cpp:70:21: error: gst/gst.h: No such file or directory mainwindow.cpp: In constructor ‘MainWindow::MainWindow()’: mainwindow.cpp:392: error: ‘gst_init_check’ was not declared in this scope mainwindow.cpp:393: error: ‘gchar’ was not declared in this scope mainwindow.cpp:393: error: ‘versionString’ was not declared in this scope mainwindow.cpp:393: error: ‘gst_version_string’ was not declared in this scope mainwindow.cpp:395: error: ‘g_free’ was not declared in this scope mainwindow.cpp:396: error: ‘GList’ was not declared in this scope mainwindow.cpp:396: error: ‘factoryList’ was not declared in this scope mainwindow.cpp:396: error: ‘gst_registry_get_default’ was not declared in this scope mainwindow.cpp:396: error: ‘GST_TYPE_ELEMENT_FACTORY’ was not declared in this scope mainwindow.cpp:396: error: ‘gst_registry_get_feature_list’ was not declared in this scope mainwindow.cpp:398: error: ‘iter’ was not declared in this scope mainwindow.cpp:398: error: ‘g_list_first’ was not declared in this scope mainwindow.cpp:398: error: ‘g_list_next’ was not declared in this scope mainwindow.cpp:399: error: ‘GstPluginFeature’ was not declared in this scope mainwindow.cpp:399: error: ‘feature’ was not declared in this scope mainwindow.cpp:399: error: ‘GST_PLUGIN_FEATURE’ was not declared in this scope mainwindow.cpp:400: error: ‘GST_ELEMENT_FACTORY’ was not declared in this scope mainwindow.cpp:400: error: ‘gst_element_factory_get_klass’ was not declared in this scope mainwindow.cpp:402: error: ‘GST_PLUGIN_FEATURE_NAME’ was not declared in this scope mainwindow.cpp:407: error: ‘GstElement’ was not declared in this scope mainwindow.cpp:407: error: ‘sink’ was not declared in this scope mainwindow.cpp:407: error: ‘gst_element_factory_make’ was not declared in this scope mainwindow.cpp:409: error: ‘gst_element_factory_get_description’ was not declared in this scope mainwindow.cpp:412: error: ‘gst_object_unref’ was not declared in this scope mainwindow.cpp:416: error: ‘g_list_free’ was not declared in this scope make[2]: *** [.obj/release-shared/mainwindow.o] Error 1 make[2]: Leaving directory /opt/qtsdk-2010.04/qt/tools/qtconfig'
              make[1]: *** [sub-qtconfig-install_subtargets-ordered] Error 2
              make[1]: Leaving directory `/opt/qtsdk-2010.04/qt/tools'
              make: *** [sub-tools-install_subtargets-ordered] Error 2

              I did some Googling and saw a suggestion to make sure that the gstreamer headers are installed. I'm running 32 bit Fedora 11 and I have the gstreamer stuff installed already from what I can tell. Any ideas?

              Harry

              1 Reply Last reply
              0
              • L Offline
                L Offline
                lyuts
                wrote on last edited by
                #18

                The directory with gstreamer headers should be passed via -I flag during compilation. Something like

                -I/usr/include/gstreamer-0.10

                This can be done in .pro file by adding this path to INCLUDEPATH.

                I'm a rebel in the S.D.G.

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  hdevine
                  wrote on last edited by
                  #19

                  It appears like I don't have the gstreamer headers. I don't see anything like that under /usr/include on my system. I also tried to look for gst.h (which was mentioned in the output above) and I don't have that either. Do you know what package I need to install to get those headers?

                  Thanks,
                  Harry

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    lyuts
                    wrote on last edited by
                    #20

                    The name can vary a little bit depending on your distro. But i think it should be easy for you to figure out the correct name since the package name should have a suffix 'dev' or 'devel'. For openSUSE it is gstreamer-0_10-devel.

                    I'm a rebel in the S.D.G.

                    1 Reply Last reply
                    0
                    • H Offline
                      H Offline
                      hdevine
                      wrote on last edited by
                      #21

                      OK, I got it working finally. I installed the gstreamer-devel package for Fedora 11, redownloaded the SDK, and rebuilt the source. Then I told QT Creator to use the newly build source and the demos build. Now its time to start learning Qt!

                      Thanks,
                      Harry

                      1 Reply Last reply
                      0
                      • L Offline
                        L Offline
                        lyuts
                        wrote on last edited by
                        #22

                        Great, have fun!

                        I'm a rebel in the S.D.G.

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          alirezador
                          wrote on last edited by
                          #23

                          hello
                          i had same problem but now i think i can fix it

                          سی پرو بزرگترین مرکز دانلود پروژه های دانشجویی
                          <a href="http://www.cpro.ir" target="_blank">http://www.cpro.ir</a>

                          1 Reply Last reply
                          0

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved