On Thu, Nov 5, 2009 at 1:52 PM, Leonti Bielski <prishelec@stripped> wrote:
> Another reason why I thought I should use ./configure is that it
> worked for wxWidgets:
> I'm not sure how this whole --host thing works, but I guess it doesn't
> take into account that I don't need sockets if I'm building for
> I disabled the check by manually editing configure file.
> But now I'm running into another error:
> checking whether -lsocket is needed... checking whether -lnsl is
> needed... checking for MySQL library directory... /usr/lib64
> checking for MySQL include directory... /usr/include/mysql
> checking if we can link to MySQL C API library directly... no
> checking zlib.h usability... yes
> checking zlib.h presence... yes
> checking for zlib.h... yes
> checking for gzread in -lz... yes
> checking whether adding -lz will let MySQL C API link succeed... no
> configure: error: Unable to link to MySQL client library!
> How do I tell configure to look for mysql libs in another directory?
> On Thu, Nov 5, 2009 at 8:58 PM, Leonti Bielski <prishelec@stripped>
> > I thought if I compile it under linux I have to configure with --host
> > Now I tried to run 'make' and I get this error:
> > make -f Makefile.mingw
> > i686-pc-mingw32-g++ -c -o mysqlpp_beemutex.o -g -mthreads -DUNICODE
> > -D_UNICODE -DMYSQLPP_NO_DLL -DHAVE_MYSQL_SSL_SET
> > -I"/home/leonti/proba/mysql-5.1.40-win32/include"
> > -MTmysqlpp_beemutex.o -MFmysqlpp_beemutex.o.d -MD -MP lib/beemutex.cpp
> > make: -c: Command not found
> > make: *** [mysqlpp_beemutex.o] Error 127
> > I really don't want to install Windows just to compile a couple of
> programs :(
> > Leonti
> > On Thu, Nov 5, 2009 at 8:16 PM, Warren Young <mysqlpp@stripped>
> >> Leonti Bielski wrote:
> >>> But I get an error that socket library is missing.
> >>> Code:
> >>> leonti@linux-ep9z:~/proba/mysql++-3.0.9> ./configure
> >> Don't use 'configure' on MinGW. Read README-MinGW.txt, which explains
> >> correct build procedure.
> >> --
> >> MySQL++ Mailing List
> >> For list archives: http://lists.mysql.com/plusplus
> >> To unsubscribe:
jgraf@gr-icad11 $ gtar -zxf mysql++-3.0.8.tar.gz
jgraf@gr-icad11 $ cd mysql++-3.0.8
jgraf@gr-icad11 $ ./configure --help|grep -i mysql
`configure' configures mysql++ 3.0.8 to adapt to many kinds of systems.
--with-mysql=<path> root directory path of MySQL installation
--with-mysql-lib=<path> directory path of MySQL library installation
--with-mysql-include=<path> directory path of MySQL header installation
bin/ include/ lib/ libexec/ mysql-test/ share/ sql-bench/