Unsolved New to Qt.
-
@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.cpperror: 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. -
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 -
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.
-
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?
-
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 -
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 \
-
I mean in your source code, in all places where you include Qt header files
#include <QtGui/QTreeView>
should be
#include <QTreeView> -
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) -
-
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?
-
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?