[email protected] wrote:
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.

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.

On the qt5 page:

cat > /etc/profile.d/qt5.sh << "EOF"
# Begin /etc/profile.d/qt5.sh

QT5DIR=/opt/qt5

pathappend $QT5DIR/bin           PATH
pathappend $QT5DIR/lib/pkgconfig PKG_CONFIG_PATH

export QT5DIR

# End /etc/profile.d/qt5.sh
EOF

You probably need to source that before building qtwebkit.

  -- Bruce


--
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