During Qt Creator Compilation: cannot open file 'debug \. exe 'File not found
When you use Qt Creator to compile a project, the error shown in the question appears. The red part is the project name.
In the Build column of Qt Creator
GitHub Address: Https://github.com/daleyzou/wobuku这是自己大一学完c++后,在课程实践中写过的一个程序,实现象棋人机对战的算法还是有点难的,自己当时差不多也是写了两个月左右吧!当时看书又有很多问题得不到解决,所以就在网上找了一个视频跟着写。当然,这其中有很多功能都是自己扩展的。I share the video, I hope to be able to help the novice!Video address: Link: https://pan.baidu.com/s/1pIp6UMJ6LXsuJ3GT80NGfw Password: 9k8yNote: If you have readers follow the video to write this chess man-machine battle program, please be sure to understand the principles,It would be better to have a related book handy for any perfec
Install the Qt4.8.5 + Qt Creator instance in Ubuntu and ubuntuqt4.8.5Easy installation
Sudo apt-get install build-essential. Sudo apt-get install qt4-dev-tools qt4-doc qt4-qtconfig qt4-demos qtcreator
This method is not necessarily the latest version. Check the version number.
Qmake-vqtcreator-version
We can see that the installed Qt version is 4.8.7, And t
Tags: des style blog HTTP color usage Qwt is an open-source graph library based on QT. Download the source code of qwt from the official website Http://sourceforge.jp/projects/sfnet_qwt/downloads/qwt/6.1.0/qwt-6.1.0.tar.bz2/ Decompress the package and enter the directory. Tar jxvf qwt-6.1.0.Tar.bz2 CD qwt-6.1.0 Compile and install /Home/LZ/qt5.3.0/5.3/GCC/bin/Qmakemakemake install If make The following error occurs: Gl/Gl. h: no such file or
After installing the plugin, it took a day to get involved. You can barely write a program.
When configuring eclipse, pay attention to the following two points:
1) Add QT + = widgets to the project name. Pro. Of course, write it after QT + = core GUI. If this parameter is not added, an error occurs during the link.
2) qt5 differs from qt4 in that it places frequently-used components in the qtwidgets folder.
Install sogou input method and support for Qt Creator on Ubuntu Linux
Sogou input method is a very popular input method. This input method is not installed by default on Ubuntu. If you search online, you will find that different websites provide different methods. Some work, some do not work. Now, I will write down my experience and installation steps. Hope to help developers. The Chinese input method is al
Qt Creator commonly used quick-healthF1??????View HelpF2??? ???jumps to the function definition (andCtrl +the same effect as the left mouse button)Shift+f2?? switching between declarations and definitionsF4??? ???switch between the header file and the source fileCtrl+1??? ?? ?Welcome ModeCtrl+2??? ???edit ModeCtrl+3??? ???Debug ModeCtrl+4??? ???Project Setup ModeCtrl+5??? ???Help Mode? ??Ctrl+6??? ???Output
Reprinted from: http://hi.baidu.com/xiayufeng520/item/b63c0d36c42e77ce1b9696e8
Open QT Creator in ubuntu12.10 and prompt that the file/home/jobs/. config/Nokia/qtversion. xml: Permission denied cannot be overwritten.
Open QT creator and prompt that the file/home/jobs/. config/Nokia/qtversion. xml: Permission denied c
When using Qt Creator to develop programs, you must include the # include header file.
As we all know, # include
For the latter, the path is more intuitive and easy to understand. For example, # include "lyc/daniel. h". The path is in the lyc folder of the current directory. (File inclusion can be nested .)
The following describes the path inclusion of the standard library header file of
-click Properties | Details to view both version numbers, delete/rename older versions, or reset the path variable.Unexpectedly, the root of the solution is the third step, after removing the old version of Cvtres.exe, you do not need to set the configuration every time.VS2010 's embedded manifest file may make everyone very mad, in fact, every time I myself is manual 1th, 2 steps, but the recent QT Creatror can not be used, hintQt
May be a habit, I personally prefer the black theme of the environment for programming. The black theme is a little bit friendlier to the eyes and looks less low. This gives the Qtcreator black theme configuration scheme.If it is the latest version of creator3.3+, itself with a black theme scheme: Tool = = "option = =" EnvironmentConfiguration is almost like this, but the text has not changed, the following configuration text color:or in the option = = "Text Editor = =" color scheme, here to cho
May be a habit, I personally prefer the black theme of the environment for programming. The black theme is a little bit friendlier to the eyes and looks less low. This gives the Qtcreator black theme configuration scheme.If it is the latest version of creator3.3+, itself with a black theme scheme: Tool = = "option = =" EnvironmentConfiguration is almost like this, but the text has not changed, the following configuration text color:or in the option = = "Text Editor = =" color scheme, here to cho
required functions.
If the main function is written as follows:
# Include # Include "widget. H"# Include "mydlg. h"Int main (INT argc, char * argv []){Qapplication A (argc, argv );Mydlg my1;If(my1.exe C () = qdialog: accepted){Widget W;
W. Show ();}Return a.exe C ();
}
In this way, because W is defined in the IF statement, it becomes invalid after the if statement is executed. The consequence is that after you press enterbtn, the window on the main interface will disappear. If the program is c
when porting the QT project files under Linux to Windows, The garbled phenomenon that occurs. In order to avoid the problem that the Chinese characters are garbled because of the different encoding under Windows and Linux, we need to encode the character in the code uniformly.unification is set to an encoded form. this is usually for UTF-8.Specific operation: behavior with the text editor , options , tools Change the default encoding to UT
1, download boost library, version optional, suggest the latest version
Address: http://sourceforge.net/projects/boost/files/boost/1.52.0/
2. Build Boost Library under Linux
Unzip the download good boost library;
Open the terminal, CD to boost library decompression directory, such as my:/home/you neme/boost_1_52_0
Execute command sudo./bootstrap.sh (Generate boost dedicated compilation tool here)
Execute command sudo./bjam Install
Wait for the installation to complete, will be in the/usr/local/i
detect the code. The interface is as follows:Second, the command line mode:Third, integration into the IDE development environment using:1. VSRefer here (http://avitebskiy.blogspot.tw/2012/10/ poor-mans-visual-studio-cppcheck.html), you can easily embed cppcheck into VS, and then you can easily check a file and support error jumps.
Click the Add button
Set the Title, for example Cppcheck
Set Command to C:\Program Files (x86) \cppcheck\cppcheck.exe
Set Arguments to --quiet--
Using QT this week, I ran into a very painful problem: when I created the dialog, I accidentally lost the wrong name. And it was discovered very late. This time the dialog box has been laid out almost, in order to change the name, hit the problem of more egg, changed the name after you can not use the switch to the slot function. The specific errors are shown below:This application failed to start because ...After a war, finally know how to change the
1.F10,F11 Single Step Commissioning2.Ctrl +/: Comment/Uncomment the selection.3.F4: Switch between the header file (. h) and the implementation file (. cpp).4.Ctrl + I: Automatic formatting of the selected code.5.F2: Quickly switch to the source of the cursor selected object.6. Quick Add Method Entity (. cpp) Declaration: Moves the cursor to the method declaration in the H file. Press Alt (press and hold) + Enter, and then press ENTER to add the function's declaration in the CPP.7. Press ALT + n
1.MAINWINDOW.OBJ:-1:ERROR:LNK2019: unresolved external symbol "Public: __thiscall Qwtplot::qwtplot (class Qwidget *)" ([email protected] @[email protected]@@@z), the symbol in the function "Public:void __thiscall ui_mainwindow::setupui such an error:WORKAROUND: 1. Execute the Create---"Execution qmake2. Without adding the corresponding external library, the method of adding the library is to right-click within the project Pro file, select Add Library in the popup window, follow the instructions.
Today, qtcreator is installed in Ubuntu to test whether it can be used. As a result, a problem occurs during the test. After a simple compilation, F5 compilation appears in gnome-terminal. Cannot connect creator comm socket/tmp/qt_temp.u14973/stub-socket: no such file or directory So I checked that QT cannot be executed using gnome-terminal, and X-team is required. So I thought of the solution: Find tool
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.