ที่แรกมันมีปัญหา error ตรงคอมไพลเลอร์ ให้ไป set คอมไพล แต่เซตไม่ผ่านซักที แล้วผมก็ไปโหลดตัว visual studio 2010 มาก็แก้ปัญหาตรง คอมไพลได้ แต่พอมันคอมไพลมันก็ขึ้น error ตามข้างล่างนี้เลย มันคืออะไรหรอครับ รบกวนผู้รู้ช่วยตอบที (-/\-)
#include <QtCore/QCoreApplication>
#include <QDebug>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
qDebug() << ("helloworld");
return a.exec();
}
------------------------------------------------------------------------------------------------------------------------------------------------------------------
11:23:27: Running steps for project untitled1...
11:23:27: Starting: "C:\Qt\Qt5.2.1\5.2.1\msvc2010_opengl\bin\qmake.exe" "D:\งาน backup\test Qt c++\untitled1\untitled1.pro" -r -spec win32-msvc2010 "CONFIG+=debug" "CONFIG+=declarative_debug" "CONFIG+=qml_debug"
Cannot find file: D:\งาน backup\test Qt c++\untitled1\untitled1.pro.
11:23:27: The process "C:\Qt\Qt5.2.1\5.2.1\msvc2010_opengl\bin\qmake.exe" exited with code 2.
Error while building/deploying project untitled1 (kit: Desktop Qt 5.2.1 MSVC2010 32bit OpenGL)
When executing step 'qmake'
11:23:27: Elapsed time: ๐:๐๐:๐๐.
ใครที่เคยเขียนโปรแกรมโดยใช้ Qt Creator รบกวนเชิญทางนี้หน่อยครับมีเรื่องให้ช่วย
#include <QtCore/QCoreApplication>
#include <QDebug>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
qDebug() << ("helloworld");
return a.exec();
}
------------------------------------------------------------------------------------------------------------------------------------------------------------------
11:23:27: Running steps for project untitled1...
11:23:27: Starting: "C:\Qt\Qt5.2.1\5.2.1\msvc2010_opengl\bin\qmake.exe" "D:\งาน backup\test Qt c++\untitled1\untitled1.pro" -r -spec win32-msvc2010 "CONFIG+=debug" "CONFIG+=declarative_debug" "CONFIG+=qml_debug"
Cannot find file: D:\งาน backup\test Qt c++\untitled1\untitled1.pro.
11:23:27: The process "C:\Qt\Qt5.2.1\5.2.1\msvc2010_opengl\bin\qmake.exe" exited with code 2.
Error while building/deploying project untitled1 (kit: Desktop Qt 5.2.1 MSVC2010 32bit OpenGL)
When executing step 'qmake'
11:23:27: Elapsed time: ๐:๐๐:๐๐.