compiling SQLite3 in Ubuntu

Please post support and help requests here.
Diablo550
Posts: 3
Joined: 29 Jul 2017, 03:45

compiling SQLite3 in Ubuntu

Postby Diablo550 » 13 Aug 2017, 03:38

In Ubuntu, what is the correct method to compile and link SQL using the POCO supplied SQL source files?

under windows, I just had to point the include folders and it worked.

I am totally stuck here, everything else works on both platforms :)


here is the method so far;


Code: Select all

sudo apt-get install build-essential
sudo apt-get install libssl-dev
sudo apt-get install libmysqlclient-dev

cd poco-1.7.8p3-all/
./configure --sqlite-thread-safe=2 --omit=Data/ODBC,Data/MySQL,CppUnit/WinTestRunner --static --no-samples --no-tests
make
sudo make install


Result:
g++ -o server.run server.o tables.o -lPocoUtil -lPocoXML -lPocoNet -lPocoJSON -lPocoFoundation  -lPocoData -pthread
server.o: In function `main':
server.cpp:(.text+0xb50): undefined reference to `Poco::Data::SQLite::Connector::registerConnector()'
tables.o: In function `init_Table_list()':
tables.cpp:(.text+0x4d2): undefined reference to `Poco::Data::SQLite::Connector::registerConnector()'
collect2: error: ld returned 1 exit status

Diablo550
Posts: 3
Joined: 29 Jul 2017, 03:45

Re: compiling SQLite3 in Ubuntu

Postby Diablo550 » 23 Aug 2017, 02:15

Fixed by his command line:

g++ -o server.run server.o tables.o -lPocoUtil -lPocoXML -lPocoNet -lPocoJSON -lPocoFoundation -lPocoData -lPocoDataSQLite -ldl -pthread


Return to “Support”

Who is online

Users browsing this forum: No registered users and 5 guests