On Tue, Sep 06, 2011 at 03:19:03PM -0700, Mike Crash wrote: > > Martin Jansa wrote: > > > > On Fri, Sep 02, 2011 at 02:53:56PM -0700, Mike Crash wrote: > > Hi, > > > > configure.ac is missing check for mysql and src/osm2mcm/db_mysql.cc > > depends on it. > > > > Also hardcoded -L/-I paths ie in > > > > src/osm2mcm/Makefile.am: > > osm2mcm_LDFLAGS = -lexpat -lm -rdynamic -L/usr/lib/mysql -lmysqlclient > > > > some mysql_config magic would be nicer (at least for cross building). > > > > Thanks! > > > > Recipe added to shr-core and old OE too > > http://git.shr-project.org/git/?p=meta-smartphone.git;a=commit;h=08a33257e885a905f6a0dfabf3adfbe32f08cd3e > > http://git.openembedded.org/cgit.cgi/openembedded/commit/?id=0655368e725c6847209f6273333009917deeff0f > > > > Regards, > > > > -- > > Martin 'JaMa' Jansa jabber: [email protected] > > > > > > You're right, but I don't know how to do it (there is no pkg-config for > mysqlclient and expat), so this is actually simpler way for me ... I will > fix it in future.
for configure.ac you can check mysql_config existence and from src/osm2mcm/Makefile.am you can call: # mysql_config --cflags -I/usr/include/mysql -DHAVE_ERRNO_AS_DEFINE=1 -DUNIV_LINUX -DUNIV_LINUX # mysql_config --include -I/usr/include/mysql which will fork from OE like this: $ mysql_config --libs -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -rdynamic -L/OE/shr-core/tmp/sysroots/om-gta02/usr/lib -lmysqlclient -lz -lcrypt -lnsl -lm $ mysql_config --include -I/OE/shr-core/tmp/sysroots/om-gta02/usr/include so use right sysroot with armv4t libs instead of host Thanks -- Martin 'JaMa' Jansa jabber: [email protected]
signature.asc
Description: Digital signature
_______________________________________________ Openmoko community mailing list [email protected] http://lists.openmoko.org/mailman/listinfo/community

