Skip to content

Commit 2db4de4

Browse files
committed
Merge branch 'master' of github.com:Youda008/DoomRunner
2 parents 3453733 + 21a2e0c commit 2db4de4

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,16 +239,32 @@ make
239239
This guide assumes you have Homebrew installed
240240

241241
##### 1. Install Qt
242+
243+
###### Intel
244+
242245
```
243246
brew install qt
244247
```
245248

246-
##### 2. Build the project
249+
###### M1 (Arm)
250+
251+
Building for Qt 6 does not currently work on M1 (Arm) so you need to use Qt 5
252+
253+
```
254+
brew install qt@5
255+
export PATH="/opt/homebrew/opt/qt@5/bin:$PATH"
256+
export LDFLAGS="-L/opt/homebrew/opt/qt@5/lib"
257+
export CPPFLAGS="-I/opt/homebrew/opt/qt@5/include"
258+
```
259+
260+
##### 3. Build the project
261+
247262
```
248263
cd <DoomRunner directory>
249264
mkdir build-dynamic
250265
cd build-dynamic
251266
qmake ../DoomRunner.pro -spec macx-g++ "CONFIG+=release"
267+
make clean
252268
make
253269
```
254270

Sources/MainWindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,11 +1530,11 @@ void MainWindow::showMapPackDesc( const QModelIndex & index )
15301530
}
15311531

15321532
// get the corresponding file with txt suffix
1533-
QFileInfo mapDescFileInfo = fs::replaceFileSuffix( mapDataFileInfo.filePath(), "txt" );
1533+
QFileInfo mapDescFileInfo(fs::replaceFileSuffix( mapDataFileInfo.filePath(), "txt" ));
15341534
if (!mapDescFileInfo.isFile())
15351535
{
15361536
// try TXT in case we are in a case-sensitive file-system such as Linux
1537-
mapDescFileInfo = fs::replaceFileSuffix( mapDataFileInfo.filePath(), "TXT" );
1537+
mapDescFileInfo = QFileInfo(fs::replaceFileSuffix( mapDataFileInfo.filePath(), "TXT" ));
15381538
if (!mapDescFileInfo.isFile())
15391539
{
15401540
reportUserError( this, "Cannot open map description",

0 commit comments

Comments
 (0)