QtOpenGL unter DevCpp
-
Hallo zusammen, ich bin gerade dabei unter DevCpp ein Exsample "hellogl" einzubinden und scheitere schon seit Tagen. Ich habe es selber probiert auf die Reihe zu bekommen aber QtOpenGL will nicht. Das ärgerliche an der Sache ist die Tatsache, dass ich früher schon mal OpenGL- Beispielanwendungen von Qt4.2.2 kompiliert habe, nach einer notgedrungenen Neu-Installation des Betriebssystems kriege ich das aber nicht mehr hin
Ich denke die Quellcodes brauche ich nicht zu posten, da das die Exsamples von Qt4 sind und müssen zwangsweise laufen, würde mich aber freuen wenn mir jemand was zu meinem Makefile sagen kann?
**
Makefile das ich mit qmake -project und qmake erzeugt habe
**############################################################################# # Makefile for building: hellogl # Generated by qmake (2.01a) (Qt 4.2.2) on: Mo 22. Jan 21:17:12 2007 # Project: hellogl.pro # Template: app ############################################################################# ####### Compiler, tools and options CC = gcc CXX = g++ LEX = flex YACC = byacc DEFINES = -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN CFLAGS = -O2 -O2 -Wall $(DEFINES) CXXFLAGS = -O2 -O2 -frtti -fexceptions -Wall $(DEFINES) LEXFLAGS = YACCFLAGS = -d INCPATH = -I"C:/Qt/include/QtCore" -I"C:/Qt/include/QtCore" -I"C:/Qt/include/QtGui" -I"C:/Qt/include/QtGui" -I"C:/Qt/include" -I"." -I"C:/Qt/include/ActiveQt" -I"release" -I"." -I"c:\Qt\mkspecs\default" LINK = g++ LFLAGS = -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -Wl,-s -Wl,-subsystem,windows LIBS = -L"c:\Qt\lib" -lmingw32 -lqtmain -lQtGui4 -lQtCore4 QMAKE = qmake IDC = c:\Qt\bin\idc.exe IDL = midl ZIP = zip -r -9 DEF_FILE = RES_FILE = COPY = copy /y COPY_FILE = $(COPY) COPY_DIR = xcopy /s /q /y /i DEL_FILE = del DEL_DIR = rmdir MOVE = move CHK_DIR_EXISTS= if not exist MKDIR = mkdir INSTALL_FILE = $(COPY_FILE) INSTALL_DIR = $(COPY_DIR) ####### Output directory OBJECTS_DIR = release ####### Files SOURCES = glwidget.cpp \ main.cpp \ window.cpp release\moc_glwidget.cpp \ release\moc_window.cpp OBJECTS = release\glwidget.o \ release\main.o \ release\window.o \ release\moc_glwidget.o \ release\moc_window.o DIST = QMAKE_TARGET = hellogl DESTDIR = release\ #avoid trailing-slash linebreak TARGET = hellogl.exe DESTDIR_TARGET = release\hellogl.exe ####### Implicit rules .SUFFIXES: .cpp .cc .cxx .c .cpp.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< .cc.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< .cxx.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< .c.o: $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< ####### Build rules first: all all: Makefile.Release $(DESTDIR_TARGET) $(DESTDIR_TARGET): $(OBJECTS) $(LINK) $(LFLAGS) -o "$(DESTDIR_TARGET)" $(OBJECTS) $(LIBS) qmake: FORCE @$(QMAKE) -win32 -o Makefile.Release hellogl.pro dist: $(ZIP) hellogl.zip $(SOURCES) $(DIST) hellogl.pro C:/Qt/mkspecs/qconfig.pri c:\Qt\mkspecs\features\qt_functions.prf c:\Qt\mkspecs\features\qt_config.prf c:\Qt\mkspecs\features\exclusive_builds.prf c:\Qt\mkspecs\features\default_pre.prf c:\Qt\mkspecs\features\win32\default_pre.prf c:\Qt\mkspecs\features\release.prf c:\Qt\mkspecs\features\debug_and_release.prf c:\Qt\mkspecs\features\default_post.prf c:\Qt\mkspecs\features\build_pass.prf c:\Qt\mkspecs\features\Release.prf c:\Qt\mkspecs\features\win32\rtti.prf c:\Qt\mkspecs\features\win32\exceptions.prf c:\Qt\mkspecs\features\win32\stl.prf c:\Qt\mkspecs\features\shared.prf c:\Qt\mkspecs\features\warn_on.prf c:\Qt\mkspecs\features\qt.prf c:\Qt\mkspecs\features\win32\thread.prf c:\Qt\mkspecs\features\moc.prf c:\Qt\mkspecs\features\win32\windows.prf c:\Qt\mkspecs\features\resources.prf c:\Qt\mkspecs\features\uic.prf c:\Qt\lib\qtmain.prl HEADERS RESOURCES IMAGES SOURCES FORMS clean: compiler_clean -$(DEL_FILE) release\glwidget.o release\main.o release\window.o release\moc_glwidget.o release\moc_window.o distclean: clean -$(DEL_FILE) "$(DESTDIR_TARGET)" -$(DEL_FILE) Makefile.Release mocclean: compiler_moc_header_clean compiler_moc_source_clean mocables: compiler_moc_header_make_all compiler_moc_source_make_all compiler_moc_header_make_all: release\moc_glwidget.cpp release\moc_window.cpp compiler_moc_header_clean: -$(DEL_FILE) release\moc_glwidget.cpp release\moc_window.cpp release\moc_glwidget.cpp: glwidget.h c:\Qt\bin\moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 glwidget.h -o release\moc_glwidget.cpp release\moc_window.cpp: window.h c:\Qt\bin\moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 window.h -o release\moc_window.cpp compiler_rcc_make_all: compiler_rcc_clean: compiler_image_collection_make_all: qmake_image_collection.cpp compiler_image_collection_clean: -$(DEL_FILE) qmake_image_collection.cpp compiler_moc_source_make_all: compiler_moc_source_clean: compiler_uic_make_all: compiler_uic_clean: compiler_clean: compiler_moc_header_clean compiler_rcc_clean compiler_image_collection_clean compiler_moc_source_clean compiler_uic_clean ####### Compile release\glwidget.o: glwidget.cpp glwidget.h $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\glwidget.o glwidget.cpp release\main.o: main.cpp window.h $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\main.o main.cpp release\window.o: window.cpp glwidget.h \ window.h $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\window.o window.cpp release\moc_glwidget.o: release\moc_glwidget.cpp $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\moc_glwidget.o release\moc_glwidget.cpp release\moc_window.o: release\moc_window.cpp $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\moc_window.o release\moc_window.cpp ####### Install install: FORCE uninstall: FORCE FORCE:
**
und so sieht meine Projektdatei aus:
**[Project] FileName=hellogl.dev Name=hellogl UnitCount=5 Type=0 Ver=1 ObjFiles= Includes=C:\DevCpp/include;C:\DevCpp/include/ActiveQt;C:\DevCpp/include/Qt;C:\DevCpp/include/Qt3Support;C:\DevCpp/include/QtAssistant;C:\DevCpp/include/QtCore;C:\DevCpp/include/QtDesigner;C:\DevCpp/include/QtGui;C:\DevCpp/include/QtMotif;C:\DevCpp/include/QtNetwork;C:\DevCpp/include/QtNsPlugin;C:\DevCpp/include/QtOpenGL;C:\DevCpp/include/QtSql;C:\DevCpp/include/QtXml;C:\Qt\include;C:\Qt\include\ActiveQt;C:\Qt\include\Qt;C:\Qt\include\Qt3Support;C:\Qt\include\QtAssistant;C:\Qt\include\QtCore;C:\Qt\include\QtDBus;C:\Qt\include\QtDesigner;C:\Qt\include\QtGui;C:\Qt\include\QtNetwork;C:\Qt\include\QtOpenGL;C:\Qt\include\QtSql;C:\Qt\include\QtSvg;C:\Qt\include\QtTest;C:\Qt\include\QtUiTools;C:\Qt\include\QtXml Libs=C:\DevCpp/lib PrivateResource= ResourceIncludes= MakeIncludes= Compiler= CppCompiler= Linker=C:/Qt/lib/libQtXml4.a_@@_C:/Qt/lib/libQt3Support4.a_@@_C:/Qt/lib/libQtAssistantClient4.a_@@_C:/Qt/lib/libQtCore4.a_@@_C:/Qt/lib/libQtDesigner4.a_@@_C:/Qt/lib/libQtDesignerComponents4.a_@@_C:/Qt/lib/libQtGui4.a_@@_C:/Qt/lib/libqtmain.a_@@_C:/Qt/lib/libQtNetwork4.a_@@_C:/Qt/lib/libQtOpenGL4.a_@@_C:/Qt/lib/libQtSql4.a_@@_C:/Qt/lib/libQtSvg4.a_@@_C:/Qt/lib/libQtTest4.a_@@_C:/Qt/lib/libQtUiTools.a_@@_C:/Qt/lib/libQtUiToolsd.a_@@_ IsCpp=1 Icon= ExeOutput=release ObjectOutput= OverrideOutput=1 OverrideOutputName=hellogl.exe HostApplication= Folders= CommandLine= UseCustomMakefile=1 CustomMakefile=Makefile.Release IncludeVersionInfo=0 SupportXPThemes=0 CompilerSet=0 CompilerSettings=0000000000100000000000 [Unit1] FileName=main.cpp CompileCpp=1 Folder= Compile=1 Link=1 Priority=1000 OverrideBuildCmd=0 BuildCmd= [Unit2] FileName=window.h CompileCpp=1 Folder=hellogl Compile=1 Link=1 Priority=1000 OverrideBuildCmd=0 BuildCmd= [Unit3] FileName=glwidget.cpp CompileCpp=1 Folder=hellogl Compile=1 Link=1 Priority=1000 OverrideBuildCmd=0 BuildCmd= [Unit4] FileName=glwidget.h CompileCpp=1 Folder=hellogl Compile=1 Link=1 Priority=1000 OverrideBuildCmd=0 BuildCmd= [Unit5] FileName=window.cpp CompileCpp=1 Folder=hellogl Compile=1 Link=1 Priority=1000 OverrideBuildCmd=0 BuildCmd= [VersionInfo] Major=0 Minor=1 Release=1 Build=1 LanguageID=1033 CharsetID=1252 CompanyName= FileVersion= FileDescription=Developed using the Dev-C++ IDE InternalName= LegalCopyright= LegalTrademarks= OriginalFilename= ProductName= ProductVersion= AutoIncBuildNr=0
Wenn du einem verzweifelten User helfen willst und kannst wird mich das sehr freuen.
*
MfG delphisual*
-
vielleicht hilft dir das hier weiter...
http://www.c-plusplus.net/forum/viewtopic-var-t-is-136771.html
?mfg,
julian
-
Hi Julian, diesen Beitrag habe ich mehr als einmal gelesen mit der Hoffnung meinem Problem damit lösen zu können. Leider ohne Erfolg.
-
Machmal QT += opengl in die Projektdatei rein.
dann nochmal qmake; make
-
Hei aMan,
ich bin eben deinem Vorschlag gefolgt und siehe her es klapp tatsächlichKannst du mir vielleicht wie du darauf kommst?
MfG delphisual
-