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. Why does QT4.8.2(Build Debug Libraries) Stop because of "No rule to make target" (QT 4.8.2 , Win XP, MinGW )
Forum Updated to NodeBB v4.3 + New Features

Why does QT4.8.2(Build Debug Libraries) Stop because of "No rule to make target" (QT 4.8.2 , Win XP, MinGW )

Scheduled Pinned Locked Moved Installation and Deployment
16 Posts 6 Posters 11.9k 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.
  • K Offline
    K Offline
    klox
    wrote on last edited by
    #7

    I just ran into this error too. I am downloading the Qt libraries install, not the whole SDK. I was planning on using Eclipse + Qt plugin so I didn't think the whole SDK was necessary. Is that incorrect?

    After installing Qt libraries I have the folder c:\Qt\4.8.2. Under the start menu there is a folder Qt by Nokia v4.8.2 (MinGW OpenSource). Inside there are the following: Assistant, Designer, Examples and Demos, Linguist, Qt 4.8.2 (Build Debug Libraries), Qt 4.8.2 Command Prompt, Qt Readme, qt.digia.com, Uninstall

    So that is what the OP was using (the build debug libraries). I also saw from tutorials to use that after defining relevant environment variables. Executing that eventually gave me two different errors:

    1. Maybe about 30-40 minutes in it tries to use ld.exe and throws an "out of memory" error. I got this several times until I restarted my computer and I think it's successfully passed this point.

    @g++ -Wl -subsystem,console -mthreads -o ......\bin\uic3.exe object_script.uic3.Debug -L"c:\Qt\4.8.2\lib" -L"c:\MinGW\lib" -L"c:\Qt\4.8.2\lib" -L"c:\Qt\4.8.2\lib" -lQt3Supportd4 -lQtXmld4 -lQtGuid4 -lQtCored4
    mingw32-make[2]: Leaving directory 'c:/Qt/4.8.2/src/toools/uic3'
    mingw32-make[2]: Leaving directory 'c:/Qt/4.8.2/src/toools/uic3'
    mingw32-make: *** No rule to make target 'src_tools_idc-sub_Debug', needed by 'sub-activeqt-sub_Debug'. Stop.@

    So I guess my question is how to make sure the debug version of the libraries were finished compiling. Should I instead be using the SDK and just not installing all the extra stuff? I was a bit confused because it was creating some pretty large directory structures and I felt like I wasn't figuring out how to correctly link everything together. The Qt libraries install seems much more straight forward, except for these compiler errors ;)

    Thanks!

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #8

      [quote author="klox" date="1339678175"]I just ran into this error too. I am downloading the Qt libraries install, not the whole SDK. I was planning on using Eclipse + Qt plugin so I didn't think the whole SDK was necessary. Is that incorrect?[/quote]
      There is no need to install the complete SDK since you are planning to use Eclipse as IDE.

      There are a couple of things you might to dwell a bit on.

      Since you have already installed the MinGW compiled libs of version 4.8.2, why do you want to compile them?
      This makes only sense if you require different settings in compilation.

      Do really need Qt3 support?
      You would need the Qt3 support when compiling programs created with Qt version 3. This is already quite some while ago. Since Qt 5 is already in the pipe it is definitely time to get rid of the old stuff IMHO. The configure allow you to switch off Qt 3 support.

      For whatever reason you decide you need to compile, I would recommend to use the "source zip":http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-4.8.2.zip for windows. I am not sure if it is mandatory, but at least in previous release there have been quite a number of problems with recompilations based on the source delivered with SDK and the compiled libs.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • K Offline
        K Offline
        klox
        wrote on last edited by
        #9

        Thanks very much. That clarifies a lot of what I've been reading. I don't need Qt3 since I'm just starting out with Qt development so I'll be sure to set those flags.

        I want to compile so that gdb works in eclipse. It cycles through some garbage each time before I see the debugger reach the code and I think it's because I haven't compiled the debug build.

        I'm going to give compiling the source a shot. One question I have remaining is also from what I've read online. I think I need to set this flag as a compiler flag, but I'm having trouble figuring that out:

        @-fno-keep-inline-dllexport@

        When I call configure do I do something like:

        @configure -no-qt3support CXXFLAGS="-fno-keep-inline-dllexport"
        @

        Thanks for your help. I'm looking forward to finally doing something productive ;)

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #10

          Please never use the sources of the SDK or of some prebuilt binaries to recompile Qt for your own needs. Always grab a clean, vanilla source package - koahnig has pointed to the location. Recompiling the a binary source is known to fail.

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

          1 Reply Last reply
          0
          • K Offline
            K Offline
            klox
            wrote on last edited by
            #11

            Thanks Volker, I'll be sure to avoid doing that again in the future.

            I tried compiling from source and now have other problems. If you have some time I would appreciate your feedback on what I might be doing wrong: http://qt-project.org/forums/viewthread/18329/

            Thanks!

            1 Reply Last reply
            0
            • T Offline
              T Offline
              truthseeker
              wrote on last edited by
              #12

              I have the same problem as QtSeppel. Downloaded Qt libraries 4.8.4 from official sources. Didn't want to mess with compiling from source but being forced to do this. The reason is that precompiled binaries are not compatible with Mingw version I have installed. I have tried three different versions of MinGW without success. The problem is described here:

              http://stackoverflow.com/questions/14685425/qapplication-segmentation-fault

              So I downloaded the official MinGw web installer and installed the actual version of it (contains gcc 4.7.2, gdb 7.5 versions beside other tools). Why should I download the source package? What the hell is the official installer about (http://releases.qt-project.org/qt4/source/qt-win-opensource-4.8.4-mingw.exe) when it is unusable? What is the purpose of "Qt 4.8.4 (Build Debug Libraries).bat" link in startup menu?? This is not a problem of package as such, because it contains source codes in form of cpp files (there are more than 6000 cpp files). Compilation have run tenths of minutes before failing so this must be some minor error in configuration I guess. Didnt want to uninstall already more than 3 GB package (with all the object files), this is not a solution.

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #13

                Hi and welcome to DevNet,

                The source packages are there when you have to build your own version of Qt (i.e. 64bit build or with support for openssl, mysql, etc...).

                The other packages are precompiled/ready to use when installed, you just have to add them to QtCreator and develop.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  truthseeker
                  wrote on last edited by
                  #14

                  I added them to QT Creator, compiled binary of my application, but can't debug because of incompatibility between mingw QT was compiled and installed version of mingw for me as client developer. There are various problems like gdb crashing when starting debugging or application crashing in QCoreApplicationPrivate::processCommandLineArguments method etc as described in this post:

                  http://stackoverflow.com/questions/14685425/qapplication-segmentation-fault

                  Exact behaviour depends on version of mingw installed. Because of this I need to recompile QT libraries with my version of mingw. Without recompiling I can't do serious work.

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    truthseeker
                    wrote on last edited by
                    #15

                    Now I tried to compile QT libraries v. 4.8.4 with MinGW 4.7.2 directly from "source package":http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-4.8.4.zip. The same problem occuring here - circa 45 minutes after build process is started following error message appears:

                    g++ -c -pipe -fno-keep-inline-dllexport -g -frtti -fexceptions -mthreads -Wall -Wextra -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_UIC_CPP_GENERATOR -DQT_COMPAT -DQT_UIC3 -DQT_
                    DLL -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"......
                    include\QtCore" -I"......\include\QtGui" -I"......\include\QtXml" -I"......\include\Qt3Support" -I"......\include" -I"..\uic" -I"..\uic\cpp" -I"..\uic" -I"." -I".
                    .....\include\ActiveQt" -I"tmp\moc\debug_shared" -I"......\mkspecs\win32-g++-4.6" -o tmp\obj\debug_shared\uic.o uic.cpp
                    g++ -Wl,-subsystem,console -mthreads -o ......\bin\uic3.exe object_script.uic3.Debug -L"e:\Software_Programovanie\QT\unzipped\qt-everywhere-opensource-src-4.8.4\lib"
                    -L"e:\Software_Programovanie\QT\unzipped\qt-everywhere-opensource-src-4.8.4\lib" -lQt3Supportd4 -lQtXmld4 -lQtGuid4 -lQtCored4
                    mingw32-make[2]: Leaving directory 'e:/Software/_Programovanie/QT/unzipped/qt-everywhere-opensource-src-4.8.4/src/tools/uic3'
                    mingw32-make[1]: Leaving directory 'e:/Software/_Programovanie/QT/unzipped/qt-everywhere-opensource-src-4.8.4/src/tools/uic3'
                    mingw32-make: *** No rule to make target 'src_tools_idc-sub_Debug', needed by 'sub-activeqt-sub_Debug'. Stop.

                    So the same problem occurs in source & precompiled package (the suggestion made by Volker on June 23, 2012 didnt help). Which is logical, because precompiled = source + binaries. I used official build script stored in bin/qtvars.bat (slightly adapted to my needs - changed paths to QT sources & platform from win32-g++ to win32-g++-4.6). Posting it here for reference:

                    @@echo off
                    rem
                    rem This file is generated
                    rem

                    echo Setting up a MinGW/Qt only environment...
                    echo -- QTDIR set to e:\Software_Programovanie\QT\unzipped\qt-everywhere-opensource-src-4.8.4
                    echo -- PATH set to e:\Software_Programovanie\QT\unzipped\qt-everywhere-opensource-src-4.8.4\bin
                    echo -- Adding e:\MinGW\bin to PATH
                    echo -- Adding %SystemRoot%\System32 to PATH
                    echo -- QMAKESPEC set to win32-g++-4.6

                    set QTDIR=e:\Software_Programovanie\QT\unzipped\qt-everywhere-opensource-src-4.8.4
                    set PATH=e:\Software_Programovanie\QT\unzipped\qt-everywhere-opensource-src-4.8.4\bin
                    set PATH=%PATH%;e:\MinGW\bin
                    set PATH=%PATH%;%SystemRoot%\System32
                    set QMAKESPEC=win32-g++-4.6

                    if not "%1"=="compile_debug" goto END
                    cd %QTDIR%
                    echo This will configure and compile qt in debug.
                    echo The release libraries will not be recompiled.
                    pause
                    configure -plugin-sql-sqlite -plugin-sql-odbc -qt-libpng -qt-libjpeg
                    cd %QTDIR%\src
                    qmake
                    mingw32-make debug
                    :END
                    @

                    What is weird the directory src/tools/idc doesnt contain makefiles:

                    !http://i46.tinypic.com/1fftib.png(idc directory listing)!

                    Siblings directories like for example src/tools/moc does:

                    !http://i50.tinypic.com/dwuq7n.png(moc directory listing)!

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #16

                      Check that you don't have multiple MinGW colliding.

                      The best would be to only have one MinGW installed and build everything using that one.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      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