windows 10 - Code::Blocks not working with GTK3 even after editing the script-gtk-win32-3.0.lib not present -
where gtk-win32-3.0.lib
from?
i trying use gtk3 code::blocks. thing when trying create gtk project, gave me error can't find gtk.h
. edited wizard script , changed gtk-2.0
gtk-3.0
seen in answer on stack overflow.
after doing that, gave me error cannot find gtk-win32-2.0
. changed gtk-win32-3.0
in script error still persists.
i have both files gtk.h
, gtk-win32-3.0
in gtk directory. crosschecked many times. can me this?
i discovered don't have file 'gtk-win32-3.0.lib` in gtk\lib directory. manually created 1 in directory , code::blocks lets me create project. still don't know should present inside library file.
edit: project gets created after added blank file named
gtk-win32-3.0.lib
in expected directory files doesn't compiled.
current error:error: ld returned 1 exit status
didn't more details regarding error.
the same program gets compiled when used outside project individual source file.
i noticed still have code::blocks
installed (version 13.12
). note on linux. clicked on file|new|project
.
i selected new project gtk project, , ready.
you'll have fill in project name (test99 in screenshot) , location.
i suspect do need have gcc
compiler installed, , of course gtk
libraries. you'll need pkg-config
, necessary configuration.
by default, new project configured gtk-2 project. can change changing part of includes. right click on project name in left panel (test99), , select properties. in properties, select project build options (don't tempted select options instead of properties in previous step. don't know why, they're different!)
select linker options
, , should see pkg-config gtk+-2.0 --libs
'back-ticks' around it. changing 2.0 3.0 should link libraries.
go compiler settings
, other options
, again, find similar entry pkg-config gtk+-2.0 --cflags
(also backticks). detects gtk.h
file lives. (also change 2.0 3.0)
that should it. may not latest version of code::blocks. if encounter problems, yell!
Comments
Post a Comment