Windows Programmierung ed

Visual Studio 2013 ed

OpenGL ed

Dateien glext.h und wglext.h googlen und (von opengl.org) herunterladen. Dann unter C:\Program Files (x86)\Windows Kits\8.1\Include\um\gl ablegen.

Bibliotheken ed

am saubersten über Macros...

zuerst das Macro definieren:

dann die Bibliotheken einbinden:

gtk3 in Visual Studio (2019) ed

gtk ed

https://www.gtk.org/docs/installations/windows/

via msys bash:

git clone https://github.com/Microsoft/vcpkg

via cmd.exe in same folder:

.\bootstrap-vcpkg.bat
vcpkg install gtk:x64-windows

now, vs automatically finds and links when using

#include 

compiled exe files even seem to run from within windows

themes ed

mostly, copy icons from /usr/share/icons/Adwaita...

running directly inside the project folder (bash)

running inside Visual Studio

more after some experiments...

msys2 ed

download from https://github.com/msys2/msys2/wiki/MSYS2-installation#iv-general-package-management

pacman -Syu
# restart
pacman -Syu
pacman -S mingw-w64-x86_64-toolchain base-devel mingw-w64-x86_64-gtk3

into ~/.bashrc

PATH=_PATH:/mingw64/bin # dollar sign...
PKG_CONFIG_PATH=_PKG_CONFIG_PATH:/mingw64/lib/pkgconfig

pacman -S git meson nano openssh
pacman -S mingw-w64-x86_64-fftw mingw-w64-x86_64-libogg mingw-w64-x86_64-libvorbis mingw-w64-x86_64-flac mingw-w64-x86_64-portaudio

sometimes important paths seem to not work... or other horrible things happening

export CPATH=/mingw64/include/gtk-3.0/:/mingw64/include/glib-2.0:/mingw64/lib/glib-2.0/include:/mingw64/include/pango-1.0:/mingw64/include/cairo:/mingw64/include/gdk-pixbuf-2.0:/mingw64/include/atk-1.0

unwind seems to come without headers.... don't install

Visual Studio 2022 ed

cmake + vcpkg ed

vcpkg new --application
vcpkg add port glfw3
find_package(glfw3 REQUIRED)
target_link_libraries(... glfw)

gtk4 ed

https://github.com/wingtk/gvsbuild

gvsbuild build gtk4 libadwaita adwaita-icon-theme

Categories: Computer, Programmieren