List:MySQL++« Previous MessageNext Message »
From:Jim Graf Date:November 5 2009 10:16pm
Subject:Re: Mysql++ mingw32 cross-compiling under linux
View as plain text  
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:
>
>
> http://wiki.codeblocks.org/index.php?title=Cross_Compiling_wxWidgets_Applications_on_Linux
>
> 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
> Windows.
> 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?
>
> Thanks.
> Leonti
>
>
> On Thu, Nov 5, 2009 at 8:58 PM, Leonti Bielski <prishelec@stripped>
> wrote:
> > I thought if I compile it under linux I have to configure with --host
> changed.
> >
> > 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>
> wrote:
> >> 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
> the
> >> correct build procedure.
> >>
> >> --
> >> MySQL++ Mailing List
> >> For list archives: http://lists.mysql.com/plusplus
> >> To unsubscribe:
> http://lists.mysql.com/plusplus?unsub=1
> >>
> >>
>


jgraf@gr-icad11 [518]$ gtar -zxf mysql++-3.0.8.tar.gz
cd mysql++-3.0.8
jgraf@gr-icad11 [519]$ cd mysql++-3.0.8
jgraf@gr-icad11 [520]$ ./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

for example:

--with-mysql=/proj/dataprep/jgdata/local/MySQL/mysql

and
ls /proj/dataprep/jgdata/local/MySQL/mysql
bin/  include/  lib/  libexec/  mysql-test/  share/  sql-bench/

good luck,
jim

Thread
Mysql++ mingw32 cross-compiling under linuxLeonti Bielski5 Nov
  • Re: Mysql++ mingw32 cross-compiling under linuxJonathan Wakely5 Nov
  • Re: Mysql++ mingw32 cross-compiling under linuxWarren Young5 Nov
    • Re: Mysql++ mingw32 cross-compiling under linuxLeonti Bielski5 Nov
      • Re: Mysql++ mingw32 cross-compiling under linuxLeonti Bielski5 Nov
        • Re: Mysql++ mingw32 cross-compiling under linuxJim Graf5 Nov
      • Re: Mysql++ mingw32 cross-compiling under linuxWarren Young5 Nov
  • Re: Mysql++ mingw32 cross-compiling under linuxWahyu Arm6 Nov
    • Re: Mysql++ mingw32 cross-compiling under linuxLeonti Bielski6 Nov
      • Re: Mysql++ mingw32 cross-compiling under linuxWarren Young6 Nov
        • Re: Mysql++ mingw32 cross-compiling under linuxLeonti Bielski6 Nov
          • Re: Mysql++ mingw32 cross-compiling under linuxWarren Young6 Nov
            • Re: Mysql++ mingw32 cross-compiling under linuxLeonti Bielski6 Nov
              • Re: Mysql++ mingw32 cross-compiling under linuxWarren Young6 Nov
                • Re: Mysql++ mingw32 cross-compiling under linuxLeonti Bielski6 Nov