[SailfishDevel] Bacon2D for sailfishOS
Andrin Bertschi
andrin.bertschi at gmail.com
Sun Apr 5 15:29:38 UTC 2015
@Martin,
Thanks for the hint. I successfully got it to run the static way. Great!
> On 04 Apr 2015, at 22:03, Martin Windolph <martin at yoktobit.de> wrote:
>
> Hi,
>
> are you sure you don’t have other errors in your project? I’m using Bacon2D in a new game project for Windows/Android/SailfishOS and it worked out of the box. I’m using the static version of Bacon2D.
> If I exit the game I get the message:
> "bash: line 1: 4185 Terminated DISPLAY=:0.0 QT_NO_JOURNALD_LOG=1 /opt/sdk/harbour-minerx/usr/bin/harbour-minerx"
> But the game works.
> Maybe you should also try static linking?
>
> BR
> Martin
>
> -----Ursprüngliche Nachricht-----
> Von: devel-bounces at lists.sailfishos.org [mailto:devel-bounces at lists.sailfishos.org] Im Auftrag von Andrin Bertschi
> Gesendet: Samstag, 4. April 2015 19:50
> An: devel at lists.sailfishos.org
> Betreff: [SailfishDevel] Bacon2D for sailfishOS
>
> 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
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org
>
More information about the Devel
mailing list