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

Cross compilation error #20

Open
Neeeflix opened this issue Dec 2, 2021 · 0 comments
Open

Cross compilation error #20

Neeeflix opened this issue Dec 2, 2021 · 0 comments

Comments

@Neeeflix
Copy link

Neeeflix commented Dec 2, 2021

Hi,
currently, I am trying to use this library in a project on the Rpi. If I want to cross-compile my project, an error occurs with CMake. It says that certain files in "/usr/" are not present. If I change
if(NOT EXISTS "${file}" )
to
if(NOT EXISTS "${SYSROOT_PATH}/${file}" )
in line 63 in the generated modbuspp.cmake file, everything works fine. Would it be possible to change the CMakeLists.txt in a way that this is defined by default?

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