I've been having many 'issues' with OpenSCAD not honouring paths to
libraries, which seems to be when using 'Open with' from Dolphin [the
file manager FWIW, as not everyone will be using Debian].
I'm on Debian 12 desktop with Gnome, setting OPENSCADPATH worked fine
on an Ubuntu LTS, I dumped Ubuntu when Firefox was forced into an AppImage.
I put the issue down to my stupidity and not setting up the library
paths properly in the correct locations across the OS.
My current library path shown from the CLI,
"OPENSCADPATH=.local/share/OpenSCAD/libraries:CadData/libraries"
From the GUI, Help->Library Info shows
OPENSCADPATH: .local/share/OpenSCAD/libraries:CadData/librariesOpenSCAD
library path:
/home/rogerw/CadData/libraries/openscad-esp-models/.local/share/OpenSCAD/libraries
/home/rogerw/CadData/libraries/openscad-esp-models/CadData/libraries
/home/rogerw/.local/share/OpenSCAD/libraries
/app/share/openscad-nightly/libraries
I put all my libraries including into CadData/libraries/subdirectory and
reference the subdirectory in the include or use statements.
Paths work fine when OpenSCAD is started and files then opened from
within the GUI.
I am presently using Version 2024.12.30, installed using the flatpak
version from the CLI.
From the GUI output, these two lines :
/home/rogerw/CadData/libraries/openscad-esp-models/.local/share/OpenSCAD/libraries
/home/rogerw/CadData/libraries/openscad-esp-models/CadData/libraries
Look wrong, and should have a colon at the end of /openscad-esp-models/,
before ./local/share... and before CadData/libraries on the second line,
thus:
/home/rogerw/CadData/libraries/openscad-esp-models/:.local/share/OpenSCAD/libraries
/home/rogerw/CadData/libraries/openscad-esp-models/:CadData/libraries
HTH,
Roger.
If you're using git, there is a handy feature called submodules.
In the directory with your sources, create a submodule
git submodule add https://github.com/BelfrySCAD/BOSL2 BOSL2
git submodule update --init --recursive
This creates a BOSL2 directory with all the BOSL2 files. When you want to update to the latest version, do
git submodule update --remote --merge
A rather big advantage is that you can use different versions of libraries in different projects. An even nicer advantage is that if you leave your project alone for a couple of years, everything still works as you left it.
If you like the idea but never used git, then do in your project directory first:
git init
That makes the directory a git directory. That is all you need to do.
Kind regards,
Peter Kriens
On 9 Jun 2025, at 11:44, Roger Whiteley via Discuss discuss@lists.openscad.org wrote:
I've been having many 'issues' with OpenSCAD not honouring paths to libraries, which seems to be when using 'Open with' from Dolphin [the file manager FWIW, as not everyone will be using Debian].
I'm on Debian 12 desktop with Gnome, setting OPENSCADPATH worked fine on an Ubuntu LTS, I dumped Ubuntu when Firefox was forced into an AppImage.
I put the issue down to my stupidity and not setting up the library paths properly in the correct locations across the OS.
My current library path shown from the CLI, "OPENSCADPATH=.local/share/OpenSCAD/libraries:CadData/libraries"
From the GUI, Help->Library Info shows
OPENSCADPATH: .local/share/OpenSCAD/libraries:CadData/libraries
OpenSCAD library path:
/home/rogerw/CadData/libraries/openscad-esp-models/.local/share/OpenSCAD/libraries
/home/rogerw/CadData/libraries/openscad-esp-models/CadData/libraries
/home/rogerw/.local/share/OpenSCAD/libraries
/app/share/openscad-nightly/libraries
I put all my libraries including into CadData/libraries/subdirectory and reference the subdirectory in the include or use statements.
Paths work fine when OpenSCAD is started and files then opened from within the GUI.
I am presently using Version 2024.12.30, installed using the flatpak version from the CLI.
From the GUI output, these two lines :
/home/rogerw/CadData/libraries/openscad-esp-models/.local/share/OpenSCAD/libraries
/home/rogerw/CadData/libraries/openscad-esp-models/CadData/libraries
Look wrong, and should have a colon at the end of /openscad-esp-models/, before ./local/share... and before CadData/libraries on the second line, thus:
/home/rogerw/CadData/libraries/openscad-esp-models/:.local/share/OpenSCAD/libraries
/home/rogerw/CadData/libraries/openscad-esp-models/:CadData/libraries
HTH,
Roger.
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org mailto:discuss-leave@lists.openscad.org
On Mon, 2025-06-09 at 10:44 +0100, Roger Whiteley via Discuss wrote:
I've been having many 'issues' with OpenSCAD not honouring paths to
libraries, which seems to be when using 'Open with' from Dolphin [the
file manager FWIW, as not everyone will be using Debian].
I'm on Debian 12 desktop with Gnome, setting OPENSCADPATH worked
fine on an Ubuntu LTS, I dumped Ubuntu when Firefox was forced into
an AppImage.
I stuck with Ubuntu MATE, and removed Snaps altogether, installing
Firefox the way I always did.
I put the issue down to my stupidity and not setting up the library
paths properly in the correct locations across the OS.
My current library path shown from the CLI,
"OPENSCADPATH=.local/share/OpenSCAD/libraries:CadData/libraries"
From the GUI, Help->Library Info shows
OPENSCADPATH: .local/share/OpenSCAD/libraries:CadData/libraries
OpenSCAD library path:
/home/rogerw/CadData/libraries/openscad-esp-
models/.local/share/OpenSCAD/libraries
/home/rogerw/CadData/libraries/openscad-esp-models/CadData/libraries
/home/rogerw/.local/share/OpenSCAD/libraries
/app/share/openscad-nightly/libraries
Bingo!
That was my problem; two copies of BOSL2, one in
~/openscad/libraries
and one in
~/.local/share/OpenSCAD/libraries~/.local/share/OpenSCAD/libraries
I was launching OpenSCAD from the panel and pasting the code in, but it
was using the first one and not the second. I temporarily fixed that by
making a copy of the new one into the directory containing the old one.
The sample code works now.
Thanks!
I put all my libraries including into CadData/libraries/subdirectory
and reference the subdirectory in the include or use statements.
Paths work fine when OpenSCAD is started and files then opened from
within the GUI.
I am presently using Version 2024.12.30, installed using the flatpak
version from the CLI.
From the GUI output, these two lines :
/home/rogerw/CadData/libraries/openscad-esp-
models/.local/share/OpenSCAD/libraries
/home/rogerw/CadData/libraries/openscad-esp-models/CadData/libraries
Look wrong, and should have a colon at the end of /openscad-esp-
models/, before ./local/share... and before CadData/libraries on the
second line, thus:
/home/rogerw/CadData/libraries/openscad-esp-
models/:.local/share/OpenSCAD/libraries
/home/rogerw/CadData/libraries/openscad-esp-models/:CadData/libraries
HTH,
Roger.
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
My current library path shown from the CLI,
"OPENSCADPATH=.local/share/OpenSCAD/libraries:CadData/libraries"
I'm also using Debian 12 and OPENSCADPATH is working perfectly for me. But
I specify full paths starting from the file system root.
On Mon, Jun 9, 2025 at 4:44 AM Roger Whiteley via Discuss <
discuss@lists.openscad.org> wrote:
I've been having many 'issues' with OpenSCAD not honouring paths to
libraries, which seems to be when using 'Open with' from Dolphin [the file
manager FWIW, as not everyone will be using Debian].
I'm on Debian 12 desktop with Gnome, setting OPENSCADPATH worked fine on
an Ubuntu LTS, I dumped Ubuntu when Firefox was forced into an AppImage.
I put the issue down to my stupidity and not setting up the library paths
properly in the correct locations across the OS.
My current library path shown from the CLI,
"OPENSCADPATH=.local/share/OpenSCAD/libraries:CadData/libraries"
From the GUI, Help->Library Info shows
OPENSCADPATH: .local/share/OpenSCAD/libraries:CadData/libraries OpenSCAD
library path:
/home/rogerw/CadData/libraries/openscad-esp-models/.local/share/OpenSCAD/libraries
/home/rogerw/CadData/libraries/openscad-esp-models/CadData/libraries
/home/rogerw/.local/share/OpenSCAD/libraries
/app/share/openscad-nightly/libraries
I put all my libraries including into CadData/libraries/subdirectory and
reference the subdirectory in the include or use statements.
Paths work fine when OpenSCAD is started and files then opened from within
the GUI.
I am presently using Version 2024.12.30, installed using the flatpak
version from the CLI.
From the GUI output, these two lines :
/home/rogerw/CadData/libraries/openscad-esp-models/.local/share/OpenSCAD/libraries
/home/rogerw/CadData/libraries/openscad-esp-models/CadData/libraries
Look wrong, and should have a colon at the end of /openscad-esp-models/,
before ./local/share... and before CadData/libraries on the second line,
thus:
/home/rogerw/CadData/libraries/openscad-esp-models/:.local/share/OpenSCAD/libraries
/home/rogerw/CadData/libraries/openscad-esp-models/:CadData/libraries
HTH,
Roger.
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org