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

ARM device compilation #225

Open
pereira90-ai opened this issue Dec 1, 2024 · 3 comments
Open

ARM device compilation #225

pereira90-ai opened this issue Dec 1, 2024 · 3 comments

Comments

@pereira90-ai
Copy link

Hi, Jiarong.

I hope you are doing well.

During the installation I got this issue:
C++: error: unrecogniaed command line option: '-msse2'

I think this issue is caused because of the difference between device architecture. (I'm using Jetson Orin whose arch is arm64)
I found those optimization options are not supported on ARM64 device.

And then what should I do? Just eliminating them or should I add new options?

Thanks for your consideration.
Best,

@shallwing
Copy link

shallwing commented Dec 23, 2024

Hi, Jiarong.

I hope you are doing well.

During the installation I got this issue: C++: error: unrecogniaed command line option: '-msse2'

I think this issue is caused because of the difference between device architecture. (I'm using Jetson Orin whose arch is arm64) I found those optimization options are not supported on ARM64 device.

And then what should I do? Just eliminating them or should I add new options?

Thanks for your consideration. Best,

I removed the two options "-msse2" and "-msse3" in CMakeLists.txt, then this error you have encounted was disappeared:
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++14 -O3 -lboost_system -pthread -Wenum-compare -DWITH_GTK_2_X=ON")
This sentence is in CMakeLists.txt line 6.

@pereira90-ai
Copy link
Author

CMakeLists

Hi @shallwing
Thanks for your help.
After removing those options I encountered new issue related to 'cpuid.h'

And currently ROS uses opencv 4.5.4 but I think 4.5.3 is supported.
How can I downgrade this opencv version into 4.5.3?
Thanks.

@shallwing
Copy link

CMakeLists

Hi @shallwing Thanks for your help. After removing those options I encountered new issue related to 'cpuid.h'

And currently ROS uses opencv 4.5.4 but I think 4.5.3 is supported. How can I downgrade this opencv version into 4.5.3? Thanks.

[https://github.com//issues/32](problem explaintion)
The author has declaimed in this URL that now we can only run the project in x86... what a pity!

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

2 participants