Hello WebOSErs,
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 .."
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,
from /opt/webos-sdk-x86_64/1.0.g/sysroots/i586-webos-linux/usr/include/features.h:428,
from /opt/webos-sdk-x86_64/1.0.g/sysroots/i586-webos-linux/usr/include/bits/libc-header-start.h:33,
from /opt/webos-sdk-x86_64/1.0.g/sysroots/i586-webos-linux/usr/include/stdio.h:27,
from /home/catalin/WebOS/build-webos/com.sample.waylandegl/src/wayland_egl.c:1:
/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
compilation terminated.
CMakeFiles/wayland_egl.dir/build.make:62: recipe for target 'CMakeFiles/wayland_egl.dir/src/wayland_egl.c.o' failed
make[2]: *** [CMakeFiles/wayland_egl.dir/src/wayland_egl.c.o] Error 1
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/wayland_egl.dir/all' failed
make[1]: *** [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
#include <bits/long-double-64.h>
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.