Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User Dynite's Avatar
    Join Date
    Jun 2007
    Posts
    10
    Hi,

    I've been trying to follow the instructions here: http://labs.trolltech.com/blogs/2010...box2d-is-easy/
    But I'm having a whole load of problems.

    Firstly my path and sdk etc were all messed up.

    So finally I was able to build Box2D and run the testbed via MSVC2005.
    Then I tried to import Box2D.h and seemed to have a lot of import problems. (headers, including existing, c:\box2d\..... didn't seem to work)

    Eventually I copied the Box2.d and other folders to my project folder and things started to be found.

    However once I'd finally changed the source so it compiled (the blog's tutorial seems to be out of date) then I had lots of linker errors about couldn't find _ZSDSomeFunction... etc..

    Can someone explain what I should be doing in noob friendly steps please? Smiley

    (Windows XP)

  2. #2
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    How does your project file look like?

  3. #3
    Registered User Dynite's Avatar
    Join Date
    Jun 2007
    Posts
    10
    I literally just did "New Project, Qt Gui Project" So whatever the default is.

    I am willing to start from scratch so If you just created a new qt gui project then tried to import, compile and link the Box2D stuff as an idiot's guide that would be very very helpful!

    I was wondering whether I've got a compiler mismatch. I.e building Box2d with msvc and qt with mingw.

  4. #4
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Is Box2D a library?

  5. #5
    Registered User Dynite's Avatar
    Join Date
    Jun 2007
    Posts
    10
    yes - http://code.google.com/p/box2d/

    I'm using Version : Box2D_v2.1.2.zip Box2D Release 2.1.2 Featured

  6. #6
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    If it's a library then you should let qmake know about it
    http://doc.trolltech.com/4.6/qmake-p...ther-libraries

  7. #7
    Registered User Dynite's Avatar
    Join Date
    Jun 2007
    Posts
    10
    So I need to add something like this?

    LIBS += -Lc:\Box2d\Box2d\debug\ -lBox2d

    where the L defines path and l defines .lib file ?

    Does compiler of library matter? I.e.

    MSVC library linking to Mingw Qt project?

  8. #8
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Compiler should not matter, but probably it's better to use the same compiler for everything.

Similar Threads

  1. Qt Creator code completion not working with Qt Mobility for Symbian
    By ceefour in forum [Archived] Qt Mobility Project
    Replies: 4
    Last Post: 2011-09-10, 05:02
  2. QT Nokia sdk installation and QT Creator config problem
    By kapiluiet in forum [Archived] Qt SDKs and Tools
    Replies: 1
    Last Post: 2010-06-02, 13:49
  3. S60_5th_Edition_SDK_v1_0 + Qt creator 2.0 + qt-symbian-opensource-4.7.0-beta1配置问题?
    By fish_of_deadsea in forum [Archived] Qt General ( Qt技术)
    Replies: 0
    Last Post: 2010-05-30, 06:11
  4. Replies: 4
    Last Post: 2008-11-21, 06:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved