PDA

View Full Version : Need Help In Linking Plugins to Qt



Legend
7th June 2015, 14:42
Hello Friends.
I am completely new to Qt(Qute).I am using Qt 4.7.4. Currently i am developing a test game(QML based). For compiling and using QmlBox2D (https://github.com/qml-box2d/qml-box2d) physics engine, i referred this https://wiki.qt.io/Build-QML-Box2D-Library article. As mentioned in this article, i didn't got any *.so file after building but getting *.dll files. When i start programming it doesnt show any errors but when i compile it throws "module import Box2D 2.0 is not installed."

I don't know what to do & what mistake i made. It would be really helpful if someone provide step by step(bcoz completely new) instruction on how to solve it.

Sorry for my bad english & Thanks in Advance.

ChrisW67
7th June 2015, 21:02
You are getting .dll (dynamic link library) files becuase you are building on Windows. The .so (shared object) files are what you get on a UNIX-like OS.

Do the simple instructions in the source README (https://gitorious.org/qml-box2d/qml-box2d/source/47ab19e6eae01ce5506c8348588620817beef17e:README) file help? They seem far more straightforward than the wiki page.

Legend
9th June 2015, 06:32
Sorry for late reply(i was not in home town).

Thank you for Replying ChrisW67.
I followed the README steps. But again it gives

:-1: error: [install_target] Error 1 (ignored)

Here is the Output

10:06:48: Running build steps for project box2d...
10:06:48: Configuration unchanged, skipping qmake step.
10:06:49: Starting: "C:\QtSDK\mingw\bin\mingw32-make.exe"
C:/QtSDK/mingw/bin/mingw32-make.exe -f Makefile.Debug
mingw32-make.exe[1]: Entering directory `C:/QtSDK/Desktop/Qt/4.7.4/mingw/imports/qml-box2d-qml-box2d'
mingw32-make.exe[1]: Nothing to be done for `first'.
mingw32-make.exe[1]: Leaving directory `C:/QtSDK/Desktop/Qt/4.7.4/mingw/imports/qml-box2d-qml-box2d'
10:06:49: The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited normally.
10:06:49: Starting: "C:\QtSDK\mingw\bin\mingw32-make.exe" install
C:/QtSDK/mingw/bin/mingw32-make.exe -f Makefile.Debug install
mingw32-make.exe[1]: Entering directory `C:/QtSDK/Desktop/Qt/4.7.4/mingw/imports/qml-box2d-qml-box2d'
copy /y "debug\Box2Dd.pdb" "c:\QtSDK\Desktop\Qt\4.7.4\mingw\imports\Box2D\Box2 Dd.pdb"
The system cannot find the file specified.
copy /y "debug\Box2Dd.dll" "c:\QtSDK\Desktop\Qt\4.7.4\mingw\imports\Box2D\Box2 Dd.dll"
mingw32-make.exe[1]: [install_target] Error 1 (ignored)
1 file(s) copied.
copy /y c:\QtSDK\Desktop\Qt\4.7.4\mingw\imports\qml-box2d-qml-box2d\qmldir c:\QtSDK\Desktop\Qt\4.7.4\mingw\imports\Box2D
1 file(s) copied.
mingw32-make.exe[1]: Leaving directory `C:/QtSDK/Desktop/Qt/4.7.4/mingw/imports/qml-box2d-qml-box2d'
10:06:50: The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited normally.

Any Help.

ChrisW67
9th June 2015, 21:36
The library is assuming that it is built with Microsoft's compiler and trying to copy a debug symbol file that compiler would produce (the pdb files) . MingW does not produce these files.

You could adjust the pro file to not try to install the pdb. However, it looks like that failure was ignored anyway and the overall process succeeded.

Legend
14th June 2015, 15:31
Once again Thank you Bro for your kind Reply.
I successfully Compiled and Installed the Libraries through Command Prompt by setting 'path' variables to Qtcreator->Mingw->bin and Qt->version->Mingw->bin and executing the following command

@ qmake && mingw32-make --always-make -install @

It successfully compiled and installed the plugins to qml Import Paths.
On importing module in qt qml project it says Dumped Plugins Successfully and also suggests the Keywords while typing..... but when i compile it says module "Box2D" is not installed . 11210 . I dont know why these things happen.

AnyHelp Regarding This.
Thanx in Advance.