react-native-community / jsc-android-buildscripts

Script for building JavaScriptCore for Android (for React Native but not only)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem building on Ubuntu 16.0.4

mrueger42 opened this issue · comments

Issue Description

Trying to build the master branch on Ubuntu 16.0.4. Haven't done this for a while, last time I did succeed.
With cmake 3.6 I get missing "algorithm" oder "array" include references
With cmake 3.10 I get
CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set.
Tried setting CMAKE_MAKE_PROGRAM, still getting the same error.

Got all the listed dependencies (ruby, python etc) installed. Newest NDK, recent platforms, tools etc from the Android SDK.

Any hints highly appreciated!

Version, config, any additional info

JSC 236355.1.1, master
Ubuntu 16.0.4, fully updated
No changes to any of the jsc-android files

I have same issue but on macOS 10.14.2 :(

It looks like I have cache to path of old android ndk version located ~/Library/Android/ndk-r16
I have no path variables to this version into .profile
But after I have removed ndk-r16 folder I can building with no issues.

Still no luck on this one. macOS 10 as well.

(I'm on macOS 10.14.2)
I got this problem too. After some trial,I fixed it.

At first, I try to add a new header search path to fix this problem, like this:
image

After that, I got a new problem: error: redefinition of 'bad_optional_access'.
libstdc++ 7 has already defined 'bad_optional_access', and WTF define this too, so I modify
'bas_optional_access' definition in/build/download/webkit/Source/WTF/wtf/Optional.h, to:

image

build pass.

AFAIK, there are build issues for NDK r19 due to the sysroot maker deprecation..
In the meantime, please make sure to use older NDK version.

I will try to make NDK r19 to work with jsc-android-buildscripts, but please stayed tune.

Sorry, didn't get back to this earlier

Managed to compile (241213.1.0) on Ubuntu by doing the following