Skip to content

Instantly share code, notes, and snippets.

View patrickmoffitt's full-sized avatar

Patrick Moffitt patrickmoffitt

View GitHub Profile
@patrickmoffitt
patrickmoffitt / wxWidgets3_Hello_World_Ubuntu_18_CMake.md
Created February 13, 2020 23:37
Step-by-step instructions for installing wxWidgets 3.0 and CMake on Ubuntu 18 for the purpose of building and running the Hello World! demo application.

How to Build wxWidgets 3.0 Hello World! on Ubuntu 18 with CMake

Install wxWidgets 3.0

sudo apt-get update
sudo apt-get full upgrade
sudo apt install wx-common wx3.0-doc wx3.0-examples wx3.0-headers wx3.0-i18n \
cmake libwxbase3.0-dev libwxbase3.0-dev libwxgtk-media3.0-dev \
libwxgtk-media3.0-gtk3-dev libwxgtk-webview3.0-gtk3-dev libwxgtk3.0-dev \
libwxgtk3.0-gtk3-dev libwxsqlite3-3.0-dev libcanberra-gtk-dev \
@patrickmoffitt
patrickmoffitt / wxWidgets3_Hello_World_Windows_10_Cygwin64_minGW-W64_CMake.md
Created February 13, 2020 21:15
Step-by-step instructions for installing Cygwin64, wxWidgets 3.0, minGW-W64, and CMake on Windows 10 for the purpose of building and running the Hello World! demo application.

How to Build wxWidgets 3.0 Hello World! on Windows 10 with Cygwin64, minGW-W64, and CMake

Install Cygwin64, minGW-W64, and CMake

  1. Visit https://cygwin.com/ and download the GUI installer setup-x86_64.exe
  2. The installer will want to know where to put the files. C:\cygwin64 is the best choice; all lower-case and no spaces.
  3. It will also ask where to put the package files or installation source. I like to keep mine in my Downloads folder C:\Users\Patrick\Downloads\Cygwin-Packages
  4. Next it will ask how to reach the Internet.
  5. After that it will ask you to choose a mirror. I like mirros.kernal.org. You should pick something you're familiar with.
  6. If the above went well you will see the package manager. Here you will select the packages to install. At a minimum you'll need:
  • gcc-core
@patrickmoffitt
patrickmoffitt / CMakeLists.txt
Created October 12, 2017 16:29
Clion 2017.2, CMake 3.9.2 and Boost 1.65.1 on Mac OS X Sierra 10.12.6
If your project uses a Boost library that is not header-only such as
#include "boost/filesystem.hpp"
And, you're getting link errors such as:
Undefined symbols for architecture x86_64:
...
clang: error: linker command failed with exit code 1 (use -v to see invocation)
@patrickmoffitt
patrickmoffitt / rip_cdrom.sh
Created October 8, 2017 21:52
Script to losslessly copy all the tracks on an audio CD to a folder named the same as the album. Requires Mac OS X, a cdrom drive and cdparanoia.
#!/bin/bash
# Script to losslessly copy all the tracks on an audio CD to a folder
# named the same as the album.
#
# System Requirements: Mac OS X, cdrom drive, cdparanoia.
#
# Patrick Moffitt October 8, 2017.
#
CDPARANOIA=$(which cdparanoia)