{"action":"created","issue":{"url":"https://api.github.com/repos/mono/SkiaSharp/issues/106","repository_url":"https://api.github.com/repos/mono/SkiaSharp","labels_url":"https://api.github.com/repos/mono/SkiaSharp/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/mono/SkiaSharp/issues/106/comments","events_url":"https://api.github.com/repos/mono/SkiaSharp/issues/106/events","html_url":"https://github.com/mono/SkiaSharp/issues/106","id":163726701,"number":106,"title":"Mac build does not work","user":{"login":"gentledepp","id":1175751,"avatar_url":"https://avatars.githubusercontent.com/u/1175751?v=3","gravatar_id":"","url":"https://api.github.com/users/gentledepp","html_url":"https://github.com/gentledepp","followers_url":"https://api.github.com/users/gentledepp/followers","following_url":"https://api.github.com/users/gentledepp/following{/other_user}","gists_url":"https://api.github.com/users/gentledepp/gists{/gist_id}","starred_url":"https://api.github.com/users/gentledepp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gentledepp/subscriptions","organizations_url":"https://api.github.com/users/gentledepp/orgs","repos_url":"https://api.github.com/users/gentledepp/repos","events_url":"https://api.github.com/users/gentledepp/events{/privacy}","received_events_url":"https://api.github.com/users/gentledepp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-04T18:25:45Z","updated_at":"2016-07-06T10:18:55Z","closed_at":null,"body":"Hi!\r\nI admittedly am new to Mac OS, but I setup a build environment for SkiaSharp and I get a quite meaningless exception when running \r\n`sudo ./bootstrapper.sh -t externals-android`\r\n\r\nthe relevant trace part is\r\n\r\n>[33/755] CC obj/third_party/externals/libwebp/src/dsp/libwebp_dsp.upsampling.o\r\nninja: build stopped: subcommand failed.\r\nExecuting: /Users/xammac/SkiaSharp/skia/platform_tools/android/bin/android_ninja -d arm_v7_neon skia_lib pdf sfntly icuuc\r\nGYP_GENERATORS is \"ninja-android\"\r\nUpdating projects from gyp files...\r\nninja: Entering directory `/Users/xammac/SkiaSharp/skia/out/config/android-arm_v7_neon/Release'\r\n[349/1002] CXX obj/src/c/xamarin/core.sk_x_path.o\r\nFAILED: /Users/xammac/SkiaSharp/skia/platform_tools/android/bin/../toolchains/arm-r10e-14/bin/arm-linux-androideabi-g++ -MMD -MF obj/src/c/xamarin/core.sk_x_path.o.d -DSK_INTERNAL -DSK_GAMMA_APPLY_TO_A8 -DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0 -DSK_SUPPORT_GPU=1 -DSK_FORCE_DISTANCE_FIELD_TEXT=0 -DSK_ARM_HAS_NEON -DSK_BUILD_FOR_ANDROID -DSK_GAMMA_EXPONENT=1.4 -DSK_GAMMA_CONTRAST=0.0 -DSKIA_DLL -DSKIA_IMPLEMENTATION=1 -DSK_SUPPORT_LEGACY_CLIPTOLAYERFLAG -DNDEBUG -I../../../../include/c -I../../../../include/config -I../../../../include/core -I../../../../include/pathops -I../../../../include/ports -I../../../../include/private -I../../../../include/utils -I../../../../include/images -I../../../../src/core -I../../../../src/sfnt -I../../../../src/image -I../../../../src/opts -I../../../../src/utils -I../../../../include/gpu -I../../../../src/gpu -I../../../../platform_tools/android/third_party/cpufeatures -fPIC -g -fno-exceptions -fstrict-aliasing -Wall -Wextra -Winit-self -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Werror -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=softfp -fuse-ld=gold -O2 -std=c++11 -fno-rtti -fno-threadsafe-statics -Wnon-virtual-dtor  -c ../../../../src/c/xamarin/sk_x_path.cpp -o obj/src/c/xamarin/core.sk_x_path.o\r\n../../../../src/c/xamarin/sk_x_path.cpp:94:38: error: comparison between 'enum SkPath::Verb' and 'enum sk_path_verb_t' [-Werror=enum-compare]\r\n static_assert (SkPath::kMove_Verb == MOVE_PATH_VERB, \"ABI changed, you must write a enumeration mapper for SkPath::Verb to sk_path_verb_t\");\r\n                                      ^\r\n../../../../src/c/xamarin/sk_x_path.cpp:95:38: error: comparison between 'enum SkPath::Verb' and 'enum sk_path_verb_t' [-Werror=enum-compare]\r\n static_assert (SkPath::kLine_Verb == LINE_PATH_VERB, \"ABI changed, you must write a enumeration mapper for SkPath::Verb to sk_path_verb_t\");\r\n                                      ^\r\n../../../../src/c/xamarin/sk_x_path.cpp:96:38: error: comparison between 'enum SkPath::Verb' and 'enum sk_path_verb_t' [-Werror=enum-compare]\r\n static_assert (SkPath::kQuad_Verb == QUAD_PATH_VERB, \"ABI changed, you must write a enumeration mapper for SkPath::Verb to sk_path_verb_t\");\r\n                                      ^\r\n../../../../src/c/xamarin/sk_x_path.cpp:97:39: error: comparison between 'enum SkPath::Verb' and 'enum sk_path_verb_t' [-Werror=enum-compare]\r\n static_assert (SkPath::kConic_Verb == CONIC_PATH_VERB, \"ABI changed, you must write a enumeration mapper for SkPath::Verb to sk_path_verb_t\");\r\n                                       ^\r\n../../../../src/c/xamarin/sk_x_path.cpp:98:39: error: comparison between 'enum SkPath::Verb' and 'enum sk_path_verb_t' [-Werror=enum-compare]\r\n static_assert (SkPath::kCubic_Verb == CUBIC_PATH_VERB, \"ABI changed, you must write a enumeration mapper for SkPath::Verb to sk_path_verb_t\");\r\n                                       ^\r\n../../../../src/c/xamarin/sk_x_path.cpp:99:39: error: comparison between 'enum SkPath::Verb' and 'enum sk_path_verb_t' [-Werror=enum-compare]\r\n static_assert (SkPath::kClose_Verb == CLOSE_PATH_VERB, \"ABI changed, you must write a enumeration mapper for SkPath::Verb to sk_path_verb_t\");\r\n                                       ^\r\n../../../../src/c/xamarin/sk_x_path.cpp:100:38: error: comparison between 'enum SkPath::Verb' and 'enum sk_path_verb_t' [-Werror=enum-compare]\r\n static_assert (SkPath::kDone_Verb == DONE_PATH_VERB, \"ABI changed, you must write a enumeration mapper for SkPath::Verb to sk_path_verb_t\");\r\n                                      ^\r\n../../../../src/c/xamarin/sk_x_path.cpp:127:47: error: comparison between 'enum SkPath::AddPathMode' and 'enum sk_path_add_mode_t' [-Werror=enum-compare]\r\n static_assert (SkPath::kAppend_AddPathMode == APPEND_ADD_MODE, \"ABI changed, you must write a enumeration mapper for SkPath::AddPathMode to sk_path_add_mode_t\");\r\n                                               ^\r\n../../../../src/c/xamarin/sk_x_path.cpp:128:47: error: comparison between 'enum SkPath::AddPathMode' and 'enum sk_path_add_mode_t' [-Werror=enum-compare]\r\n static_assert (SkPath::kExtend_AddPathMode == EXTEND_ADD_MODE, \"ABI changed, you must write a enumeration mapper for SkPath::AddPathMode to sk_path_add_mode_t\");\r\n                                               ^\r\ncc1plus: all warnings being treated as errors\r\n[349/1002] CXX obj/third_party/externals/sfntly/sfntly/table/truetype/sfntly.glyph_table.o\r\nninja: build stopped: subcommand failed.\r\nExecuting: /Users/xammac/SkiaSharp/skia/platform_tools/android/bin/android_ninja -d arm64 skia_lib pdf sfntly icuuc\r\nGYP_GENERATORS is \"ninja-android\"\r\nUpdating projects from gyp files...\r\nninja: Entering directory `/Users/xammac/SkiaSharp/skia/out/config/android-arm64/Release'\r\n[20/647] CXX obj/src/c/xamarin/core.sk_x_path.o\r\nFAILED: /Users/xammac/SkiaSharp/skia/platform_tools/android/bin/../toolchains/arm64-r10e-21/bin/aarch64-linux-android-g++ -MMD -MF obj/src/c/xamarin/core.sk_x_path.o.d -DSK_INTERNAL -DSK_GAMMA_APPLY_TO_A8 -DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0 -DSK_SUPPORT_GPU=1 -DSK_FORCE_DISTANCE_FIELD_TEXT=0 -DSK_BUILD_FOR_ANDROID -DSK_GAMMA_EXPONENT=1.4 -DSK_GAMMA_CONTRAST=0.0 -DSKIA_DLL -DSKIA_IMPLEMENTATION=1 -DSK_SUPPORT_LEGACY_CLIPTOLAYERFLAG -DNDEBUG -I../../../../include/c -I../../../../include/config -I../../../../include/core -I../../../../include/pathops -I../../../../include/ports -I../../../../include/private -I../../../../include/utils -I../../../../include/images -I../../../../src/core -I../../../../src/sfnt -I../../../../src/image -I../../../../src/opts -I../../../../src/utils -I../../../../include/gpu -I../../../../src/gpu -I../../../../platform_tools/android/third_party/cpufeatures -fPIC -g -fno-exceptions -fstrict-aliasing -Wall -Wextra -Winit-self -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Werror -fuse-ld=gold -O2 -std=c++11 -fno-rtti -fno-threadsafe-statics -Wnon-virtual-dtor  -c ../../../../src/c/xamarin/sk_x_path.cpp -o obj/src/c/xamarin/core.sk_x_path.o\r\n../../../../src/c/xamarin/sk_x_path.cpp:94:38: error: comparison between 'enum SkPath::Verb' and 'enum sk_path_verb_t' [-Werror=enum-compare]\r\n static_assert (SkPath::kMove_Verb == MOVE_PATH_VERB, \"ABI changed, you must write a enumeration mapper for SkPath::Verb to sk_path_verb_t\");\r\n                                      ^\r\n../../../../src/c/xamarin/sk_x_path.cpp:95:38: error: comparison between 'enum SkPath::Verb' and 'enum sk_path_verb_t' [-Werror=enum-compare]\r\n static_assert (SkPath::kLine_Verb == LINE_PATH_VERB, \"ABI changed, you must write a enumeration mapper for SkPath::Verb to sk_path_verb_t\");\r\n                                      ^\r\n../../../../src/c/xamarin/sk_x_path.cpp:96:38: error: comparison between 'enum SkPath::Verb' and 'enum sk_path_verb_t' [-Werror=enum-compare]\r\n static_assert (SkPath::kQuad_Verb == QUAD_PATH_VERB, \"ABI changed, you must write a enumeration mapper for SkPath::Verb to sk_path_verb_t\");\r\n                                      ^\r\n../../../../src/c/xamarin/sk_x_path.cpp:97:39: error: comparison between 'enum SkPath::Verb' and 'enum sk_path_verb_t' [-Werror=enum-compare]\r\n static_assert (SkPath::kConic_Verb == CONIC_PATH_VERB, \"ABI changed, you must write a enumeration mapper for SkPath::Verb to sk_path_verb_t\");\r\n                                       ^\r\n../../../../src/c/xamarin/sk_x_path.cpp:98:39: error: comparison between 'enum SkPath::Verb' and 'enum sk_path_verb_t' [-Werror=enum-compare]\r\n static_assert (SkPath::kCubic_Verb == CUBIC_PATH_VERB, \"ABI changed, you must write a enumeration mapper for SkPath::Verb to sk_path_verb_t\");\r\n                                       ^\r\n../../../../src/c/xamarin/sk_x_path.cpp:99:39: error: comparison between 'enum SkPath::Verb' and 'enum sk_path_verb_t' [-Werror=enum-compare]\r\n static_assert (SkPath::kClose_Verb == CLOSE_PATH_VERB, \"ABI changed, you must write a enumeration mapper for SkPath::Verb to sk_path_verb_t\");\r\n                                       ^\r\n../../../../src/c/xamarin/sk_x_path.cpp:100:38: error: comparison between 'enum SkPath::Verb' and 'enum sk_path_verb_t' [-Werror=enum-compare]\r\n static_assert (SkPath::kDone_Verb == DONE_PATH_VERB, \"ABI changed, you must write a enumeration mapper for SkPath::Verb to sk_path_verb_t\");\r\n                                      ^\r\n../../../../src/c/xamarin/sk_x_path.cpp:127:47: error: comparison between 'enum SkPath::AddPathMode' and 'enum sk_path_add_mode_t' [-Werror=enum-compare]\r\n static_assert (SkPath::kAppend_AddPathMode == APPEND_ADD_MODE, \"ABI changed, you must write a enumeration mapper for SkPath::AddPathMode to sk_path_add_mode_t\");\r\n                                               ^\r\n../../../../src/c/xamarin/sk_x_path.cpp:128:47: error: comparison between 'enum SkPath::AddPathMode' and 'enum sk_path_add_mode_t' [-Werror=enum-compare]\r\n static_assert (SkPath::kExtend_AddPathMode == EXTEND_ADD_MODE, \"ABI changed, you must write a enumeration mapper for SkPath::AddPathMode to sk_path_add_mode_t\");\r\n                                               ^\r\ncc1plus: all warnings being treated as errors\r\n[20/647] CXX obj/src/core/core.SkAAClip.o\r\nninja: build stopped: subcommand failed.\r\nExecuting: /Users/xammac/Library/Developer/Xamarin/android-ndk/ndk-build \r\nAn error occured when executing task 'externals-android'.\r\nError: System.ComponentModel.Win32Exception: ApplicationName='/Users/xammac/Library/Developer/Xamarin/android-ndk/ndk-build', CommandLine='', CurrentDirectory='/Users/xammac/SkiaSharp/native-builds/libSkiaSharp_android', Native error= Cannot find the specified file\r\n  at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) <0x39cf1e8 + 0x0055f> in <filename unknown>:0 \r\n\r\n\r\n\r\nany advice would be greatly appreciated "},"comment":{"url":"https://api.github.com/repos/mono/SkiaSharp/issues/comments/230733961","html_url":"https://github.com/mono/SkiaSharp/issues/106#issuecomment-230733961","issue_url":"https://api.github.com/repos/mono/SkiaSharp/issues/106","id":230733961,"user":{"login":"gentledepp","id":1175751,"avatar_url":"https://avatars.githubusercontent.com/u/1175751?v=3","gravatar_id":"","url":"https://api.github.com/users/gentledepp","html_url":"https://github.com/gentledepp","followers_url":"https://api.github.com/users/gentledepp/followers","following_url":"https://api.github.com/users/gentledepp/following{/other_user}","gists_url":"https://api.github.com/users/gentledepp/gists{/gist_id}","starred_url":"https://api.github.com/users/gentledepp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gentledepp/subscriptions","organizations_url":"https://api.github.com/users/gentledepp/orgs","repos_url":"https://api.github.com/users/gentledepp/repos","events_url":"https://api.github.com/users/gentledepp/events{/privacy}","received_events_url":"https://api.github.com/users/gentledepp/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T10:18:55Z","updated_at":"2016-07-06T10:18:55Z","body":"Thank you so much! I tried it and it did not work either.\r\nSo I switched back to your first proposal *commenting out the static asserts\r\nand in the same file,\r\n\r\n> skia/src/c/xamarin/sk_x_path.cpp\r\n commented out the lines 127... 130 like so\r\n\r\n`\r\n//#if __cplusplus >= 199711L\r\n//static_assert (SkPath::kAppend_AddPathMode == APPEND_ADD_MODE, \"ABI changed, you must write a enumeration mapper for SkPath::AddPathMode to sk_path_add_mode_t\");\r\n//static_assert (SkPath::kExtend_AddPathMode == EXTEND_ADD_MODE, \"ABI changed, you must write a enumeration mapper for SkPath::AddPathMode to sk_path_add_mode_t\");\r\n//#endif\r\n\r\nnot the build seems to work\r\n\r\nThank you so much! "}}
{"actor":{"display_login":"gentledepp"}}