I’m trying to get a minimal photon application running on an embedded
target for demo purposes.
The demo is simply phcalc running on the target without a desktop or window
manager. This will prove that Photon, graphics driver and the USB HID is
working.
When phcalc starts in the boot script this message appears on the console:
Ap: Unable to open resource file
</usr/photon/bin/phcalc>
Is there a good way to find what resource is missing?
This is on 6.3.0 SP1.
TIA
Hi,
Ken Schumm wrote:
I’m trying to get a minimal photon application running on an embedded
target for demo purposes.
The demo is simply phcalc running on the target without a desktop or window
manager. This will prove that Photon, graphics driver and the USB HID is
working.
When phcalc starts in the boot script this message appears on the console:
Ap: Unable to open resource file
/usr/photon/bin/phcalc
Is there a good way to find what resource is missing?
You need to add the attribute [+raw] in your builfile before including
phcalc. Without this
attribute, mkifs strips the executable and removes the resources from
the elf file.
This is on 6.3.0 SP1.
TIA
Best regards
“Pierre AUBERT” <p.aubert@nospam.please> wrote in message
news:dj24lm$3p8$1@inn.qnx.com…
[…]
Is there a good way to find what resource is missing?
You need to add the attribute [+raw] in your builfile before including
phcalc. Without this
attribute, mkifs strips the executable and removes the resources from
the elf file.
Thanks, Pierre, that fixed it. I remember reading that a few weeks ago and
forgot all about it. Your help is much appreciated.
Hi
I am new to PhAb application programming. I am able to run a program
using widgets on my target using the Momentics IDE. But when I
download the executable on target and run it says this error. I saw
this post but was not able to figure out where is this builfile.
Can you tell me where do I get this “builfile”
"Quote:
Is there a good way to find what resource is missing?
You need to add the attribute [+raw] in your builfile before
including
phcalc. Without this
attribute, mkifs strips the executable and removes the resources from
the elf file."