MCNavi 0.3.1 released

Martin Jansa martin.jansa at gmail.com
Wed Sep 7 00:26:52 CEST 2011


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: Martin.Jansa at gmail.com
> > 
> > 
> 
> 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: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openmoko.org/pipermail/community/attachments/20110907/ee488d55/attachment.pgp>


More information about the community mailing list