Sign in Join

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

Mailing lists / lazarus / 2010-05

lazarus windows can't use shared directorys

8 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Fedorax

Hello,

I compiled one small linux app with lazarus installed in virtual box emulation of windows.
I've a shared directory recognize by windows as \\VBOXSVR The compiler cant' follow it, when i compile an app located in it the compiler say ant find the directory ''
If i try to add a path in project options i can folow the link but when i click OK it return an empty string.
Is it a bug ?

Reply by email

Mattias Gärtner
to Fedorax

Zitat von Fedorax :

Show quoted text 10 lines
Hello, I compiled one small linux app with lazarus installed in virtual box emulation of windows. I've a shared directory recognize by windows as \\VBOXSVR The compiler cant' follow it, when i compile an app located in it the compiler say ant find the directory '' If i try to add a path in project options i can folow the link but when i click OK it return an empty string. Is it a bug ?

What are the exact directory names?
Do you use a symbolic link?
Maybe the symbolic link is wrong and points to a non existing directory.

Mattias

Reply by email

Fedorax
to Mattias Gärtner

Le 09/05/2010 10:49, Mattias G?rtner a ?crit :

Show quoted text 27 lines
Zitat von Fedorax : > Hello, > > I compiled one small linux app with lazarus installed in virtual box > emulation of windows. > I've a shared directory recognize by windows as \\VBOXSVR > The compiler cant' follow it, when i compile an app located in it the > compiler say ant find the directory '' > If i try to add a path in project options i can folow the link but > when i click OK it return an empty string. > Is it a bug ? What are the exact directory names? Do you use a symbolic link? Maybe the symbolic link is wrong and points to a non existing directory. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

No, i never use symbolic links in my apps.

My test sources files was in:
\\VBOXSVR\moi\sources_soft\lazarus_projets\db_utils After move all project sources in c:\freepascal\projets\dbutils Project start but can't read his config text file wich stay in \\VBOXSVR\home\moi\bouq_db\bin\.db_utils
I move config text files in c:\freepascal\projets\dbutils\config All work
The most amazing is that my app work with dbf, all my db files are stay in \\VBOXSVR\home\moi\bouq_db\dbf\... lots of sub dirs and i can open all db files without have to move it. After close the app last used directory is memorised in c:\freepascal\projets\dbutils\config\cfg_last_files.txt as \\VBOXSVR\moi\bouquinique_db\db_bouq\bde_dbf\cat_bouq\bd\ When i restart program it read the cfg file with tstringlist and return correct result
opendialog.initialdir:=Curdir;
showmessage(opendialg.initialdir) return a good result but opendialog.execute ignore this directory and go on c:\bureau\Mes documents\
Note that with windows lazarus is some time very slow ( more than 20 s. ) to open directory.

Version of lazarus is 0.9.29 with windows xp

Reply by email

Graeme Geldenhuys
to Fedorax
Fedorax wrote
My test sources files was in: \\VBOXSVR\moi\sources_soft\lazarus_projets\db_utils

I assign drive letters to those shared folders, then Lazarus and FPC works fine. I create drive letters via Total Commander, not sure how to do it from within Windows supplied apps.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email

Fedorax
to Graeme Geldenhuys

Le 09/05/2010 12:48, Graeme Geldenhuys a ?crit :

Show quoted text 10 lines
On 9 May 2010 12:24, Fedorax wrote: > My test sources files was in: > \\VBOXSVR\moi\sources_soft\lazarus_projets\db_utils > I assign drive letters to those shared folders, then Lazarus and FPC works fine. I create drive letters via Total Commander, not sure how to do it from within Windows supplied apps.

I don't know total commander and i stop using windows 6 years ago. I just reinstall an virtual xp yesterday to see how lazarus can cross compile. I've only firefox fpc and lazarus on my linux virtual.

Reply by email

Marc Weustink
to Fedorax
Fedorax wrote 14 lines
Le 09/05/2010 12:48, Graeme Geldenhuys a ?crit : > On 9 May 2010 12:24, Fedorax wrote: > >> My test sources files was in: >> \\VBOXSVR\moi\sources_soft\lazarus_projets\db_utils >> > > I assign drive letters to those shared folders, then Lazarus and FPC > works fine. I create drive letters via Total Commander, not sure how > to do it from within Windows supplied apps. > I don't know total commander and i stop using windows 6 years ago. I just reinstall an virtual xp yesterday to see how lazarus can cross compile. I've only firefox fpc and lazarus on my linux virtual.

Not all applications like UNC paths (== the one you gave). Even cmd.exe in windows needs a drive letter.

Mapping a driveletter in windows can be done on several ways, no need for 3rd party tools. I'll give you 2 of them.

1) in the exporer, navigate to \\VBOXSVR (in the address bar), when the shares are listed, right click a share and choose "map network drive"

2) From the tools menu, choose "map network drive"

Marc

Reply by email

Fedorax
to Marc Weustink

Le 10/05/2010 01:50, Marc Weustink a ?crit :

Show quoted text 33 lines
Fedorax wrote: > Le 09/05/2010 12:48, Graeme Geldenhuys a ?crit : >> On 9 May 2010 12:24, Fedorax wrote: >>> My test sources files was in: >>> \\VBOXSVR\moi\sources_soft\lazarus_projets\db_utils >> >> I assign drive letters to those shared folders, then Lazarus and FPC >> works fine. I create drive letters via Total Commander, not sure how >> to do it from within Windows supplied apps. > I don't know total commander and i stop using windows 6 years ago. I > just reinstall an virtual xp yesterday to see how lazarus can cross > compile. I've only firefox fpc and lazarus on my linux virtual. Not all applications like UNC paths (== the one you gave). Even cmd.exe in windows needs a drive letter. Mapping a driveletter in windows can be done on several ways, no need for 3rd party tools. I'll give you 2 of them. 1) in the exporer, navigate to \\VBOXSVR (in the address bar), when the shares are listed, right click a share and choose "map network drive" 2) From the tools menu, choose "map network drive" Marc -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Thank's. Solution 2 work fine, i can now compile and retrieve config files from shared directory.
For other's user which could be interested i sp?cify: With xp familial ?dition this option is not in right click, only in tool menu.
For french ?dition it's: menu outils -> configurer un lecteur r?seau.

Reply by email

Graeme Geldenhuys
to Marc Weustink: Not all applications like UNC paths (== the one you gave). Even cmd.exe in windows needs…
Marc Weustink wrote
Not all applications like UNC paths (== the one you gave). Even cmd.exe in windows needs a drive letter.

[OT]
Just amazing how Windows' own tools cannot handle Windows features. :-/ [/OT]

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email