Skip to content

T-Rex/wxModularApp

Repository files navigation

wxModularApp

Cross-Platform Modular Application (Main app + plugins) example for C++/wxWidgets

Requirements

  • Compiled shared (DLL Debug/DLL Release) version of wxWidgets. Git Master or official 3.0.x release should work fine.
  • CMake - v3.16 or later is required on all platforms. It is used for creating
    • Visual Studio projects under Windows
    • Makefiles under Linux
    • XCode projects under OS X
  • Under Windows %WXWIN% environment variable is required. Should point to wxWidgets source folder (e.g. C:\libs\wxWidgets-svn)
  • Ensure that you have only vc_dll subfolder in %WXWIN%/libs. If you have vc_lib* folders (contain static build of wxWidgets) then rename them temporary.

wxWidgets Build Commands for Linux and OS X

Debug:

configure --enable-shared --disable-static --enable-unicode --disable-compat28 --disable-final --enable-debug

Release:

configure --enable-shared --disable-static --enable-unicode --disable-compat28 --enable-final --disable-debug

Compilation under Windows

  • Open Visual Studio console ("Start menu -> VS2015 x86 Native Tools Command Prompt" or x64 native tools for x64 build)
  • Navigate to <DEMO_SOURCE_ROOT>/build folder
  • Edit cm86.bat (or cm64.bat for x64 build, or cm.bat which auto-detects the platform) if needed and put the correct CMake generator name to the command line which executes CMake. You can find the list of CMake generators in CMake GUI or using the CMake command line. For Visual Studio 2019 this will be Visual Studio 16 2019. For older versions of Visual Studio it may vary depending on Visual Studio version and target architecture.
  • Execute cm86.bat (or cm64.bat for x64 build, or cm.bat which auto-detects the platform)
  • The batch file will execute CMake and after that you will get Visual Studio project files in <DEMO_SOURCE_ROOT>/build/Win folder
  • Build the solution in Visual Studio or using msbuild

Compilation under Linux

  • Open <DEMO_SOURCE_ROOT>/build folder in console
  • Execute cmLinux.sh script
  • The script will create LinuxDebug and LinuxRelease folders with Makefiles.
  • Go to LinuxRelease (or to LinuxDebug for debug build)
  • Execute make

Compilation under OS X

  • Open <DEMO_SOURCE_ROOT>/build folder in terminal
  • Execute cm.sh script
  • The script will create XCode project in Mac subfolder
  • Go to Mac subfolder
  • Execute xcodebuild build command or build the project from XCode

About

Cross-Platform Modular Application (Main app + plugins) example for C++/wxWidgets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages