Recent

Author Topic: compiling a project from a directory  (Read 6276 times)

john iobst

  • Newbie
  • Posts: 3
compiling a project from a directory
« on: March 30, 2011, 11:16:13 pm »
i installed lazarus the other day and it seems to work fine except ...

it will build a single unit program just fine.

when i try to save a program and then compile it i get a message that it cannot create directory "".

i cannot find any documentation to help.

the directory for building test projects is "C:\DOCUME~1\SUZANN~1\LOCALS~1\Temp\"

any help would be appreciated.

thx
john

Bart

  • Hero Member
  • *****
  • Posts: 5706
    • Bart en Mariska's Webstek
Re: compiling a project from a directory
« Reply #1 on: March 30, 2011, 11:53:28 pm »
Try saving the project in a path that does not contain spaces.
I think that some of the external tools that come with Lazarus do not like spaces in filenames or paths.

Bart

john iobst

  • Newbie
  • Posts: 3
Re: compiling a project from a directory
« Reply #2 on: March 31, 2011, 04:46:57 am »
my original statement may not have been sufficiently clear.

if i create an empty program it will compile and execute bringing up basically an empty form which i can then close.

if i save the empty program to any directory (saving the project file and the unit) all other pieces save automatically and then try to compile it i get the message 'unable to create directory ""'. i believe it is trying to create an empty directory and failing that stops.

thx
john

Bart

  • Hero Member
  • *****
  • Posts: 5706
    • Bart en Mariska's Webstek
Re: compiling a project from a directory
« Reply #3 on: March 31, 2011, 09:59:43 am »
When you don't save the project, when you build/run it, it will be saved in the %TEMP% directory of Windows (you use Windows, I see).
This probably is C:\Windows\Temp or something similar: a path without spaces in it.

So please try my suggestion above and report back, or state that you already saved the project in a path without spaces (or other special chars) and the problem remains.
(I'm not sure if this is still the case, but it was recommende to install Lazarus itself also in a path without spaces.)

If the problem remains, please also state the Lazarus and Fpc version you are using.

Bart

john iobst

  • Newbie
  • Posts: 3
Re: compiling a project from a directory
« Reply #4 on: April 06, 2011, 05:45:23 am »
bart

thank you for the help.

i am using the just released version with parallels on a mac.

you are entirely correct about the path names. there can be no spaces.

hopefully no one else will fall into this trap.

now to get the mac native version to work...

thx
john

 

TinyPortal © 2005-2018