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-compiling discussion #67

Open
minhdc opened this issue Nov 18, 2019 · 2 comments
Open

Cross-compiling discussion #67

minhdc opened this issue Nov 18, 2019 · 2 comments

Comments

@minhdc
Copy link

minhdc commented Nov 18, 2019

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.

@ancloud-teach
Copy link

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

@dermesser
Copy link
Owner

@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.

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

3 participants