> On 9/21/15, 11:59 AM, MacArthur, Ian (Selex ES, UK) wrote:
> > I'd caution against *ever* doing a "make install" under mingw[64]
>
> Perhaps we should have a check for mingw env
> in the install target to warn it isn't necessary.
To be clear; there is no problem doing a "make install" under mingw in the general case, and I would not modify the build target.
It usually works fine, but there are some caveats:-
- The "regular" 32-bit mingw/Msys setup works absolutely fine.
- There are a few 64-bit mingw ports kicking about; they are still somewhat immature and have a variety of "interesting features", so I would *not* advise using them to install the libs.
- I never install fltk anyway, on any platform; doing so is seldom (if ever) necessary (and since many linux distros already have a "system" fltk based on some older variant, actually installing something recent can lead to unusual side effects...)
- If installed in the "usual way" from an Msys shell, the install paths only make sense from within Msys, so using a fltk "installed" in that way, from (say) a DOS shell may not work.
> Also, I wonder if there isn't a better default for
> a mingw environment than /usr/local? (e.g. "c:/fltk-1.1.x?")
>
> If in the OP's case /usr/local does exist,
> it seems like we should fix whatever prevents that from working.
Greg, I think you don't use mingw much, but it has some features to ease working with "posix" code, which may be counter-intuitive if you are expecting a DOS environment.
Note in particular that the Msys environment has an fstab that mounts the "DOS style" paths onto "posix style" paths to ease portability, so the "/usr/local" that bat reports is (almost certainly) not a real path in the DOS file system, but rather a mount over some DOS path.
For example; On this box I get:-
$ mount
C:\Users\IAN~1.MAC\AppData\Local\Temp on /tmp type user (binmode,noumount)
D:\MinGW\msys\1.0 on /usr type user (binmode,noumount)
D:\MinGW\msys\1.0 on / type user (binmode,noumount)
D:\MinGW on /mingw type user (binmode)
b: on /b type user (binmode,noumount)
c: on /c type user (binmode,noumount)
d: on /d type user (binmode,noumount)
e: on /e type user (binmode,noumount)
g: on /g type user (binmode,noumount)
So in this case, the path "/usr/local" equates to the DOS path "D:\MinGW\msys\1.0\local", but if executed from within the Msys environ, tools can safely use "/usr/local" and get the Right Thing.
I assume that is roughly what bat has on his set-up too.