EVerest / libocpp

C++ implementation of the Open Charge Point Protocol
Apache License 2.0
97 stars 48 forks source link

Not able to crosscompile libocpp for arm processor #776

Open jitain-sangwan opened 2 months ago

jitain-sangwan commented 2 months ago

OCPP Version

OCPP1.6

Describe the bug

Make Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.83.0/BoostConfig.cmake:141 (find_package): [cmake] Found package configuration file: [cmake] [cmake] /usr/lib/x86_64-linux-gnu/cmake/boost_log_setup-1.83.0/boost_log_setup-config.cmake [cmake] [cmake] but it set boost_log_setup_FOUND to FALSE so package "boost_log_setup" is [cmake] considered to be NOT FOUND. Reason given by package: [cmake] [cmake] No suitable build variant has been found. [cmake] [cmake] The following variants have been tried and rejected: [cmake] [cmake] libboost_log_setup.so.1.83.0 (64 bit, need 32) [cmake] [cmake] libboost_log_setup.a (64 bit, need 32) [cmake] [cmake] Call Stack (most recent call first): [cmake] /usr/lib/x86_64-linux-gnu/cmake/Boost-1.83.0/BoostConfig.cmake:262 (boost_find_component) [cmake] /usr/share/cmake-3.28/Modules/FindBoost.cmake:594 (find_package) [cmake] /home/pheonix/EVerest_OCPP/everest-workspace/liblog/CMakeLists.txt:28 (find_package) [cmake]

To Reproduce

No response

Anything else?

No response

marcemmers commented 1 month ago

Hi jitain-sangwan,

We are cross compiling for ARM so it is possible for sure. It looks like it is complaining that the boost libraries installed are 64 bit and it needs a 32 bit library. That might be something to investigate.

Kind regards, Marc

jitain-sangwan commented 1 month ago

Hi marc, Thanks for your response could you help with the process to crosscompile it would be of great help