I am currently following this tutorial:
I have built everything from scratch on Ubuntu 18.04 x64 (Virtual Box on Windows 10 x64 Host)
I have followed all the steps of the NDK build and also built the other example "Built-In Native App" successfully. So everything should be fine as far as I can tell.
My current issue lies at ## Step 3: Build the Native App, after running "cmake .."
-- Configuring done
-- Generating done
-- Build files have been written to: /home/catalin/WebOS/build-webos/com.sample.waylandegl/BUILD
comes the make step which fails:
make[ 50%] Building C object CMakeFiles/wayland_egl.dir/src/wayland_egl.c.o
In file included from /opt/webos-sdk-x86_64/1.0.g/sysroots/i586-webos-linux/usr/include/sys/cdefs.h:443:0,
/opt/webos-sdk-x86_64/1.0.g/sysroots/i586-webos-linux/usr/include/bits/long-double.h:60:10: fatal error: bits/long-double-64.h: No such file or directory
CMakeFiles/wayland_egl.dir/build.make:62: recipe for target 'CMakeFiles/wayland_egl.dir/src/wayland_egl.c.o' failed
make: *** [CMakeFiles/wayland_egl.dir/src/wayland_egl.c.o] Error 1
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/wayland_egl.dir/all' failed
make: *** [CMakeFiles/wayland_egl.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
I have checked for long-double-64.h manually at the .../include/bits folder and it is indeed missing. It includes on the other hand
long-double-32.h & long-double.h
long-double.h contains the lines:
#elif __MHWORDSIZE == 64
but the file is nowhere to be found.
At this point I will note, if not already obvious, that I am building an app for a 32bit image of WebOSE (runing in a virtual box) but my system is 64.
I have also looked for long-double-64.h in /opt/webos-sdk-x86_64/1.0.g/sysroots/x86_64-webossdk-linux/usr/include/bits$ found only long-double.h which is defined only as a comment:
/* long double is distinct from double, so there is nothing to
define here. */
I am at a loss currently as to what should I do, any help would be appreciated,
Thank you in advance.