Dear all,
We want to build AndroidM6 for MX6SABRE-AI boards.
We refer to Android User's Guide(Rev. M6.0.1_2.1.0, 07/2016).
When make of system image is executed, an error occurs when libttspico.so is built.
Would you tell me the method avoiding this error?
<Command>
$ cd ~/myandroid
$ source build/envsetup.sh
$ lunch sabreauto_6q-user
$ make PRODUCT-sabreauto_6q-user 2>&1 | tee build-log.txt
<Error>
==========================================================================
target thumb C++: libttspico <= external/svox/pico/tts/svox_ssml_parser.cpp
make: Circular out/target/product/sabreauto_6q/obj/SHARED_LIBRARIES/libttspico_intermediates/LINKED/libttspico.so <- out/target/product/sabreauto_6q/obj/lib/libttspico.so dependency dropped.
target SharedLib: libttspico (out/target/product/sabreauto_6q/obj/SHARED_LIBRARIES/libttspico_intermediates/LINKED/libttspico.so)
/home/androidm6/myandroid/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/../lib/gcc/arm-linux-androideabi/4.9.x-google/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lttspico
external/svox/pico/tts/com_svox_picottsengine.cpp:1058: error: undefined reference to 'pico_initialize'
external/svox/pico/tts/com_svox_picottsengine.cpp:181: error: undefined reference to 'pico_disposeEngine'
~
~
~
collect2: error: ld returned 1 exit status
make: *** [out/target/product/sabreauto_6q/obj/SHARED_LIBRARIES/libttspico_intermediates/LINKED/libttspico.so] Error 1
#### make failed to build some targets (07:05 (mm:ss)) ####
==========================================================================
Please refer to an attached file for the detailed log.
- build-log.txt
This error does not occur if built for SABRE-SD.
Make is completed normally. Build succeeds.
May I have advice?
Best Regards,
Yuuki
Original Attachment has been moved to: build-log.txt.zip
已解决! 转到解答。
Hello Yuuki,
I haven't tested by myself. But you can find where the library in the following PATH.
myandroid/external/svox/pico/Android.mk.
You can comment the libttspico on this line of the Android.mk file.
LOCAL_JNI_SHARED_LIBRARIES :=libttscompat libttspico
I cannot guarantee if this will work. But you can try it.
Best Regards,
Diego.
Hello Yuuki,
I haven't tested by myself. But you can find where the library in the following PATH.
myandroid/external/svox/pico/Android.mk.
You can comment the libttspico on this line of the Android.mk file.
LOCAL_JNI_SHARED_LIBRARIES :=libttscompat libttspico
I cannot guarantee if this will work. But you can try it.
Best Regards,
Diego.
Hello Yuuki,
The libttspico.so, is a library that comes from an external project that was merged into Android's code-base. This library in specific comes from the external project "SVOX's Text-to-Speech speech synthesizer engine".
You can skip this building process. If you want to skip this process, you need to find where the library is created in the make file and comment that line.
Anyway, I will try to reproduce the error. But this process can take some time.
Best Regards,
Diego.
Diego-san,
Thank you for your support.
I cannot find the line which should be commented out.
Would you tell me the modified point if you can reproduce an error?
Best Regards,
Yuuki
Hello Yuuki,
Thank you for writing.
Did you try to perform a "make clean" and then restart the build process?
Furthermore, to start the building process, you only need to run "make2>&1 | tee build-log.txt"
Best Regards,
Diego.
Dear Diego-san,
I was not able to reply to you definitely.
I send comment again.
I tried it.
However, an error occurs at the same point.
$ lunch sabreauto_6q-user
$ make 2>&1 | tee build-log.txt
What is libttspico.so related to?
Can we let this build skip?
When we can skip this step, would you tell me the procedure?
Best Regards,
Yuuki
Dear Diego-san,
Thank you for your response.
I tried it.
However, an error occurs at the same point.
<Command>
$ cd ~/myandroid
$ source build/envsetup.sh
$ lunch sabreauto_6q-user
$ make 2>&1 | tee build-log.txt
What is libttspico.so related to?
Can we let this build skip?
When we can skip this step, would you tell me the procedure?
Best Regards,
Yuuki