Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
Hi, I'm trying to install the QT5.15.2 package using the help of BLFS 11.1 book but it won't work. When i launch ./configure for the first time i get the error:
Quote:
You don't seem to have 'make' or 'gmake' in your PATH.
after looking for the error i got that i need to do and export of a MAKE variable. So i did
Code:
export MAKE=/usr/bin/make
no w when i do ./configure i get the next error:
Quote:
+ /sources/BLFS/qt-everywhere-src-5.15.2/qtbase/configure -top-level -prefix /opt/qt5 -sysconfdir /etc/xdg -confirm-license -opensource -dbus-linked -openssl-linked -system-harfbuzz -system-sqlite -nomake examples -no-rpath -syslog
-skip qtwebengine
Creating qmake...
// Blocked C code on cloudflare
...
: No such file or directory
/sources/BLFS/qt-everywhere-src-5.15.2/qtbase/configure: line 225: /*Blocked code on cloudflare*/: No such file or directory
/sources/BLFS/qt-everywhere-src-5.15.2/qtbase/configure: line 163:
...
make: c: No such file or directory
make: c: No such file or directory
make: c: No such file or directory
/bin/sh: ligne 1: o : command not found
Done.
/sources/BLFS/qt-everywhere-src-5.15.2/qtbase/configure: line 856: /sources/BLFS/qt-everywhere-src-5.15.2/qtbase/bin/qmake: No such file or directory
When i
Code:
make -v
i get
Quote:
GNU Make 4.3
Created for x86_64-pc-linux-gnu
and i don't see any x86_64-pc-linux-gnu in qtbase/mkspecs so until now i'm thinking the issue might be coming from there?
I also installed all the required and recommended packages.
Thanks in advance for the help!
do you have symbolic link setup for sh? what does which sh show?
LFS links /bin/sh to bash.
Quote:
Originally Posted by wiigelec
have you installed all qt dependencies? the dependency tree is pretty convoluted
In my experience BLFS is very good at correctly listing immediate dependencies (which in turn will list theirs). Admittedly I've never tried to build and install anything as complicated as Qt.
In my experience BLFS is very good at correctly listing immediate dependencies (which in turn will list theirs). Admittedly I've never tried to build and install anything as complicated as Qt.
i actually built qt5 twice this weekend, once for xfce and again for gnome using blfs jhalfs. takes about 160 minutes on my dell e6510 laptop. i actually wouldn’t recommend building by hand as the dependency tree is quite convoluted with some circular dependencies.
what i would recommend is to get blfs jhalfs running and use it to build qt5 and its dependencies. what i do is select qt5 then find out what dependencies need built, then start slowly resolving them. i don’t build anything in blfs jhalfs without first understanding why, and verifying the configuration in the book, as sometimes the build scripts have stuff you don’t need and can break the build. i usually limit my blfs jhalfs build passes to less than five or so packages.
i checked line 225 in my qt5 configure script and it is a function calling awk. since you couldn’t find make and presumably can’t find awk i suspect there is a problem with your path
do you have symbolic link setup for sh? what does which sh show?
which sh shows
Code:
/usr/bin/sh
As i thought it is an architecture problem. I recompiled the kernel and i copied x64 architecture this time. And as far as it is going configure is working well.
Thanks all for your help!
In my experience, "which" is a command, which needs to be installed pretty soon during building BLFS. If it is not, very subtile problems may happen, if "which" is not found by scripts like configure, etc.
So your problem may have it's cause by not having which intstalled "early" enough on your system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.