User forums > Using Code::Blocks

icons into the exe

<< < (2/2)

MortenMacFly:

--- Quote from: Jeisson on April 28, 2008, 10:47:12 pm ---Can those icon files be used only with MsWindows?

--- End quote ---
Yes. Under Linux you need an XPM (which can hold several "icons" again). Search the wxWidgets examples - there are plenty  of Windows / Linux projects with icon resources. You'll find the required switchyard, too. (I don't recall atm).


--- Quote from: Jeisson on April 28, 2008, 10:47:12 pm ---How can I skip compiling the .rc file under Linux?

--- End quote ---
Either you use scripting (attach a script file to your project that turns off compilation under other platforms than Windows) of you just create another (Linux) target / project. I personally use the latter... although much more "cool" is the first. ;-) (But I am too lazy to change all my projects.)

Jenna:
If you leave the resource compiler textfield empty in your linux configuration (that's the default), you can have the .rc-file as part of your project on linux and windows, it's just skipped when compiling the sources:

--- Code: ---Skipping file (no compiler program set): SPS_Log.rc

--- End code ---

svn5021 on debian

Jeisson:
Thanks Morten and Jens. I will replace the few .ico files I have in my project for xpm ones, and I feel glad for that. I think to learn Gimp.

About skipping the .rc file. I have two build targets, one for Linux, another for Windows. Always that I compile the first one, the instruction "Skipping file (no compiler program set)" is shown. Now I feel confidence to ignore it. But I always try to keep my project compiling with 0 warnings :D. I am wondering if is possible to move the <Unit filename="..myfile.rc"> from the global <Project> section to the MsWindows <Target> section?

Thanks again for your valuable help.
Greetings.

Navigation

[0] Message Index

[*] Previous page

Go to full version