User Tools

Site Tools


programming:gtk4

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
programming:gtk4 [2022/03/21 05:04]
nanodano
programming:gtk4 [2022/03/21 05:06]
nanodano
Line 193: Line 193:
  
  
-When compiling, use ''-std=c++20'' flag.+When compiling, use ''-std=c++20'' flag. When running, you may need to set LD_LIBRARY_PATH if you installed to a special prefix.
  
 <code bash> <code bash>
 +# Compile app with gtk4
 g++ main.cpp `pkg-config gtkmm-4.0 --cflags --libs` -std=c++20 g++ main.cpp `pkg-config gtkmm-4.0 --cflags --libs` -std=c++20
 +
 +# Set path for shared library when running
 +LD_LIBRARY_PATH=/usr/local/lib ./a.out
 </code> </code>
programming/gtk4.txt ยท Last modified: 2022/03/21 05:19 by nanodano