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?



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



  • 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?



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



  • 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?



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



  • 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 ?



  • 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?



  • 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.





  • [quote author="borceg" date="1354957741"]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.
    [/quote]

    The same result, remaining "Exec format error".



  • 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.



  • 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



  • 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.


Log in to reply