Skip to content

Commit

Permalink
Update compileLinux.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro-Beirao authored Nov 26, 2024
1 parent d4071d8 commit 08c8423
Showing 1 changed file with 31 additions and 50 deletions.
81 changes: 31 additions & 50 deletions compileLinux.md
Original file line number Diff line number Diff line change
@@ -1,75 +1,56 @@
# Intructions for compiling dsda-launcher for Linux

Tested with Ubuntu LTS 20.04

___

### Tools needed:

## Qt - https://www.qt.io/download
```
Tested with Qt 6.2.2
You can install it with the Qt online installer.
If you instead use your package manager make sure you have version 6.2.2 or above (check using 'qmake -v').
All commits tested using qt6.2.0 on the latest ubuntu
```
<img width="300" alt="Screenshot 2021-06-09 at 12 44 33" src="https://user-images.githubusercontent.com/82064173/121386518-fbd48c00-c941-11eb-8abc-bc2e1e7e5a69.png"><img width="250" alt="Screenshot 2021-06-09 at 12 46 06" src="https://user-images.githubusercontent.com/82064173/121386962-33433880-c942-11eb-9528-a3923dc4ee52.png">
```
When running the installer, I recommend that you install the "Qt for desktop environment".
You could also install qt using your prefered package manager
```
<img width="400" alt="Screenshot 2021-06-09 at 10 56 12" src="https://user-images.githubusercontent.com/82064173/121387513-a351be80-c942-11eb-9962-536a66c03689.png">

## qmake
```
This comes installed with Qt, no need to do anything.
```

## make
```
make is a GNU program, it's usually preinstalled with all GNU/Linux distributions so no need to do anything here.
```
___
## Compiling

1. Download the .zip file from this repository

2. Extract it & open the folder

3. Create a "build" folder
1. Clone this repo
```
mkdir build & cd build
git clone https://github.com/Pedro-Beirao/dsda-launcher.git
```

4. Run qmake from inside of the build folder

If you installed qmake from a package manager run the following and go to step 5:-
```
qmake ..
2. Create a "build" folder inside src/
```
cd dsda-launcher
cd src
If you installed Qt with the online installer instead do this:-

To make things simple, alias 'qmake' to it's binary's path.
```
alias qmake='[PathToQt]/[version number]/gcc_64/bin/qmake'
mkdir build
cd build
```
**For example** if you installed Qt 6.2.2 in your home directory the command would be:
3. Run qmake from the build folder
```
alias qmake='/home/username/Qt/6.2.2/gcc_64/bin/qmake'
qmake6 ..
```
After that run qmake **inside the build folder**.
4. Run make
```
qmake ..
make
```

5. Run make
A basic build+install script would be
```
make
#!/bin/bash
# building
mkdir -p "./src/build"
cd "./src/build"
qmake6 ..
make
#installing
sudo mv ./dsda-launcher /bin
cd ..
sudo install -Dm644 ./icons/dsda-launcher.png "${pkgdir}"/usr/share/pixmaps/dsda-launcher.png
sudo install -Dm644 ./icons/dsda-Launcher.desktop "${pkgdir}"/usr/share/applications/dsda-Launcher.desktop
```

There you go!
You can now use the launcher.

Note: if you built **dsda-doom's** binaries but didn't install it with 'make install' (a.k.a it doesn't exist in /usr/local/bin) you will have to symlink/copy it to the build folder.

## Distributing

For distribution of the binary, you can use `linuxdeployqt` which makes an appimage with everything the users will need to run in the system.

0 comments on commit 08c8423

Please sign in to comment.