0

I am stucked. I am relative neewbie in Linux with some previous exp. in php programming.

I want write a script with my raspi pi 3, qt, and databases. I am unable to get database connection work.

all tutorials are counting either with cppconn, libmysqlclient(-dev), mysql.h. Non of that I am able to get on to my Raspi.

I have MariaDB installed and configured, I also installed mysql, and mysql-common. And that where I stucked. Unable to build the script in C++, because mysql.h is missing.

Can you please help me out of this situation?

Thank you!

CZBios
  • 57
  • 1
  • 10
  • 1
    Why can't you get CppConn onto your RasPi? https://dev.mysql.com/doc/connector-cpp/en/connector-cpp-installation-source.html has instructions for building from source, which should be all you need – Martin Bonner supports Monica Nov 05 '17 at 15:21
  • You are correct. I was able to download and install on raspi cppconn. I was also able to setup and get to running simple "hello world" skript. What bothers me is that I am not able to write skript on Netbeans Windows, a than run it on Rasppi. On windows I have problem with boost . – CZBios Nov 05 '17 at 18:52
  • in detail: inside of mysql_connection.h is include declaration of #include with err "there are unresolved includes inside". Do you know please what I can do about that too? Thank you – CZBios Nov 05 '17 at 18:54
  • That is a separate question. Ask it as such. (Preferably with a lot more detail, and a minimal example) – Martin Bonner supports Monica Nov 05 '17 at 20:32
  • thank you Martin. Regarding issue of building and compiling script on windows, while the same version of the script was compiled succesfully on Linux is here: https://stackoverflow.com/questions/47125796/build-c-script-with-err-mysqlcppconn-missing-no-such-file – CZBios Nov 06 '17 at 06:34

1 Answers1

0

As @Martin Bonner said - https://dev.mysql.com/doc/connector-cpp/en/connector-cpp-installation-source.html this was solution for my problem. I installed this package on Linux with apt-get install lmysqlcppconn. I also make sure that all source are in /usr/include/

CZBios
  • 57
  • 1
  • 10