[fpc-pascal] Resource compiler under Linux - windres?

Giulio Bernardi ugilio at gmail.com
Sat Sep 1 10:24:18 CEST 2012


Just compiling windres from binutils sources should be enough.
The only problem I remember from past experience is that windres is not
endian safe, but if you use it on little endian machines it works just fine.

A simple way to have windres is:

download binutils from http://ftp.gnu.org/gnu/binutils/, and unpack the tar.gz

./configure
make
cd binutils
make windres

copy windres in your path.
That's all. There might be quicker ways that avoid having to compile all 
binutils, but compilation is very quick, so it should not be an issue.


Il 01/09/2012 02:03, Graeme Geldenhuys ha scritto:
> Hi,
>
> Does anybody know if there is a 'winres' for non-Windows platforms? How do I
> compile *.rc files into *.res files under Linux, FreeBSD etc? Or does Linux/*BSD
> executables simply not support such resources?
>
> Or can FPC somehow compile/convert *.rc files into *.res files for all
> non-Windows platforms? If so, how do I do it.
>
> A developer in the fpgui.support newsgroup mentioned the following, but I can't
> find any such executables for OpenSUSE 12.1 64-bit.
>
> ---------[ forward ]-----------------
> On windows windres is in fpc bin folder.
> On linux windres is part of mingw32-binutils package (to install on ubuntu:
> sudo apt-get install mingw32-binutils)
> But notice that by default name can have some prefix. After install call this
> commands:
> 1. sudo updatedb
> 2. locate *windres*
>
> This return me:
>
> /usr/bin/amd64-mingw32msvc-windres
> /usr/bin/i586-mingw32msvc-windres
> --------------------------
>
> Regards,
>    - Graeme -
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal




More information about the fpc-pascal mailing list