NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Borghal
Joined: 05 Mar 2011 Posts: 1
|
Posted: Sat Mar 05, 2011 6:58 pm Post subject: Getting NetBeans to work with Qt on Windows Xp |
|
|
Hello,
I have done a few projects already in C with NetBeans, but now we have to do a project at school in C++ using Qt. Obligatory. Just in case, I uninstalled both the NetBeans version I was using before and cygwin which I used with it. Then I followed the tutorial at http://netbeans.org/kb/docs/cnd/qt-applications.html, but there seems to be a hell of a lot wrong on my machine.
1) When I did as instructed all the way to step 7 and then tried to compile the sample "HelloQtWorld", I got an error - missing qmake. Easy to fix, sure, but why did it come up in the first place, when the tutorial mentions no such thing happening?
2) The PATH variable contained nothing about Qt or mingw, so I edited it to look like this (that is currently the whole PATH variable of my system):
C:/Qt/2010.05/bin/; C:/Qt/2010.05/qt/bin/; C:/Qt/2010.05/mingw/bin/
not sure if this is enough
3) My next attempt to build the sample came up with this:
| Code: | "/usr/bin/make" -f nbproject/qt-Debug.mk dist/Debug/MinGW_Qt-Windows/HelloQtWorld_1.exe
make[2]: c:/Qt/2010.05/qt/binuic.exe: Command not found
make[2]: *** [ui_HelloForm.h] Error 127
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
make[2]: Entering directory `/e/Dokumenty/NetBeansProjects/HelloQtWorld_1'
c:/Qt/2010.05/qt/binuic.exe HelloForm.ui -o ui_HelloForm.h
make[2]: Leaving directory `/e/Dokumenty/NetBeansProjects/HelloQtWorld_1'
make[1]: Leaving directory `/e/Dokumenty/NetBeansProjects/HelloQtWorld_1' |
After a bit of googling, I fixed this one too, by editing qmake.conf in qt/mkspecs/deafult. But again, why did it happen inthe first place?
4) So now the build is fine. BUT! Running the sample project yields this error message:
| Code: | The application failed with exit code -1073741515 (0xc0000135).
This could indicate that no required .dll was found in the PATH.
Please try to start the following command from the command shell (cmd.exe).
This may give some additional information.
E:/Dokumenty/NetBeansProjects/HelloQtWorld_1/dist/Debug/MinGW_Qt-Windows/HelloQtWorld_1
RUN FAILED (exit value -1 073 741 515, total time: 203ms)
|
...and I am at a loss as to it's meaning or solution.
Update: I found out that the dll in question is QtCore4.dll, which is also present and included in the PATH variable. I really don't understand this.
Please help, I need this up and running asap... yay for short deadlines
Oh, and when I try to run a simple C++ app without Qt ("welcome" sample), It comes up with a libgcc_s_dw2-1.dll missing error. But I HAVE that file and it's location is included in the PATH variable. What the ...?  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|