Boot2Qt: how to set it to start my example?
In order to start to develop an application on a brand new Variscite SBC (my aim is to replace a previous Single Board Computer), I follows a tutorial for Building the image and toolchain in Yocto environment.
All is ok: I flash an SD card, put it in my SDK and the Qt DEMO starts, allows me to choose one of its example.
Now I'd like to try a simple example made by me using QtCreator: I think to have set BUILD & RUN correctly and I obtainan executable file (in Release mode), that I'd like to see in SDK.
Problem is: I don't know how. How to start? My build environment seems to be correctly set (if not, image used ot flash SD Card with Qt demo didn't run...)
@alsa Hi, can you be a little more explicit? Did you install your application and then it wouldn't start? Or do you not even know where to place/how to install the application?
Are there any logs? My guess here is that you didn't include the binaries you needed to actually run the example. I.e. it can't find and load the Qt libraries that it needs. Also possible you are using a different version of Qt between your build and the target device.
@ambershark said in Boot2Qt: how to set it to start my example?:
My guess here is that you didn't include the binaries you needed to actually run the example. I.e. it can't find and load the Qt libraries that it needs.
I think this could be one of the reason, when I try to add my example on the precompiled SD Card.
My second issue is: how to arrange my own image in such a way, for example, when I put my SD card in SDK I found only my app and try to launch it.
Hoping it's clear...
@alsa I can't help with the 2nd issue since I've never done it.
The first issue you just need to find out what is missing. You can use
ldd ./yourappon your developer machine to find what libraries it needs. Then you can make sure to install those .....
actually I just wrote almost all this in another post, here is the info you'll need, lol:
I read the indicated post related to deploying an app. My problem seems to be I don' know how to :("... I usually will make an install package that has those libs in them"...).
Another problem is that indicated in my first message: I follow this tutorial (http://variwiki.com/index.php?title=B2QT_Build_Release&release=RELEASE_MORTY_B2QT_V1.1_DART-6UL), and I'm able to dlash my Sd card with the image. This image starts properly, but it contained only some Qt DEMO and don't leave me to launch my app. In the "closed" DEMO isn't possible to do nothing else than launch one of the example.
Now, I still haven't found the way to pass from an built DEMO image to one that contains my app.
@alsa Hmm, this seems a bit out of the scope of the Qt forums. This really becomes a question that should be asked of the B2QT community.
I've never used B2QT so I have no idea what you would have to replace in the image before you
dd'd it onto a flash drive.
They should cover this in their documentation or if it's used by enough people there could even be a tutorial on exactly that.