-
Notifications
You must be signed in to change notification settings - Fork 7
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 compile configuration #5
Comments
You can see here how MXE cross compiles boost for windows. It basically creates a echo 'using gcc : mxe : $(TARGET)-g++ : <rc>$(TARGET)-windres <archiver>$(TARGET)-ar <ranlib>$(TARGET)-ranlib ;' > '$(1)/user-config.jam' But rather than guess the names from the target, you can get the names from cmake variables: |
Thanks Paul, it's a good reference. I'm actually guessing the toolset from the Maybe: $ bii cpp:configure -DBII_BOOST_CROSS_COMPILE=ON -DBII_BOOST_TOOLSET=gcc-arm -DBII_BOOST_TARGET_OS=linux Note the |
The user shouldn't need to define any extra variables, except maybe one for
Use
Infer from
Infer from Now for some esoteric systems, the user might need to define these variables; they can't be inferred(considering this is open source they can just open a PR for it). However, most likely they will define these extra variables in their cmake toolchain file. So then they can just call: bii cpp:configure -DCMAKE_TOOLCHAIN_FILE=toolchain-mingw.cmake Or call: bii cpp:configure If they add the toolchain file to their bii settings file. |
I'm missing a +1 button on comments. Thanks for all the info. |
The current scripts only do the standard calls to b2 and the bootstrapper to get the Boost binaries from the CMake setup being run.
Any thoughts about how this setup should look like?
The text was updated successfully, but these errors were encountered: