Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2012-10

windres not required/provided by Debian 2.6.0 FPC

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Reinier Olislagers

Morning list,

While getting a Jenkins continuous integration server going....

On Debian 6 (Squeeze), I installed just enough packages to get a compiler and get a compile job going
fp-compiler 2.6.0-0 Free Pascal - Compiler metapackage fp-compiler-2.6.0 2.6.0-0 Free Pascal - Compiler fp-units-i386 2.6.0-0 Free Pascal - kylix compatibility units metapackage
fp-units-i386-2.6.0 2.6.0-0 Free Pascal - kylix compatibility units fp-units-rtl 2.6.0-0 Free Pascal - Runtime Library metapackage
fp-units-rtl-2.6.0 2.6.0-0 Free Pascal - Runtime Library fp-utils 2.6.0-0 Free Pascal - Utils metapackage fp-utils-2.6.0 2.6.0-0 Free Pascal - Utils

The manual mentions that the FreePascal distribution comes with the windres resource compiler
(http://www.freepascal.org/docs-html/prog/progse59.html).

However, a simple test program containing a {$r resourcet.rc} directive gives:
fpc resourcet.pas
resourcet.pas(9,1) Error: resource compiler "windres" not found, switching to external mode
resourcet.pas(9,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled?

Trying to fix it:
apt-get install mingw32-binutils
gives
/usr/bin/i586-mingw32msvc-windres
If I then symlink windres:
ln -s /usr/bin/i586-mingw32msvc-windres /usr/bin/windres compilation works.

If it has not already been done so, would it be a good idea for the Debian packager add the relevant package as
required/dependency+incorporate the symlink?

Thanks,
Reinier

Tomas Hajny
to Reinier Olislagers

On Mon, October 8, 2012 08:21, Reinier Olislagers wrote:

Hi Reinier,

While getting a Jenkins continuous integration server going.... On Debian 6 (Squeeze), I installed just enough packages to get a compiler and get a compile job going

.
.

The manual mentions that the FreePascal distribution comes with the windres resource compiler (http://www.freepascal.org/docs-html/prog/progse59.html).

.
.

The manual forgets to mention that this is only the case on Win32 (where the various GNU tools and utilities are included with the FPC installation package). It also doesn't mention that different resource compilers may be used on other platforms (e.g. gorc on Win64, etc.).

Tomas

Reinier Olislagers
to Tomas Hajny

Hi Tomas,

Tomas Hajny wrote 21 lines
On Mon, October 8, 2012 08:21, Reinier Olislagers wrote: Hi Reinier, > While getting a Jenkins continuous integration server going.... > > On Debian 6 (Squeeze), I installed just enough packages to get a > compiler and get a compile job going . . > The manual mentions that the FreePascal distribution comes with the > windres resource compiler > (http://www.freepascal.org/docs-html/prog/progse59.html). . . The manual forgets to mention that this is only the case on Win32 (where the various GNU tools and utilities are included with the FPC installation package). It also doesn't mention that different resource compilers may be used on other platforms (e.g. gorc on Win64, etc.).

Could be.

HOWEVER: I'm sure you can put multiple resource compiler packages in the Debian dependency requirements, so any one of those will satisfy the install.
This way there would be no need to modify the manual as far as Debian/Ubuntu is concerned and users can just start to program without having to worry about satisfying dependencies.

If that (for some obscure reason) is too restrictive, it could at least be put in the recommends section.

I'm sure rpm has similar provisions.

Thanks,
Reinier

Tomas Hajny
to Reinier Olislagers
Reinier Olislagers wrote
On 8-10-2012 9:12, Tomas Hajny wrote: > On Mon, October 8, 2012 08:21, Reinier Olislagers wrote:

Hi Reinier,

Show quoted text 29 lines
>> While getting a Jenkins continuous integration server going.... >> >> On Debian 6 (Squeeze), I installed just enough packages to get a >> compiler and get a compile job going > . > . >> The manual mentions that the FreePascal distribution comes with the >> windres resource compiler >> (http://www.freepascal.org/docs-html/prog/progse59.html). > . > . > > The manual forgets to mention that this is only the case on Win32 (where > the various GNU tools and utilities are included with the FPC installation > package). It also doesn't mention that different resource compilers may be > used on other platforms (e.g. gorc on Win64, etc.). Could be. HOWEVER: I'm sure you can put multiple resource compiler packages in the Debian dependency requirements, so any one of those will satisfy the install. This way there would be no need to modify the manual as far as Debian/Ubuntu is concerned and users can just start to program without having to worry about satisfying dependencies. If that (for some obscure reason) is too restrictive, it could at least be put in the recommends section. I'm sure rpm has similar provisions.

I understand your point and I didn't mean to disqualify your request / suggestion (which needs to be reviewed by people maintaining the RPM and Debian release building configuration) - I just wanted to mention that the description in our manual (as quoted by you) has even more issues. I'd suggest creating a bug report for this documentation fragment (windres will probably never get included as part of FPC distribution on Linux even after your proposed changes of dependencies) so that it isn't forgotten. You may want to create another bug report for the installation package itself and the missing dependency, or wait a bit more for the response from the respective platform maintainers (I cannot judge your proposed solution myself).

Tomas

Reinier Olislagers
to Tomas Hajny
Tomas Hajny wrote 8 lines
On 8 Oct 12, at 18:31, Reinier Olislagers wrote: > On 8-10-2012 9:12, Tomas Hajny wrote: >> On Mon, October 8, 2012 08:21, Reinier Olislagers wrote: You may want to create another bug report for the installation package itself and the missing dependency, or wait a bit more for the response from the respective platform maintainers (I cannot judge your proposed solution myself).

Bug 23092

waldo kitty
to Tomas Hajny: . . . . The manual forgets to mention that this is only the case on Win32 (where the…
Tomas Hajny wrote
The manual forgets to mention that this is only the case on Win32 (where the various GNU tools and utilities are included with the FPC installation package). It also doesn't mention that different resource compilers may be used on other platforms (e.g. gorc on Win64, etc.).

i've run into resource problems when compiling projects from win32(?) to OS2... on OS2, i have to use fpc directly... everything is developed on win32(?) [w2000pro or vista] and then copied to the OS2 machine to compile the project.lpr... currently i'm using EMX on the OS2 box and i always get an error on the resource file unless i simply "comment" it out (with a '.' as the second character)...

how can i handle these resource files on OS2?

Tomas Hajny
to waldo kitty
waldo kitty wrote 19 lines
On 10/8/2012 03:12, Tomas Hajny wrote: > The manual forgets to mention that this is only the case on Win32 (where > the various GNU tools and utilities are included with the FPC > installation > package). It also doesn't mention that different resource compilers may > be > used on other platforms (e.g. gorc on Win64, etc.). i've run into resource problems when compiling projects from win32(?) to OS2... on OS2, i have to use fpc directly... everything is developed on win32(?) [w2000pro or vista] and then copied to the OS2 machine to compile the project.lpr... currently i'm using EMX on the OS2 box and i always get an error on the resource file unless i simply "comment" it out (with a '.' as the second character)... how can i handle these resource files on OS2?

It would be better to see a particular example which doesn't work as expected and information on what happens instead of the expected behaviour.

In general, the standard IBM resource compiler RC.EXE is included in optional item in the OS/2 standard installer covering development tools (together with e.g. the standard linker LINK386.EXE). In addition, the Developers Toolkit (included as an additional package in eComStation) includes these standard IBM tools too. Finally, there are also 3rd party resource compilers (in particular the free Watcom C/C++ compiler includes a cross-platform resource compiler allowing compilation of resources also on other platforms).

Tomas