sma-bluetooth compilation on CentOS 6.4 - success

85 views
Skip to first unread message

Hans Lammerts

unread,
Jul 6, 2013, 11:56:37 AM7/6/13
to sma-bl...@googlegroups.com
Hi,
 
Just for those that have trouble compiling smatool for CentOS 6.4, 64 bit :
 
You need to have installed :
 
bluez-lib-devel
curl-devel
mysql-devel
 
sma-bluetooth 18 compiles correctly with this command :
 
gcc -lbluetooth -lcurl -lmysqlclient -L/usr/lib64/mysql -g -o smatool smatool.c
 
Good luck !
 
Hans

Alex Ynema

unread,
Oct 28, 2013, 9:12:01 AM10/28/13
to sma-bl...@googlegroups.com
I'm having difficulty installing this.

gcc -lbluetooth -lcurl -lmysqlclient -L/usr/lib64/mysql -g -o smatool smatool.c
/usr/bin/ld: /tmp/ccBZBqRH.o: undefined reference to symbol 'floor@@GLIBC_2.2.5'
/usr/bin/ld: note: 'floor@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status

btw I'm running a Minimal Centos 6.4 x64 installation & I've installed the following to get this far.
yum install gcc bluez-libs bluez-lib-devel curl-devel mysql-devel


Is there something I've missed?

Reply all
Reply to author
Forward
0 new messages