MySQL?

Dear All,

Has anyone tried using MySQL from GNU Radio? I am just posting some
simple stuff to a MySQL database that runs fine in a stand-alone C
program. It builds fine in GNU Radio, by including <mysql.h>, but there
is a swig problem on running in GNU Radio Companion

“ImportError: /usr/local/lib/libgnuradio-trl.so: undefined symbol:
mysql_init”

Presumably I need to add some libraries to the CMakeLists.txt, or
similar?

Thanks in advance!

David


David Halls Ph.D.
Research Engineer
Toshiba Research Europe Limited
32 Queen Square, Bristol, BS1 4ND, UK
Tel: +44 (0) 117 906 0790


NOTE: The information in this email and any attachments may be
confidential and/or legally privileged. This message may be read, copied
and used only by the intended recipient. If you are not the intended
recipient, please destroy this message, delete any copies held on your
system and notify the sender immediately.

Toshiba Research Europe Limited, registered in England and Wales
(2519556). Registered Office 208 Cambridge Science Park, Milton Road,
Cambridge CB4 0GZ, England. Web: www.toshiba.eu/research/trl

David,

is the MySQL include in any of your public headers, and does it need to
be? It might be SWIG is picking up stuff you don’t actually want to pick
up.

You can also tell SWIG to ignore stuff, have you checked that?

M

Hi Martin, All,

It was a basic linker problem, I hadn’t correctly included the library
file in the /lib/CMakeFiles.txt, one needs to include just mysqlclient
(and the linker directory of course)

Sorry! I wonder if anyone else has use MySQL before with GNU Radio - if
not IT WORKS!!

Thanks,

DH