[GRASS-dev] mysql support on winGRASS

Martin Landa landa.martin at gmail.com
Tue Jun 22 11:53:41 EDT 2010


Hi,

2010/6/21 Andre Gagne <gagne.andre at gmail.com>:
> I was wondering what the status of mysql support on winGRASS is?

compiling GRASS in osgeo4w environment with

	        --with-mysql \
	        --with-mysql-includes=$OSGEO4W_ROOT_MSYS/include \
	        --with-mysql-libs=$OSGEO4W_ROOT_MSYS/bin

checking for mysql fails

configure:7768: checking whether to use MySQL
configure:7788: checking for location of MySQL includes
configure:7814: checking for mysql.h
configure:7822: gcc -E  -I/c/OSGeo4W/include
-I/c/OSGeo4W/apps/gdal-16/include -I/c/OSGeo4W/include conftest.c
>/dev/null 2>conftest.out
configure:7859: checking for location of MySQL library
configure:7890: checking for mysql_query in -lmysqlclient
configure:7907: gcc -o conftest.exe -g -O2
-I/c/OSGeo4W/apps/gdal-16/include -I/c/OSGeo4W/include
-L/c/OSGeo4W/bin   -Wl,--export-dynamic,--enable-runtime-pseudo-reloc
-L/c/OSGeo4W/apps/gdal-16/lib -L/c/OSGeo4W/lib conftest.c
-lmysqlclient   1>&5
c:\OSGeo4W\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe:
cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 7896 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_query();

int main() {
mysql_query()
; return 0; }
configure:7926: checking for mysql_query in -lmysqlclient
configure:7943: gcc -o conftest.exe -g -O2
-I/c/OSGeo4W/apps/gdal-16/include -I/c/OSGeo4W/include
-L/c/OSGeo4W/bin   -Wl,--export-dynamic,--enable-runtime-pseudo-reloc
-L/c/OSGeo4W/apps/gdal-16/lib -L/c/OSGeo4W/lib conftest.c
-lmysqlclient   1>&5
c:\OSGeo4W\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe:
cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 7932 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_query();

int main() {
mysql_query()
; return 0; }

Martin


-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa


More information about the grass-dev mailing list