[GCompris-devel] Trying to build 0.50 with external qml-box2d

Bruno Friedmann bruno at ioda-net.ch
Sun Dec 27 15:40:00 UTC 2015


Hey, I'm trying to build gcompris-qt 0.50 with the external qml-box2d

Here the situation :
I have libBox2D-devel available (last 2.3.2 version)
which allow me to build qml-box2d
qml-box2d rpm contains only a .so file placed in
/usr/lib64/qt5/qml/Box2D.2.0/libBox2D.so

Now when I try to build gcompris-qt it failed with the following error

[   51s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/gcompris-qt-0.50/build'
[   51s] [  7%] Built target rcc_activities
[   51s] make -f src/core/CMakeFiles/gcompris-qt.dir/build.make src/core/CMakeFiles/gcompris-qt.dir/build
[   51s] make -f src/activities/algebra_minus/CMakeFiles/rcc_algebra_minus.dir/build.make src/activities/algebra_minus/CMakeFiles/rcc_algebra_minus.dir/depend
[   51s] Cannot find file: /home/abuild/rpmbuild/BUILD/gcompris-qt-0.50/external/qml-box2d/box2d.pro.
[   51s] CMakeFiles/qml_box2d.dir/build.make:108: recipe for target 'qml_box2d-prefix/src/qml_box2d-stamp/qml_box2d-configure' failed
[   51s] make[2]: *** [qml_box2d-prefix/src/qml_box2d-stamp/qml_box2d-configure] Error 2
[   51s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/gcompris-qt-0.50/build'
[   51s] CMakeFiles/Makefile2:235: recipe for target 'CMakeFiles/qml_box2d.dir/all' failed
[   51s] make[1]: *** [CMakeFiles/qml_box2d.dir/all] Error 2

gcompris is looking for qml-box2d sources, but why ? 
Can't it be build with just qml-box2d system wide installed .so 

Now if I analyze the call 
qml-box2d/box2d.pro is not from qml-box2d but from libox2d-devel package.
Perhaps we can give to cmake an option to tell it where Box2D is ?
debugging lead me to the following add

-DQML_BOX2D_LIBRARY=%{_libdir}/qt5/qml/Box2D.2.0 \

Then the build is successful Yepea Yeah ... 

Did I do the right things ?
If not what has to be done ?

Nota : you're talking to a packager who doesn't every time understand the subtlety of C++ :-)))

-- 

Bruno Friedmann 
Ioda-Net Sàrl www.ioda-net.ch
 
 openSUSE Member & Board, fsfe fellowship
 GPG KEY : D5C9B751C4653227
 irc: tigerfoot



More information about the GCompris-devel mailing list