Install and Configure wxwidgets on Ubuntu

Similar documents
Install and Configure Ubuntu on a VirtualBox Virtual Machine

GUT. GUT Installation Guide

GUT. GUT Installation Guide

Zephyr Kernel Installation & Setup Manual

Linux Essentials Objectives Topics:

POSTouch Open Source Driver (OSE) Installation Guide

Parallel Programming

Introduction to Linux. Woo-Yeong Jeong Computer Systems Laboratory Sungkyunkwan University

Introduction to Linux

Android Studio Setup Procedure

Display Modules (DL-DM) Application Developer's Guide

Introduction of Linux

ecamguvcview Build & Installation Guide

Introduction to Linux

To Install and Run NCS6

Dixicoin (DXC) Masternode Guide for VPS

Non-Windows Work Flow

How to install and build an application. Giuliana Milluzzo INFN-LNS

Step by step to getting R installed on your computer

Making a Bootable Linux USB Flash Drive with the Universal USB Installer.

143a, Spring 2018 Discussion Week 4 Programming Assignment. Jia Chen 27 Apr 2018

Getting started with MPE Forth Cross Compilers

Relarium (RLM) Masternode Guide for VPS

CS234 Azure Step-by-Step Setup

CS197U: A Hands on Introduction to Unix

Communications Library Manual

Tensorflow v0.10 installed from scratch on Ubuntu 16.04, CUDA 8.0RC+Patch, cudnn v5.1 with a 1080GTX

Development Environment Embedded Linux Primer Ch 1&2

Bitnami Node.js for Huawei Enterprise Cloud

GNU/Linux Course Lesson 1. Puria Nafisi

Lab00: Software Environment Setup

Octagon Plugin Environment. using a virtual machine

Embedded Linux development made easier. User s manual. Version:

User Guide Linux for AT91CAP9-STK Version 1.1. User Guide LINUX FOR AT91CAP9-STK VERSION: 1.1 1/11

Using Ruby and irb in CSE 341 Winter 2015

DEVELOPMENT GUIDE AMOS-820. Linux BSP v

The Rockefeller University I NFORMATION T ECHNOLOGY E DUCATION & T RAINING. VPN Configuration Guide for Unix/Linux

Installing Virtualbox Guest Additions Vboxadditions on CentOS 7, Fedora 19 / 20 and RHEL 6.5 / 5.10 on Windows host

TrinityCore Documentation

Using a virtual machine and a X server to (almost) use Siril on Windows

GUIDE Development tools for Windows(10) installation... 2

SSH Deploy Key Documentation

TIBCO FTL Message Switch Installation

CS 170 Java Tools. Step 1: Got Java?

Pengwyn Documentation

Installing Ubuntu 8.04 for use with ESP-r 8 May 2009 Jon W. Hand, ESRU, Glasgow, Scotland

Overview LEARN. History of Linux Linux Architecture Linux File System Linux Access Linux Commands File Permission Editors Conclusion and Questions

Installing MediaWiki using VirtualBox

Vantron VT-M2M-TC-VM ThingWorx Setup Guide

EE516: Embedded Software Project 1. Setting Up Environment for Projects

Molecular Forecaster Inc. Forecaster 1.2 Server Installation Guide

============================================================ About this release:

The instructions in this document are applicable to personal computers running the following Operating Systems:

MAGPIE Installation Guide (version 1.0)

Quick tutorial for almabte

Embedded Linux. A Tour inside ARM's Kernel

bitcurator-access-webtools Quick Start Guide Last updated: May 8th, 2018 Release(s): and later

SQL Server vnext on Linux Ubuntu - Part 1

============================================================

TZC WALLET + HEADLESS WALLET ON LINUX. Local Wallet + PoS Headless Wallet on VPS (Ubuntu 16.04)

Parallel Programming Pre-Assignment. Setting up the Software Environment

Welcome to Kmax Installing Kmax

WFM-RPI. Software for SDR : the WFM-RPI set

Intro to Linux & Command Line

Step-by-step guide for the libradtran virtual machine. A) Installation

Systems Programming. The Unix/Linux Operating System

Working with Ubuntu Linux. Track 2 Workshop June 2010 Pago Pago, American Samoa

By: Yushi Wang Partners: Shen Yue and Yubing Xu Group 6. How to Setup Pandaboard ES Software Environment for UAV Project

a. Right-click on the Windows Menu Icon (usually on the bottom left) and select Windows PowerShell (Admin). Run the following command and reboot.

DEVELOPING OOSIML SIMULATION MODELS. Using Codeblocks

How to install and build an application

Installing VMware Player to Run Ubuntu Linux on a Windows Machine

Building CircuitPython

The instructions in this document are applicable to personal computers running the following Operating Systems:

1. Install a Virtual Machine Download Ubuntu Create a New Virtual Machine Seamless Operation between Windows an Linux...

Application Management

Setting up Ubuntu with VirtualBox

Lab 6: OS Security for the Internet of Things

User Guide Version 2.0

Lab2 - Bootloader. Conventions. Department of Computer Science and Information Engineering National Taiwan University

