Qt-interest Archive, April 2007
need help for qt opengl
Message 1 in thread
hi, all
i have installed Microsoft Visual Studio 2005 and
qt-win-opensource-src-4.2.2 based on winxp. And i am intended to programe a
GUI for a cnc system by using qt and opengl. but now i have some trouble ,
that is , i couldn't even compile successfully the qtopengl example given by
qt reference document. i have checked that QtOpenGL model is included in my
$QTDIR/include directory. the output errors of compiling as follows(i have
edited the .pro file with CONFIG += opengl):
D:\qt\project\Tetrahedron>qmake
D:\qt\project\Tetrahedron>nmake
Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
"D:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" -f
Makefil
e.Release
Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
c:\qt\qt-win-opensource-src-4.2.2\bin\moc.exe -DUNICODE
-DQT_LARGEFILE_S
UPPORT -DWIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE
-DQT_DLL -
DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT
-I"C:/qt/qt-win-open
source-src-4.2.2/include/QtCore" -I"C:/qt/qt-win-opensource-src-4.2.2
/include/Qt
Core" -I"C:/qt/qt-win-opensource-src-4.2.2/include/QtGui"
-I"C:/qt/qt-win-openso
urce-src-4.2.2/include/QtGui" -I"C:/qt/qt-win-opensource-src-4.2.2/include"
-I".
" -I"C:/qt/qt-win-opensource-src-4.2.2/include/ActiveQt" -I"release" -I"."
-I"c:
\qt\qt-win-opensource-src-4.2.2\mkspecs\win32-msvc2005" tetrahedron.h -o
release
\moc_tetrahedron.cpp
*tetrahedron.h(0): Warning: No relevant classes found. No output generated*.
cl -c -nologo -Zm200 -GS -O2 -MD -DNDEBUG -GR -EHsc -W3 -DUNICODE
-DQT_L
ARGEFILE_SUPPORT -DWIN32 -D_CRT_SECURE_NO_DEPRECATE
-D_CRT_NONSTDC_NO_DEPRECATE
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT
-I"C:/qt/q
t-win-opensource-src-4.2.2/include/QtCore" -I"C:/qt/qt-
win-opensource-src-4.2.2/
include/QtCore" -I"C:/qt/qt-win-opensource-src-4.2.2/include/QtGui"
-I"C:/qt/qt-
win-opensource-src-4.2.2/include/QtGui" -I"C:/qt/qt-win-opensource-src-4.2.2
/inc
lude" -I"." -I"C:/qt/qt-win-opensource-src-4.2.2/include/ActiveQt"
-I"release" -
I"." -I"c:\qt\qt-win-opensource-src-4.2.2\mkspecs\win32-msvc2005"
-Forelease\ @C
:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm1E.tmp
*main.cpp
.\main.cpp(3) : fatal error C1083: Cannot open include file: 'QtOpenGL': No
such
file or directory
tetrahedron.cpp
.\tetrahedron.cpp(3) : fatal error C1083: Cannot open include file:
'QtOpenGL':
No such file or directory
*Generating Code...
NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio
8\VC\BIN\c
l.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio
8\VC\BIN\n
make.exe"' : return code '0x2'
Stop.
thank u in advance. if you have some ideas , please let me know as soon as
possible.
please forgive my bad english.
regards
fengli zhang
Message 2 in thread
On 4/1/07, 张凤丽 <zhangfenglisdu@xxxxxxxxx> wrote:
> hi, all
> i have installed Microsoft Visual Studio 2005 and
> qt-win-opensource-src-4.2.2 based on winxp.
Qt Windows OpenSource apps must be built with MinGW. Only the
Commercial edition works with the MS compiler.
See http://www.trolltech.com/developer/knowledgebase/389
--
[ signature omitted ]