Open Michdo93 opened 2 years ago
Please also share the command you typed to get the first error message.
It was the same command. Sorry, I have not said when the error occurs. After I run qibuild configure --release -c android-arm
the error above occurs.
To make it clear. The error arm-linux-androideabi-4.9
is broken I got after running qibuild configure --release -c android-arm
. Then I added set(ANDROID_TOOLCHAIN_NAME "arm-linux-androideabi-4.4.3")
to /home/nao/.local/share/qi/toolchains/android-arm/ndk/toolchain.cmake
.
Then I got an error that QI_DIR
is missing if I run it again. After that that ICU_DIR
is missing and after that that SYSTEMD_DIR
is missing.
This could be fixed by adding following line to /etc/environment
:
QI_DIR=/home/nao/naoqi/ctc-linux64-atom-2.5.10.7/libqi/share/cmake
ICU_DIR=/home/nao/naoqi/ctc-linux64-atom-2.5.10.7/icu/share/cmake/icu
SYSTEMD_DIR=/home/nao/naoqi/ctc-linux64-atom-2.5.10.7/systemd/share/cmake/systemd
And now I got another error:
qibuild configure --release -c android-armCurrent build worktree: /home/nao/worktree
Using toolchain: android-arm
* (1/1) Configuring qimessaging-jni
-- Adjusting Android API level 'android-17' to 'android-14'
-- Using qibuild 3.17
-- Library: qimessagingjni
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find RT (missing: RT_LIBRARIES)
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
/home/nao/.local/share/cmake/qibuild/find.cmake:373 (find_package_handle_standard_args)
/home/nao/.local/share/cmake/qibuild/find.cmake:269 (_qi_call_fphsa)
/home/nao/.local/share/cmake/qibuild/modules/rt-config.cmake:8 (export_lib)
/home/nao/.local/share/cmake/qibuild/internal/uselib.cmake:80 (find_package)
/home/nao/.local/share/cmake/qibuild/internal/uselib.cmake:94 (_qi_use_lib_get_deps)
/home/nao/.local/share/cmake/qibuild/internal/uselib.cmake:94 (_qi_use_lib_get_deps)
/home/nao/.local/share/cmake/qibuild/internal/uselib.cmake:197 (_qi_use_lib_get_deps)
/home/nao/.local/share/cmake/qibuild/stage.cmake:247 (_qi_use_lib_internal)
/home/nao/.local/share/cmake/qibuild/target.cmake:277 (qi_use_lib)
CMakeLists.txt:59 (qi_create_lib)
-- Configuring incomplete, errors occurred!
See also "/home/nao/worktree/libqi-java/jni/build-android-arm/CMakeFiles/CMakeOutput.log".
Hello,
Instead of patching your /etc/environment
, you should be trying to build the libqi-java
that is found under ~/work/aldebaran
. Normally, qibuild
will find the other projects of the worktree, and set these automatically.
Then, it is possible that the Android NDK you defined to use with set(ANDROID_TOOLCHAIN_NAME "arm-linux-androideabi-4.4.3")
does not have the right libraries, such as RT
(but I admit I find that weird). Let us try with the right NDK, first.
According to the CMake code in the qibuild
toolchain package for the Android NDK, it is designed to work with the NDK version r10c.
Hi,
I tried to use the toolchain for android-arm but I got this error:
So, one step after another...
I created a Ubuntu 16.04 virtual machine. I installed Python 2.7 and pip for Python 2.7. Then I installed the Python SDK. After that I installed the C++ SDK and qibuild. Then I downloaded the Java SDK and the JavaScript SDK. With all this I have written basic examples for a Pepper with NAOqi 2.5. Then I tried to use the Java SDK in my Android Project. Sadly this does not work. After that I have seen in libqi-java that there could be a possibility.
I installed Android Studio by using the Ubuntu Software Center. At first I have installed NDK by going to Tools --> SDK Manager --> SDK Tools. But sadly this was NDK 24.x. Then I uninstalled this version. The oldest version I can find inside SDK Tools was 16.x. I then downloaded android-ndk-r8e. I unzipped it to the location where Android Studio normally would install Android NDK.
For better understandig... This are my enviroment variables:
You have written in your README.md that ANDROID_NDK_HOME should point to /path/to/android-ndk-r8e. If I run qibuild the ANDROID_NDK_ROOT should point to that location. I fixed it. But inside of the android-ndk-r8e there is no arm-linux-androideabi-4.9. I then edited
/home/nao/.local/share/qi/toolchains/android-arm/ndk/toolchain.cmake
by adding:After that I run into the next error:
I can locate it:
Maybe you have a solution for this issue.
What I have done before was doing following steps:
The next step would not work:
You can find this issue here:
https://github.com/aldebaran/manifest/issues/2
A workaround is to clone it from github directly.
I also does not use ~/work. I will use ~/worktree. Because this was described so in the installation guide for the C++ SDK.
The next steps would be:
Perhaps in the further procedure would be even more errors that I become aware of.
Thanks in advance.