December 6, 2012

rocjohn rocjohn
Lab Rat
10 posts

Error: Failed to create application process: Exec format error

 

Following this link http://qt-project.org/wiki/Setting-up-Qt-Creator-for-BlackBerry-and-QNX
Build and Deploy all sucess, but can’t launch the application in the simulator.
Does anyone have some ideas?

13 replies

December 6, 2012

borceg borceg
Lab Rat
23 posts

Remove your previous versions of the app, change network setting in vmware (switch between bridge/nat)

December 7, 2012

rocjohn rocjohn
Lab Rat
10 posts

Hi,borceg.
It doesn’t solved the problem.

My Env is: Win7 Home Basic + QtCreator 2.6 + BBNDK beta4
Compiler Path: C:\bbndk\host_10_0_9_284\win32\x86\usr\bin\qcc.exe
ABI: custom – arm – linux – generic – elf – 32bit
Qt Version: C:\bbndk\host_10_0_9_284\win32\x86\usr\bin\qmake.exe

Is there some wrong?

December 7, 2012

borceg borceg
Lab Rat
23 posts

NDK beta 4 is 10_0_9_1101, maybe you’re using older version ?

December 8, 2012

rocjohn rocjohn
Lab Rat
10 posts

Hi, borceg.

The details setting of [QtCreator]:
[Compiler Path:] C:\bbndk\host_10_0_9_284\win32\x86\usr\bin\qcc.exe
[ABI:] custom – arm – linux – generic – elf – 32bit
[Qt Version:] C:\bbndk\host_10_0_9_284\win32\x86\usr\bin\qmake.exe

The details setting of [qt.conf]:
Prefix = ../../../../..
Binaries = C:/bbndk/host_10_0_9_284/win32/x86/usr/bin
Headers = C:/bbndk/target_10_0_9_1101/qnx6/usr/include/qt4
Data = C:/bbndk/target_10_0_9_1101/qnx6/usr/share/qt4
Libraries = C:/bbndk/target_10_0_9_1101/qnx6/armle-v7/usr/lib/qt4/lib
Imports = C:/bbndk/target_10_0_9_1101/qnx6/armle-v7/usr/lib/qt4/imports
Plugins = C:/bbndk/target_10_0_9_1101/qnx6/armle-v7/usr/lib/qt4/plugins

I think , all other path point to target_10_0_9_1101, except qcc/qmake/binaries path point to host_10_0_9_284.

Something wrong?

December 8, 2012

borceg borceg
Lab Rat
23 posts

Your ndk installation is messed up. Uninstall it completely (after uninstall delete bbndk folder in C) and re-install beta 4

December 8, 2012

rocjohn rocjohn
Lab Rat
10 posts

Yes, i do. I uninstalled previous sdk, and reboot computer and deleted bbndk folder in C, then reinstall beta 4.
The result is same.
Are you sure the path host_10_0_9_284 is incorrect?
What’s the correct host path in beta 4 ?

December 8, 2012

rocjohn rocjohn
Lab Rat
10 posts

http://supportforums.blackberry.com/t5/Native-Development/NDK-Beta-4-Simulator-Qt-Creator-2-6-problem/m-p/2011837/thread-id/9401/highlight/false

It seems someone face the same problem.
I think, the important clue is “Exec format error”,some ideas?

December 8, 2012

borceg borceg
Lab Rat
23 posts

Opps my mistake. Correct is host_10_0_9_284. [ABI:] for Simulator should be custom – x86 – linux – generic – elf – 32bit

Seems that there is some issue with beta 4.

December 9, 2012

rocjohn rocjohn
Lab Rat
10 posts

Found this:
http://www.qnx.com/developers/qnx4/qnx4kb/solution.html?code=5996

December 9, 2012

rocjohn rocjohn
Lab Rat
10 posts

borceg wrote:
Opps my mistake. Correct is host_10_0_9_284. [ABI:] for Simulator should be custom – x86 – linux – generic – elf – 32bit

Seems that there is some issue with beta 4.

The same result, remaining “Exec format error”.

December 9, 2012

rocjohn rocjohn
Lab Rat
10 posts

HelloWorld (build by QNX Momentic IDE):
C:\bbndk\host_10_0_9_284\win32\x86\usr\bin\ntox86-objdump.exe -a HelloWorld
result: file format elf32-i386

HelloWorld (build by QtCreator 2.6):
C:\bbndk\host_10_0_9_284\win32\x86\usr\bin\ntox86-objdump.exe -a HelloWorld
result: file format elf32-little

This is the point why i got ‘Exec format error’!

But i don’t know how to modify the compiler abi settings in QtCreator 2.6, i’v tried almost all items.

December 9, 2012

rocjohn rocjohn
Lab Rat
10 posts

Finally Solution:

point the Qt mkspec in the kits page to C:\bbndk\target_10_0_9_1101\qnx6\usr\share\qt4\mkspecs\blackberry-x86-qcc.

:D

December 14, 2012

Zingam Zingam
Lab Rat
17 posts

Finally it works… Thank you! But can you use the debugger now? Every time when I start it it just crashes, says that is has timed out or that it cannot connect, etc.

The app does get packaged and uploaded to the simulator and works though.

 
  ‹‹ Iam getting errors when trying to build using QNX® Momentics® IDE for BlackBerry® 10 Native SDK like "Launch failed no binaries found"      Please explain me where and How to write the commands $ export CPUVARDIR=armle-v7 $ source <path_to_ndk>/bbndk-env.sh inorder to set ››

You must log in to post a reply. Not a member yet? Register here!