New to Qt.



  • It says here, overriding recipe for target 'build/*.0' ignoring old recipe for target 'build/*.0' in Makefile.Debug

    I think I'm having problems with compiling. :\



  • can you show us all the errors? there must be more than 1 line...



  • Yes, it is more than 1 line.. actually the project has 19 errors.

    C:\Users\irish_ElEveN\Desktop\build-SimulIDE-Desktop_Qt_5_5_1_MinGW_32bit-Debug\Makefile.Debug:182: warning: overriding recipe for target 'build/*.o' line 182
    C:\Users\irish_ElEveN\Desktop\build-SimulIDE-Desktop_Qt_5_5_1_MinGW_32bit-Debug\Makefile.Debug:179: warning: ignoring old recipe for target 'build/*.o' line 179 and so on.. till 18th error

    The 19th error was :-1: error: No rule to make target 'src/simulator/elements/processors/*.cpp', needed by 'build/*.o'. Stop.



  • @ijnuj.aicrag said:

    line 182

    what's on that line, and what is it's context?



  • @Eddy line 178 build/*.o: src/*.cpp
    line 179 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o build\*.o src\*.cpp

    181 build/*.o: src/gui/*.cpp
    182 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o build\*.o src\gui\*.cpp

    184 build/*.o: src/gui/circuitwidget/*.cpp
    $(CXX) -c $(CXXFLAGS) $(INCPATH) -o build\*.o src\gui\circuitwidget\*.cpp

    187 build/*.o: src/gui/circuitwidget/components/*.cpp
    188 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o build\*.osrc\gui\circuitwidget\components\*.cpp

    190 build/*.o: src/gui/circuitwidget/components/mcu/*.cpp
    191 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o build\*.o src\gui\circuitwidget\components\mcu\*.cpp

    193 build/*.o: src/gui/oscopewidget/*.cpp
    194 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o build\*.o src\gui\oscopewidget\*.cpp

    196 build/*.o: src/gui/QPropertyEditor/*.cpp
    197 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o build\*.o src\gui\QPropertyEditor\*.cpp

    199 build/*.o: src/simulator/*.cpp
    200 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o build\*.o src\simulator\*.cpp

    202 build/*.o: src/simulator/elements/*.cpp
    203 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o build\*.o src\simulator\elements\*.cpp

    205 build/*.o: src/simulator/elements/processors/*.cpp
    206 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o build\*.o src\simulator\elements\processors\*.cpp

    19th error is :-1: error: No rule to make target 'src/simulator/elements/processors/*.cpp', needed by 'build/*.o' Stop.



  • @ijnuj.aicrag
    can you compile a simple application using Qt or do you have the same problems?



  • @Eddy No, I actually want to run that project for school purposes. Please, help me :(



  • @ijnuj.aicrag said:

    @Eddy No, I actually want to run that project for school purposes. Please, help me :(

    Hi,

    It's difficult to help you if we can't see the sources. Do you have an installed Qt Creator and are you able to run a simple example. We need to know to see if your environment is ok.


  • Lifetime Qt Champion

    @Eddy You can find the source on sourceforge.
    The thing is: it's a Qt 4 project which has seen its last commit 3 years ago. So the first thing that must done is to remove all modules from the includes and add QT += widgets to the main .pro file and then the rest.



  • I ran some examples on Qt Creator so I think it is definitely working. I'm just having trouble compiling the project.. Thanks.


  • Moderators

    @ijnuj.aicrag said:

    @Eddy No, I actually want to run that project for school purposes. Please, help me :(

    Are other people in your school using that project? Did they manage to compile it?

    I ran some examples on Qt Creator so I think it is definitely working. I'm just having trouble compiling the project..

    The project is written in Qt 4, so you will have better luck if you download Qt 4.



  • @JKSH I am just the one who's working on this project.

    Yep, I gotta give it a try. Just having trouble with the version of the compiler for Qt 4.8.7. Is it okay to put MinGW-w64 32 bit on it?


  • Moderators

    @ijnuj.aicrag said:

    @JKSH I am just the one who's working on this project.

    Do you want to use SimulIDE, or modify SimulIDE?

    Yep, I gotta give it a try. Just having trouble with the version of the compiler for Qt 4.8.7. Is it okay to put MinGW-w64 32 bit on it?

    See https://wiki.qt.io/MinGW . Qt 4.8.7 uses the same compiler as Qt 4.8.6 (mingw-builds i686-4.8.2-release-posix-dwarf-rt_v3-rev3)



  • @JKSH I'm gonna modify it (change some objects on UI, etc) then I'm gonna use it, that's all.
    Thank you so much for the link of the compiler you sent!


  • Moderators

    @ijnuj.aicrag said:

    @JKSH I'm gonna modify it (change some objects on UI, etc) then I'm gonna use it, that's all.

    If you want to modify it to let other people use it, then I suggest you try to port it to Qt 5 (if you can). Qt 4 will no longer be supported after this year.

    Thank you so much for the link of the compiler you sent!

    You're welcome. I just realized that the page I posted had a broken download link. I've fixed it now.



  • @JKSH I've downloaded the (qt-opensource-windows-x86-vs2010-4.8.7.exe) to have Qt4 Version. Is it okay despite my system unit is on 32-bit?


  • Moderators

    @ijnuj.aicrag said:

    @JKSH I've downloaded the (qt-opensource-windows-x86-vs2010-4.8.7.exe) to have Qt4 Version. Is it okay despite my system unit is on 32-bit?

    That's ok. x86 is 32-bit.



  • Would it be better if you could provide the source code of the project



  • @bruakerche http://sourceforge.net/p/simulide/svnrepo/HEAD/tree/ here's the link of the source code. Download snapshot.



  • Error became 1 when I changed something I don't know.

    Here's the syntax:
    c:\Qt\4.8.7\bin\rcc.exe -name application ..\simulide-svnrepo-27-trunk\application.qrc -o debug\qrc_application.cpp

    error: missing separator (did you mean TAB instead of 8 spaces?). Stop.



  • 14:47:06: Running steps for project SimulIDE...
    14:47:06: Configuration unchanged, skipping qmake step.
    14:47:06: Starting: "C:\Users\irish_ElEveN\Desktop\mingw32\bin\mingw32-make.exe"
    C:/Users/irish_ElEveN/Desktop/mingw32/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory 'C:/Users/irish_ElEveN/Desktop/build-SimulIDE-Unnamed-Debug'
    Makefile.Debug:159: *** missing separator. Stop.
    mingw32-make[1]: Leaving directory 'C:/Users/irish_ElEveN/Desktop/build-SimulIDE-Unnamed-Debug'
    Makefile:34: recipe for target 'debug' failed
    mingw32-make: *** [debug] Error 2
    14:47:06: The process "C:\Users\irish_ElEveN\Desktop\mingw32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project SimulIDE (kit: Desktop Qt 4.8.7)
    When executing step "Make"
    14:47:06: Elapsed time: 00:00.


  • Qt Champions 2018

    Something is wrong in the Make file. What is in line 159 in Makefile.Debug?
    Since the Make file is generated from you PRO file you should check it or post it here.



  • @jsulm $(CXX) -c $(CXXFLAGS) $(INCPATH) -o build\*.o src\*.cpp That's the syntax on line 159


  • Qt Champions 2018

    Did you change the Make file manually?
    Is that line indented using TAB or blanks?
    Make file syntax requires TAB characters instead of blanks:
    all:
    DO SOMETHING
    Before DO SOMETHING there must be TAB not blanks



  • @jsulm I didn't change the Make file. The sources were fixed since I just downloaded the project. --- It is actually tabbed, 2 tabs. I don't get your point with DO SOMETHING.


  • Qt Champions 2018

    error: missing separator (did you mean TAB instead of 8 spaces?). Stop.
    Makefile.Debug:159: *** missing separator. Stop.

    Well, this tells us that the Make file has wrong syntax (spaces instead of TAB).



  • @jsulm I think I fixed that, the only error I got now is, No rule to make target 'src/*.cpp', needed by 'build/*.o'. Stop.

    15:27:30: Configuration unchanged, skipping qmake step.
    15:27:30: Starting: "C:\Users\irish_ElEveN\Desktop\mingw32\bin\mingw32-make.exe" 
    C:/Users/irish_ElEveN/Desktop/mingw32/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory 'C:/Users/irish_ElEveN/Desktop/build-SimulIDE-Unnamed-Debug'
    mingw32-make[1]: *** ****No rule to make target 'src/*.cpp', needed by 'build/*.o'.  Stop.****
    mingw32-make[1]: Leaving directory 'C:/Users/irish_ElEveN/Desktop/build-SimulIDE-Unnamed-Debug'
    mingw32-make: *** [debug] Error 2
    Makefile:34: recipe for target 'debug' failed
    15:27:30: The process "C:\Users\irish_ElEveN\Desktop\mingw32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project SimulIDE (kit: Desktop Qt 4.8.7)
    When executing step "Make"
    15:27:30: Elapsed **bolded text**time: 00:00.```


  • I observed that 'src.cpp' isn't a .cpp file. It is just a folder containing sub folders for the sources of the project. What should I do to that?


  • Qt Champions 2018

    There are two cpp files inside src directory, so it should be OK.
    Replace all that *.cpp and *.h with complete file names like: src/mainwindow.cpp


  • Qt Champions 2018

    Add widgets to QT in pro file: QT += xml widgets
    Remove all prefixes in the Qt includes:
    #include <QtGui/QTreeView>
    should be
    #include <QTreeView>



  • @jsulm Where's Qt includes? is it INCLUDEPATH += src \


  • Qt Champions 2018

    I mean in your source code, in all places where you include Qt header files
    #include <QtGui/QTreeView>
    should be
    #include <QTreeView>


  • Lifetime Qt Champion

    If the path are giving problems add $ $PWD (without the space obviously) before them e.g. INCLUDEPATH += $ $PWD/src (again without the space between the dollars the forum eats one if two are following each other)



  • @jsulm said:

    #include <QTreeView>

    I found one and replaced it. No news at all. Hmm..


  • Qt Champions 2018

    Just build again and again and fix all the wrong includes (there are many in this project)



  • @SGaist I added $ $PWD on
    SOURCES += $$PWD/src/*.cpp \
    HEADERS += $$PWD/src/*.h \
    INCLUDEPATH += $$PWD/src \

    Is that right?


  • Lifetime Qt Champion

    Do it for all the paths contained in these variables



  • @SGaist I got a new error,

    :-1: error: error: C:/Users/irish_ElEveN/Desktop/simulide-svnrepo-27-trunk/include/simavr/libsimavr.a: No such file or directory

    How can I remove simavr? Is it necessary to have that file on SimulIDE?


  • Qt Champions 2018

    I don't know whether this lib is needed or not.
    You can remove (or comment out) this line in SimulIDE.pro:
    LIBS += $$PRO_FILE_PWD/include/simavr/libsimavr.a



  • @jsulm c:\Qt\4.8.7\lib\qtmaind.lib(tmp\obj\debug_shared\qtmain_win.obj):-1: error: undefined reference to `_CxxThrowException@8'

    17:14:16: Configuration unchanged, skipping qmake step.
    17:14:16: Starting: "C:\Users\irish_ElEveN\Desktop\mingw32\bin\mingw32-make.exe" 
    c:\Qt\4.8.7\bin\qmake.exe -spec ..\..\..\..\Qt\4.8.7\mkspecs\win32-g++ -o Makefile ..\simulide-svnrepo-27-trunk\SimulIDE.pro
    C:/Users/irish_ElEveN/Desktop/mingw32/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory 'C:/Users/irish_ElEveN/Desktop/build-SimulIDE-Unnamed-Debug'
    g++ -mthreads -Wl,-subsystem,windows -o debug\SimulIDE\SimulIDE.exe object_script.SimulIDE.Debug  -L"c:\Qt\4.8.7\lib" -lmingw32 -lqtmaind -lQtXmld4 -lQtGuid4 -lQtCored4 
    Warning: corrupt .drectve at end of def file
    c:\Qt\4.8.7\lib/qtmaind.lib(tmp/obj/debug_shared/qtmain_win.obj):(.text[?realloc@?$QVector@PAD@@AAEXHH@Z]+0x240): undefined reference to `_CxxThrowException@8'
    Makefile.Debug:209: recipe for target 'debug\SimulIDE\SimulIDE.exe' failed
    c:\Qt\4.8.7\lib/qtmaind.lib(tmp/obj/debug_shared/qtmain_win.obj):(.text[?realloc@?$QVector@PAD@@AAEXHH@Z]+0x3b1): undefined reference to `_CxxThrowException@8'
    C:/Users/irish_ElEveN/Desktop/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe: c:\Qt\4.8.7\lib/qtmaind.lib(tmp/obj/debug_shared/qtmain_win.obj): bad reloc address 0x3b1 in section `.text[?realloc@?$QVector@PAD@@AAEXHH@Z]'
    collect2.exe: error: ld returned 1 exit status
    mingw32-make[1]: *** [debug\SimulIDE\SimulIDE.exe] Error 1
    mingw32-make: *** [debug] Error 2
    mingw32-make[1]: Leaving directory 'C:/Users/irish_ElEveN/Desktop/build-SimulIDE-Unnamed-Debug'
    Makefile:34: recipe for target 'debug' failed
    17:14:19: The process "C:\Users\irish_ElEveN\Desktop\mingw32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project SimulIDE (kit: Desktop Qt 4.8.7)
    When executing step "Make"
    17:14:19: Elapsed time: 00:03.

Log in to reply