[Solved] Qt 5.1.1 virgin install on Ubuntu not building. Can't find widgets/core/gui
First time using Qt.
Just installed current Qt 5.1.1 on my Ubuntu 12.04 machine, installed build-essentials prior to Qt install.
I opened a new Application/GUI project to play with. Haven't added anything to it yet so it just has its default files. I tried to build it and it throws errors:
:-1: error: skipping incompatible /home/Me/Qt5.1.1/5.1.1/gcc/lib/libQt5Widgets.so when searching for -lQt5Widgets :-1: error: cannot find -lQt5Widgets <
Does same thing for the Core/Gui files.
Decided to open an example that was included with Qt. Then built it. It also threw the same errors.
What's wrong? My extra reading said something about adding a QT += widgets line in the .pos file but that seems to be there inside a version check automatically.
I thought this was going to be working out of the box? What have I missed?
- Solved : Thought I was running 32-bit Linux but turns out to be 64-bit version. Had installed the wrong Qt version. Works fine with correct version. Doh!