Skip to content

zzzhr1990/qingzhenyun-lite-cf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qingzhenyun application for cross platform

Simple sample wxWidgets CMake project for all platforms, especially using Vcpkg and Visual Studio on Windows

Overview

There has not been an almost standard way to organize C++ development packages on Windows. On Linux or MasOS it's much simpler. Microsoft Vcpkg is quite a good package manager for Windows, that can help a lot. It was hard to get started with wxWidgets and it could take hours to everything set up. Here is simple sample project for a quick start.

Prerequisites:

  • Windows 10, 8.1, 7, Linux, or MacOS
  • Visual Studio 2017 or Visual Studio 2015 Update 3 (on Windows)
  • Git
  • CMake

Quick Start

Windows

Visual Studio and Vcpkg

First, install Vcpkg according to instructions. You can install wxWidgets all available targets:

.\vcpkg install wxwidgets:x64-windows
.\vcpkg install wxwidgets:x64-windows-static
.\vcpkg install wxwidgets:x86-windows
.\vcpkg install wxwidgets:x86-windows-static

Batch file buildmsvc.bat is using environment variable VCPKG. Set it according to your Vcpkg directory location before running:

SET VCPKG=C:\VCPKG

Then clone git directory and build:

git clone https://github.com/zzzhr1990/qingzhenyun-lite-cf.git
cd qingzhenyun-lite-cf
buildmsvc.bat

MSYS2

Install build environment and all dependencies. Here is example how to install cmake and wxWidgets:

pacman -S mingw-w64-i686-cmake mingw-w64-x86_64-cmake
pacman -S mingw-w64-i686-wxWidgets mingw-w64-x86_64-wxWidgets

Then clone git directory and build:

git clone https://github.com/zzzhr1990/qingzhenyun-lite-cf.git
cd qingzhenyun-lite-cf

In 64-bit shell run:

./buildmsys64.sh

In 32-bit shell run:

./buildmsys32.sh

Linux

Your can install wxwidgets on Ununtu Linux using command:

sudo apt-get install libwxgtk3.0-dev

Then clone git directory and build:

git clone https://github.com/zzzhr1990/qingzhenyun-lite-cf.git
cd qingzhenyun-lite-cf
chmod +x buildmaclinux.sh
./buildmaclinux.sh

Note:

If you get error warning like this:

Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1009,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1011,wx containers,compatible with 2.8).

It's better to install wxWidgets from source using:

sudo apt-get install libgtk-3-dev
./configure
make
sudo make install
sudo  ldconfig

Mac OS X

Your can just install wxwidgets using command:

brew install wxmac

Then clone git directory and build:

git clone https://github.com/zzzhr1990/qingzhenyun-lite-cf.git
cd qingzhenyun-lite-cf
chmod +x buildmaclinux.sh
./buildmaclinux.sh

About

qingzhenyun-lite-cross platform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published