#glibmmconfig.h: No such file or direct
1 messages · Page 1 of 1 (latest)
#general message please answer my question.
@foggy trout Did you install the gtkmm3 package?
Did you run the g++ command as provided in the docs?
I installed as shown in the documents. When I run the command as provided in the docs I get a different error.
Did you install mingw-w64-x86_64-pkg-config
Did you run this commad g++ -std=c++11 foo.cpp $(pkg-config gtkmm-3.0 --cflags --libs | sed 's/ -I/ -isystem /g').
Did you run them on MINGW64 shell?
g++ -std=c++11 main.cpp $(pkg-config gtkmm-3.0 --cflags --libs | sed 's/ -I/ -isystem /g')
g++: error: unrecognized command-line option '--cflags'
g++: error: unrecognized command-line option '--libs'
sed: -e expression #1, char 19: unknown option to `s'
C:\Dev\dev>pkg-config --version
1.9.4
C:\Dev\dev>g++ -std=c++11 main.cpp
main.cpp:1:10: fatal error: gtkmm.h: No such file or directory
1 | #include <gtkmm.h>
| ^~~~~~~~~
you didn't install pkg-config
C:\Dev\dev>pkg-config --version
1.9.4
That's pkg-config from MSYS, please install the one from MINGW64 mingw-w64-x86_64-pkgconf (or pkg-config)
Did you run the command on MINGW64 shell or CMD?
when I run pkg-config inside msys64 it works fine, but in the command line -cmd - it doesn't work
Did you even read what I am writing? I said install mingw-w64-x86_64-pkg-config
What do you mean by inside msys64?
What shell are you using?
I mean when I run the command in the msys64 shell. It list all arguments --cflag and --libs. I don't know what shell it is. After installed msys64 I didn't changed anything. bash? or other?
Read docs https://www.msys2.org/docs/environments/
the prompt I receive is this ACER@LAPTOP-7KHQ5SSF MSYS ~
$
anyway, thanks for the help. I will try to review my steps and I will contact later if it doesn't work. Thanks guys.
Use MINGW64 shell
GCC can be used from Cmd, but the guide you're following requires you to use the MINGW64 shell.