May 19, 2011

umen242 umen242
Lab Rat
352 posts

Getting errors when trying to compile qt-labs-qt3d in windows with visual studio 2008

 

Hi
i followed the instructions from the sites :
http://doc.qt.nokia.com/qt3d-snapshot/qt3d-building.html [doc.qt.nokia.com]
and
http://www.johanpaul.com/blog/2011/03/compiling-qt3d-for-windows/ [johanpaul.com]

but when compiling the qt3d im getting this error:

  1. .\qdeclarativeeffect.cpp(263) : error C2039: 'Options' : is not a member of 'QDeclarativePixmap'
  2.         d:\cpp\qt\qt-everywhere-opensource-src-4.7.3\qt-everywhere-opensource-src-4.7.3\include\qtdeclarative\private\../../../src/declarative/util/qdeclarativepixmapcache_p.h(59) : see declaration of 'QDeclarativePixmap'
  3. .\qdeclarativeeffect.cpp(263) : error C2065: 'Options' : undeclared identifier
  4. .\qdeclarativeeffect.cpp(263) : error C2146: syntax error : missing ';' before identifier 'options'
  5. .\qdeclarativeeffect.cpp(263) : error C2065: 'options' : undeclared identifier
  6. .\qdeclarativeeffect.cpp(263) : error C2039: 'Cache' : is not a member of 'QDeclarativePixmap'
  7.         d:\cpp\qt\qt-everywhere-opensource-src-4.7.3\qt-everywhere-opensource-src-4.7.3\include\qtdeclarative\private\../../../src/declarative/util/qdeclarativepixmapcache_p.h(59) : see declaration of 'QDeclarativePixmap'
  8. .\qdeclarativeeffect.cpp(263) : error C2065: 'Cache' : undeclared identifier
  9. .\qdeclarativeeffect.cpp(265) : error C2065: 'options' : undeclared identifier
  10. .\qdeclarativeeffect.cpp(265) : error C2039: 'Asynchronous' : is not a member of 'QDeclarativePixmap'
  11.         d:\cpp\qt\qt-everywhere-opensource-src-4.7.3\qt-everywhere-opensource-src-4.7.3\include\qtdeclarative\private\../../../src/declarative/util/qdeclarativepixmapcache_p.h(59) : see declaration of 'QDeclarativePixmap'
  12. .\qdeclarativeeffect.cpp(265) : error C2065: 'Asynchronous' : undeclared identifier
  13. .\qdeclarativeeffect.cpp(266) : error C2065: 'options' : undeclared identifier
  14. qdeclarativemesh.cpp
  15. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2'
  16. Stop.
  17. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'
  18. Stop.
  19. NMAKE : fatal error U1077: 'cd' : return code '0x2'
  20. Stop.
  21. NMAKE : fatal error U1077: 'cd' : return code '0x2'
  22. Stop.
  23.  
  24.  

what im doing wrong here ?

7 replies

May 19, 2011

Chuck Gao Chuck Gao
Lab Rat
343 posts

Yes, i also meet this problem before, but i just comment some code. It seems a optimization code. Maybe available in Qt 4.8.0, i guess.

 Signature 

Chuck

May 19, 2011

umen242 umen242
Lab Rat
352 posts

no i found the problem its bug reported
http://bugreports.qt.nokia.com/browse/QTBUG-17872?page=com.atlassian.jira.plugin.system.issuetabpanels:changehistory-tabpanel [bugreports.qt.nokia.com]

basically you have to change in 2 files version checking variable , check the diff there

May 19, 2011

Chuck Gao Chuck Gao
Lab Rat
343 posts

umen242 wrote:
no i found the problem its bug reported
http://bugreports.qt.nokia.com/browse/QTBUG-17872?page=com.atlassian.jira.plugin.system.issuetabpanels:changehistory-tabpanel [bugreports.qt.nokia.com]

basically you have to change in 2 files version checking variable , check the diff there

Thx,i’ll try it out.

 Signature 

Chuck

May 19, 2011

Chuck Gao Chuck Gao
Lab Rat
343 posts

I have read this bug report, and see the diff file. It’s what i have done in my code. Both for 4.7.3, so maybe we can use “QDeclarativePixmap::Options” in next version.

 Signature 

Chuck

May 19, 2011

umen242 umen242
Lab Rat
352 posts

maybe who know … i read somewhere that qt3d will be build-in into 4.8

May 19, 2011

Chuck Gao Chuck Gao
Lab Rat
343 posts
umen242 wrote:
maybe who know … i read somewhere that qt3d will be build-in into 4.8

me too

 Signature 

Chuck

May 20, 2011

Chuck Gao Chuck Gao
Lab Rat
343 posts

Try latest one:
http://doc.qt.nokia.com/qt-quick3d-snapshot/index.html

 Signature 

Chuck

 
  ‹‹ How and Where to start to build a game using Qt      Bomberman - QTimer, QTimerEvent, Signals and Slots connection problems ››

You must log in to post a reply. Not a member yet? Register here!