When cross-compiling the native Carrier for Raspberry Pi on Ubuntu, no executable elashell or elatests is created as for non-cross-compiled versions.
Activating ENABLE_APPS_DEFAULT or ENABLE_TESTS_DEFAULT in CMakeLists.txt file on root level starts the build process, but fails:
...
if(CMAKE_CROSSCOMPILING)
set(ENABLE_APPS_DEFAULT FALSE) #set to true
set(ENABLE_TESTS_DEFAULT FALSE) #set to true
else()
...
[ 71%] Building C object apps/shell/CMakeFiles/elashell.dir/shell.c.o
/home/peter/Desktop/Elastos.NET.Carrier.Native.SDK/apps/shell/shell.c:63:20: fatal error: curses.h: No such file or directory
#include <curses.h>
^
compilation terminated.
apps/shell/CMakeFiles/elashell.dir/build.make:62: recipe for target 'apps/shell/CMakeFiles/elashell.dir/shell.c.o' failed
make[2]: *** [apps/shell/CMakeFiles/elashell.dir/shell.c.o] Error 1
CMakeFiles/Makefile2:1217: recipe for target 'apps/shell/CMakeFiles/elashell.dir/all' failed
make[1]: *** [apps/shell/CMakeFiles/elashell.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
...
Additionally, from my understanding, Android and iOS versions also fall into the 'CMAKE_CROSSCOMPILING' category, therefore Raspberry versions will also have to be separated from the general cross-compiling code logic.
When cross-compiling the native Carrier for Raspberry Pi on Ubuntu, no executable elashell or elatests is created as for non-cross-compiled versions.
Activating ENABLE_APPS_DEFAULT or ENABLE_TESTS_DEFAULT in CMakeLists.txt file on root level starts the build process, but fails:
...
if(CMAKE_CROSSCOMPILING)
set(ENABLE_APPS_DEFAULT FALSE) #set to true
set(ENABLE_TESTS_DEFAULT FALSE) #set to true
else()
...
[ 71%] Building C object apps/shell/CMakeFiles/elashell.dir/shell.c.o
/home/peter/Desktop/Elastos.NET.Carrier.Native.SDK/apps/shell/shell.c:63:20: fatal error: curses.h: No such file or directory
#include <curses.h>
^
compilation terminated.
apps/shell/CMakeFiles/elashell.dir/build.make:62: recipe for target 'apps/shell/CMakeFiles/elashell.dir/shell.c.o' failed
make[2]: *** [apps/shell/CMakeFiles/elashell.dir/shell.c.o] Error 1
CMakeFiles/Makefile2:1217: recipe for target 'apps/shell/CMakeFiles/elashell.dir/all' failed
make[1]: *** [apps/shell/CMakeFiles/elashell.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
...
Additionally, from my understanding, Android and iOS versions also fall into the 'CMAKE_CROSSCOMPILING' category, therefore Raspberry versions will also have to be separated from the general cross-compiling code logic.