Skip to content

Instantly share code, notes, and snippets.

@proffix4
Created November 12, 2024 12:59

Revisions

  1. proffix4 created this gist Nov 12, 2024.
    84 changes: 84 additions & 0 deletions PROJECTS_WX_CROSS-SETTINGS_LINUX.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,84 @@
    CODEBLOCKS_PROJECTS_WX_SETTINGS_LINUX:

    Global compiler settings -> Toolchain executables -> Compiler's installation directory : /usr

    -- for linux build: --
    Project build options -> Compiler Settings -> Other compiler options : `wx-config --cflags`
    Project build options -> Linker Settings -> Other linker options : `wx-config --libs`
    Global compiler settings -> Toolchain executables -> C++ compiler : g++
    Global compiler settings -> Toolchain executables -> Linker for dynamic libs : g++
    Global compiler settings -> Toolchain executables -> Linker for static libs : ar

    -- for windows build: --
    Project build options -> Compiler Settings -> Other compiler options : `/usr/x86_64-w64-mingw32/bin/wx-config --cflags --unicode=yes`
    Project build options -> Linker Settings -> Other linker options : `/usr/x86_64-w64-mingw32/bin/wx-config --libs --unicode=yes` --static
    Global compiler settings -> Toolchain executables -> C++ compiler : x86_64-w64-mingw32-g++
    Global compiler settings -> Toolchain executables -> Linker for dynamic libs : x86_64-w64-mingw32-g++
    Global compiler settings -> Toolchain executables -> Linker for static libs : x86_64-w64-mingw32-ar

    ----------------------------------------------------------------------------------------------------
    CODELITE_PROJECTS_WX_SETTINGS_LINUX:

    -- for linux build: --
    Compiler -> C++ Compiler Options : -g;-O0;-Wall;$(shell wx-config --cxxflags --unicode=yes)
    Compiler -> C Compiler Options : -g;-O0;-Wall;$(shell wx-config --cxxflags --unicode=yes)
    Linker -> Linker Options : $(shell wx-config --libs --unicode=yes)
    Resources -> Resources Compiler Options : $(shell wx-config --rcflags)
    Build Settings -> gnu g++ -> Tools -> C++ Compiler : g++
    Build Settings -> gnu g++ -> Tools -> Linker : g++

    -- for windows build: --
    Compiler -> C++ Compiler Options : -g;-O0;-Wall;$(shell /usr/x86_64-w64-mingw32/bin/wx-config --cxxflags --unicode=yes)
    Compiler -> C Compiler Options : -g;-O0;-Wall;$(shell /usr/x86_64-w64-mingw32/bin/wx-config --cxxflags --unicode=yes)
    Linker -> Linker Options : $(shell /usr/x86_64-w64-mingw32/bin/wx-config --libs --unicode=yes) --static
    Resources -> Resources Compiler Options : $(shell /usr/x86_64-w64-mingw32/bin/wx-config --rcflags)
    Build Settings -> gnu g++ -> Tools -> C++ Compiler : x86_64-w64-mingw32-g++
    Build Settings -> gnu g++ -> Tools -> Linker : x86_64-w64-mingw32-g++

    ----------------------------------------------------------------------------------------------------
    DIALOGBLOCKS_PROJECTS_WX_SETTINGS_LINUX:

    Compiler configurations :
    Basic -> Shared mode : Static
    wxWidgets -> Use installed wxWidgets : Yes

    --- GCC Unicode Release: ---
    Tool configuration -> Compiler bin path : %AUTO%
    Commands -> C++ commands : g++
    Commands -> Linker commands : g++
    Flags -> Extra compile flags : %AUTO%
    Flags -> Libraries : $(shell wx-config --libs std --cxxflags)

    --- GCC Unicode Release Windows ---
    Tool configuration -> Compiler bin path : /usr/x86_64-w64-mingw32/bin
    Commands -> C++ commands : x86_64-w64-mingw32-g++
    Commands -> Linker commands : x86_64-w64-mingw32-g++
    Flags -> Extra compile flags : $(shell /usr/x86_64-w64-mingw32/bin/wx-config --cxxflags)
    Flags -> Libraries : $(shell /usr/x86_64-w64-mingw32/bin/wx-config --libs) --static

    ----------------------------------------------------------------------------------------------------
    NETBEANS_PROJECTS_WX_SETTINGS_LINUX:

    --- for linux build: ---
    Project properties -> Build -> Toolkit : GNU

    Project properties -> Build -> C++ compiler -> Tool: g++
    Project properties -> Build -> C++ compiler -> Additional options : `wx-config --cxxflags`

    Project properties -> Build -> Linker -> Tool: g++
    Project properties -> Build -> Linker -> Additional options : `wx-config --libs`

    Project properties -> Build -> Change toolkit path : off

    --- for windows build: ---
    Project properties -> Build -> Toolkit : cross_windows

    Project properties -> Build -> C++ compiler -> Tool: x86_64-w64-mingw32-g++
    Project properties -> Build -> C++ compiler -> Additional options : `/usr/x86_64-w64-mingw32/bin/wx-config --cxxflags`

    Project properties -> Build -> Linker -> Tool: x86_64-w64-mingw32-g++
    Project properties -> Build -> Linker -> Additional options : `/usr/x86_64-w64-mingw32/bin/wx-config --libs` --static`

    Project properties -> Build -> Change toolkit path : off

    ----------------------------------------------------------------------------------------------------