User forums > Help

How to use CB with GTK3 on Windows 10

<< < (3/6) > >>

arkkimede:
I tried to compile your minimal code but error occur (C::B does not find gtk/gtk.h (see attached error.png).
I tried to update the MSYS2 environment but it it up to date (see attched update.png)
Looking in the cbp file I've see this line of code:
<Add directory="$(TARGET_COMPILER_DIR)include/gtk-$(GTK_VERSION)" />
but $(TARGET_COMPILER_DIR) is not specified so in the same file in the section environment I modified so:
<Environment>
            <Variable name="ATK_VERSION" value="1.0" />
            <Variable name="GLIB_VERSION" value="2.0" />
            <Variable name="GTK_PIXBUF_VERSION" value="2.0" />
            <Variable name="GTK_VERSION" value="3.0" />
            <Variable name="PANGO_VERSION" value="1.0" />
            <Variable name="TARGET_COMPILER_DIR" value="C:/msys64/mingw64/" />
</Environment>
but nothing change.

I do not know what else to try.
Thank you in any case for your suggestions and support

stahta01:
TARGET_COMPILER_DIR is a built in user variable do NOT define it.

Post your compiler settings!!

Tim S.

stahta01:
32 Bit Compiler Settings


--- Code: ---Installation Directory: C:\msys32\mingw32

C Compiler:             i686-w64-mingw32-gcc.exe
C++ Compiler:           i686-w64-mingw32-g++.exe
Linker for Dyn. Libs:   i686-w64-mingw32-g++.exe
Linker for Static Libs: ar.exe

--- End code ---

stahta01:
64 Bit Compiler Settings


--- Code: ---Installation Directory: C:\msys64\mingw64

C Compiler:             x86_64-w64-mingw32-gcc.exe
C++ Compiler:           x86_64-w64-mingw32-g++.exe
Linker for Dyn. Libs:   x86_64-w64-mingw32-g++.exe
Linker for Static Libs: ar.exe

--- End code ---

arkkimede:
Thank You stahta01!
I had a wrong path to another mingw-64 compiler.
I'm now able to build and run your minimal code.

In the future, if I want to build another project, what I have to do?


* I have to use your cbp file to start and add other files in the development
* I have to use the wizard (GTK? Console? other?)
* Something else
And just another info:
How to add all the library need (cairo, gdk_pixbuf, etc): I have to add all the .dll or .a file in the section
Settings->Compiler->Linker Setting-> Add link library
or in other way?


Thank You again.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version