<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>install | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/tag/install/feed/" rel="self" type="application/rss+xml" />
	<link>https://learncgames.com</link>
	<description>A blog about C, programming games and my ebook(s).</description>
	<lastBuildDate>Thu, 29 Jan 2026 13:59:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://learncgames.com/wp-content/uploads/2020/03/cropped-favicon-32x32.png</url>
	<title>install | Learn C Games Programming Blog</title>
	<link>https://learncgames.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">181446779</site>	<item>
		<title>Swtching Flutter from snap to native</title>
		<link>https://learncgames.com/swtching-flutter-from-snap-to-native/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=swtching-flutter-from-snap-to-native</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Thu, 29 Jan 2026 13:56:56 +0000</pubDate>
				<category><![CDATA[Flutter]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[install]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=3501</guid>

					<description><![CDATA[<p>A recent update saw Flutter compiles on Ubuntu broken due to an issue with lld. This was only on Flutter installed under snap. To fix it, I removed Flutter and reinstalled it from Git. There were a few issues after that so I&#8217;ve documented them here. This is the process. First remove Flutter sudo snap [&#8230;]</p>
The post <a href="https://learncgames.com/swtching-flutter-from-snap-to-native/">Swtching Flutter from snap to native</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="alignleft size-full wp-image-3506" src="https://learncgames.com/wp-content/uploads/2026/01/reinstallingFlutter.png" alt="Reinstalling Flutter on Ubuntu" width="600" height="600" srcset="https://learncgames.com/wp-content/uploads/2026/01/reinstallingFlutter.png 600w, https://learncgames.com/wp-content/uploads/2026/01/reinstallingFlutter-300x300.png 300w, https://learncgames.com/wp-content/uploads/2026/01/reinstallingFlutter-150x150.png 150w, https://learncgames.com/wp-content/uploads/2026/01/reinstallingFlutter-250x250.png 250w" sizes="(max-width: 600px) 100vw, 600px" />A recent update saw Flutter compiles on Ubuntu broken due to an issue with lld. This was only on Flutter installed under snap. To fix it, I removed Flutter and reinstalled it from Git. There were a few issues after that so I&#8217;ve documented them here. This is the process.</p>
<p>First remove Flutter</p>
<pre><span class="token">sudo</span> snap remove flutter</pre>
<p>Then install it manually</p>
<p>cd ~</p>
<pre><span class="token">git</span> clone https://github.com/flutter/flutter.git -b stable</pre>
<p>Now modify .bashrc  (I prefer gedit but nano will do)</p>
<pre>nano ~/.bashrc</pre>
<p>Add this line at the end:</p>
<pre>export PATH="$PATH:$HOME/flutter/bin"</pre>
<p>Save it then do</p>
<pre>source ~/.bashrc</pre>
<p>Test the installation</p>
<pre>flutter doctor</pre>
<p>There may be some missing bits but this should fix them</p>
<pre>sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev</pre>
<p>and repeat flutter doctor until things are ok.</p>
<h3>Now I still had some issues</h3>
<p>Flutter doctor told me I had a different Dart installed.</p>
<p>So first remove the old one</p>
<pre><span class="token">sudo</span> snap remove dart</pre>
<p>Check with</p>
<pre><span class="token">which</span> dart</pre>
<p>My configuration still had the wrong dart in it. I searched these</p>
<pre>cat /etc/environment 
cat ~/.profile 
cat ~/.bash_profile 
cat /etc/bash.bashrc 
grep -r "dart" ~/.bashrc ~/.bash_profile ~/.profile /etc/environment /etc/bash.bashrc 2</pre>
<pre>then did</pre>
<pre>echo $PATH</pre>
<p>Which showed no dart references so</p>
<pre>ls -la /usr/bin/dart
which dart
sudo apt remove dart

which dart
dart --version
flutter doctor</pre>
<p>I then found that it was trying to use a snap version of cmake</p>
<pre>cd your_project
flutter clean
rm -rf build/
rm -rf linux/build/</pre>
<p>and removed Cmake cache files</p>
<pre>rm -rf linux/flutter/ephemeral/
rm linux/CMakeCache.txt 2&gt;/dev/null</pre>
<p>Finally I regenerated the build configuration</p>
<pre>flutter pub get
flutter config --enable-linux-desktop
flutter create
</pre>
<p>and all was well and after adding the correct SDK path into the project files, it finally compiled on Linux again. Phew!</p>The post <a href="https://learncgames.com/swtching-flutter-from-snap-to-native/">Swtching Flutter from snap to native</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3501</post-id>	</item>
		<item>
		<title>New tutorial on installing SDL on Linux</title>
		<link>https://learncgames.com/new-tutorial-on-installing-sdl-on-linux/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=new-tutorial-on-installing-sdl-on-linux</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Sun, 20 Dec 2020 00:00:33 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[SDL]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[install]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=2109</guid>

					<description><![CDATA[<p>Well you might say, &#8220;Don&#8217;t many Linux distros have SDL installed so people can play games?&#8221; and the answer is yes but not the development files and headers, and that&#8217;s what this shows you how to do along with a simple program to test that you can compile and run. You&#8217;ll also need clang or [&#8230;]</p>
The post <a href="https://learncgames.com/new-tutorial-on-installing-sdl-on-linux/">New tutorial on installing SDL on Linux</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:314,&quot;href&quot;:&quot;https:\/\/code.visualstudio.com&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260206135041\/https:\/\/code.visualstudio.com\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-15 15:17:00&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-19 14:46:58&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-22 19:19:24&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-26 21:24:52&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-04 09:51:03&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-08 03:38:50&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-12 08:10:49&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-15 16:30:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-19 21:45:23&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-28 21:28:03&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-05 19:08:23&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-09 20:22:00&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-14 02:11:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-18 20:38:13&quot;,&quot;http_code&quot;:503}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-18 20:38:13&quot;,&quot;http_code&quot;:503},&quot;process&quot;:&quot;done&quot;}]'></div>
<p><img decoding="async" class="alignleft size-medium wp-image-2101" src="https://learncgames.com/wp-content/uploads/2020/12/sdldemo-300x236.png" alt="SDl Demo program" width="300" height="236" srcset="https://learncgames.com/wp-content/uploads/2020/12/sdldemo-300x236.png 300w, https://learncgames.com/wp-content/uploads/2020/12/sdldemo.png 450w" sizes="(max-width: 300px) 100vw, 300px" />Well you might say, &#8220;<em>Don&#8217;t many Linux distros have SDL installed so people can play games?</em>&#8221; and the answer is yes but not the development files and headers, and that&#8217;s what this shows you how to do along with a simple program to test that you can compile and run.</p>
<p>You&#8217;ll also need clang or gcc installed but as you can do that with a simple <strong>sudo apt install clang</strong>, it&#8217;s hardly worth a tutorial on its own.</p>
<p>However you also need to install VS Code and the C/C++ extension. Go to the <a title="Link to Visual Studio Code website" href="https://code.visualstudio.com/" target="_blank" rel="noopener">VS Code website</a>, download the Linux x64 version and double click on it to install it. After that from a terminal type <strong>code a</strong>nd it&#8217;ll appear. You then need to select extensions (5<em>th icon down the left hand side</em>) and pick the Microsoft C/C++ extension and install it.</p>
<p>I&#8217;ve added a new tutorial on the Tutorials page <a title="Link to tutortial on how to install SDL on Linux" href="https://learncgames.com/how-to-install-sdl-on-linux/" target="_blank" rel="nofollow noopener">How to Install SDL on Linux</a>. That includes a link to a demo file (<em>its just above the screenshot</em>) containing all three source code files and four VS Code configuration files for VS Code.</p>
<p>This program is almost identical to the asteroids_ch25 file (<em>it draws lots of random size and colour rectangles on screen</em>) but has been upgraded for <strong>Clang 10</strong> and also what looks like a bug with search paths. There&#8217;s an extra line in Tasks.json to include the path to the SDL2 header files or you&#8217;ll get a <strong>can&#8217;t find a particular SDL header</strong> error when you compile.</p>
<p>Building code with VS Code is easy to understand once you &#8220;get&#8221; how the <strong>Folder</strong> works. I always keep the .vscode folder in there with the four C/C++ JSON configuration files and all source for that whatever it is you are compiling.  In the screenshot below (<em>from WinSCP</em>), you can see the path is <strong>/home/david/Projects/Examples</strong> and it contains the .vscode folder the three source files and demo which is the compiled code.  In VS Code I opened Examples as the <strong>Folder</strong>.</p>
<p><img decoding="async" class="alignleft size-full wp-image-2111" src="https://learncgames.com/wp-content/uploads/2020/12/vscode-folder.png" alt="VS Code Folder" width="460" height="166" srcset="https://learncgames.com/wp-content/uploads/2020/12/vscode-folder.png 460w, https://learncgames.com/wp-content/uploads/2020/12/vscode-folder-300x108.png 300w" sizes="(max-width: 460px) 100vw, 460px" /></p>
<p>&nbsp;</p>
<p>The .vscode folder is greyed out because the . means it&#8217;s normally hidden.</p>The post <a href="https://learncgames.com/new-tutorial-on-installing-sdl-on-linux/">New tutorial on installing SDL on Linux</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2109</post-id>	</item>
		<item>
		<title>Hyper-V VMs are not all the same</title>
		<link>https://learncgames.com/hyper-v-vms-are-not-all-the-same/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hyper-v-vms-are-not-all-the-same</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Thu, 19 Nov 2020 00:00:31 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Techniques]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=1839</guid>

					<description><![CDATA[<p>One of the big problems with Hyper-V and Ubuntu in particular is the clipboard or lack of it. I had 18.04 LTS installed with an X Org RDP login. This worked perfectly and I could have a full screen in my Monitor and could copy/paste.  Don&#8217;t underestimate copy/paste. It&#8217;s a real PITA if you have [&#8230;]</p>
The post <a href="https://learncgames.com/hyper-v-vms-are-not-all-the-same/">Hyper-V VMs are not all the same</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:370,&quot;href&quot;:&quot;https:\/\/github.com\/Microsoft\/linux-vm-tools\/wiki\/Onboarding:-Ubuntu&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20250828063855\/https:\/\/github.com\/Microsoft\/linux-vm-tools\/wiki\/Onboarding:-Ubuntu&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 14:33:49&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-10 17:39:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-05 11:49:50&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-31 19:26:59&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-03-31 19:26:59&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:371,&quot;href&quot;:&quot;https:\/\/askubuntu.com\/questions\/1231131\/ubuntu-20-04-full-screen-mode-resolution-in-hyper-v-is-very-small&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20251220112015\/https:\/\/askubuntu.com\/questions\/1231131\/ubuntu-20-04-full-screen-mode-resolution-in-hyper-v-is-very-small&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 14:33:52&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-05 11:49:49&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-31 19:26:59&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-03-31 19:26:59&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]'></div>
<p><img loading="lazy" decoding="async" class="alignleft size-medium wp-image-1841" src="https://learncgames.com/wp-content/uploads/2020/11/hyper-v-ubuntu-300x268.png" alt="Hyper-V Ubuntu install" width="300" height="268" srcset="https://learncgames.com/wp-content/uploads/2020/11/hyper-v-ubuntu-300x268.png 300w, https://learncgames.com/wp-content/uploads/2020/11/hyper-v-ubuntu.png 480w" sizes="auto, (max-width: 300px) 100vw, 300px" />One of the big problems with Hyper-V and Ubuntu in particular is the clipboard or lack of it. I had 18.04 LTS installed with an X Org RDP login. This worked perfectly and I could have a full screen in my Monitor and could copy/paste.  Don&#8217;t underestimate copy/paste.</p>
<p>It&#8217;s a real PITA if you have to use say WinSCP to copy files over. I think WinSCP is excellent BTW but the amount of labour saving that copy/paste has done since some genius thought it up is immeasurable. That and allowing the full screen of the monitor are two highly important things.</p>
<p>Sadly the 20.04 LTS didn&#8217;t seem to allow it. Copy/paste didn&#8217;t work between my Windows PC (<em>host</em>) and Ubuntu (<em>guest</em>). There&#8217;s nothing worse than losing a feature you&#8217;ve grown fond of.</p>
<p>If you follow <a title="Link to instructions to install 18.04 Ubuntu on Hyper-V" href="https://github.com/Microsoft/linux-vm-tools/wiki/Onboarding:-Ubuntu" target="_blank" rel="nofollow noopener noreferrer">these instructions</a> for creating a Hyper-V 18.04, you get the screen size popup but not with 20.04 LTS. For that you have to <a title="Link to full screen Ubuntu 20.04 LTS on Hyper-V" href="https://askubuntu.com/questions/1231131/ubuntu-20-04-full-screen-mode-resolution-in-hyper-v-is-very-small" target="_blank" rel="nofollow noopener noreferrer">follow these instructions</a>!</p>
<p>It&#8217;s things like this that suggest why Linux Desktop has never been that successful. You can waste many hours getting simple things working and sometimes like Copy/Paste they break between versions. And this is with Ubuntu, probably the biggest and best known and supported Distro.</p>
<p>&nbsp;</p>The post <a href="https://learncgames.com/hyper-v-vms-are-not-all-the-same/">Hyper-V VMs are not all the same</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1839</post-id>	</item>
	</channel>
</rss>
