Closed fryorcraken closed 1 month ago
Added instructions to install QT 5.15.14 from Fedora repos
@fryorcraken, based on this issue, I've updated the build instructions in Notion to include Fedora: https://www.notion.so/Building-ca1db4fb3baf4f15bab8da717832b743. Is there anything I might have missed? Are you comfortable with closing the issue so that we can maintain a single source of truth in Notion?
@fryorcraken, based on this issue, I've updated the build instructions in Notion to include Fedora: notion.so/Building-ca1db4fb3baf4f15bab8da717832b743. Is there anything I might have missed? Are you comfortable with closing the issue so that we can maintain a single source of truth in Notion?
I would add export QTDIR=/usr/lib64/qt5/
to the instructions as it may not be evident where Fedora installs QT when using dnf
.
I am not convinced
(not needed if you use Qt dev packages coming with your system)
is correct. Because qmake
is not in the default PATH
.
And maybe specify that when installing openssl manually, the env var should be
export LD_LIBRARY_PATH=$HOME/.local/lib/openssl1.1/lib:$LD_LIBRARY_PATH
export LIBRARY_PATH=$HOME/.local/lib/openssl1.1/lib:$LIBRARY_PATH
Then you can close yes.
protoc is now needed. Instructions here and in notion updated (protobuf-compiler
package).
Instructions moved to https://zealous-polka-dc7.notion.site/Building-ca1db4fb3baf4f15bab8da717832b743
Issue to describe steps to successfully compile on Fedora
Fedora 40
Install QT 5.15.2 (with online installer)
Get the online installer here Then run it:
/home/<username>/Qt
. I change it to/home/<username>/.local/lib/Qt
Select "Qt 5.15.2" and proceed to install.
then sort your exports:
OR Install QT 5.15.14 (with
dnf
from Fedora repos)Alternative method to use QT 5.15.4 that may contain some memory leak fixes:
Setup env variables:
Install necessary packages
This seems to be the necessary packages. Do comment if you think one is not needed or you needed more. I did a fresh system install recently so I think it's accurate:
Install openssl 1.1 dev libs
Openssl 1.1 is not available in Fedora since version 40. Meaning with Fedora 39 you should be fine to install openssl-dev 1.1 with
dnf
.If the make files complains about any file not found, remember you can find the package that provides it this way:
dnf provides '*/File/Copy.pm'
Then sort out your exports:
Compile
Time to build:
Troubleshooting
If you encounter any issue, maybe because you did not setup correctly. It's always good to do a clean:
Or for a more bruteforce version: