NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Can't build a "Hello World" Qt application

 
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users
View previous topic :: View next topic  
Author Message
craigugoretz



Joined: 10 Jul 2012
Posts: 1

PostPosted: Tue Jul 10, 2012 9:20 pm    Post subject: Can't build a "Hello World" Qt application Reply with quote

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

PostPosted: Mon Jul 16, 2012 10:29 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo