<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to MacBuild</title><link>https://sourceforge.net/p/xtrkcad-fork/wiki/MacBuild/</link><description>Recent changes to MacBuild</description><atom:link href="https://sourceforge.net/p/xtrkcad-fork/wiki/MacBuild/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 09 Aug 2025 15:51:51 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/xtrkcad-fork/wiki/MacBuild/feed" rel="self" type="application/rss+xml"/><item><title>MacBuild modified by strobelight</title><link>https://sourceforge.net/p/xtrkcad-fork/wiki/MacBuild/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v9
+++ v10
@@ -1,6 +1,8 @@
 ## **MacOSX** Build

 ### Prerequisites
+
+_Note: these steps are known to work on an Intel MAC running 14.7 (Sonoma)_

 To build, you will need to install the following dependencies - I recommend using &amp;lt;www.macports.org&amp;gt; to obtain them:
 * gtk2
&amp;lt;/www.macports.org&amp;gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">strobelight</dc:creator><pubDate>Sat, 09 Aug 2025 15:51:51 -0000</pubDate><guid>https://sourceforge.netf5ce832a5e6eaa80955ca3430bb1d9598d470324</guid></item><item><title>MacBuild modified by strobelight</title><link>https://sourceforge.net/p/xtrkcad-fork/wiki/MacBuild/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v8
+++ v9
@@ -27,15 +27,17 @@

 ```
 cd ~
-mkdir src
+mkdir -p src
 cd src
-# clone source from options branch or tag into xtrkcad directory
+# this is to make sure cloning into non-existant directory, skip if using a different name
+rm -rf xtrkcad
+# clone source from options branch or tag into xtrkcad directory, change name if desired
 hg clone http://hg.code.sf.net/p/xtrkcad-fork/xtrkcad  [-u "V5.3.0 GA" ]  xtrkcad
-cd xtrkcad
 ```

 Pull the branch you need if you didn't use the -u option on clone
 ```
+cd ~/src/xtrkcad
 hg update branch-name
 ```

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">strobelight</dc:creator><pubDate>Sat, 09 Aug 2025 15:43:20 -0000</pubDate><guid>https://sourceforge.netac3cd2064e031bc8577aaa9559c75b3fe716c050</guid></item><item><title>MacBuild modified by strobelight</title><link>https://sourceforge.net/p/xtrkcad-fork/wiki/MacBuild/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v7
+++ v8
@@ -26,6 +26,7 @@
 Create a source library directory and clone the Mercurial repo into it (I assume you create an src directory and you put an xtrkcad directory under it

 ```
+cd ~
 mkdir src
 cd src
 # clone source from options branch or tag into xtrkcad directory
@@ -80,4 +81,4 @@
 mkdir share
 ./xtrkcad-bundler.sh -i ~/install/xtrkcad -v [version]
 ```
-The TARed DMG will be in the ~/install/xtrkcad/bin folder with the name xtrkcad-OSX-[version].dmg.tar.gz
+The TARed DMG will be in the ~/install/xtrkcad/bin folder with the name `xtrkcad-OSX-[version].dmg.tar.gz`
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">strobelight</dc:creator><pubDate>Sat, 09 Aug 2025 15:36:25 -0000</pubDate><guid>https://sourceforge.net88df7ffaec29a89319bc779b0f7a81c66d09a4bd</guid></item><item><title>MacBuild modified by strobelight</title><link>https://sourceforge.net/p/xtrkcad-fork/wiki/MacBuild/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -25,55 +25,59 @@

 Create a source library directory and clone the Mercurial repo into it (I assume you create an src directory and you put an xtrkcad directory under it

-&amp;gt;
-&amp;gt;mkdir src
-&amp;gt;cd src
-&amp;gt;hq clone sourceforge-repo xtrkcad
-&amp;gt;cd xtrkcad
+```
+mkdir src
+cd src
+# clone source from options branch or tag into xtrkcad directory
+hg clone http://hg.code.sf.net/p/xtrkcad-fork/xtrkcad  [-u "V5.3.0 GA" ]  xtrkcad
+cd xtrkcad
+```

-Pull the branch you need
-&amp;gt;
-&amp;gt;hg update branch-name
-
+Pull the branch you need if you didn't use the -u option on clone
+```
+hg update branch-name
+```

 ### Build

-Create a build and install directories
-&amp;gt;
-&amp;gt;cd ~
-&amp;gt;mkdir build
-&amp;gt;cd build
-&amp;gt;mkdir xtrkcad
-&amp;gt; cd ~
-&amp;gt;mkdir install
-&amp;gt;cd install
-&amp;gt;mkdir xtrkcad
+#### Create build and install directories
+```
+cd ~
+mkdir -p build/xtrkcad
+mkdir -p install/xtrkcad/bin
+```

-#### Configure the build
+#### Configure and build

-1) If you installed the GTK libraries from MacPorts you need to set export LIBRARY_PATH="/opt/local/lib"
-2) Open the CMake App, set the build directory to ~/build/xtrkcad, and the install directory, set the build type to "Debug" and do ##Configure##. 
-3) Select default OSX toolchain options, then make sure GTK is selected redo ##Configure## and ##Generate##.
-
-Make and install the code using a Terminal
-&amp;gt;
-&amp;gt;make
-&amp;gt;make install
+```
+export LIBRARY_PATH=/opt/local/lib
+cmake \
+      -DCMAKE_BUILD_TYPE=Debug \
+      -DCMAKE_INSTALL_PREFIX=~/install/xtrkcad \
+      -S ~/src/xtrkcad -B ~/build/xtrkcad
+cd ~/build/xtrkcad
+make
+make install
+```

 #### Run

