Fatal Error Qapplication
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and
Qtgui/qapplication No Such File Or Directory
policies of this site About Us Learn more about Stack Overflow the qapplication no such file or directory ubuntu company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users
Qtgui/qapplication Qt5
Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes qapplication no such file or directory cmake a minute: Sign up Error QApplication: no such file or directory up vote 26 down vote favorite 11 I have installed C++SDK that have Qt but when I try compiling a code linking QApplication it gives me the error: Error QApplication: no such file or directory How do I link these libraries? I searched into the directories and there is a file error: c1083: cannot open include file: 'qapplication': no such file or directory named QApplication.h; So I tried to link it with -I (linking the directory) but it was still giving me that error. c++ qt share|improve this question edited Jul 6 '14 at 20:33 Eric Leschinski 46.7k23221190 asked Jan 24 '12 at 22:46 Ramy Al Zuhouri 14.1k1764124 It gives me that error. What error? Post the proper output of the error you are getting. No one can help you until you provide the full info. –Abhijeet Rastogi Jan 31 '12 at 16:54 6 The title of this question.The source is a simple file, I thought I didn't need to post this but simply: pastebin.com/972XtFUz –Ramy Al Zuhouri Jan 31 '12 at 17:01 What is the output of $locate QApplication? –Abhijeet Rastogi Jan 31 '12 at 17:07 /home/ramy/Documents/C++QtSDK/Desktop/Qt/474/gcc/include/QtGui/QApplication /home/ramy/Documents/C++QtSDK/Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/include/qt4/QtGui/QApplication /home/ramy/Documents/C++QtSDK/Simulator/Qt/gcc/include/QtGui/QApplication /usr/include/qt4/QtGui/QApplication –Ramy Al Zuhouri Jan 31 '12 at 18:31 In the comments, i told you to write run $qmake -project -d -Wall & you included the $ while executing the command. Exclude the 5, that was just there to tell you that it's a command
here for a quick overview of the site Help Center Detailed answers to any questions
Qmainwindow No Such File Or Directory
you might have Meta Discuss the workings and policies of this error: 'unicodeutf8' is not a member of 'qapplication' site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers
Qtgui Qaction No Such File Or Directory
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 http://stackoverflow.com/questions/8995399/error-qapplication-no-such-file-or-directory community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up there is an error QApplication: no such file or directory up vote 1 down vote favorite I have installed QtCreator 2.7.2 , but when I try compiling my code include QApplication it gives http://stackoverflow.com/questions/18198578/there-is-an-error-qapplication-no-such-file-or-directory me that error :Error QApplication: no such file or directory. It can compile the tutorials code "notepad" smoothly, and I can find QApplication in /usr/include/qt4/QtGui/QApplication. here is my code : #include #include "framework/vision_app.h" int main(int argc, char** argv) { QApplication qapp(argc, argv); VisionApp vapp; if (vapp.init(argc, argv)) { return qapp.exec(); } else { return 1; } } to say more, I don't have any .pro file. I use cmake to package my code. here is my cmakelist: cmake_minimum_required(VERSION 2.4.6) include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake) # Set the build type. Options are: # Coverage : w/ debug symbols, w/o optimization, w/ code-coverage # Debug : w/ debug symbols, w/o optimization # Release : w/o debug symbols, w/ optimization # RelWithDebInfo : w/ debug symbols, w/ optimization # MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries #set(ROS_BUILD_TYPE RelWithDebInfo) rosbuild_init() rosbuild_add_boost_directories() find_package(OpenCV 2.3 REQUIRED) if(OpenCV_FOUND) message(STATUS "OpenCV include: ${OpenCV_INCLUDE_DIRS}") message(STATUS "OpenCV libs: ${OpenCV_LIBS}") include_directories(${OpenCV_INCLUDE_DIRS}) else(OpenCV_FOUND) message(SEND_ERROR "OpenCV not found!!") endif() # Qt4 requirements include_directories(${CMAKE_
directorty If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register http://www.qtcentre.org/threads/53452-QtGui-QApplication-No-such-file-or-directorty before you can post: click the register link above to proceed. To http://www.qtcentre.org/threads/53157-C1083-Cannot-open-include-file-QApplication start viewing messages, select the forum that you want to visit from the selection below. Welcome to Qt Centre. Qt Centre is a community site devoted to programming in C++ using the Qt framework. Over 90 percent of questions asked here gets answered. If you are looking for no such information about Qt related issue — register and post your question. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other no such file special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. + Reply to Thread Results 1 to 3 of 3 Thread: QtGui/QApplication : No such file or directorty Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 25th February 2013,11:08 #1 sliverTwist View Profile View Forum Posts View Blog Entries View Articles Novice Join Date Feb 2013 Location Banzart Posts 54 Thanks 17 Thanked 1 Time in 1 Post Qt products Platforms QtGui/QApplication : No such file or directorty Hello I've downloaded this project https://github.com/owncloud/sync-qt and followed the steps mentioned below but when i compile i get this error QtGui/QApplication : No such file or directorty Any help please I'am using Qt creator 2.6.2 based on Qt 5.0.1 (32 bit) My os is XP SP 2 and the creation and compilation of any created project is working well This is my compile Output: /////////////////////////////////////////////////////////////////////////////////
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Welcome to Qt Centre. Qt Centre is a community site devoted to programming in C++ using the Qt framework. Over 90 percent of questions asked here gets answered. If you are looking for information about Qt related issue — register and post your question. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. + Reply to Thread Results 1 to 9 of 9 Thread: C1083: Cannot open include file: 'QApplication' Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 6th February 2013,00:35 #1 Guett_31 View Profile View Forum Posts View Blog Entries View Articles Novice Join Date Feb 2013 Location San Diego Posts 37 Thanks 14 Thanked 7 Times in 7 Posts Qt products Platforms C1083: Cannot open include file: 'QApplication' Hello, I'm very new to Qt. I just installled Qt5.0.0 & MS Visual C++ Comilper 10.0 on my compuer (running Win7) I tried to compile and run a few programs from the Qt Creator Examples. They work. Then, I created a very simple project using "Empty Qt project" from Qt Creator. The project was created at the default location "C:\Qt\Qt5.0.0\Tools\QtCreator\bin" I just added one main.cpp source file with the following code: Qt Code: Switch view #include