Languages

Menu
Sites
Language
Please complile with -fPIE and link with -pie flag

 

I created a new project. Change platform to Tizen.

I launch Tizen studio and emulator. but at the time of running the application error occurs

launchpad_loader.c: main(713) > dlopen failed(/opt/usr/apps/my.game.name/bin/newunityproject: cannot open shared object file: No such file or directory). Please complile with -fPIE and link with -pie flag

launchpad_loader.c: main(739) > [SECURE_LOG] execv() failed for file: "/opt/usr/apps/my.game.name/bin/newunityproject", error: 8 (Exec format error)

where it is necessary to prescribe the parameters -fPIE -pie flag ? How to fix it?

Responses

3 Replies
Mark Watney

Please check if you have -fPIE and -Pie parameters set for C/C++ compiler and linker at following path:

for fPIE flag: 

Project > properties > C/C++ Build > Settings > C++ Compiler

http://imgur.com/a/VM0yP


for pie flag: 

Project > properties > C/C++ Build > Settings > C++ Linker

http://imgur.com/a/3ZZOY


You will find the flag entitled under "All options" section.

I have attached screenshots.

Игнат Шарагин

You do not help because tpk created by Unity, and not in Tizen Studio.

But Unity creates a temporary project, it can not be imported into Tizen Studio, or rather impossible to create a Run Configuration

tpk created by Unity

 

app_name\Temp\StagingArea - temp project

imported temporary project created by Unity

Mark Watney

Did you try running your application directly on device or on an emulator?

Unity doesn't support running projects on emulator yet. ( https://docs.unity3d.com/Manual/tizen-faq.html )

If you want to test your application, you can use the device directly from unity and run it from there. It should work on the device.

 

Thanks.