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


That certainly works, as does rebooting or a new login.  However, all
three methods rely on a file generated when compiling qt. There's no
mention of executing that file in the qt or QtWebKit documentation that I
see.

It seems the documentation is missing a step like
'PATH=$PATH:/usr/bin/qt5' or the opt equivalent if that option was
chosen.  QtWebKit compiles for me with that step.  Without, qmake isn't
found, even though I use 'SAVEPATH=$PATH' and 'export PATH=$PWD/bin:$PATH.'

What am I missing?

I guess you are missing 'source /etc/profile.d/qt5.sh' after you finished qt5 and before you rebooted. Note that if you have multiple terminals open, the source command needs to be done in each terminal (or at least the in the ones where you need qt).

I'll also note that if you log in via a display manager like lxdm, then /etc/profile (and all the scripts in /etc/profile.d/) are NOT run by default when you bring up a virtual terminal unless you put some logic in ~/.bashrc to do so.

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