Saturday, July 5th 2008, 6:26am UTC+1

You are not logged in.

  • Login
  • Register

1

Wednesday, January 23rd 2008, 12:17pm

QT4.3.3 and qmake -t vcapp

Hi everyone,

First of all, this is my first post here and i'm a new QT user so there's a lot of thing I'm trying to figure out now :baby:

I'm mostly going to use QT with libQGLViewer and VS2005.

So far, i've installed QT, compiled LibQGLViewer moved Glut files into the appropriate directory.

I'm having 2 problems as of now:

1. C:\test>qmake -t vcapp
WARNING: Unable to generate output for: C:/test//Makefile.Release [TEMPLATE vcapp]
WARNING: Unable to generate output for: C:/test//Makefile.Debug [TEMPLATE vcapp]

It seems I can't genereate the .vcproj file (The makefile are there) is there anything I must do to enable the -t vcapp?

2. I've tried to compile a simple layout in which I add (via the code) the a LibQGLViewer widget (Class Viewer)

i've run the following
- qmake
- make

the make gives me a LOTS of error that are all similar to:
:KeyboardModifier>)'
release/simpleViewer.o(.rdata$_ZTV6Viewer[vtable for Viewer]+0x194):simpleViewer
.cpp: undefined reference to `QGLViewer::setAddKeyFrameKeyboardModifiers(QFlags<
Qt::KeyboardModifier>)'
release/simpleViewer.o(.rdata$_ZTV6Viewer[vtable for Viewer]+0x198):simpleViewer
.cpp: undefined reference to `QGLViewer::domElement(QString const&, QDomDocument
&) const'
release/simpleViewer.o(.rdata$_ZTV6Viewer[vtable for Viewer]+0x19c):simpleViewer
.cpp: undefined reference to `QGLViewer::initFromDOMElement(QDomElement const&)'

release/simpleViewer.o(.rdata$_ZTV6Viewer[vtable for Viewer]+0x1a0):simpleViewer
.cpp: undefined reference to `QGLViewer::saveStateToFile()'
release/simpleViewer.o(.rdata$_ZTV6Viewer[vtable for Viewer]+0x1a4):simpleViewer
.cpp: undefined reference to `QGLViewer::restoreStateFromFile()'
release/simpleViewer.o(.rdata$_ZTV6Viewer[vtable for Viewer]+0x1a8):simpleViewer
.cpp: undefined reference to `QGLViewer::setVisualHintsMask(int, int)'

and more.

Any help would be appreciated :)

Thanks!
  • Go to the top of the page

2

Monday, March 3rd 2008, 4:37pm

RE: QT4.3.3 and qmake -t vcapp

hi
go to your qt directory -> mkspecs and see what spec suits your developing environment

eg. win32-msvc2005 or whatever...

then when you qmake, explicitly tell it what spec to use...

eg.

qmake -tp vc myProFile.pro -spec C:\Qt\4.3.4\mkspecs\win32-msvc2005

for visual studio project

hope this helps
  • Go to the top of the page

Rate this thread