Qt Make Error 1
Contents |
No route to host The remote host or network may be down. Please try the request again. Your cache administrator is webmaster. Generated Tue, 25 Oct 2016 00:46:45 GMT by s_wx1085 (squid/3.5.20)
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Qt compiling error 1 up vote 2 down vote favorite When i try to compile my program i get this error: [tmp/moc/debug_shared/moc_window.cpp] Error 1 I have a http://www.qtcentre.org/threads/39654-QT-Compile-Error-status-1 class called Window. when I comment the Q_OBJECT line it compiles, but I can't use any slots. class Window : public QWidget { // Q_OBJECT public: Window(); public slots: void update(); }; I have QT 4.7 installed. Any Idea why it doesn't compile when I uncomment the Q_OBJECT line? Thanks for any help. c++ qt4 share|improve this question edited Jan 17 '11 at 7:11 asked Jan 17 '11 at 6:45 Mustafa 320517 Oh I forgot http://stackoverflow.com/questions/4710636/qt-compiling-error-1 to write that my class Window is a subclass of QWidget –Mustafa Jan 17 '11 at 7:11 1 Please post the whole error message, not just the last line. –kalev Jan 17 '11 at 8:50 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote You have a slot so you must have the Q_OBJECT macro, after adding this do a clean build. And in case of an error, post the whole error log not the last line. share|improve this answer answered Jan 17 '11 at 8:47 ismail 26.5k55476 add a comment| up vote 0 down vote maybe something is wrong with Moc paths... make sure that you have write rights in folder you use for moc-ing qt headers. ( tmp/moc/debug_shared/ ). And I don't know this extractly for linux, but on windows directory where you generating moc files must exist. share|improve this answer answered Jan 17 '11 at 8:45 Raiv 4,20912244 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged c++ qt4 or ask your own
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about http://stackoverflow.com/questions/20355562/qt-creator-compiling-error-at-step-make hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. https://ubuntuforums.org/showthread.php?t=2009981 Join them; it only takes a minute: Sign up Qt Creator Compiling Error at step 'make' up vote 3 down vote favorite I just started using Qt Creator for creating C++ GUI programs. I just downloaded it and installed error 1 it, but the compiling process is throwing me errors. When I try to compile my project (very simple, just a QLabel on the screen...it's my first project) it comes up with the error: qtcreator_ctrlc_stub: Command line failed: C:\Users\andrew\Dropbox\Programming\C++\build- FirstGUIApp-Desktop_Qt_5_1_1_MSVC2012_32bit-Debug\Makefile 10:04:35: The process "C:\Users\andrew\Dropbox\Programming\C++\build-FirstGUIApp-Desktop_Qt_5_1_1_MSVC2012_32bit-Debug\Makefile" exited with code -1. Error while building/deploying project FirstGUIApp (kit: Desktop Qt 5.1.1 MSVC2012 32bit) When executing step 'Make' I hunted around for an answer here and here and a couple other places but I'm just qt make error confused about the whole thing. I have a couple of ideas of my own but I don't know how to try my ideas. Here are some of my ideas: 1) MinGW isn't in the path or isn't installed But, if it isn't in the path, how do I put it in? Where is it? I have Code Blocks installed which has MinGW installed, so could I maybe use it from there? 2) the make file is messed up somehow Again, what could be wrong and how could I fix it? 3) Qt Creator isn't installed correctly. Obviously, re-install it, but I want to make sure all other options are tried before, because it took me a very long time to download. I apologize if I'm sounding noobish or it's a stupid question, but I really am confused with all of this. Please be patient with me and try to explain things well and thoroughly. I'm using Windows 8.1 and downloaded the offline installer. Thanks in advance. UPDATE Here is a screenshot of my Qt, how can I tell if it is the visual studio or minGW version? UPDATE Here is my MinGW Folder in CodeBlocks. Is this the folder with the compiler or is it something else? c++ qt compiler-construction compiler-errors makefile share|improve this question edited Jun 7 at 19:17 acraig5075 3,42211229 asked Dec 3 '13 at 15:47 SplatFace Development 1222313
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Qt program make error Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Page 1 of 2 12 Last Jump to page: Results 1 to 10 of 13 Thread: Qt program make error Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode June 25th, 2012 #1 pellyhawk View Profile View Forum Posts Private Message A Carafe of Ubuntu Join Date Feb 2012 Beans 93 Qt program make error I have a c/c++ program and want to build with qt. My qt is located in /usr/local/Trolltech/Qt-4.7.3-pc. After conduct command: Code: qmake -project qmake make I got these result: Code: ian@mike-desktop:/mnt/hgfs/VBox_Shared/SeaTools$ make g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Iinclude -I. -I. -o downloaddialog.o downloaddialog.cpp downloaddialog.cpp:2:21: error: QtNetwork: No such file or directory In file included from downloaddialog.cpp:4: downloaddialog.h:6:22: error: QTcpSocket: No such file or directory In file included from downloaddialog.cpp:4: downloaddialog.h:49: error: ‘QAbstractSocket’ has not been declared downloaddialog.h:49: error: expected ‘,’ or ‘...’ before ‘socketError’ downloaddialog.h:50: error: ‘QAbstractSocket’ has not been declared downloaddialog.h:50: error: expected ‘,’ or ‘...’ before ‘socketState’ downloaddialog.h:80: error: ISO C++ forbids declaration of ‘QTcpSocket’ with no type downloaddialog.h:80: error: expected ‘;’ before ‘*’ token downloaddialog.cpp: In constructor ‘DownloadDialog::DownloadDialog(QWidget*)’: downloaddialog.cpp:29: error: