Pierre Labastie wrote:
On 08/03/2017 22:29, Bruce Dubbs wrote:
[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.
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.
Also ldconfig should be run if you install in /opt and modify ld.so.conf.
The instructions do not say so, because they assume users should know that.
Actually it does say to run ldconfig:
cat >> /etc/ld.so.conf << EOF
# Begin Qt addition
/opt/qt5/lib
# End Qt addition
EOF
ldconfig
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.
Not sure about sddm, but for lxdm, I think the
"sed -i 's:/etc/xprofile:/etc/profile:g' data/Xsession"
fixed that issue.
Thanks. I didn't know that, but I don't normally use a DM.
The command line gives me more control.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page