[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] Cross-compiling lmi from Linux to MSW
From: |
Greg Chicares |
Subject: |
Re: [lmi] Cross-compiling lmi from Linux to MSW |
Date: |
Thu, 21 Jan 2016 19:37:30 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 |
On 2016-01-14 01:35, Vadim Zeitlin wrote:
[...]
> $ git clone https://github.com/vadz/xmlwrapp.git
> $ cd xmlwrapp
> $ ./bootstrap
> $ mkdir ~/build/xmlwrapp-msw
> $ cd $_
> $ ~/src/xmlwrapp/configure \
> --disable-shared --disable-tests --disable-docs \
> --with-boost=$HOME/msw/i686-w64-mingw32 \
> --prefix=$HOME/msw/i686-w64-mingw32 \
> --host=i686-w64-mingw32 \
> PKG_CONFIG_LIBDIR=$HOME/msw/i686-w64-mingw32/lib/pkgconfig
> $ make install
I wasn't sure what directory I should cd into before 'git clone',
so I did this:
cd ~/src/3rdparty
git clone https://github.com/vadz/xmlwrapp.git
cd xmlwrapp
./bootstrap
mkdir ~/build/xmlwrapp-msw
cd $_
I guess you must have done that in ~/src because the first line of
the 'configure' command didn't work for me, so I changed it thus:
/home/greg/build/xmlwrapp-msw[1]$~/src/3rdparty/xmlwrapp/configure \
--disable-shared --disable-tests --disable-docs \
--with-boost=$HOME/msw/i686-w64-mingw32 \
--prefix=$HOME/msw/i686-w64-mingw32 \
--host=i686-w64-mingw32 \
PKG_CONFIG_LIBDIR=$HOME/msw/i686-w64-mingw32/lib/pkgconfig
The other paths in this command are absolute and don't need any
adjustment. But when I run it, I get:
[many unremarkable lines snipped]
checking for Boost headers version >= 0.0.0... no
configure: error: cannot find Boost headers version >= 0.0.0
This option seems crucial:
--with-boost=$HOME/msw/i686-w64-mingw32
The command I used to "install" boost was
cp -a boost ~/msw/i686-w64-mingw32/include
copied and pasted from your instructions, and boost seems to be there:
/home/greg/build/xmlwrapp-msw[1]$ls $HOME/msw/i686-w64-mingw32
bin lib libboost_regex.a man
include libboost_filesystem.a libboost_system.a share
/home/greg/build/xmlwrapp-msw[0]$ls $HOME/msw/i686-w64-mingw32/include |head
accumulators
algorithm
aligned_storage.hpp
any.hpp
...
I tried adding '/include' to the boost path:
/home/greg/build/xmlwrapp-msw[0]$~/src/3rdparty/xmlwrapp/configure \
--disable-shared --disable-tests --disable-docs \
--with-boost=$HOME/msw/i686-w64-mingw32/include \
--prefix=$HOME/msw/i686-w64-mingw32 \
--host=i686-w64-mingw32 \
PKG_CONFIG_LIBDIR=$HOME/msw/i686-w64-mingw32/lib/pkgconfig 2>&1 |less
but the result is the same:
checking for Boost headers version >= 0.0.0... no
configure: error: cannot find Boost headers version >= 0.0.0
I checked 'config.log'...
/home/greg/build/xmlwrapp-msw[0]$tail -n5 config.log
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define LT_OBJDIR ".libs/"
configure: exit 1
...but that doesn't seem to help. Looking in 'configure', I see:
1477 --with-boost=DIR prefix of Boost [guess]
and then around line 15670 I get a vague impression that maybe
the script expects
path/to/include/boost/some_boost_file.hpp
where I have
path/to/include/some_boost_file.hpp
Is that worth trying after my lunch break?
Re: [lmi] Cross-compiling lmi from Linux to MSW,
Greg Chicares <=
- Re: [lmi] Cross-compiling lmi from Linux to MSW, Vadim Zeitlin, 2016/01/21
- Re: [lmi] Cross-compiling lmi from Linux to MSW, Greg Chicares, 2016/01/21
- Re: [lmi] Cross-compiling lmi from Linux to MSW, Vadim Zeitlin, 2016/01/21
- Re: [lmi] Cross-compiling lmi from Linux to MSW, Greg Chicares, 2016/01/21
- Re: [lmi] [Bulk] Re: Cross-compiling lmi from Linux to MSW, Greg Chicares, 2016/01/22
- Re: [lmi] [Bulk] Re: Cross-compiling lmi from Linux to MSW, Greg Chicares, 2016/01/22
- Re: [lmi] [Bulk] Re: Cross-compiling lmi from Linux to MSW, Vadim Zeitlin, 2016/01/22
- Re: [lmi] [Bulk] Re: Cross-compiling lmi from Linux to MSW, Greg Chicares, 2016/01/23
- Re: [lmi] [Bulk] Re: Cross-compiling lmi from Linux to MSW, Vadim Zeitlin, 2016/01/23
- Re: [lmi] [Bulk] Re: Cross-compiling lmi from Linux to MSW, Greg Chicares, 2016/01/24