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 Android Tablet "can0" #414

Open
jnghhk opened this issue Mar 14, 2023 · 0 comments
Open

about Android Tablet "can0" #414

jnghhk opened this issue Mar 14, 2023 · 0 comments

Comments

@jnghhk
Copy link

jnghhk commented Mar 14, 2023

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.

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

1 participant