libsocket
libsocket copied to clipboard
Cross-compiling discussion
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.
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 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.