can-utils icon indicating copy to clipboard operation
can-utils copied to clipboard

about Android Tablet "can0"

Open jnghhk opened this issue 2 years ago • 0 comments

hello! I've been using can-utils on my ubuntu-based pc for a while. I'm trying to use a USB CAN device on my Galaxy tab S7 this time. It's my first Android, so I'm asking a question because it's difficult to access. The tablet is rooted, and android studio is installed on the PC. I installed termux on the tablet and acquired "sudo" , but it seems that additional work is required to use the command "$ sudo ip link set can0 up type can bitrate 500000" that I have been using. If you look at the CMake Project Generator part, there is a method in Android and Android Studio, but I did not understand. The way I did it was to download can-utils using termux, $ mkdir build $ cd build $ cmake -DCMAKE_TOOLCHAIN_FILE=~/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake -DANDROID_PLATFORM=android-21 -DANDROID_ABI=armeabi-v7a .. && make I did the above, but it seems to have failed because there is no toolchain. Where is DCMAKE_TOOLCHAIN_FILE? I'm not good at English, but thank you for reading.

jnghhk avatar Mar 14 '23 12:03 jnghhk