Re: [OSGeo-Discuss] How to set SHARE_DIR?

2020-10-06 Thread Pierre Abbat
On Tuesday, October 6, 2020 6:01:45 AM EDT Mateusz Loskot wrote:
> Forgive me if I'm a party killer, but why don't you request OSGeo SAC/Admins
> to create a mailing list on https://lists.osgeo.org/ dedicated for your
> project?

This question is about any desktop application on a Unix system, or at least 
any built with CMake. It's not specific to PerfectTIN; I'm not asking how to 
handle a dot which, because of roundoff error, is not inside the triangle it's 
in. Would it make more sense to create a list for programming questions that 
are not specific to an application?

Pierre

-- 
Lanthanidia deliciosa: What the kiwifruit would be
if it weren't so radioactive.



___
Discuss mailing list
Discuss@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/discuss

Re: [OSGeo-Discuss] How to set SHARE_DIR?

2020-10-06 Thread Mateusz Loskot
On Tue, 6 Oct 2020 at 11:47, Pierre Abbat  wrote:
>
> On Monday, October 5, 2020 11:04:36 PM EDT Jim Klassen wrote:
> > I wouldn't expect someone to set CMAKE_INSTALL_PREFIX=$HOME.  That just
> > seems like a good way to cause issues to me.
> >
> > There is a ~/.local/share directory and a ~/.local/share/applications
> > directory in my home directory that has desktop files in it.  (That might
> > imply using CMAKE_INSTALL_PREFIX=$HOME/.local is possible but that still
> > seems like it is asking for trouble.)
> >
> > Standard practice is to put the files under
> > ${CMAKE_INSTALL_PREFIX}/share/ unless the user specifically overrides
> > that.  I consider it hostile behavior when an installer or build system
> > starts putting files outside of the path(s) that I have specified for it.
> > I can make symlinks for files in ${CMAKE_INSTALL_PREFIX}/share to
> > ~/.local/share/applications manually if I want to.
>
> My build directories are:

Pierre,

Forgive me if I'm a party killer, but why don't you request OSGeo SAC/Admins
to create a mailing list on https://lists.osgeo.org/ dedicated for your project?

This is "the public list to talk about the Open Source Geospatial
Foundation (OSGeo) in general" with many subscribers who are not
interested in programming or any other low-level technical trivias.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
___
Discuss mailing list
Discuss@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/discuss

Re: [OSGeo-Discuss] How to set SHARE_DIR?

2020-10-06 Thread Pierre Abbat
On Monday, October 5, 2020 11:04:36 PM EDT Jim Klassen wrote:
> I wouldn't expect someone to set CMAKE_INSTALL_PREFIX=$HOME.  That just
> seems like a good way to cause issues to me.
> 
> There is a ~/.local/share directory and a ~/.local/share/applications
> directory in my home directory that has desktop files in it.  (That might
> imply using CMAKE_INSTALL_PREFIX=$HOME/.local is possible but that still
> seems like it is asking for trouble.)
> 
> Standard practice is to put the files under
> ${CMAKE_INSTALL_PREFIX}/share/ unless the user specifically overrides
> that.  I consider it hostile behavior when an installer or build system
> starts putting files outside of the path(s) that I have specified for it. 
> I can make symlinks for files in ${CMAKE_INSTALL_PREFIX}/share to
> ~/.local/share/applications manually if I want to.

My build directories are:
~/build/perfecttin/cdbg for the debug build (prefix $HOME),
~/build/perfecttin/crel for the release build (prefix $HOME),
~/build/perfecttin/cins for the release build (prefix /usr/local),
~/build/perfecttin/cafl for fuzzing (prefix $HOME, but installing disabled),
and the same with 'g' instead of 'c', compiled with g++ instead of clang. I 
added a desktop file and installed it and the icon under $HOME, then symlinked 
~/share/applications/perfecttin.desktop to ~/.local/share/applications/
perfecttin.desktop . It showed up in the menu, but had no icon and didn't run. 
I then installed under /usr/local and it worked perfectly.

Apparently I should install under ~/.local/, but the only directory under 
~/.local is share; ~/.local/bin, ~/.local/include, and ~/.local/lib do not 
exist. Should I add ~/.local/bin to PATH, or should I make symlinks in ~/bin/?

Pierre
-- 
li fi'u vu'u fi'u fi'u du li pa



___
Discuss mailing list
Discuss@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/discuss