| Anonymous | Login | Signup for a new account | 2010-02-09 03:12 CET |
| All Projects | FPC | Lazarus: Packages, Patches | Lazarus CCR | Mantis | fpGUI |
| Main | My View | View Issues | Change Log | Roadmap | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0012645 | [FPC] Compiler | minor | always | 2008-11-16 07:55 | 2009-03-21 14:16 | ||||
| Reporter | Gabor Boros | View Status | public | ||||||
| Assigned To | Vincent Snijders | ||||||||
| Priority | normal | Resolution | fixed | ||||||
| Status | closed | Product Version | |||||||
| Summary | 0012645: Compiler (windres?) cannot compiler resources in path with spaces | ||||||||
| Description |
Compiling resource C:\DOCUME~1\Somebody\LOCALS~1\Temp\project1.rc C:\FPC\2.2.2\bin\i386-win32\windres.exe: no resources project1.lpr(20,1) Error: Error while linking project1.lpr(20,1) Fatal: There were 1 errors compiling module, stopping |
||||||||
| Additional Information | |||||||||
| Tags | No tags attached. | ||||||||
| FPCOldBugId | 0 | ||||||||
| Fixed in Revision | 12670 | ||||||||
| Attached Files |
|
||||||||
|
|
|||||||||
Notes |
|
|
(0023506) Paul Ishenin (developer) 2008-11-23 10:58 |
I have seen such bug. But imo I cannot do anything with it. It is imo a fpc bug. You can resolve it by choosing easier temp directory in you lazarus environment options. Use some folder without spaces and national symbols like "C:\temp" |
|
(0023507) Christian (reporter) 2008-11-23 11:06 |
Maybe it should be moved to fpc Bugtracker ?! |
|
(0023513) Sergey Bulba (reporter) 2008-11-23 12:59 |
Yes, windres very strange tool, comparing with brcc32. |
|
(0023576) Marco van de Voort (manager) 2008-11-26 15:57 |
"IDE" is reserved for the FPC IDE. |
|
(0023581) Gabor Boros (reporter) 2008-11-26 18:39 |
This is a Lazarus bug not FPC. Lazarus builded from current SVN (trunk) contains the bug, but builded from fixes_0_9_26 not. FPC is same 2.2.2. |
|
(0023582) Vincent Snijders (manager) 2008-11-26 19:18 |
Gabor, I think Lazarus tries to use a feature that fpc doesn't support yet, or that Lazarus trunk exposes a bug in fpc. It might be possible to add a workaround in Lazarus, but is better to improve fpc. |
|
(0023583) Vincent Snijders (manager) 2008-11-26 19:18 |
Marco, I think this actually a compiler issue, because the compiler calls the resource compiler incorrectly. |
|
(0023588) Marco van de Voort (manager) 2008-11-26 22:03 |
Afaik it is the mingw windres tool not functioning with names with spaces in it. |
|
(0023937) Vincent Snijders (manager) 2008-12-23 20:57 |
Or it cannot handle paths with ~ in it, such as the short name representation of the temp dir on windows xp. |
|
(0024332) Vincent Snijders (manager) 2009-01-10 09:45 |
Windres cannot handle spaces, related mingw tracker item: https://sourceforge.net/tracker/index.php?func=detail&aid=1640385&group_id=2435&atid=102435 [^] |
|
(0024405) Vincent Snijders (manager) 2009-01-13 10:33 |
From a discussion in the MinGW bugtracker can be concluded that windres does not and will not support spaces in paths for its parameters in the foreseeable future. So the compiler will have to convert file names and directories passed to windres to short path names (quoting them does not work). Additionally, forward slashes (/) need to be used as directory separator. |
|
(0024415) Vincent Snijders (manager) 2009-01-13 14:39 |
Attached patch works for me. I only tested this on i386-win32. It seems that windres is used on linux and for arm-wince too. I did not test that. |
|
(0024417) Florian Klämpfl (administrator) 2009-01-13 14:49 |
Maybe use GetShortName of cfilutils instead of ExtractShortPathName? |
|
(0024418) Vincent Snijders (manager) 2009-01-13 15:34 |
Using GetShortName from cfileutl works too, modified patch attached. |

