iup-rust icon indicating copy to clipboard operation
iup-rust copied to clipboard

Cannot build and link iup.rc for Windows

Open thelink2012 opened this issue 9 years ago • 0 comments

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

thelink2012 avatar May 06 '15 03:05 thelink2012