-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add cross-compilation support #149
Comments
Could this be related to cmake variable QT_PROTOBUF_EXECUTABLE? Because I tried using it for cross compilation but i have not been able to make it work and cmake gives me the following message:
Which seems to suggest that cmake ignores this variable. Note that qtprotobuf is included via CMakeLists.txt into my project and that I tried passing the variable both as parameter to cmake ( |
@rapgenic, unfortunately no. The problem is that qtprotobufgen compiled for ARM and couldn't be executed in x84/amd64 platform. I didn't find any CMake way to make compilation for host and native platforms in single CMake stack. I'm working on this task right now, and the only way I see is split generator and libraries deeper and make 2 steps crosscompilation. If you have an idea how it could be solved I'm open for suggestions :) |
That is what i had noticed too, and I thought that I could compile once for x86 and then use QT_PROTOBUF_EXECUTABLE to have cmake use the x86 compiled generator instead of the ARM built one, but I could not get it to work. (this would be the best solution for me, I think, because I am going to have in my filesystem the right version of the generator already installed)
I think i have read somewhere that cmake can only use one toolchain... :( |
As far as I could see, they use exact same approach that I have. Run cmake twice and use x86 version in compilation for ARM. Looks like it's the only right way to achieve cross-compilation. |
- Add support of the two-steps crosscompiling. - Fix issues in Wrap scripts - Update README - Set the CMP0112 policy to old, to avoid configuration warnings - Add a sample toolchain file to examples Fixes: #149
- Add support of the two-steps crosscompiling. - Fix issues in Wrap scripts - Update README - Set the CMP0112 policy to old, to avoid configuration warnings - Add a sample toolchain file to examples Fixes: #149
- Add support of the two-steps crosscompiling. - Fix issues in Wrap scripts - Update README - Set the CMP0112 policy to old, to avoid configuration warnings - Add a sample toolchain file to examples Fixes: #149
- Add support of the two-steps crosscompiling. - Fix issues in Wrap scripts - Update README - Set the CMP0112 policy to old, to avoid configuration warnings - Add a sample toolchain file to examples Fixes: #149
- Add support of the two-steps crosscompiling. - Fix issues in Wrap scripts - Update README - Set the CMP0112 policy to old, to avoid configuration warnings - Add a sample toolchain file to examples Fixes: #149
During cross-compilation generator should always be compiled for host system, but not for target
The text was updated successfully, but these errors were encountered: