Sign in Join

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

Mailing lists / fpc-devel / 2010-01

user problems with fcl-res. need assistance

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Paul Ishenin
to Paul Ishenin
Paul Ishenin wrote 7 lines
Hello, FPC developers' list Lazarus is switched to use fcl-res already and some lazarus/fpc users have troubles with their old/new projects. I'm trying to figure out myself what are the problems in real but I will not refuse fpc developers help:

I confirm that if lazarus project has spaces in the path then fpc fails to compile:

/usr/bin/ppc386 -B -MObjFPC -Scghi -O1 -gl -WG -vewnhi -l "-Fi/home/paul/Development/laztest/path with spaces/lib/i386-linux/" -Fu/home/paul/Development/lazarus/lcl/units/i386-linux/ -Fu/home/paul/Development/lazarus/lcl/units/i386-linux/gtk2/ -Fu/home/paul/Development/lazarus/packager/units/i386-linux/ "-Fu/home/paul/Development/laztest/path with spaces/" -Fu. "-FU/home/paul/Development/laztest/path with spaces/lib/i386-linux/" -oproject1 -dLCL -dLCLgtk2 project1.lpr

Hint: Start of reading config file /etc/fpc.cfg
Hint: End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 2.5.1 [2010/01/28] for i386 Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Linux for i386
Compiling project1.lpr
Compiling Unit1.pas
Compiling resource /home/paul/Development/laztest/path with spaces/lib/i386-linux/project1.or
project1.lpr(19,1) Error: Error while compiling resources project1.lpr(19,1) Fatal: There were 1 errors compiling module, stopping

Best regards,
Paul Ishenin.

Reply by email

Paul Ishenin
to Paul Ishenin

29.01.2010 11:28, Paul Ishenin wrote:

When I compile from the console (not lazarus) with -vd I see:

Compiling resource /home/paul/Development/laztest/path with spaces/lib/i386-linux/project1.or
Calling resource compiler "/usr/local/bin/fpcres" with "-o "/home/paul/Development/laztest/path with
spaces/lib/i386-linux/project1.or" -a i386 -of elf -v @"/home/paul/Development/laztest/path with
spaces/lib/i386-linux/project1.reslst"" as command line Debug: parsing command line parameters
Debug: parsing parameter '-o'
Debug: parsing parameter '-a'
Debug: parsing parameter '-of'
Debug: parsing parameter '-v'
Debug: parsing parameter '@"/home/paul/Development/laztest/path' Error: Can't read config file '"/home/paul/Development/laztest/path'

Running the next command from the console: /usr/local/bin/fpcres -o "/home/paul/Development/laztest/path with
spaces/lib/i386-linux/project1.or" -a i386 -of elf -v @"/home/paul/Development/laztest/path with
spaces/lib/i386-linux/project1.reslst"

i see successful resource compilation by fpcres.

Best regards,
Paul Ishenin.

Reply by email

Paul Ishenin
to Paul Ishenin
Paul Ishenin wrote 24 lines
When I compile from the console (not lazarus) with -vd I see: Compiling resource /home/paul/Development/laztest/path with spaces/lib/i386-linux/project1.or Calling resource compiler "/usr/local/bin/fpcres" with "-o "/home/paul/Development/laztest/path with spaces/lib/i386-linux/project1.or" -a i386 -of elf -v @"/home/paul/Development/laztest/path with spaces/lib/i386-linux/project1.reslst"" as command line Debug: parsing command line parameters Debug: parsing parameter '-o' Debug: parsing parameter '-a' Debug: parsing parameter '-of' Debug: parsing parameter '-v' Debug: parsing parameter '@"/home/paul/Development/laztest/path' Error: Can't read config file '"/home/paul/Development/laztest/path' Running the next command from the console: /usr/local/bin/fpcres -o "/home/paul/Development/laztest/path with spaces/lib/i386-linux/project1.or" -a i386 -of elf -v @"/home/paul/Development/laztest/path with spaces/lib/i386-linux/project1.reslst" i see successful resource compilation by fpcres.

Together with Dmitry we found the solution. Patch is attached.

Best regards,
Paul Ishenin.

Reply by email