Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

error when building from source on macos #13052

Closed
Xgamefactory opened this issue Oct 8, 2018 · 10 comments
Closed

error when building from source on macos #13052

Xgamefactory opened this issue Oct 8, 2018 · 10 comments

Comments

@Xgamefactory
Copy link

Build command failed.

Error while executing process /Users/Xtrack/Library/Android/sdk/cmake/3.6.4111459/bin/cmake with 
arguments {-H/Users/Xtrack/Downloads/mapbox-gl-native-master -B/Users/Xtrack/Downloads/
mapbox-gl-native-master/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/
release/x86_64 -DANDROID_ABI=x86_64 -DANDROID_PLATFORM=android-21
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/Xtrack/Downloads/mapbox-gl-native-master/
platform/android/MapboxGLAndroidSDK/build/intermediates/cmake/release/obj/x86_64 
-DCMAKE_BUILD_TYPE=Release -DANDROID_NDK=/Users/Xtrack/Downloads/android-ndk-r18 
-DCMAKE_TOOLCHAIN_FILE=/Users/Xtrack/Downloads/android-ndk-r18/build/cmake
/android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=/Users/Xtrack/Library/Android/sdk/cmake
/3.6.4111459/bin/ninja -GAndroid Gradle - Ninja -DANDROID_TOOLCHAIN=clang 
-DANDROID_STL=c++_static -DANDROID_CPP_FEATURES=rtti;exceptions -DMBGL_PLATFORM=android 
-DMASON_PLATFORM=android -DNodeJS_EXECUTABLE= -Dnpm_EXECUTABLE=}

-- Check for working CXX compiler: /Users/Xtrack/Downloads/android-ndk-r18/
toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++

-- Check for working CXX compiler: /Users/Xtrack/Downloads/android-ndk-r18/
toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ -- works

-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /Users/Xtrack/Downloads/android-ndk-r18/
toolchains/llvm/prebuilt/darwin-x86_64/bin/clang

-- Check for working C compiler: /Users/Xtrack/Downloads/android-ndk-r18/
toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -- works

-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at cmake/mbgl.cmake:12 (message):
-- Configuring incomplete, errors occurred!
@kkaefer
Copy link
Member

kkaefer commented Oct 8, 2018

NDK 18 isn't supported yet and depends on #13049. Please use NDK 17 in the meantime.

@kkaefer kkaefer closed this as completed Oct 8, 2018
@Xgamefactory
Copy link
Author

thanks for fast response !

would be helpful if you mentioned it on instructions notes too.

https://github.com/mapbox/mapbox-gl-native/blob/master/platform/android/README.md

@Xgamefactory
Copy link
Author

Xgamefactory commented Oct 8, 2018

we are getting same error with NDK 17.
there is only r17c version here https://developer.android.com/ndk/downloads/older_releases

Mac OS X android-ndk-r17c-darwin-x86_64.zip
Build command failed.


Error while executing process /Users/Xtrack/Library/Android/sdk/cmake/3.6.4111459/bin/cmake with arguments {-H/Users/Xtrack/Downloads/mapbox-gl-native-master -B/Users/Xtrack/Downloads/mapbox-gl-native-master/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/x86_64 -DANDROID_ABI=x86_64 -DANDROID_PLATFORM=android-21 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/Xtrack/Downloads/mapbox-gl-native-master/platform/android/MapboxGLAndroidSDK/build/intermediates/cmake/debug/obj/x86_64 -DCMAKE_BUILD_TYPE=Debug -DANDROID_NDK=/Users/Xtrack/Downloads/android-ndk-r17c -DCMAKE_TOOLCHAIN_FILE=/Users/Xtrack/Downloads/android-ndk-r17c/build/cmake/android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=/Users/Xtrack/Library/Android/sdk/cmake/3.6.4111459/bin/ninja -GAndroid Gradle - Ninja -DANDROID_TOOLCHAIN=clang -DANDROID_STL=c++_static -DANDROID_CPP_FEATURES=rtti;exceptions -DMBGL_PLATFORM=android -DMASON_PLATFORM=android -DNodeJS_EXECUTABLE= -Dnpm_EXECUTABLE=}


-- Check for working CXX compiler: /Users/Xtrack/Downloads/android-ndk-r17c/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++


-- Check for working CXX compiler: /Users/Xtrack/Downloads/android-ndk-r17c/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ -- works


-- Detecting CXX compiler ABI info


-- Detecting CXX compiler ABI info - done

@kkaefer
Copy link
Member

kkaefer commented Oct 8, 2018

Looks like you don't have Node.js installed

@Xgamefactory
Copy link
Author

Xgamefactory commented Oct 8, 2018

we have installed latest nodejs v8.12.0 and npm v6.4.1

@kkaefer
Copy link
Member

kkaefer commented Oct 8, 2018

... -DNodeJS_EXECUTABLE= -Dnpm_EXECUTABLE=}

it looks like it's not getting picked up in platform/android/gradle/configuration.gradle. can you please try removing that file, and rerunning make aproj again?

@Xgamefactory
Copy link
Author

we did same error

@Xgamefactory
Copy link
Author

we make a clean git download and now we are getting another error

Failed to notify project evaluation listener.

org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':MapboxGLAndroidSDK'.
	at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:94)
	at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:89)
	at org.gradle.configuration.project.LifecycleProjectEvaluator.doConfigure(LifecycleProjectEvaluator.java:70)
	at org.gradle.configuration.project.LifecycleProjectEvaluator.access$100(LifecycleProjectEvaluator.java:34)
	at org.gradle.configuration.project.LifecycleProjectEvaluator$ConfigureProject.run(LifecycleProjectEvaluator.java:110)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)

@Xgamefactory Xgamefactory changed the title cmake error when building from source on macos error when building from source on macos Oct 8, 2018
@Xgamefactory
Copy link
Author

Android studio 3.2
gradle version 4.4
android plug 3.1.4
jdk /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home

@Xgamefactory
Copy link
Author

after updating gradle wrapper version to 4.6 with android plugin version to 3.2.0
getting same error Failed to notify project evaluation listener.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants