-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant compile CMakeLists.txt #711
Comments
|
Koral, Can you descrbie step by step how to compile it with cmake? Just an example, I tried to link one of the .o files, check the error I'm having:
|
Here is what is invoked by Gradle:
|
Lemme confirm, are these the flags to pass to the cmake cmdline right?
…On Sun, Dec 1, 2019, 2:35 AM Karol Wrótniak ***@***.***> wrote:
Here is what is invoked by Gradle:
arguments :
-Hprojects/android-gif-drawable/android-gif-drawable/src/main/c
-Bprojects/android-gif-drawable/android-gif-drawable/.cxx/cmake/debug/x86_64
-DANDROID_ABI=x86_64
-DANDROID_PLATFORM=android-17
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=projects/android-gif-drawable/android-gif-drawable/build/intermediates/cmake/debug/obj/x86_64
-DCMAKE_BUILD_TYPE=Debug
-DANDROID_NDK=/opt/android-sdk-update-manager/ndk/20.0.5594570
-DCMAKE_C_FLAGS=-std=c11 -Weverything -Wall -DDEBUG -g
-DCMAKE_TOOLCHAIN_FILE=/opt/android-sdk-update-manager/ndk/20.0.5594570/build/cmake/android.toolchain.cmake
-DCMAKE_MAKE_PROGRAM=/opt/android-sdk-update-manager/cmake/3.6.4111459/bin/ninja
-GAndroid Gradle - Ninja
-DANDROID_PLATFORM=android-17
-DANDROID_STL=none
jvmArgs :
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/koral--/android-gif-drawable/issues/711?email_source=notifications&email_token=ACJPXTFC72PJZO3CICN7JDTQWMIFPA5CNFSM4JSUNPMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFQX25Q#issuecomment-560037238>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACJPXTAGL5EZ5DCBZ3VEKETQWMIFPANCNFSM4JSUNPMA>
.
|
Yes, exactly. |
I have the android NDK (android-ndk-r20b) the latest one and it does not contain the /bin/ninja binary, so I excluded that flag and remained with everything else as follows:
You can see the error I have and probably has nothing to do with the lack of the ninja flag? |
I don't use cmake directly, so this is only a blind suggestion: |
That does not change the output. |
Well you have a CMakeLists.txt so you might compiled somehow. |
It is referenced here: https://github.com/koral--/android-gif-drawable/blob/dev/android-gif-drawable/build.gradle#L36 and configured here: https://github.com/koral--/android-gif-drawable/blob/dev/android-gif-drawable/build.gradle#L22 |
as long as I'm able to generate the .o files and possible the all .so files (not only the main .so file that is used as /lib for android apps). |
Gradle 2.10Build time: 2016-01-26 15:17:49 UTC Groovy: 2.4.5 |
Gradle 2.10 is very very old, that's why it does not recognize |
I tried the latest version and 5.6.2, because seems the project was built with it.~/Desktop/gradle-5.6.2/bin/gradle build.gradle droidson FAILURE: Build failed with an exception.
BUILD FAILED in 2s |
please post the exact commands I should use |
I did
the .c files on src/main/c, were not compiled though |
You can invoke |
FAILURE: Build failed with an exception.
|
It seems that something is wrong with your environment. Impossible to say what with that amount of logs. |
some error occured, build log: luna@luna-ubuntu:~/Downloads/android-gif-drawable-dev$ ./gradlew build
> Task :android-gif-drawable:lint FAILED
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':android-gif-drawable:lint'.
> No value has been specified for property 'lintClassPath'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 766ms
3 actionable tasks: 1 executed, 2 up-to-date |
Hello,
I'm trying to compile the CMakeLists.txt but I'm having a hard time, please follow here https://dpaste.de/OsHZ/raw
It creates the CMakeFiles and also generate the .o files like
init.c.o
however I'm not able to link those into my own file.cWhat's wrong with the compilation?
The text was updated successfully, but these errors were encountered: