Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Fresh Nokia Qt SDK install - won't run simulator or package anything

    Installation and Deployment
    5
    11
    7991
    Loading More Posts
    • 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.
    • S
      supermurmeli last edited by

      Hi.

      I am a complete noob with Qt. I have experience with WRT widgets and I'm interested testing the Qwebview 'stuff' in trying to build a Qt app with HTML and javascript. I've been trying out some of the examples from Forum Nokia etc. but I can't get the simulator running. Below is the error log.

      Even though the log states that 'Cannot access directory 'build/release' or 'such file or directory' don't exist - they do. They are created by the SDK and are located next to the project folder.

      As said - I don't have much experience in setting up development environments but I was hoping that the Qt SDK would live up to the promise of 'install once & no configuration needed' :)

      Can anyone help me?


      Running build steps for project QtWebKitStub...
      Starting: "c:/nokiaqtsdk/maemo/4.6.2/targets/fremantle-1030/bin/qmake.exe" C:/QtProjects/QtWebKitStub/QtWebKitStub.pro -r -spec default -unix CONFIG+=debug
      WARNING: OBJECTS_DIR: Cannot access directory 'build/release'
      WARNING: DESTDIR: Cannot access directory 'dist/release'
      WARNING: PRECOMPILED_DIR: Cannot access directory 'build/release'
      WARNING: moc_header: Cannot access directory 'build/release'
      WARNING: moc_header: Cannot access directory 'build/release'
      WARNING: moc_source: Cannot access directory 'build/release'
      WARNING: moc_source: Cannot access directory 'build/release'
      WARNING: moc_source: Cannot access directory 'build/release'
      WARNING: rcc: Cannot access directory 'build/release'
      The process "c:/nokiaqtsdk/maemo/4.6.2/targets/fremantle-1030/bin/qmake.exe" exited normally.
      Starting: "C:/nokiaqtsdk/maemo/4.6.2/bin/make.exe" -w
      make: Entering directory `/c/QtProjects/QtWebKitStub'
      g++ -c -pipe -O3 -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wall -W -D_REENTRANT -DQT_GL_NO_SCISSOR_TEST -DQT_DEFAULT_TEXTURE_GLYPH_CACHE_WIDTH=1024 -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1030-slim/usr/share/qt4/mkspecs/default -I. -I../../NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1030-slim/usr/include/QtCore -I../../NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1030-slim/usr/include/QtGui -I../../NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1030-slim/usr/include/QtWebKit -I../../NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1030-slim/usr/include -I../../NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1030-slim/usr/include/QtDBus -IC:/QtProjects/QtWebKitStub/build/release -o build/release/main.o src/main.cpp
      Assembler messages:
      Fatal error: can't create build/release/main.o: No such file or directory


      1 Reply Last reply Reply Quote 0
      • H
        hasnain last edited by

        select Qt simulator as Build/Run target. * Build->open Build/Run Target Selector Select Qt Simulator* . I haven't used maemo so can not say why it is not running properly.

        1 Reply Last reply Reply Quote 0
        • S
          supermurmeli last edited by

          Thanks for the answer!

          The problem is that it fails no matter what I choose as target.

          Even the Qt Simulator fails to run and 'Build issues' tab shows the following:

          """"
          :: error: [build/release/moc_wrtwidgetwindow.cpp] Error 1
          """"

          while 'Compile output' gives:

          """"

          Running build steps for project QtWebKitStub...
          Configuration unchanged, skipping qmake step.
          Starting: "C:/NokiaQtSDK/mingw/bin/mingw32-make.exe" -w
          mingw32-make: Entering directory C:/QtProjects/QtWebKitStub-build-simulator' moc ..\QtWebKitStub\src\wrtwidgetwindow.h mingw32-make: Leaving directory C:/QtProjects/QtWebKitStub-build-simulator'
          'C:\NokiaQtSDK\Simulator\Qt\mingw\binmoc.exe' is not recognized as an internal or external command,
          operable program or batch file.
          mingw32-make: *** [build/release/moc_wrtwidgetwindow.cpp] Error 1
          The process "C:/NokiaQtSDK/mingw/bin/mingw32-make.exe" exited with code %2.
          Error while building project QtWebKitStub (target: Qt Simulator)
          When executing build step 'Make'

          """"

          Tried uninstalling and reinstalling the SDK but nothing changes. I'm running Vista 64bit while a colleague on his workstation with Windows 7 is having no problems at all. Could this be Vista acting up?

          1 Reply Last reply Reply Quote 0
          • S
            shekar_brother last edited by

            I am facing the same problem for past few months. can not compile Hello world program due to "QApplication/QLabel - No such file or dir" and "mingw32-make.exe" exited with code %2"
            Interesting all the *example Qt programs 4.7 able to build & run.

            It is very difficult to find -where is the problem? Though one reason may the PATH setting. In the tools, option, Qt Path seems ok. (The message say -path is found except for Mingw).My path for Mingw =
            e:\qt\2010.05\mingw\bin\mingw32-g++.exe. Is it ok ?
            using Qt4.7 (Windows) and Qt creator 2.0.1

            Earlier, i can see the path has GREEN Tick mark- now CAN NOT see.and i have done, configure -platform Mingw-g++ and mingw32-make. Or am i missing some basic ??
            Posted in QTforum as well - no reply.

            Thanks for your time and effort.
            -Chandra shekar

            1 Reply Last reply Reply Quote 0
            • K
              kamalakshantv last edited by

              Have you included proper header and library files in your project?

              1 Reply Last reply Reply Quote 0
              • S
                shekar_brother last edited by

                Earlier version of Qt creator has options to include the INCLUDE files..in 2.0.1 i can see only for QMake. Why ?
                Even the mouse over the header files says that -"No such file or Directory".

                Have you included proper header and library files in your project?

                Now i manually include the INCLUDEPATH
                on Hellowolrd.PRO file.Still can not Solve the Problem. Is i have to change anything in QMAKE/MAKE file.Any comments Truely helpful. I can not solve this for 2 months. :-(

                Here the file like

                @
                #-------------------------------------------------
                QT += core
                QT -= gui
                TARGET = Helloworld
                CONFIG += qt
                TEMPLATE = app
                INCLUDEPATH += E:\Qt\2010.05\qt\include\Qt

                SOURCES += main.cpp
                #-------------------------------
                @

                [EDIT: code formatting / Volker]

                1 Reply Last reply Reply Quote 0
                • K
                  kamalakshantv last edited by

                  for the hello world example what is the console output error shown.

                  1 Reply Last reply Reply Quote 0
                  • S
                    shekar_brother last edited by

                    Here is the compile output.

                    *.\Helloworld\main.cpp:1:30: error: QApplication/QLabel: No such file or directory

                    *..\Helloworld\main.cpp:2:17: error: QLabel: No such file or directory

                    ..\Helloworld\main.cpp: In function 'int main(int, char**)':

                    ..\Helloworld\main.cpp:8: error: 'QApplication' was not declared in this scope

                    ..\Helloworld\main.cpp:8: error: expected ';' before 'app'

                    ..\Helloworld\main.cpp:9: error: 'QLabel' was not declared in this scope

                    ..\Helloworld\main.cpp:9: error: 'label' was not declared in this scope

                    ..\Helloworld\main.cpp:9: error: expected type-specifier before 'QLabel'

                    ..\Helloworld\main.cpp:9: error: expected ';' before 'QLabel'

                    ..\Helloworld\main.cpp:13: error: 'app' was not declared in this scope

                    mingw32-make[1]: *** [tmp/obj/release_shared/main.o] Error 1

                    mingw32-make: *** [release-all] Error 2

                    *The process "E:/Qt/2010.05/mingw/bin/mingw32-make.exe" exited with code %2.
                    Error while building project Helloworld (target: Desktop)
                    *When executing build step 'Make'

                    1 Reply Last reply Reply Quote 0
                    • G
                      goetz last edited by

                      Delete this line

                      @
                      QT -= gui
                      @

                      from your .pro project file. This excludes the complete GUI stuff from your project!

                      And please put "@-Tags":http://developer.qt.nokia.com/wiki/ForumHelp#e3f82045ad0f480d3fb9e0ac2d58fb01 around your code or file snippets, it's much more easier to read then!

                      http://www.catb.org/~esr/faqs/smart-questions.html

                      1 Reply Last reply Reply Quote 0
                      • S
                        shekar_brother last edited by

                        IT is working !!
                        Great.Heartfelt thanks to Volker and others.
                        @Tags - not working correctly on Opera 11. I will check again.

                        -Chandra

                        1 Reply Last reply Reply Quote 0
                        • G
                          goetz last edited by

                          [quote author="shekar_brother" date="1294501253"]IT is working !!
                          Great.Heartfelt thanks to Volker and others.
                          at-Tags - not working correctly on Opera 11. I will check again.

                          -Chandra [/quote]

                          Just put a single @-char before your lines of code an one after it. The rest is some magic of the forum and wiki software. The "Forum Help":http://developer.qt.nokia.com/wiki/ForumHelp and "Textile Syntax":http://developer.qt.nokia.com/wiki/TextileSyntax articles in the wiki have some more hints.

                          http://www.catb.org/~esr/faqs/smart-questions.html

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post