[En-Nut-Discussion] qnutconf path mysteries

Harald Kipp harald.kipp at egnite.de
Tue Dec 8 12:52:26 CET 2009


Hi,

while qnutconf locates the repository.nut file on my Linux machine, it
fails when running on my Windows machine, no matter which directory I
use as the current one.

It finally turned out, that the problem is not caused by the OS, but by
the directory structure. On Windows I have

C:\ethernut-4.9
C:\ethernut-4.9\crossworks
C:\ethernut-4.9\crossworks\nut\arch
C:\ethernut-4.9\crossworks\nut\include
C:\ethernut-4.9\nut
C:\ethernut-4.9\nut\conf
etc.

The problem is, that

Settings::findRelativePath
and
Settings::findRelativePathDepthSearch

start searching at the installation directory and stop searching as soon
as they find

C:\ethernut-4.9\crossworks\nut\...

which is just a temporary directory containing a few patches, but no
conf directory.




I'm not yet sure how to fix this in a right way, because ...

When installed on Windows, (q)nutconf is located in the installation
directory. To have the same conditions on Linux/OS X, the latest docs

http://www.ethernut.de/en/documents/debian.html

recommend to create ~/ethernut first and unpack the source archive in
this directory, resulting in ~/ethernut/ethernut-x.y.z and finally
create a link named ~/ethernut/nut to ~/ethernut/ethernut-x.y.z

If we then start qnutconf from C:\ethernut-x.y.z on Windows or
~/ethernut on Linux/OS X, it will fail.

Comments? Ideas?

Harald



More information about the En-Nut-Discussion mailing list