File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed
Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -239,16 +239,32 @@ make
239239This guide assumes you have Homebrew installed
240240
241241##### 1. Install Qt
242+
243+ ###### Intel
244+
242245```
243246brew 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```
248263cd <DoomRunner directory>
249264mkdir build-dynamic
250265cd build-dynamic
251266qmake ../DoomRunner.pro -spec macx-g++ "CONFIG+=release"
267+ make clean
252268make
253269```
254270
Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments