lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] Cross-compiling lmi from Linux to MSW


From: Vadim Zeitlin
Subject: Re: [lmi] Cross-compiling lmi from Linux to MSW
Date: Thu, 21 Jan 2016 21:52:02 +0100

On Thu, 21 Jan 2016 19:37:30 +0000 Greg Chicares <address@hidden> wrote:

GC> I guess you must have done that in ~/src because the first line of
GC> the 'configure' command didn't work for me,

 Sorry, I actually had ~/src/xmlwrapp on my system (because this is a
library I work on, so I didn't put it under 3rdparty as all the rest) and
forgot to adjust the commands for its expected location on your system.

GC> so I changed it thus:
GC> 
GC> /home/greg/build/xmlwrapp-msw[1]$~/src/3rdparty/xmlwrapp/configure \
GC>       --disable-shared --disable-tests --disable-docs \
GC>       --with-boost=$HOME/msw/i686-w64-mingw32 \
GC>       --prefix=$HOME/msw/i686-w64-mingw32 \
GC>       --host=i686-w64-mingw32 \
GC>       PKG_CONFIG_LIBDIR=$HOME/msw/i686-w64-mingw32/lib/pkgconfig
GC> 
GC> The other paths in this command are absolute and don't need any
GC> adjustment. But when I run it, I get:
GC>   [many unremarkable lines snipped]
GC> checking for Boost headers version >= 0.0.0... no
GC> configure: error: cannot find Boost headers version >= 0.0.0

 I'd need to see your config.log to be sure, but I think you might be
running into a configure bug that prevented xmlwrapp from building with
g++5, see

https://github.com/vslavik/xmlwrapp/commit/aa6f34e3604f2b84dad7688ad3dd5c397767ffa8

I thought it wouldn't affect us because we use 4.9, after all, but
apparently it does. I can retest to be sure, but if you plan on updating
xmlwrapp to the latest version from https://github.com/vadz/xmlwrapp/, it
would be worth doing it as it should really, really work.

GC> I checked 'config.log'...
GC> 
GC> /home/greg/build/xmlwrapp-msw[0]$tail -n5 config.log

 You need to grep for "checking for Boost headers version" in config.log to
see why has the compilation of the test program using them failed, it's not
at the end of the file, unfortunately.

GC> ...but that doesn't seem to help. Looking in 'configure'

 Please don't look at the generated configure unless you just want to be
horrified.

GC> and then around line 15670 I get a vague impression that maybe
GC> the script expects
GC>   path/to/include/boost/some_boost_file.hpp
GC> where I have
GC>   path/to/include/some_boost_file.hpp
GC> Is that worth trying after my lunch break?

 No, I don't think so. The command should work as written and it did for me
with the latest xmlwrapp version.

 Good luck,
VZ

reply via email to

[Prev in Thread] Current Thread [Next in Thread]