This bug applies to FLTK Versions 1.1.11 and 1.3.0rc2
Following a successful build and install in MSys Environment, Fluid is unable
to find the documentation files despite the fact that they have been installed
correctly.
This appears to be because the WIN32 API requires paths in the form
"c:/msys/1.0/local/shar/doc/fltk" instead of "/usr/local/share/doc/fltk"
This can be overridden by setting FLTK_DOCDIR environment variable, but it
would be better if the path was created correctly in the build.
I have created a patch for configure.in (see below) which works for any
installed path of MSys.
However, I'm not entirely sure whether other WIN32 builds would be any better.
I will be checking a Visualc++ build soon.
PATCH
-------------------------------------------------------
*** fltk-1.3.0rc2/configure.in Sun Jan 9 19:23:55 2011
--- configure.in Sun Jan 9 19:23:18 2011
***************
*** 1257,1263 ****
OPTIM="$DEBUGFLAG $OPTIM"
dnl Define the FLTK documentation directory...
! if test x$prefix = xNONE; then
AC_DEFINE_UNQUOTED(FLTK_DOCDIR, "/usr/local/share/doc/fltk")
else
AC_DEFINE_UNQUOTED(FLTK_DOCDIR, "$prefix/share/doc/fltk")
--- 1257,1268 ----
OPTIM="$DEBUGFLAG $OPTIM"
dnl Define the FLTK documentation directory...
! if test x$MSYSTEM = xMINGW32; then
! # Determine the path where MSys has /usr installed
! msyspath=`mount | grep '\/usr' | grep -v '\/usr\/bin' | cut -d ' ' -f
-1 | sed -e 's/\\\/\// g'`
! # Then substitute that in the WIN32 path instead of /usr
! AC_DEFINE_UNQUOTED(FLTK_DOCDIR, "$msyspath/local/share/doc/fltk")
! elif test x$prefix = xNONE; then
AC_DEFINE_UNQUOTED(FLTK_DOCDIR, "/usr/local/share/doc/fltk")
else
AC_DEFINE_UNQUOTED(FLTK_DOCDIR, "$prefix/share/doc/fltk")
***************
*** 1304,1309 ****
--- 1309,1317 ----
echo " includedir=$includedir"
echo " libdir=$libdir"
echo " mandir=$mandir"
+ if test x$MSYSTEM = xMINGW32; then
+ echo " MSys docpath=$msyspath/local/share/doc/fltk"
+ fi
echo " Graphics: $graphics"
if test x$JPEG = x; then
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs