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

Cannot build and link iup.rc for Windows #3

Open
thelink2012 opened this issue May 6, 2015 · 0 comments
Open

Cannot build and link iup.rc for Windows #3

thelink2012 opened this issue May 6, 2015 · 0 comments

Comments

@thelink2012
Copy link
Collaborator

This is not really a issue with iup-rust but rust-lang itself that closely affects this project. When the issue gets off rust-lang the build process here should be updated.

Related rust-lang issues:
rust-lang/rfcs#721
rust-lang/cargo#544 - Passing the .res objet file through link-args would help.
rust-lang/rust#25030 - windres.exe is required to build the .rc source into the .res object file (maybe, just maybe, this one should be addressed by the C toolchain not the rust toolchain).


Rust build system (cargo / attributes) cannot add object files to be built into the output binary, thus it is not possible to include the iup.res file required by iup on static builds for Windows as instructed here:

The iup.rc resource file (or a custom version) should be included in the application's project/makefile so that some icons and cursors can be used when not using the DLLs and to enable Windows Visual Styles. iup.rc is located in "/etc" folder of the distribution.

Thus it's necessary to link to a dynamic iup library on Windows to get along

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

1 participant