Getting Started with Linux Development

DEVELOPMENT GUIDE VAB-630. Android BSP v

CS 261 Recitation 1 Compiling C on UNIX

Labtainer Student Guide

GIT. A free and open source distributed version control system. User Guide. January, Department of Computer Science and Engineering

Applied Informatics POCO PRO C++ Frameworks

Lab 6: OS Security for the Internet of Things

This section contains information you should review before using this book. Any updates to the information presented here will be posted at:

DEVELOPMENT GUIDE VAB-820. Android BSP v

Configuration of Ubuntu for Notation Software Products with Wine

Bitnami MEAN for Huawei Enterprise Cloud

Embedded Linux development made easier. User s manual. Version: 3.0

Advantech General FAQ. How to change ubuntu specific kernel for quick cross test

How To Reinstall Grub In Windows 7 Without Losing Data And Programs

143a, Spring 2018 Discussion Week 4 Programming Assignment. Jia Chen 27 Apr 2018

CROSS-PLATFORM UTILITIES (CXUTILS) LIBRARY 2.0 USER DOCUMENTATION

Install and Configure ANTLR 4 on Eclipse and Ubuntu

DEVELOPMENT GUIDE VAB-820. Linux BSP v

Open CASCADE Technology. Building OCCT with WOK CONTENTS

LiveCD Customization. Creating your own Linux distribution

Transcription:

Install and Configure wxwidgets on Ubuntu Ronald Mak Department of Computer Engineering Department of Computer Science January 12, 2019 Introduction wxwidgets is a C++ library that allows you to develop and deploy interactive GUI-based applications (https://www.wxwidgets.org/). You can build the library on different platforms Windows, Mac, and Linux and therefore you can also build your applications with little or no code change on those platforms. We will download, configure, build, and install wxwidgets on Ubuntu, a variant of the Linux operation system. Ubuntu can be running directly on physical hardware, or it can be running in a virtual machine managed by VirtualBox. See https://www.ubuntu.com/. Using wxwidgets, you can develop C++ desktop applications that display windows and interactive controls such as buttons, menus, text boxes, etc. (Figure 1) Figure 1. Sample program widgets. 1

Related documents: Install and Configure VirtualBox on Windows http://www.cs.sjsu.edu/~mak/tutorials/installvirtualbox.pdf Install and Configure Ubuntu on a VirtualBox Virtual Machine http://www.cs.sjsu.edu/~mak/tutorials/installubuntu.pdf Install developer tools The Ubuntu distribution does not include developer tools such as the GNU gcc and g++ compilers and GNU. See https://help.ubuntu.com/community/installingcompilers and follow its instructions: Note: If you receive the error message Temporary failure resolving us.archive.ubuntu.com, the fix is to enter the following command: and then try again. See https://askubuntu.com/questions/884604/temporary-failure-resolving-usarchive-ubuntu-com-live-usb-rescue. After installing the developer tools, you should be able to verify that gcc, g++, and were properly installed by entering the following commands in the Ubuntu terminal (Figure 2): gcc -v g++ -v -v sudo apt-get update sudo apt-get upgrade sudo apt-get install build-essential sudo dhclient -v -4 Figure 2. Verify that gcc, g++, and were properly installed. 2

The GTK development package We will build wxwidgets on top of the GIMP Toolkit (GTK) libraries which are already installed in Ubuntu. GTK is a multi-platform toolkit for creating graphical user interfaces. See https://www.gtk.org/ We must first download and install the GTK development package. In the Ubuntu terminal, enter the following command on the command line: sudo apt-get install libgtk-3-dev Download wxwidgets Go to https://www.wxwidgets.org/downloads/ to download the latest stable release (currently 3.0.4). Click on the download link Source for Linux, macos, etc. to download the source files of the toolkit. To build and deploy the wxwidgets library on Ubuntu, we will have to configure, compile, link, and install it. The download includes shell scripts that will run in an Ubuntu terminal to perform these operations. Unzip the downloaded zip file in your home directory to create a folder named wxwidgets-version, such as wxwidgets-3.0.4. Build and install wxwidgets Enter your wxwidgets directory, create a new subdirectory gtk-build, and enter it: mkdir gtk-build cd gtk-build Configure and build the wxwidgets libraries (takes a long time): Install the libraries: The wxwidgets libraries are installed in the standard location /usr/local/lib. The wxwidgets include files are installed in the standard location /usr/local/include. Build all the sample programs (takes a long time): Build all the demo programs:../configure -with-gtk sudo su install ldconfig exit cd samples cd../demos 3

Run the example programs You should now be able to run at least the minimal sample program (Figure 3): cd../samples/minimal./minimal Figure 3. Sample program minimal. Sample program widgets demonstrates all the interactive control (Figure 1): cd../widgets./widgets 4

Demo program forty (Figure 4): cd../../demos/forty./forty Figure 4. Demo program forty. For complete build and installation instructions, see the text files in subdirectory docs/gtk of your wxwidgets directory. See also https://wiki.wxwidgets.org/compiling_and_getting_started 5