Lazarus

Free Pascal => Unix => Topic started by: Kurt on February 11, 2017, 07:51:57 pm

Title: Resource compiling in Linux
Post by: Kurt on February 11, 2017, 07:51:57 pm
It appears that the Ubuntu/Mint/Debian distributions of Lazarus/FPC don't include Windres.  It also is missing from the official Lazarus/FPC binaries for Linux.  What are people using for resource compiling in Linux?
Title: Re: Resource compiling in Linux
Post by: Jonas Maebe on February 11, 2017, 07:58:49 pm
It's not included in the Linux distributions of FPC/Lazarus for the same reason that those distributions don't include gdb, as or ld: they rely on you installing the OS-versions of those tools if you need them/want to use them.

windres is available on Ubuntu 16 in e.g. the package binutils-mingw-w64-i686, as i686-w64-mingw32-windres. In general, it should be available in any distribution as part part of their win32/win64 cross binutils package.
Title: Re: Resource compiling in Linux
Post by: Kurt on February 11, 2017, 08:12:26 pm
Are the maintainers of the Ubuntu Lazarus/FPC packages part of the Lazarus/FPC team?  Who would I talk to about getting the windres packages part of the dependencies for Lazarus?
Title: Re: Resource compiling in Linux
Post by: Jonas Maebe on February 11, 2017, 08:14:45 pm
I guess you can file a bug report with Ubuntu: https://launchpad.net/ubuntu/+source/lazarus/+filebug
Title: Re: Resource compiling in Linux
Post by: SymbolicFrank on February 11, 2017, 08:22:12 pm
Resource compiling is a very Windows-centric thing.
Title: Re: Resource compiling in Linux
Post by: Cyrax on February 12, 2017, 08:52:12 am
Resource compiling is a very Windows-centric thing.

With (recent) FPC you can use windows style resources everywhere if target supports COFF (Windows) or ELF (Linux, Unix etc.) style object files.
Title: Re: Resource compiling in Linux
Post by: Thaddy on February 12, 2017, 10:05:39 am
I have a rudimentary resource compiler - not complete, but working - for windows rc files that should compile into res cross-platform. I will see if I can release it, but it needs clean-up and a check for proprietary code..
It does not support the curly bracket format and never will, but I think it can be useful.
Title: Re: Resource compiling in Linux
Post by: Graeme on February 13, 2017, 10:37:57 am
@Thaddy: That would be awesome! Hopefully one day a cross-platform resource compiler could be included with FPC as standard too.
Title: Re: Resource compiling in Linux
Post by: Thaddy on February 13, 2017, 11:05:54 am
I will work on it and post you a private message where to get the mess later this week or early next week.
There are some proprietary issues, but nothing unsolvable. Don't expect too much... it does just what we needed, but it's a start.
TinyPortal © 2005-2018