How to resolve this error when run project ?
-
/home/project/newapp starting ....
Failed to start program path or permission wrong .
/home/project/newapp exited with -1 code .
-
Hi
Ah so it was just wrong exe type.
You produce an ARM "exe" so most likely you are
supposed to copy it to some test board for running it.Also if the board is connected and all is set up , Creator can transfer the exe to the board and run it
with debugger and all.You should ask the other developers about it. What they do etc.
-
Hi
Is that for a new clean project ?
Or did you add "so" files or anything else to it ?seems to live in your home folder so unless you used su / sudo for some operations, you
should own all files.Can you start the exe from a shell ?
-
@Qt-embedded-developer
I see you have asked this at https://forum.qt.io/topic/130772/how-to-resolve-this-issue/3. Please don't raise the same question in different posts, it's not very fair to effort we make to answer if you are asking in two places..../home/project/newapp exited with -1 code .
So what is existence/permissions etc. of that file?
-
@mrjj
Ans 1]
yes i t's for new project that i have copied .
Ans 2] i don't know about it i have just copy the project and try to build that project.
ans 3] its binary file i can not execute itNote that : NEWAPP is target name in my .pro file
-
Well by new , i mean clean. default project generated with Creator.
Where did you copy it from ? Is it on the net ?
Im asking as this error often is
1: path or permission . Please delete the exe and make so its for sure generated again fully.
2: the .pro added LIPS += something that then can't be found at run time
3: the working dir path in project->RUN
-
@Qt-embedded-developer said in How to resolve this error when run project ?:
ans 3] its binary file i can not execute it
So show me the output of an
ls -l
on it, to start with.yes i t's for new project that i have copied .
Copied what from where how? For all I know, maybe it's an executable for a different architecture, or almost anything else....
-
Hi
It seems to have execute on
what happens if you do./NEWAPP
to try start it ?
-
@mrj output of ./NEWAPP: j can not execute binary file
1: path or permission . Please delete the exe and make so its for sure generated again fully.
Ans: i am using linux so its generate NEWAPP as binary and NEWAPP is target name . -
Hi
try
objdump NEWAPP
and see what it saysI suspect you have an exe from other platform/bitness 32/64
like 64 bit app on 32 bit os
or reversed. -
@Qt-embedded-developer
IfNEWAPP
does not run you could try looking at:file NEWAPP
ldd NEWAPP
And you might have trouble trying to run a UI application as root....
-
Hi,
Why are you developing your application as root ?
-
root@ubuntu:/home/ankitasingh/mangal/07082019/NMMT# file NEWAPP
NEWAPP: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, BuildID[sha1]=0xb21dab967746dec3e210c303e287a5e04954a1d7, not stripped
root@ubuntu:/home/ankitasingh/mangal/07082019/NMMT# ldd NEWAPP
not a dynamic executable
root@ubuntu:/home/ankitasingh/mangal/07082019/NMMT# -
@Qt-embedded-developer said in How to resolve this error when run project ?:
not a dynamic executable
That looks like your reason then!
NEWAPP: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16,
And are you e.g. 32-bit LSB and ARM ? If you are not ARM on this machine....
-
Hi
Ah so it was just wrong exe type.
You produce an ARM "exe" so most likely you are
supposed to copy it to some test board for running it.Also if the board is connected and all is set up , Creator can transfer the exe to the board and run it
with debugger and all.You should ask the other developers about it. What they do etc.