On 01/28/2017 06:17 PM, Bruce Dubbs wrote:
[email protected] wrote:

I receive 'bash: qmake: command not found' when compiling qtwebkit. I
compiled qt in /usr and /usr/bin/qt5/qmake exists. Qtwebkit compiles if I
enter /usr/bin/qt5/qmake.

Also, I receive 'find: '/lib/pkgconfig': No such file or directory.'  My
$QT5PREFIX variable exists from compiling qt, but I have no $QT5DIR
variable and am confused where $QT5DIR is set. Setting QT5DIR to /usr
eliminates the pkgconfig error.

So, by using /usr/bin/qt5/qmake and setting QT5DIR to /usr qtwebkit
compiles successfully.  Where have I made a wrong turn?

Add /usr/bin/qt5 to your PATH. I suspect you may also need to add /usr/lib/qt5 to /etc/ld/so.conf, but I'm not sure.

Note that I have no experience building qt in /usr.

  -- Bruce

I reinstalled qt from scratch in the recommended /opt/qt5 and received the same results.

I still don't see where QT5DIR is being set. I wonder if that's meant to be QT5PREFIX, which is set in the qt documentation. Install Directories in the QtWebKit documentation refer to QT5PREFIX, not QT5DIR. Regardless, should the variable be set in the QtWebKit documentation?

Again, I've successfully compiled qt under both methods but just don't understand my errors in qtwebkit. I've successfully compiled qtwebkit under both methods using the minor adjustments I mentioned. I did set QT5DIR to /opt/qt-5.7.0 with the /opt/qt5-5.7.0 method.

I realize /opt/qt5 is recommended, but /usr installation instructions are presented. I chose /usr as the program I'm compiling complains with the /opt/qt5 option.
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to