Recent

Author Topic: Resource compiling in Linux  (Read 6180 times)

Kurt

  • Jr. Member
  • **
  • Posts: 59
Resource compiling in Linux
« 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?

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1058
Re: Resource compiling in Linux
« Reply #1 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.

Kurt

  • Jr. Member
  • **
  • Posts: 59
Re: Resource compiling in Linux
« Reply #2 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?

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1058
Re: Resource compiling in Linux
« Reply #3 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

SymbolicFrank

  • Hero Member
  • *****
  • Posts: 1313
Re: Resource compiling in Linux
« Reply #4 on: February 11, 2017, 08:22:12 pm »
Resource compiling is a very Windows-centric thing.

Cyrax

  • Hero Member
  • *****
  • Posts: 836
Re: Resource compiling in Linux
« Reply #5 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.

Thaddy

  • Hero Member
  • *****
  • Posts: 14221
  • Probably until I exterminate Putin.
Re: Resource compiling in Linux
« Reply #6 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.
« Last Edit: February 12, 2017, 10:10:06 am by Thaddy »
Specialize a type, not a var.

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: Resource compiling in Linux
« Reply #7 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.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Thaddy

  • Hero Member
  • *****
  • Posts: 14221
  • Probably until I exterminate Putin.
Re: Resource compiling in Linux
« Reply #8 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.
Specialize a type, not a var.

 

TinyPortal © 2005-2018