Open janisozaur opened 6 years ago
I have submitted a build fix for bio_test.cc
: https://boringssl-review.googlesource.com/c/boringssl/+/23764
EDIT: The fix is now merged in https://github.com/google/boringssl/commit/d3ec6f1adb389de1a5d9159f56ccce225a17c363
Ping @marijnvdwerf
Note to self: jansson fails due to the script executing install
target without setting any DESTDIR
.
An invocation like
DESTDIR=`pwd`/out ANDROID_HOME=/home/janisozaur/Android/Sdk ANDROID_NDK_HOME=/home/janisozaur/Android/Sdk/ndk-bundle ./build.sh
gets it going a bit further, but then fails on libpng
:
/home/janisozaur/Android/Sdk/ndk-bundle/prebuilt/linux-x86_64/bin/make all-am
make[1]: Entering directory `/home/janisozaur/workspace/openrct2-dependencies-android/build/arm64-v8a/build/png/src/png_ext'
/bin/sh ./libtool --tag=CC --mode=link aarch64-linux-android-gcc -g -O2 -o pngfix contrib/tools/pngfix.o libpng16.la -lm -lz -lm
libtool: link: aarch64-linux-android-gcc -g -O2 -o .libs/pngfix contrib/tools/pngfix.o ./.libs/libpng16.so -lz -lm -L/home/janisozaur/workspace/openrct2-dependencies-android/build/arm64-v8a/build/contrib/lib
contrib/tools/pngfix.o: In function `main':
/home/janisozaur/workspace/openrct2-dependencies-android/build/arm64-v8a/build/png/src/png_ext/contrib/tools/pngfix.c:4025: undefined reference to `stderr'
/home/janisozaur/workspace/openrct2-dependencies-android/build/arm64-v8a/build/png/src/png_ext/contrib/tools/pngfix.c:4025: undefined reference to `stderr'
collect2: error: ld returned 1 exit status
make[1]: *** [pngfix] Error 1
make[1]: Leaving directory `/home/janisozaur/workspace/openrct2-dependencies-android/build/arm64-v8a/build/png/src/png_ext'
make: *** [all] Error 2
This adds boringssl to all architectures.
I couldn't rebuild all the libraries, it failed on my system, so libpng and sdl2 are still outdated.
With this and https://github.com/OpenRCT2/OpenRCT2/pull/6760 I could connect to a multiplayer server:
I had to manually copy the key from my desktop, as OpenRCT2 crashed with the one generated on device, as it had 0 bytes.
It crashed on this line:
https://github.com/OpenRCT2/OpenRCT2/blob/33d0fa9b8c506c6d56777df940fbb2228268d9aa/src/openrct2/network/NetworkKey.cpp#L315
The stack trace was:
The build command:
The built libs use https://github.com/google/boringssl/commit/bc37ad91fe74da35f97cd2748e38fd572ce5decd
The binaries in question: openrct2-libs-android-arm64-v8a.zip openrct2-libs-android-armeabi-v7a.zip openrct2-libs-android-x86.zip openrct2-libs-android-x86_64.zip