jsc-android-buildscripts icon indicating copy to clipboard operation
jsc-android-buildscripts copied to clipboard

Problem building on Ubuntu 16.0.4

Open mrueger42 opened this issue 6 years ago • 6 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

mrueger42 avatar Feb 25 '19 09:02 mrueger42

I have same issue but on macOS 10.14.2 :(

black-balamut avatar Mar 01 '19 10:03 black-balamut

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.

black-balamut avatar Mar 05 '19 08:03 black-balamut

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

AustinHunt avatar Mar 08 '19 20:03 AustinHunt

(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.

tylinux avatar Mar 11 '19 07:03 tylinux

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.

Kudo avatar Mar 15 '19 17:03 Kudo

Sorry, didn't get back to this earlier

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

  • install android-ndk-r18b-linux-x86_64.zip (just replace the ndk-bundle folder) you can download it at https://developer.android.com/ndk/downloads/older_releases
  • sdkmanager --uninstall "cmake;3.10.2.4988404"
  • sdkmanager "cmake;3.6.4111459"

mrueger42 avatar May 22 '19 05:05 mrueger42