[05:32:10] hi nozx, how did you build it? See how our CI builds: https://github.com/navit-gps/navit/blob/5e1377cb1aab19bbbac6740e1f8ee80b75b4adb6/.circleci/config.yml#L79-L104 [09:19:03] *** Quits: nozx (5d78c0d1@93-120-192-209.dynamic.mts-nn.ru) (Remote host closed the connection) [09:25:53] *** Joins: nozx (~nozx@93-120-192-209.dynamic.mts-nn.ru) [09:31:43] jkoan: i tried circle ci way: "./gradlew assembleRelease" and got same result [09:31:49] build fails with [09:31:51] In file included from /usr/include/glib-2.0/glib/galloca.h:32: /usr/include/glib-2.0/glib/gtypes.h:466:3: error: static_assert failed due to requirement 'sizeof(unsigned long long) == sizeof(unsigned long)' "Expression evaluates to false" [09:32:29] as i understand it includes headers from my system libraries. is it normal? [09:32:44] dosent sound so [09:32:55] what was your full cmdline [09:32:57] ? [09:34:23] also, did you setup path with android ndk? [09:34:37] [8/136] Building C object navit/support/gettext_intl/CMakeFiles/support_gettext_intl.dir/dcngettext.c.o [09:34:40] FAILED: /home/nozx/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=armv7-none-linux-androideabi16 --gcc-toolchain=/home/nozx/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/nozx/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DBIN_DIR=\"bin\" -DDEPENDS_ON_LIBICONV=1 -DENABLE_RELOCATABLE=1 -DHAVE_CONFIG_H=1 [09:34:46] -DIMAGE_DIR=\"share/navit/icons\" -DIN_LIBINTL=1 -DIN_LIBRARY -DLIBDIR=\"/usr/local/lib/navit\" -DLIB_DIR=\"lib/navit\" -DLOCALE_ALIAS_PATH=LOCALEDIR -DLOCALE_DIR=\"share/locale\" -DMAN_DIR=\"share/man/man1\" -DMODULE=support_gettext_intl -DNO_XMALLOC -DSHARE_DIR=\"share/navit\" -DTEXTURE_DIR=\"share/navit/textures\" -Drelocate=libintl_relocate -Dset_relocation_prefix=libintl_set_relocation_prefix [09:34:52] -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/lib64/libffi/include -I. -I../../../../../../ -I../../../../../ -Inavit -I../../../../../support -I../../../../../support/wordexp -I../../../../../support/gettext_intl -I../../../../../graphics/android -I../../../../../binding/dbus -I../../../../../speech/dbus -I../../../../../vehicle/gpsd_dbus [09:34:58] -I../../../../../osd/core -I../../../../../vehicle/demo -I../../../../../gui/internal -I../../../../../map/binfile -I../../../../../map/mg -I../../../../../map/shapefile -I../../../../../map/textfile -I../../../../../map/csv -I../../../../../speech/android -I../../../../../traffic/dummy -I../../../../../traffic/null -I../../../../../traffic/traff_android -I../../../../../vehicle/android [09:34:59] please use pastebin [09:35:04] -I../../../../../fib-1.1 -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security -Wall -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers -Wundef -Wcast-align -Wpointer-arith -Wextra -Wdate-time -Wmissing-prototypes -Wstrict-prototypes [09:35:10] -Wformat-security -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Oz -DNDEBUG [09:35:13] -fPIC -fPIC -MD -MT navit/support/gettext_intl/CMakeFiles/support_gettext_intl.dir/dcigettext.c.o -MF navit/support/gettext_intl/CMakeFiles/support_gettext_intl.dir/dcigettext.c.o.d -o navit/support/gettext_intl/CMakeFiles/support_gettext_intl.dir/dcigettext.c.o -c /home/nozx/git/navit/navit/support/gettext_intl/dcigettext.c [09:35:14] hey! [09:35:18] sorry [09:35:45] please provide the build log as pastebin, its much more readable this way [09:39:26] https://pastebin.com/bRX0ZmAT [09:40:55] its "-I/usr/lib64/glib-2.0/include" parts that make me nervous [09:42:04] take a look at scripts/build_adndroid.sh within Line 29 we fore cmake not to use the host lib, have you made this as well? [09:44:18] i tried to specify direct path to my android-sdk-cmake in build_android.sh [09:45:53] try to run export PKG_CONFIG_LIBDIR="" before [09:51:32] changes nothing. steps taken: 1. clean repo 2. export PKG_CONFIG_LIBDIR 3. change cmake path in scripts/build_android.sh, run it 4. ./gradlew assembleRelease [09:53:06] why change the path in step 3 when not running it? [09:53:59] last part of step 3 was "run it" [09:54:18] just for sake of completeness [09:54:25] then 4 is redundant [09:54:54] at which step build_android.sh failes? [09:55:32] do i need to run "make" after scripts/build_android.sh to actually build project? [09:55:40] it actually runs well [09:55:57] and said: files prepared at this location [09:55:59] build_android is the build process [09:56:16] do i need to issue make after this? [09:56:34] i copied steps from ci you mentioned before [09:56:40] here https://github.com/navit-gps/navit/blob/5e1377cb1aab19bbbac6740e1f8ee80b75b4adb6/fastlane/Fastfile [09:56:58] it calls build_android.sh and then gradle [09:57:39] as far as i can understand this is independent build lines and actually build_android.sh changes nothing in gradle output [09:58:38] yes, thats true. But gradle is run there only because ot the Release type, build_android already builds the Debug apk [10:01:04] here is build_android output: https://pastebin.com/y383Jvy9 [10:01:55] "Enabled glib ( Glib not found )" thats good [10:02:15] but then it stops? [10:02:30] that all it outputs [10:02:44] i tried to issue "make" after it [10:02:53] okay... than this is the problem [10:10:19] so cmake exits with error because of "CMake Error: CMake can not determine linker language for target: graphics_qt5"? [10:13:54] yes, most probably [10:14:22] script does not precess below cmake statement even if i remove "|| exit 1" after cmake invocation [10:14:42] thats totally strange [10:15:25] try to add "-Dgraphics/graphics_qt5=FALSE -Dspeech/qt5_espeak=FALSE" to the cmake params [10:15:50] that it still failes is due to line 20 "set -e" [10:18:49] If this is still not working add " CXX" after the C https://github.com/navit-gps/navit/blob/trunk/CMakeLists.txt#L6 [10:19:30] Like this: https://github.com/navit-gps/navit/compare/traff_0_8#diff-af3b638bc2a3e6c650974192a53c7291L6 [10:19:49] This is the latest dev branch from a dev, so he probably fount that bug as well [10:28:29] defines did not work well but adding CXX made script past cmake. it build icons then failed at line 40, saying that rename has no -f flag [10:51:50] got the same (manjaro/arch) [10:54:48] to just to remove the -f [10:54:55] it should be force [11:11:10] script probably confuses and use perl rename utility, not util-linux. on gentoo dev-perl/rename installs as /usr/bin/perl-rename and works well here [11:11:53] anyway the quest is not over yet^^. now its xslt problems https://pastebin.com/V5ZVPDCh [11:12:00] jep, i read that as well. Do you kno a solution which would alwasy work? [11:13:03] xlsl: try to install a xlsl processor like libsaxonb-java [11:15:09] you are using gentoo? [11:15:56] yeap. and i think i messed up with use flags for some java packages [11:16:34] i'm starting to think that it would be much more easier to use docker image for build [11:16:52] that would be the most easy thing :D [11:17:04] just use the same image we use to build [11:17:16] circleci/android:api-29-ndk [11:17:28] at least i tried to build using circleci and it took about 2 minutes [11:18:07] on circleci itself or with the circleci cli programm? [11:18:55] for us it runs 6m 19s on circleci [11:20:27] i'm exaggerated a bit. it took bout 6 minutes actually with circleci itself [11:21:00] compared to almost a day i trying to build environment myself [11:21:47] yes, build dosn't take so long :D [11:23:01] *** Joins: iTommix (~Thomas@p57936aec.dip0.t-ipconnect.de) [11:23:05] but i thing there is still room for improvement [11:23:08] hi iTommix [13:33:54] *** Quits: iTommix (~Thomas@p57936aec.dip0.t-ipconnect.de) (Quit: iTommix) [15:11:32] *** Quits: Peetz0r (~Peetz0r@2a02:58:42:4370:5054:ff:feba:29b6) (Ping timeout: 260 seconds) [16:12:29] *** Joins: Peetz0r (~Peetz0r@2a02:58:42:4370:5054:ff:feba:29b6) [19:08:56] *** Joins: mvglasow (~mvglasow@dslb-178-002-057-146.178.002.pools.vodafone-ip.de) [19:18:39] hi folks, does anyone have experience building Navit for Android with a recent (20.0-ish) NDK version? [19:19:19] the build fails for me because navit/support/gettext_intl/dcigettext.c redeclares getcwd() [19:20:10] NDK 21.0.6113669 comes with its own declaration, any ideas on how to resolve the conflict? [19:40:46] and another one, while we are at it: how can I get cmake to stop on the first error, rather than going on and giving me pages and pages of warnings? [19:41:44] Hi mvglasow, i think the best would be to fix the cause, but the other, faster way would be to usw somethin like if not defined within the support lib. But i would like to get rid of support one day [19:41:55] For cmake, no idea [20:04:41] Thanks, at the moment I am installing the NDK version I had previously (something 18-ish) and will retry with that as well with 20.0. I'll open an issue when I know more. [20:50:25] anyone have an idea how to force the toolchain to use a particular NDK? It keeps picking one particular installation (not ndk-bundle, but the latest version in ndk) and I tried setting several environment vars, ANDROID_NDK, NDK_HOME and ANDROID_NDK_HOME, all to no avail [21:01:01] ok, some message told me ANDROID_NDK_HOME is deprecated and will be removed, instead android.ndkVersion in build.gradle should be used [21:01:45] which once again forces me to pollute the source tree with local system config parameters :-( [21:12:04] *** Quits: nozx (~nozx@93-120-192-209.dynamic.mts-nn.ru) (Quit: leaving) [21:19:48] anyways, the NDK issue is here: https://github.com/navit-gps/navit/issues/1043 [21:49:45] *** Quits: mvglasow (~mvglasow@dslb-178-002-057-146.178.002.pools.vodafone-ip.de) (Quit: Leaving)