-Remember that to run **XTrackCAD** on OSX, you must have **XQuartz** installed - see MacInstall. Once you have this, you can navigate to the install directory, navigate to the bin directory inside it and then just run the binary.
+Remember that to run **XTrackCAD** on OSX, you must have **XQuartz** installed - see [MacInstall]. Once you have this, you can navigate to the install directory, navigate to the bin directory inside it and then just run the binary. _Note: ensure the XQuartz version is compatible with the OSX version._

 If you want to interactively debug, you can use LLDB, the Mac debugger.
-&amp;gt;
-&amp;gt;lldb xtrkcad
-&amp;gt;&amp;gt;r
+
+```
+lldb xtrkcad
+&amp;gt;r
+```

 #### Package

 To package the app for distribution
-&amp;gt;
-&amp;gt;cd [builddirectory]/distribution/osx/gtk-bundle
-&amp;gt;bash xtrkcad-bundle -i [Cmake_install_directory] -v [version]
-
-The TARed DMG will be in the [builddirectory]/bin folder with the name xtrkcad-OSX-[version].dmg.tar.gz
+```
+cd ~/build/xtrkcad/distribution/osx/gtk-bundle
+mkdir bin
+mkdir share
+./xtrkcad-bundler.sh -i ~/install/xtrkcad -v [version]
+```
+The TARed DMG will be in the ~/install/xtrkcad/bin folder with the name xtrkcad-OSX-[version].dmg.tar.gz
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">strobelight</dc:creator><pubDate>Sat, 09 Aug 2025 15:27:20 -0000</pubDate><guid>https://sourceforge.netd2656404d79ffa72208b2ae9a2c940613c3ba39a</guid></item><item><title>MacBuild modified by Martin Fischer</title><link>https://sourceforge.net/p/xtrkcad-fork/wiki/MacBuild/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Martin Fischer</dc:creator><pubDate>Sat, 26 Apr 2025 14:48:05 -0000</pubDate><guid>https://sourceforge.netbe125fd3779d5a70f1c27aabbff3a920c07384c3</guid></item><item><title>MacBuild modified by Adam Richards</title><link>https://sourceforge.net/p/xtrkcad-fork/wiki/MacBuild/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -5,6 +5,12 @@
 To build, you will need to install the following dependencies - I recommend using &amp;lt;www.macports.org&amp;gt; to obtain them:
 * gtk2
 * libzip
+* freeimage
+* cmocka
+* mxml
+* inkscape
+* zlib
+* dbus - this is actually a runtime dependency

 If you intend to build to use the internal webhelp (and not either a browser or the AppleHelp system) you will need
 * webkit2-gtk
&amp;lt;/www.macports.org&amp;gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adam Richards</dc:creator><pubDate>Sat, 27 Apr 2024 04:42:26 -0000</pubDate><guid>https://sourceforge.netedfdc9345f7b857fc36af59b43c7ea15a036cb15</guid></item><item><title>MacBuild modified by Russell Shilling</title><link>https://sourceforge.net/p/xtrkcad-fork/wiki/MacBuild/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Russell Shilling</dc:creator><pubDate>Thu, 28 Mar 2024 20:14:08 -0000</pubDate><guid>https://sourceforge.net0b84dbf1ecf86b4b4903e0e67bded7efb2d8672b</guid></item><item><title>MacBuild modified by Russell Shilling</title><link>https://sourceforge.net/p/xtrkcad-fork/wiki/MacBuild/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -70,8 +70,4 @@
 &amp;gt;cd [builddirectory]/distribution/osx/gtk-bundle
 &amp;gt;bash xtrkcad-bundle -i [Cmake_install_directory] -v [version]

-
 The TARed DMG will be in the [builddirectory]/bin folder with the name xtrkcad-OSX-[version].dmg.tar.gz
-
-
-(Devel)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Russell Shilling</dc:creator><pubDate>Thu, 28 Mar 2024 16:30:48 -0000</pubDate><guid>https://sourceforge.net12406fd48747b6292aa98087588e45ca12c97e86</guid></item><item><title>MacBuild modified by Russell Shilling</title><link>https://sourceforge.net/p/xtrkcad-fork/wiki/MacBuild/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -2,7 +2,7 @@

 ### Prerequisites

-To build, you will need to install the following dependencies - I recommend using [www.macports.org] to obtain them:
+To build, you will need to install the following dependencies - I recommend using &amp;lt;www.macports.org&amp;gt; to obtain them:
 * gtk2
 * libzip

@@ -74,4 +74,4 @@
 The TARed DMG will be in the [builddirectory]/bin folder with the name xtrkcad-OSX-[version].dmg.tar.gz


-CategoryDevel
+(Devel)
&amp;lt;/www.macports.org&amp;gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Russell Shilling</dc:creator><pubDate>Thu, 28 Mar 2024 16:29:34 -0000</pubDate><guid>https://sourceforge.net74c9065639ad5d8caf32bd997a6cc2f2dcd274ca</guid></item><item><title>MacBuild modified by Russell Shilling</title><link>https://sourceforge.net/p/xtrkcad-fork/wiki/MacBuild/</link><description>&lt;div class="markdown_content"&gt;&lt;h2 id="macosx-build"&gt;&lt;strong&gt;MacOSX&lt;/strong&gt; Build&lt;/h2&gt;
&lt;h3 id="prerequisites"&gt;Prerequisites&lt;/h3&gt;
&lt;p&gt;To build, you will need to install the following dependencies - I recommend using &lt;span&gt;[www.macports.org]&lt;/span&gt; to obtain them:&lt;br/&gt;
* gtk2&lt;br/&gt;
* libzip&lt;/p&gt;
&lt;p&gt;If you intend to build to use the internal webhelp (and not either a browser or the AppleHelp system) you will need&lt;br/&gt;
* webkit2-gtk&lt;/p&gt;
&lt;p&gt;You will also need to install these tools &lt;br/&gt;
* Mercurial SCM - I recommend the &lt;strong&gt;TortoiseHg&lt;/strong&gt; client which includes the Hg code &lt;br/&gt;
* CMake UI &lt;br/&gt;
* OSX compilers and other XCode command line developer tools that you can obtain for free from the App Store. Look for &lt;strong&gt;XCode Command Line Tools&lt;/strong&gt; &lt;/p&gt;
&lt;p&gt;If you want to package an .app file and make it into a .dmg so others can install it, you will also need to install this dependency with macports, or the equivalent&lt;br/&gt;
* gtk-mac-bundler&lt;/p&gt;
&lt;p&gt;Create a source library directory and clone the Mercurial repo into it (I assume you create an src directory and you put an xtrkcad directory under it&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;mkdir src&lt;br/&gt;
cd src&lt;br/&gt;
hq clone sourceforge-repo xtrkcad&lt;br/&gt;
cd xtrkcad&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Pull the branch you need&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;hg update branch-name&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3 id="build"&gt;Build&lt;/h3&gt;
&lt;p&gt;Create a build and install directories&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;cd ~&lt;br/&gt;
mkdir build&lt;br/&gt;
cd build&lt;br/&gt;
mkdir xtrkcad&lt;br/&gt;
cd ~&lt;br/&gt;
mkdir install&lt;br/&gt;
cd install&lt;br/&gt;
mkdir xtrkcad&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h4 id="configure-the-build"&gt;Configure the build&lt;/h4&gt;
&lt;p&gt;1) If you installed the GTK libraries from MacPorts you need to set export LIBRARY_PATH="/opt/local/lib"&lt;br/&gt;
2) Open the CMake App, set the build directory to ~/build/xtrkcad, and the install directory, set the build type to "Debug" and do ##Configure##. &lt;br/&gt;
3) Select default OSX toolchain options, then make sure GTK is selected redo ##Configure## and ##Generate##.&lt;/p&gt;
&lt;p&gt;Make and install the code using a Terminal&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;make&lt;br/&gt;
make install&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h4 id="run"&gt;Run&lt;/h4&gt;
&lt;p&gt;Remember that to run &lt;strong&gt;XTrackCAD&lt;/strong&gt; on OSX, you must have &lt;strong&gt;XQuartz&lt;/strong&gt; installed - see MacInstall. Once you have this, you can navigate to the install directory, navigate to the bin directory inside it and then just run the binary.&lt;/p&gt;
&lt;p&gt;If you want to interactively debug, you can use LLDB, the Mac debugger.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;lldb xtrkcad&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;r&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;h4 id="package"&gt;Package&lt;/h4&gt;
&lt;p&gt;To package the app for distribution&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;cd &lt;span&gt;[builddirectory]&lt;/span&gt;/distribution/osx/gtk-bundle&lt;br/&gt;
bash xtrkcad-bundle -i &lt;span&gt;[Cmake_install_directory]&lt;/span&gt; -v &lt;span&gt;[version]&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The TARed DMG will be in the &lt;span&gt;[builddirectory]&lt;/span&gt;/bin folder with the name xtrkcad-OSX-&lt;span&gt;[version]&lt;/span&gt;.dmg.tar.gz&lt;/p&gt;
&lt;p&gt;CategoryDevel&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Russell Shilling</dc:creator><pubDate>Thu, 28 Mar 2024 01:26:23 -0000</pubDate><guid>https://sourceforge.net0a3a1d1bdbfdbb0bb86ea7bb0cfeb08d2084f488</guid></item></channel></rss>