Skip to content
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

about building apk #10

Open
volkanuchar opened this issue Jan 30, 2018 · 9 comments
Open

about building apk #10

volkanuchar opened this issue Jan 30, 2018 · 9 comments

Comments

@volkanuchar
Copy link

hi. as told I downloaded core and lıa_ral as zip file.(maybe I understood wrong) then I copy and paste it to cpp with spro. in SimpleSpkDetSystem class <<System.loadLibrary("alize-native"); >> takes place. but I didnot download alize-naitive? and the methods like featurecounts,speakercounts,set option etc. all of them says "cannot resolve corrresponding JNI function".

unfortunately I failed with it. can anybody help me about it. my mail is [email protected]

@RITCHIEHuang
Copy link

Hi, I have put all codes to the folder cpp and my project structure is like this:
image
But when I click on the Build->Build APKs , no thing happended.
I just want to know whether It's necessary for me to install all 3 library above in my PC.
And hopes your help.

@AhmadKhattak
Copy link

Hi,

Check the following location in your android project, it should contain the android archive for ALIZE which you can then import as a module in your application projects (instructions from the readme)

screen shot 2018-04-13 at 6 30 56 pm

@RITCHIEHuang
Copy link

Really thanks @AhmadKhattak

@channae
Copy link

channae commented Apr 19, 2018

I get following exception when importing the aar. Any idea why?

com.intellij.openapi.externalSystem.model.ExternalSystemException: 
	at org.jetbrains.plugins.gradle.service.execution.GradleExecutionHelper.execute(GradleExecutionHelper.java:218)
	at com.android.tools.idea.gradle.project.build.invoker.GradleTasksExecutorImpl.invokeGradleTasks(GradleTasksExecutorImpl.java:397)
	at com.android.tools.idea.gradle.project.build.invoker.GradleTasksExecutorImpl.run(GradleTasksExecutorImpl.java:165)
	at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:713)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:543)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:488)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:165)
	at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:315)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

@Sunny-NEU
Copy link

Hi, I have put that tree folders in right place, but it show failed when i open the project and build it .i don't know how to fix it .the error message is that

Error while executing process D:\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HC:\Users\1\Desktop\android-alize-master\alize -BC:\Users\1\Desktop\android-alize-master\alize.externalNativeBuild\cmake\debug\armeabi -GAndroid Gradle - Ninja -DANDROID_ABI=armeabi -DANDROID_NDK=D:\Android\Sdk\ndk-bundle -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\1\Desktop\android-alize-master\alize\build\intermediates\cmake\debug\obj\armeabi -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=D:\Android\Sdk\cmake\3.6.4111459\bin\ninja.exe -DCMAKE_TOOLCHAIN_FILE=D:\Android\Sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DANDROID_PLATFORM=android-16}  
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage  
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage  

Have you met this problem? Looking forward anyone's help. Thanks~

@Sunny-NEU
Copy link

i have fixed this problem already

@sriranjanr
Copy link

sriranjanr commented May 25, 2018

@Sunny-NEU I am also getting the error Error:(313) CMAKE_CXX_COMPILER not set, after EnableLanguage . How do I solve this error?

@sriranjanr
Copy link

@Sunny-NEU This is the first time I am also compiling a c++ project in Android studio.It would be great if you can tell how you solved the above CMAKE compiler problem.

@sriranjanr
Copy link

How do I generate an APK or build an application out of this. A sample project to use this library/module would be helpful

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

No branches or pull requests

6 participants