Recent

Author Topic: Error Can't create resource file  (Read 35678 times)

typo

  • Hero Member
  • *****
  • Posts: 3051
Error Can't create resource file
« on: June 04, 2009, 07:05:10 pm »
It is my first time on 0.9.26. Win XP.

Thanks.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Error Can't create resource file
« Reply #1 on: June 04, 2009, 09:29:58 pm »
Can you save the project before you compile/run it?

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Error Can't create resource file
« Reply #2 on: June 04, 2009, 09:37:13 pm »
Yes, but the message on the compilation is Error: Can't open resource file.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Error Can't create resource file
« Reply #3 on: June 04, 2009, 09:48:55 pm »
In what directory did you save the project?

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Error Can't create resource file
« Reply #4 on: June 04, 2009, 10:41:22 pm »
In a folder on the desktop.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Error Can't create resource file
« Reply #5 on: June 04, 2009, 10:45:40 pm »
Depending on your localization and windows version,  that path may contain spaces. What is the full path? Can you save the project in a path without spaces?

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Error Can't create resource file
« Reply #6 on: June 04, 2009, 11:49:44 pm »
Yes. Done. Thanks.

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Error Can't create resource file
« Reply #7 on: June 06, 2009, 01:11:09 pm »
unitprincipal.pas(362,1) Error: Can't create resource file: C:\lazfilesplitter\lazfilesplitter\source\source\WINRES.RES

Without spaces. Any suggestions?

Thanks.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Error Can't create resource file
« Reply #8 on: June 06, 2009, 01:18:51 pm »
I don't have any suggestions, except to disable manifest and version info.

Zaher

  • Hero Member
  • *****
  • Posts: 679
    • parmaja.org
Re: Error Can't create resource file
« Reply #9 on: June 06, 2009, 07:00:55 pm »
May be check the PATH for external tools make problem.

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Error Can't create resource file
« Reply #10 on: June 08, 2009, 09:41:10 pm »
Solved. The exe name had spaces.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Error Can't create resource file
« Reply #11 on: June 08, 2009, 09:46:51 pm »
Typo, can you create a bug report for the problem with the exe name with spaces? That way it won't be forgetten and it will be fixed in the future.

TDelphiHobbyist

  • New Member
  • *
  • Posts: 12
    • TDelphiHobbyist
Re: Error Can't create resource file
« Reply #12 on: July 26, 2009, 10:47:44 pm »
Sorry or the hijack but this is the only thread I can find that is even close to my problem. I'm very very new to Lazarus - still looking at examples to figure out what's going on. I can't get a sample project, containing a res file to compile at all. I do have quite a bit of Delphi experience.

I'm using the latest release [0.9.26.2 beta] and trying to compile the example:
E:\Lazarus\examples\trayicon
I keep getting:
wndtray.dpr(42,1) Error: Can't create resource file: E:\Lazarus\examples\trayicon\magnifier.res

The reason I'm posting here is that it looks like it is possible but I just can't figure it out and expect it is some setting I have yet to find.

I've been searching the internet all morning for a solution and decided to try here. Nothing else has worked. I'm a bit frustrated that examples that don't compile are shipped - but then, as I've indicated, it's probably some setting I have yet to find.

Thanks,
Dave

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2582
Re: Error Can't create resource file
« Reply #13 on: July 30, 2009, 12:14:15 pm »
I had the same issue a while ago, but unfortunately I cannot remember how it was solved.
What OS are you using? 32 or 64 bit ?
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

TDelphiHobbyist

  • New Member
  • *
  • Posts: 12
    • TDelphiHobbyist
Re: Error Can't create resource file
« Reply #14 on: July 30, 2009, 06:46:44 pm »
What OS are you using? 32 or 64 bit ?
Sorry, I should have mentioned that ... I'm using Win32 [WinXP]

Thanks for responding.

 

TinyPortal © 2005-2018