[SailfishDevel] Bacon2D for sailfishOS

Andrin Bertschi andrin.bertschi at gmail.com
Sat Apr 4 17:50:25 UTC 2015


I am trying to get Bacon2D running on sailfish os, armv7|i486.
Therefore, I compiled Bacon2D for my corresponding target in Qt Creator
and added it as private qml module in my harbour sailfish project.

├── qml
│   ├── Bacon2D
│   │   ├── Boundaries.qml
│   │   ├── BoxBody.qml
│   │   ├── ChainBody.qml
│   │   ├── CircleBody.qml
│   │   ├── EdgeBody.qml
│   │   ├── ImageBoxBody.qml
│   │   ├── PhysicsEntity.qml
│   │   ├── PolygonBody.qml
│   │   ├── RectangleBoxBody.qml
│   │   ├── libbacon2dplugin.so / either armv7 or i486
│   │   └── qmldir
│   ├── main.qml

Further, I added the qml to the import path.

view->engine()->addImportPath("/usr/share/harbour-sailrun/qml”);


The demo game looks like:

import QtQuick 2.1
import Sailfish.Silica 1.0
import Bacon2D 1.0

Page {
    Game {
        id: game
        anchors.centerIn: parent
        height: 680
        width: 440
        gameName: "my-game"
    }
}


So far so good, the module is found by the runtime and the imports work without any compiler or runtime issues.
However, after I launched the sailfish application,
it exists with a segmentation fault error.

[D] DeclarativeCoverWindow::DeclarativeCoverWindow:63 - DeclarativeCoverWindow: I have a default alpha buffer
bash: line 1:  3772 Segmentation fault      DISPLAY=:0.0 QT_NO_JOURNALD_LOG=1 /usr/bin/harbour-sailrun
Application finished with exit code 139.


The demo project is here:
https://github.com/abertschi/sailrun.git, branch bacon2d


Bacon2D QML Game engine: https://github.com/Bacon2D/Bacon2D

Any help would be very appreciated.
Happy Easter.

andrin bertschi

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20150404/2742e459/attachment.pgp>


More information about the Devel mailing list