On Mon, Sep 11, 2006 at 02:41:01AM +0200, Enrico Forestieri wrote:
> On Mon, Sep 11, 2006 at 01:37:32AM +0200, Enrico Forestieri wrote:
>
> > $ ./src/lyx
> > Same as entered returned
> > Unable to determine the path to the LyX binary from the command line
> > ./src/lyx
>
> Something weird is going on, as if I invoke lyx through a full path:
>
> $ /usr/local/src/lyx/lyx-1.5.0svn/build/src/lyx
> Same as entered returned
> Unable to determine the system directory having searched
> .//usr/local/src/lyx/lyx-1.5.0svn/build-cygwin/share/lyx-1.5.0svn/./
> Use the '-sysdir' command line parameter or set the environment variable
> LYX_DIR_14x to the LyX system directory containing the file `chkconfig.ltx'.
This is due to the fact that boost 1.34 defaults to windows paths and
API even on cygwin. The attached patch fixes this problem. I am going
to commit it soon as I think it is not controversial.
I still need that silly patch about lyx::support::Path to be able to
compile, tough...
--
Enrico
Log:
* configure.ac: define BOOST_POSIX_API and BOOST_POSIX_PATH
on cygwin (needed by boost 1.34).
Index: configure.ac
===================================================================
--- configure.ac (revision 14979)
+++ configure.ac (working copy)
@@ -404,6 +404,8 @@ int mkstemp(char*);
#ifdef __CYGWIN__
# define BOOST_POSIX 1
+# define BOOST_POSIX_API 1
+# define BOOST_POSIX_PATH 1
#endif
#if defined(HAVE_NEWAPIS_H)