[Qt-interest] qt in vc++ debug problem
Sujan Dasmahapatra
sujan.dasmahapatra at gmail.com
Mon Dec 7 13:43:56 CET 2009
Hi David
Thanks for your suggestion its working fine now on vc++ windows in debug
as well as in release mode.
But I configures with open support but my opengl graphics are not working
properly.
The object in the QGLWidget is flickering appearing and disappearing. The
same graphics is working fine in LINUX(non-VC++) .
And in vc++ on QGraphicsView non-opengl graphics are nicely visible.
how to resolve it any suggestions would be appreaciated.
//Here GraphicsView is clas derived from QGLWidget
//object is GLuint created from glDrawElements.
GraphicsViewMesh::paintGL {
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glLoadIdentity();
gluLookAt(0, 0, 2 , eye_x, 0, 0, 0, 1, 0);
glCallList(object);
glFlush();
swapBuffers();
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Those who wants to explore QT with VC++ not able to confure for them read
below.
The steps are like this.
I dint give -no-opengl because i wanted opengl otherwise add -no-opengl.
configure -no-sql-sqlite -no-qt3support -platform win32-msvc2008
-no-libtiff -no-dbus -no-phonon -no-phonon-backend -no-webkit
nmake
if theres problem
namke configclean
nmake
this should insatll qt for vc++
now in the vc++ tools->options->VC++Project
set the include ,lib and bin
it is
C:\Qt\2009.04\qt\lib
C:\Qt\2009.04\qt\include
C:\Qt\2009.04\qt\bin
set your environment variable as QTDIR and set it to \Qt\2009.04\qt
its great having QT in VC++.
add the path in the path variable \Qt\2009.04\qt\bin
Thats it now you're ready to explore qt in vc++
restart may be required to get path variable effect.
when creating a project for qt create a nmake project
and
build command line : qmake && nmake
clean command line : nmake clean
Rebuild: qmake && nmake clean && nmake
under debug configuration set output as
output : \Debug\*.exe
Under Release
output: Release\*.exe
On Mon, Dec 7, 2009 at 3:03 AM, David Ching <dc at remove-this.dcsoft.com>wrote:
> "Sujan Dasmahapatra" <sujan.dasmahapatra at gmail.com> wrote in message
> news:b3126990912050618v7728ad96w5d77aae8f54d87e6 at mail.gmail.com...
> > Dear Friends
> > I have cofigured QT in VC++ and trying to build in debug mode
> > when I am pressing F5 it gives and error
> > "The application has failed to start because QtGuid4.dll was not found.
> > Re-installing the application may fix this problem"
> > After searching I found that I nee to build qt in debug mode by
> "qvars.bat
> > compile_debug"
> > but there's no qvars.bat file in the \Qt\2009.04\qt\bin directory or
> > anywhere under Qt.
> > So what should I do for building application in debg mode.
> > In release mode it runs fine but Ctrl+F5 is not working I need to goto
> the
> > release folder and click the exe that runs the application.
> > Please guide me someone to fix this.
>
> I've never heard of qvars.bat; you just run Configure.exe with the
> appropriate command-line options and then run nmake. By default, if you
> don't specify otherwise, Configure will setup the makefiles to build both
> release and debug. You should run
>
> nmake confclean
>
> to remove remnants from the previous build prior to running nmake again.
>
> Also read the INSTALL file in the root folder of your Qt installation.
>
> -- David
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
Thanks & Regards
S. Dasmahapatra
B.E. (Aeronautics-Aerodynamics)
Software programmer
Bangalore, India
Ph:91-9900839788
Office:91-80-66470248
mail id : sujan.dasmahapatra at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091207/cfb1b19e/attachment.html
More information about the Qt-interest-old
mailing list