Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Jun 2007
    Posts
    10

    Question Importing to Creator help (- specifically Using Box2D with Qt Creator (2.0))

    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
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Importing to Creator help (- specifically Using Box2D with Qt Creator (2.0))

    How does your project file look like?

  3. #3
    Registered User
    Join Date
    Jun 2007
    Posts
    10

    Re: Importing to Creator help (- specifically Using Box2D with Qt Creator (2.0))

    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
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Importing to Creator help (- specifically Using Box2D with Qt Creator (2.0))

    Is Box2D a library?

  5. #5
    Registered User
    Join Date
    Jun 2007
    Posts
    10

    Re: Importing to Creator help (- specifically Using Box2D with Qt Creator (2.0))

    yes - http://code.google.com/p/box2d/

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

  6. #6
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Importing to Creator help (- specifically Using Box2D with Qt Creator (2.0))

    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
    Join Date
    Jun 2007
    Posts
    10

    Re: Importing to Creator help (- specifically Using Box2D with Qt Creator (2.0))

    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
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Importing to Creator help (- specifically Using Box2D with Qt Creator (2.0))

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×