NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
craigugoretz
Joined: 10 Jul 2012 Posts: 1
|
Posted: Tue Jul 10, 2012 9:20 pm Post subject: Can't build a "Hello World" Qt application |
|
|
I have a Netbeans project that displays a blank form to the screen. When I go to build and run it, I get these error messages:
"/usr/bin/make" -f nbproject/Makefile-Release.mk QMAKE=/C/Qt/4.6.4/bin/qmake.exe SUBPROJECTS= .build-conf
make[1]: Entering directory `/c/Users/Craig S. Ugoretz/Documents/NetBeansProjects/QtApplication_2'
/C/Qt/4.6.4/bin/qmake.exe VPATH=. -spec win32-g++ -o qttmp-Release.mk nbproject/qt-Release.pro
mv -f qttmp-Release.mk nbproject/qt-Release.mk
"/usr/bin/make" -f nbproject/qt-Release.mk dist/Release/MinGW-Windows/QtApplication_2.exe
make[2]: Entering directory `/c/Users/Craig S. Ugoretz/Documents/NetBeansProjects/QtApplication_2'
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -mthreads -Wl -Wl,-subsystem,windows -o dist/Release/MinGW-Windows/QtApplication_2.exe build/Release/MinGW-Windows/HelloForm.o build/Release/MinGW-Windows/main.o build/Release/MinGW-Windows/moc_HelloForm.o -L'c:/Qt/4.6.4/lib' -lmingw32 -lqtmain build/Release/MinGW-Windows/QtApplication_2_resource_res.o -lQtGui4 -lQtCore4
make[2]: Leaving directory `/c/Users/Craig S. Ugoretz/Documents/NetBeansProjects/QtApplication_2'
make[1]: Leaving directory `/c/Users/Craig S. Ugoretz/Documents/NetBeansProjects/QtApplication_2'
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe: cannot open output file dist/Release/MinGW-Windows/QtApplication_2.exe: Permission denied
collect2: ld returned 1 exit status
make[2]: *** [dist/Release/MinGW-Windows/QtApplication_2.exe] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 2s)
By the way, when I create a console "Hello World" application using Netbeans, it builds and runs just fine. When using Qt, however, there seems to be a file locking issue (as my best explanation of the phenomena).
CRAIG |
|
| Back to top |
|
 |
DCMartin
Joined: 16 Jul 2012 Posts: 3 Location: Illinois
|
Posted: Mon Jul 16, 2012 10:29 pm Post subject: |
|
|
Craig,
It looks like the file QtApplication_2.exe is open while you are trying to build it. I would look in the Task Manager for a process by that name.
Thanks,
DCM |
|
| 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
|
|