ALIZE-Speaker-Recognition / android-alize

ALIZE for the Android platform.
GNU Lesser General Public License v3.0
35 stars 17 forks source link

What and where to put Alize core and LIA RAL folders #21

Closed sriranjanr closed 6 years ago

sriranjanr commented 6 years ago

In the read me section it is mentioned to download both the repositories. I have downloaded and extracted the repositories. Now there are many folder in each project. For example Alize core has include,src and win cfg. Now should I put only the src folder or both src and include folders in {project_root}/alize/src/main/cpp/ . This is not clear in the Read Me section. Same doubt with LIA RAL. There are many folders in LIA RAL. Also what about spro? Please let me know.

AhmadKhattak commented 6 years ago

Hi @sriranjanr , when you downloaded the repositories for alize core library and LIA RAL library you would have gotten two folders, you need to rename them as alize-core and LIA_RAL respectively and copy these two folder in the alize/src/main/cpp location.

Regards the spro, you would need to download the latest revision from here https://gforge.inria.fr/projects/spro/ and then copy to alize/src/main/cpp as folder spro.

Hope this helps !

sriranjanr commented 6 years ago

Latest error is this

Error:(2) error: attribute 'package' in tag is not a valid Android package name: 'AlizeSpkRec'. Error:org.gradle.internal.UncheckedException: com.android.ide.common.process.ProcessException: Failed to execute aapt Error:com.android.ide.common.process.ProcessException: Failed to execute aapt Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details Error:java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details Error:com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details

This is my manifest tag

manifest xmlns:android="http://schemas.android.com/apk/res/android" package="AlizeSpkRec" android:versionCode="1" android:versionName="1.0" >

So to overcome the manifest error I gave the package name as com.android.AlizeSpkRec but it gets over written to just AlizeSpkRec. And the AndroidManifest.xml file is located in alize/build/intermediate/manifests/aapt/release and in/debug. Looks like every time I am trying to build the project it is getting rewritten. So where is the actual package name stored and how to change it?

sriranjanr commented 6 years ago

Ok in the src folder there is a androidmanifest.xml and I changed the package name there and it compiled well.

Sunny-NEU commented 6 years ago

@sriranjanr It compiled well after you put the three folders in right positions? Did you develop the project on Linux OS? Did you install the spro? Mine is Win10 OS. I have not compiled it well.

sriranjanr commented 6 years ago

I did this one in windows. Yes it compiled well after I put the 3 folders in right positions. Look at cmakelists.txt for folder names.

Sunny-NEU commented 6 years ago

The three folder names(alize-core, LIA_RAL, spro) are right and in right positions. Why did mine go wrong? emmmm

hananeam1991 commented 5 years ago

Making all in src make[1] : on entre dans le répertoire « /home/hanane/Bureau/PACK-ALIZE/ALIZE/alize-core-master/src » make[1]: rien à faire pour « all ». make[1] : on quitte le répertoire « /home/hanane/Bureau/PACK-ALIZE/ALIZE/alize-core-master/src » make[1] : on entre dans le répertoire « /home/hanane/Bureau/PACK-ALIZE/ALIZE/alize-core-master » make[1]: rien à faire pour « all-am ». make[1] : on quitte le répertoire « /home/hanane/Bureau/PACK-ALIZE/ALIZE/alize-core-master » mkdir -p lib ; mv src/libalize.a lib/libalize_Linux_x86_64.a mv : voulez-vous remplacer 'lib/libalize_Linux_x86_64.a' en outrepassant le mode 0644 (rw-r--r--) ? please i have this error when i compile alize