From 491087a6c141e5da6c2a76089f8061cd58dbb394 Mon Sep 17 00:00:00 2001 From: Shaun Reed Date: Sat, 7 Feb 2026 10:35:59 -0500 Subject: [PATCH] Add environment variables to config.toml --- .cargo/config.toml | 5 ++++- README.md | 11 ++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index a12f1c0..6a03545 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,3 +1,6 @@ - [build] rustflags = [ "-C", "link-arg=-fuse-ld=lld", ] + +[env] +QMAKE="/opt/Qt/6.7.3/gcc_64/bin/qmake6" +LD_LIBRARY_PATH="/opt/Qt/6.7.3/gcc_64/lib" diff --git a/README.md b/README.md index 133b943..36cb94f 100644 --- a/README.md +++ b/README.md @@ -19,13 +19,14 @@ And of course, [Rust](https://www.rust-lang.org/tools/install). curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh ``` -This project requires at least Qt 6.7. To check your Qt version +This project requires at least Qt 6.7.3 To check your Qt version ```bash qmake6 -query QT_VERSION ``` Use the [Qt Installer](https://www.qt.io/development/download) to download and install the Qt version of your choice. +If the installer is run with `sudo`, the default install location is `/opt/Qt`, otherwise Qt will be installed into your home directory. **You must set the QMAKE variable before building clide**. This should be a path to `qmake6` binary installed on your system. The following export is the default installation path for Qt 6.7 on Ubuntu 24.04 @@ -35,6 +36,14 @@ export QMAKE=$HOME/Qt/6.7.3/gcc_64/bin/qmake6 export LD_LIBRARY_PATH=$HOME/Qt/6.7.3/gcc_64/lib ``` +Though environment variables set using `export` will take precedence, these can also be set in [.cargo/config.toml](./.cargo/config.toml) for conveinence + +```toml +[env] +QMAKE="/opt/Qt/6.7.3/gcc_64/bin/qmake6" +LD_LIBRARY_PATH="/opt/Qt/6.7.3/gcc_64/lib" +``` + ## Usage To install and run clide