libsocket icon indicating copy to clipboard operation
libsocket copied to clipboard

Cross-compiling discussion

Open minhdc opened this issue 5 years ago • 2 comments

I'm trying to cross compile this lib to run on multiple architecture like MIPS and ARM. If you guys have any decent suggestions, please discuss here.

minhdc avatar Nov 18 '19 04:11 minhdc

I'm trying to cross compile this lib to run on multiple architecture like MIPS and ARM. If you guys have any decent suggestions, please discuss here.

It is my suggestion.


SET(CMAKE_C_COMPILER mipsel-openwrt-linux-gcc)
SET(CMAKE_CXX_COMPILER mipsel-openwrt-linux-g++)
SET(CMAKE_INSTALL_PREFIX "/home/sl/Engineer/tool/libsocket/out/Widora")

rm CMakeCache.txt CMakeFiles/ -rf

make && make install

ancloud-teach avatar Dec 13 '19 09:12 ancloud-teach

@ancloud-teach does this work well for you? If so, would you mind documenting it somewhere? Either as comments in the CMakeLists.txt or on a doxygen page, for example.

dermesser avatar Feb 20 '20 08:02 dermesser