[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mingw-users
Subject:    [Mingw-users] external libs with msys/autotools
From:       Kirk Joppy <kirk.joppy () gmail ! com>
Date:       2013-06-30 22:44:46
Message-ID: CA+Ae8b9FnZJUz2C885BkP0JHin=qafS5E1w1sJ4uq+pX1pJSrg () mail ! gmail ! com
[Download RAW message or body]

Dear MinGW Users,

I am trying to build a third party project using MinGW. The project is
distributed with configure and make files so my strategy is to use
them through msys. In this post I will ask a few questions regarding
inclusion of libraries. Having read the HOWTOs on the webpage I think
some context is necessary so this is a somewhat longer post. Therefore
I will prefix the questions with numbers.

The project depends on boost, Hunspell and wxWidgets:

I compiled what I believe are the two relevant boost libs, regex and
system, and put them in H:\MinGW\lib. I put the entire set of boost
headers in H:\MinGW\include\boost.

I compiled Hunspell and put the libs in H:\MinGW\lib and the headers
in H:\MinGW\include\hunspell.

I compiled wxWidgets and accidentally allowed it to install in
H:\MinGW\msys\1.0\local (ie exactly where it would be if msys were a
real Unix system). Having done this, H:\MinGW\msys\1.0\local\lib and
\include contain _only_ wxWidgets related files.

In msys I navigate to the root directory of the project and do
$ configure
the script eventually says
checking whether the Boost::Regex library is available... yes
configure: error: Could not find a version fo the Boost::Regex library!

This is puzzling to me but noticing that the configure script allows
for specification of the boost libs I did

$configure --with-boost-libdir=H:/MinGW/lib

This seems to work.

1. Why do I need to specify a location that's supposed to be searched
by default?

In particular wxWidgets is found.

2. Is this because, working from msys somehow allows configure to find
my wxWidgets files in H:\MinGW\msys\1.0\local\?

I do note a line "checking for Hunspell_create in -lhunspell... no".

Now when I do
$make
I get through all of the source files without error (this was not the
case before I compiled hunspell and added the libs to H:\MinGW\lib).
When the final stage of linking the .o files together is attempted
there is an error:
" undefined reference to 'boost::system::system_category()' "
I note that there is an -lboost_regex-mt-d option in the g++
invocation. I suppose that I need to add a similar one for
boost_system.

3. How is this sanely done?

Finding the following line in configure.ac
AC_CHECK_LIB([hunspell],[Hunspell_create])
I thought I should add a similar line:
AC_CHECK_LIB([boost_system], [main]).
Reading this tutorial
(http://inti.sourceforge.net/tutorial/libinti/autotoolsproject.html) I
see that I should next run aclocal. Doing so I get
"warning: macro 'AM_OPTIONS_WXCONFIG' not found in library"
"warning: macro 'AM_PATH_WXCONFIG' not found in library"
which leads to related errors when I try autoconf:
error: possibly undefined macro: AM_OPTIONS_WXCONFIG

One option would be to track down this macro problem, but I thought
I'd ask here if there's a simpler way to include the library.


Thank you for your time and consideration.

Regards,
kjoppy

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may \
cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic