Code compile error

Post Reply
svarun
Posts: 12
Joined: Tue Apr 25, 2017 5:45 pm

Code compile error

Post by svarun » Thu Sep 14, 2017 1:26 am

when i try to Run ./build.sh to compile supla-server i end up getting following error..

Building file: ../src/db.cpp
Invoking: Cross G++ Compiler
g++ -D__OPEN_SSL=1 -I/usr/include/mysql -O3 -Wall -c -fmessage-length=0 -fstack-protector-all -MMD -MP -MF"src/db.d" -MT"src/db.d" -o "src/db.o" "../src/db.cpp"
../src/db.cpp:18:23: fatal error: my_global.h: No such file or directory
#include <my_global.h>
^
compilation terminated.
src/subdir.mk:100: recipe for target 'src/db.o' failed
make: *** [src/db.o] Error 1
make: Leaving directory '/usr/lib/supla-core/supla-server/Release'
nexgen@server:/usr/lib/supla-core/supla-server$

can anyone help please

Thanks

pzygmunt
Posts: 2490
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Re: Code compile error

Post by pzygmunt » Thu Sep 14, 2017 7:47 am

apt-get install libmysqlclient-dev

svarun
Posts: 12
Joined: Tue Apr 25, 2017 5:45 pm

Re: Code compile error

Post by svarun » Thu Sep 14, 2017 2:03 pm

Thanks Sir, that problem has resolved but my client are not connecting to server, though my devices are able to connect to server.

i have made the changes in config.cfg not no luck.

Please advice, Thanks.

pzygmunt
Posts: 2490
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Re: Code compile error

Post by pzygmunt » Thu Sep 14, 2017 4:01 pm

You must use ssl compiled without flag no-ssl2

viewtopic.php?f=4&t=2215&p=10740&hilit= ... ssl#p10740

Post Reply