pkg-config -cflags -libs says that I need to name a library, so I tried just gtk hopiing to get libraries containing that. I can only find gtk3 files, and not the actual version I installed anywhere. To the PKG_CONFIG_PATH environment variable Perhaps you should add the directory containing `gtk -3.0.pc' Now I am able to run it, but get: Package gtk -3.0 was not found in the pkg-config search path. I added it to C:\MinGW\bin to by in my path. Pkg-config-lite to avoid the glib circular dependency issue that How to install pkg config in windows? describes and frankly I do not understand. So the similar stack overflow, youtube, and written tutorial all say to use pkg-config -cflags -libs gtk -3.0 to check for a reasonable output to see if I have gtk correctly installed. It probably has something to do with MSYS2's specific path variable, I think? But it should search the system's PATH afterward? And I don't know how to change that specific path? Probably questions for another day. I can run gtk3-demo and gtk-demo-application from CMD but not MSYS2. GTK should be in my path in one form or the other. I tried to install the all-in-one bundle for GTK 3.6.4 at, and extracted it to C:\gtk. I added C:\msys64\mingw64\bin to PATH but that didn't seem to work. That's the end of that, so I think gtk is officially installed, I just need to get it to talk to Code::Blocks. Trying the official GTK installation site, I downloaded MSYS2 and used pacman -Syu to install core system packages and pacman -Su to then update. This was to the youtube link's comment that the official is more stable than the one that can be installed with Code::Blocks. I attempted an installation guide ( ), stack overflow ( How do you install GTK 3.0 on Windows?), the official GTK installation guide ( ), a written guide ( ), and just noticed a very similar stack overflow ( Install GTK for c on Windows 10?)īefore this, my PATH environment variable only recorded C:\Users\Owner\AppData\Local\Microsoft\WindowsApps C:\Users\Owner\AppData\Roaming\npm C:\Users\Owner\AppData\Local\atom\bin %USERPROFILE%\AppData\Local\Microsoft\WindowsApps Could anyone nudge me in the right direction? I'm running Windows 10 (64-bit) on a Lenovo. I am having trouble installing gtk to start building GUIs in C on Code::Blocks.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |