<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to HOWTO Compile</title><link href="https://sourceforge.net/p/chessx/wiki/HOWTO%2520Compile/" rel="alternate"/><link href="https://sourceforge.net/p/chessx/wiki/HOWTO%20Compile/feed.atom" rel="self"/><id>https://sourceforge.net/p/chessx/wiki/HOWTO%2520Compile/</id><updated>2022-02-23T17:45:43.861000Z</updated><subtitle>Recent changes to HOWTO Compile</subtitle><entry><title>Discussion for HOWTO Compile page</title><link href="https://sourceforge.net/p/chessx/wiki/HOWTO%2520Compile/?limit=25#511f" rel="alternate"/><published>2022-02-23T17:45:43.861000Z</published><updated>2022-02-23T17:45:43.861000Z</updated><author><name>Michael Brown</name><uri>https://sourceforge.net/u/dionysusmike/</uri></author><id>https://sourceforge.net5d95d66d4253556846c1e0d7a9fc12fd081df728</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have QT 5.13.2 and I want to compile ChessX.&lt;br/&gt;
In "chessx" folder, when I run:&lt;br/&gt;
C:\Qt\Qt5.13.2\5.13.2\msvc2017_64\bin\lupdate.exe chessx.pro, I get the message:&lt;br/&gt;
"cannot run compiler 'cl' " - see attached file for full message. &lt;br/&gt;
Please tell me what am I doing wrong.&lt;br/&gt;
M J Brown&lt;br/&gt;
mj37brown@gmail.com&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>HOWTO Compile modified by Jens Nissen</title><link href="https://sourceforge.net/p/chessx/wiki/HOWTO%2520Compile/" rel="alternate"/><published>2020-04-19T16:44:43.974000Z</published><updated>2020-04-19T16:44:43.974000Z</updated><author><name>Jens Nissen</name><uri>https://sourceforge.net/u/hognose/</uri></author><id>https://sourceforge.netcae7f49f45b61039d58a3a5f7b29a7bddb43d217</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;h1 id="requirements"&gt;Requirements&lt;/h1&gt;
&lt;p&gt;To compile ChessX, you need at least Qt5.13. You will also need to download ChessX source code, as described in the download section.&lt;/p&gt;
&lt;h1 id="compilation"&gt;Compilation&lt;/h1&gt;
&lt;p&gt;Compiling the source is simple. Just unpack the sources, go to source directory (chessx) and execute:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;lupdate chessx.pro&lt;br/&gt;
qmake&lt;br/&gt;
make&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;If you receice an error in make related to multimedia, you can comment out the line CONFIG += sound in chessx.pro and call make again.&lt;/p&gt;
&lt;p&gt;If the compilation is successful you should be able to run ChessX executable in release, debug or static subdirectory. It is called:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;chessx on Linux&lt;/li&gt;
&lt;li&gt;chessx.app on Mac OS&lt;/li&gt;
&lt;li&gt;chessx.exe on Windows&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id="debugging"&gt;Debugging&lt;/h1&gt;
&lt;p&gt;To enable debugging, you need to pass debug) variable to qmake:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;qmake -recursive -after CONFIG+=debug&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="static-linkage"&gt;Static Linkage&lt;/h1&gt;
&lt;p&gt;To enable static linking, you need to pass static) variable to qmake:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;qmake -recursive -after CONFIG+=static&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Static Linkage with Qt requires that you build a complete set of static Qt libraries. See the Qt homepage.&lt;/p&gt;
&lt;h1 id="issues-after-updating-xcode"&gt;Issues after updating Xcode&lt;/h1&gt;
&lt;p&gt;Every once in while Apple updates Xcode. ChessX usually won't compile afterwards:&lt;br/&gt;
Change the line&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;QMAKE_MAC_SDK = macosx10.11&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;to the current Apple SDK, call qmake and make afterwards.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>