{"action":"created","issue":{"url":"https://api.github.com/repos/chenxiaolong/DualBootPatcher/issues/344","repository_url":"https://api.github.com/repos/chenxiaolong/DualBootPatcher","labels_url":"https://api.github.com/repos/chenxiaolong/DualBootPatcher/issues/344/labels{/name}","comments_url":"https://api.github.com/repos/chenxiaolong/DualBootPatcher/issues/344/comments","events_url":"https://api.github.com/repos/chenxiaolong/DualBootPatcher/issues/344/events","html_url":"https://github.com/chenxiaolong/DualBootPatcher/issues/344","id":196220553,"number":344,"title":"\"make\" error","user":{"login":"Rendyindo","id":6541445,"avatar_url":"https://avatars.githubusercontent.com/u/6541445?v=3","gravatar_id":"","url":"https://api.github.com/users/Rendyindo","html_url":"https://github.com/Rendyindo","followers_url":"https://api.github.com/users/Rendyindo/followers","following_url":"https://api.github.com/users/Rendyindo/following{/other_user}","gists_url":"https://api.github.com/users/Rendyindo/gists{/gist_id}","starred_url":"https://api.github.com/users/Rendyindo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rendyindo/subscriptions","organizations_url":"https://api.github.com/users/Rendyindo/orgs","repos_url":"https://api.github.com/users/Rendyindo/repos","events_url":"https://api.github.com/users/Rendyindo/events{/privacy}","received_events_url":"https://api.github.com/users/Rendyindo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-17T12:50:30Z","updated_at":"2016-12-28T22:51:59Z","closed_at":null,"body":"```\r\nrendyak@Desktop:~/DualBootPatcher/build$ make\r\n[ 17%] Performing build step for 'hosttools'\r\n[  8%] Built target mbcommon-shared\r\n[ 32%] Built target mbdevice-shared\r\n[ 44%] Built target mblog-shared\r\n[ 52%] Built target mbsign-shared\r\n[ 84%] Built target file-contexts-tool\r\n[ 92%] Built target signtool\r\n[100%] Built target devicesgen\r\n[ 17%] Performing install step for 'hosttools'\r\n[  8%] Built target mbcommon-shared\r\n[ 32%] Built target mbdevice-shared\r\n[ 44%] Built target mblog-shared\r\n[ 52%] Built target mbsign-shared\r\n[ 84%] Built target file-contexts-tool\r\n[ 92%] Built target signtool\r\n[100%] Built target devicesgen\r\nInstalling the project stripped...\r\n-- Install configuration: \"Debug\"\r\n-- Installing: /home/rendyak/DualBootPatcher/build/hosttools/result/lib/libmbcommon.so\r\n-- Installing: /home/rendyak/DualBootPatcher/build/hosttools/result/lib/libmbdevice.so\r\n-- Set runtime path of \"/home/rendyak/DualBootPatcher/build/hosttools/result/lib/libmbdevice.so\" to \"\"\r\n-- Installing: /home/rendyak/DualBootPatcher/build/hosttools/result/lib/libmblog.so\r\n-- Installing: /home/rendyak/DualBootPatcher/build/hosttools/result/lib/libmbsign.so\r\n-- Set runtime path of \"/home/rendyak/DualBootPatcher/build/hosttools/result/lib/libmbsign.so\" to \"\"\r\n-- Installing: /home/rendyak/DualBootPatcher/build/hosttools/result/bin/file-contexts-tool\r\n-- Installing: /home/rendyak/DualBootPatcher/build/hosttools/result/bin/signtool\r\n-- Set runtime path of \"/home/rendyak/DualBootPatcher/build/hosttools/result/bin/signtool\" to \"$ORIGIN/../lib\"\r\n-- Installing: /home/rendyak/DualBootPatcher/build/hosttools/result/bin/devicesgen\r\n-- Set runtime path of \"/home/rendyak/DualBootPatcher/build/hosttools/result/bin/devicesgen\" to \"$ORIGIN/../lib\"\r\n[ 17%] Completed 'hosttools'\r\n[ 17%] Built target hosttools\r\n[ 17%] File signing target 'sign_prebuilt_exfat_x86'\r\n-- Signing: /home/rendyak/DualBootPatcher/build/thirdparty/prebuilts/exfat/1.2.3-2/x86/bin/mount.exfat\r\n[ 17%] Built target sign_prebuilt_exfat_x86\r\n[ 17%] File signing target 'sign_prebuilt_exfat_arm64-v8a'\r\n-- Signing: /home/rendyak/DualBootPatcher/build/thirdparty/prebuilts/exfat/1.2.3-2/arm64-v8a/bin/mount.exfat\r\n[ 17%] Built target sign_prebuilt_exfat_arm64-v8a\r\n[ 17%] File signing target 'sign_prebuilt_exfat_x86_64'\r\n-- Signing: /home/rendyak/DualBootPatcher/build/thirdparty/prebuilts/exfat/1.2.3-2/x86_64/bin/mount.exfat\r\n[ 17%] Built target sign_prebuilt_exfat_x86_64\r\n[ 17%] File signing target 'sign_prebuilt_exfat_armeabi-v7a'\r\n-- Signing: /home/rendyak/DualBootPatcher/build/thirdparty/prebuilts/exfat/1.2.3-2/armeabi-v7a/bin/mount.exfat\r\n[ 17%] Built target sign_prebuilt_exfat_armeabi-v7a\r\n[ 17%] File signing target 'sign_scripts'\r\n-- Signing: /home/rendyak/DualBootPatcher/build/data/scripts/bb-wrapper.sh\r\n[ 17%] Built target sign_scripts\r\n[ 17%] Built target run_devicesgen\r\n[ 17%] Create boot UI temporary directory (x86_64)\r\n[ 17%] Built target bootui-tempdir_x86_64\r\n[ 17%] Performing configure step for 'android-system_x86_64'\r\nCMake Error at cmake/android.toolchain.cmake:324 (message):\r\n  Invalid Android platform: android-24.\r\nCall Stack (most recent call first):\r\n  /usr/share/cmake-3.7/Modules/CMakeDetermineSystem.cmake:88 (include)\r\n  CMakeLists.txt:8 (project)\r\n\r\n\r\nCMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage\r\nCMake Error: CMAKE_C_COMPILER not set, after EnableLanguage\r\nCMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage\r\n-- Configuring incomplete, errors occurred!\r\nmake[2]: *** [android/android-system_x86_64-prefix/src/android-system_x86_64-stamp/android-system_x86_64-configure] Error 1\r\nmake[1]: *** [android/CMakeFiles/android-system_x86_64.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n```\r\n\r\nAnd idea how to solve this? :/\r\nand one more thing.\r\nIn documentaion, you said we need to set ANDROID_NDK_HOME, but in some of the script, we need to set ANDROID_NDK too, if we don't, that result to source.properties is missing. (is this just me, or this is a bug?)"},"comment":{"url":"https://api.github.com/repos/chenxiaolong/DualBootPatcher/issues/comments/269554191","html_url":"https://github.com/chenxiaolong/DualBootPatcher/issues/344#issuecomment-269554191","issue_url":"https://api.github.com/repos/chenxiaolong/DualBootPatcher/issues/344","id":269554191,"user":{"login":"webmaster33","id":9215780,"avatar_url":"https://avatars.githubusercontent.com/u/9215780?v=3","gravatar_id":"","url":"https://api.github.com/users/webmaster33","html_url":"https://github.com/webmaster33","followers_url":"https://api.github.com/users/webmaster33/followers","following_url":"https://api.github.com/users/webmaster33/following{/other_user}","gists_url":"https://api.github.com/users/webmaster33/gists{/gist_id}","starred_url":"https://api.github.com/users/webmaster33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmaster33/subscriptions","organizations_url":"https://api.github.com/users/webmaster33/orgs","repos_url":"https://api.github.com/users/webmaster33/repos","events_url":"https://api.github.com/users/webmaster33/events{/privacy}","received_events_url":"https://api.github.com/users/webmaster33/received_events","type":"User","site_admin":false},"created_at":"2016-12-28T22:51:59Z","updated_at":"2016-12-28T22:51:59Z","body":"@Rendyindo: I have similar problem.\r\n\r\nUsing Ubuntu 16.04 LTE, cmake v3.6.3, libjansson-dev v2.9\r\n\r\nI have the following in ENV:\r\n```\r\nenv | grep android\r\nANDROID_HOME=/home/user/dev/android-sdk\r\nSTY=2844.android\r\nANDROID_NDK=/home/user/dev/android-ndk\r\nANDROID_NDK_HOME=/home/user/dev/android-ndk\r\n```\r\n\r\nUsing cmake options:\r\n```\r\ncmake .. \\\r\n   -DMBP_BUILD_TARGET=android \\\r\n   -DMBP_BUILD_TYPE=debug\r\n```\r\n\r\nAlso I have similar errors after make:\r\n```\r\n...\r\n[ 14%] Built target run_devicesgen\r\n[ 15%] Create boot UI temporary directory (x86_64)\r\n[ 15%] Built target bootui-tempdir_x86_64\r\n[ 17%] Performing configure step for 'android-system_x86_64'\r\nCMake Error at cmake/android.toolchain.cmake:47 (file):\r\n  file failed to open for reading (No such file or directory):\r\n\r\n    /home/user/dev/android-ndk/source.properties\r\nCall Stack (most recent call first):\r\n  /usr/local/share/cmake-3.6/Modules/CMakeDetermineSystem.cmake:98 (include)\r\n  CMakeLists.txt:8 (project)\r\n\r\n\r\nCMake Error at cmake/android.toolchain.cmake:51 (message):\r\n  Failed to parse Android NDK revision:\r\n  /home/user/dev/android-ndk/source.properties.\r\n\r\nCall Stack (most recent call first):\r\n  /usr/local/share/cmake-3.6/Modules/CMakeDetermineSystem.cmake:98 (include)\r\n  CMakeLists.txt:8 (project)\r\n\r\n\r\nCMake Error at cmake/android.toolchain.cmake:324 (message):\r\n  Invalid Android platform: android-24.\r\nCall Stack (most recent call first):\r\n  /usr/local/share/cmake-3.6/Modules/CMakeDetermineSystem.cmake:98 (include)\r\n  CMakeLists.txt:8 (project)\r\n\r\n\r\nCMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage\r\nCMake Error: CMAKE_C_COMPILER not set, after EnableLanguage\r\nCMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage\r\n-- Configuring incomplete, errors occurred!\r\nandroid/CMakeFiles/android-system_x86_64.dir/build.make:105: recipe for target 'android/android-system_x86_64-prefix/src/android-system_x86_64-stamp/android-system_x86_64-configure' failed\r\nmake[2]: *** [android/android-system_x86_64-prefix/src/android-system_x86_64-stamp/android-system_x86_64-configure] Error 1\r\nCMakeFiles/Makefile2:1772: recipe for target 'android/CMakeFiles/android-system_x86_64.dir/all' failed\r\nmake[1]: *** [android/CMakeFiles/android-system_x86_64.dir/all] Error 2\r\nMakefile:160: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n```\r\n\r\nI also have the missing source.properties file error, but it seems you already fixed this part.\r\nHow did you solve this error?\r\nI did also set ANDROID_NDK env variable, but this did not fix my case.\r\n\r\nMaybe @chenxiaolong will give us some idea how to fix these build errors.\r\n\r\n"}}
{"actor":{"display_login":"webmaster33"}}