What is POCO

  

POCO installed on CentOS7?
View official website description: Modern, powerful open source C++ class libraries and frameworks for building network- and internet-based applications that run on desktop, server, mobile and embedded systems.

Download address

Strong It is recommended that the only download address is the official website. Don't save money on some domestic sites. The address is: (Unfortunately, this disabled website posted a blog, not to publish the address. The official can only search for it.)

Installation process
There are many installation examples on the Internet, but I am According to those methods implemented in CentOS7, there is always a problem. So play your own spirit of exploration, finally follow the steps below to get it, record it for yourself and friends reference

Step 1: Install MySQL and ODBC

# yum -y install unixODBC# yum -y install unixODBC-devel# yum -y install mysql# yum -y install mysql-devel If you do not install, you need to declare ignore when installing POCO. The specific steps to see later. Step 2: Install POCO
# gunzip poco-XYtar.gz# tar -xf poco-XYtar# cd poco-XY# ./configure# gmake -s In the above steps, you have assumed that the first step is to install MySQL. And ODBC, if the user does not install, you need to declare this step in the ./configure specified directory. Parameter explanation: --omit exclude (not compiled), --prefix installation path, command sample (prefix part can not be written): 
# ./configure --omit=Data/ODBC,Data/SQLite -- Prefix=/usr --static --shared If there is no --static --shared The default is shared Do not compile static library Attach a piece of experience from the network: If you use static library under x64 system, remember to add -fPIC, Dynamic library does not need . ./configure --omit=Data/ODBC, Data/SQLite --prefix=/usr --cflags=-fPIC --static above, do not forget the last command: 
# gmake -s Install At this point, the installation of POCO on CentOS7 ended successfully.
Copyright © Windows knowledge All Rights Reserved