Posted inInformation Technology

That Weird SQLite Error from Qt configure

A YABU is a YABU is a YABU. That’w what you keep telling yourself. Some day it “might” even be true, but, I wouldn’t hold my breath.

So, you’ve been building Qt from source. Say 5.9.7? Always been doing it on Ubuntu 18.04. In fact you have a setup script you cut and paste from when setting up new machines. It’s worked flawlessly multiple times. A monkey could set up a new machine . . . right?

You trust your configure command completely.

Then you move to another machine. This one has KDE Neon, but it is current, and based on Ubuntu 18.04 so you blindly bludgeon forward. Ahhhh, sucks to be you!

'.ROR: Unknown command line option '-sql-sqlite

Nice informative error message isn’t it? It’s even nicer when it pukes on the -qt-sqlite option because that is specifically listed in the –help output.

What this error message is doing a piss poor job of telling you is that you need a few sqlite packages installed for KDE Neon which were “just magically there” in your Ubuntu environments.

grep " install " /var/log/dpkg.log
...
2018-12-28 14:19:41 install libsqlite3-dev:amd64 <none> 3.22.0-1
2018-12-28 14:19:41 install libvsqlitepp3v5:amd64 <none> 0.3.13-4
2018-12-28 14:19:41 install libvsqlitepp-dev:amd64 <none> 0.3.13-4

I don’t know if you need all 3 of those or not. I went into synaptic and search for sqlite. Those two -dev files looked important. Once installed, the problem went away.

 

Roland Hughes started his IT career in the early 1980s. He quickly became a consultant and president of Logikal Solutions, a software consulting firm specializing in OpenVMS application and C++/Qt touchscreen/embedded Linux development. Early in his career he became involved in what is now called cross platform development. Given the dearth of useful books on the subject he ventured into the world of professional author in 1995 writing the first of the "Zinc It!" book series for John Gordon Burke Publisher, Inc.

A decade later he released a massive (nearly 800 pages) tome "The Minimum You Need to Know to Be an OpenVMS Application Developer" which tried to encapsulate the essential skills gained over what was nearly a 20 year career at that point. From there "The Minimum You Need to Know" book series was born.

Three years later he wrote his first novel "Infinite Exposure" which got much notice from people involved in the banking and financial security worlds. Some of the attacks predicted in that book have since come to pass. While it was not originally intended to be a trilogy, it became the first book of "The Earth That Was" trilogy:
Infinite Exposure
Lesedi - The Greatest Lie Ever Told
John Smith - Last Known Survivor of the Microsoft Wars

When he is not consulting Roland Hughes posts about technology and sometimes politics on his blog. He also has regularly scheduled Sunday posts appearing on the Interesting Authors blog.