what have install compiling of file.c use gtk2 e file glade(makes glade 3.8)?
i have install libglade pacman -s , tried compile gcc -export-dynamic file.c -o browser $(pkg-config --cflags --libs gtk+-2.0)\ $( pkg-config --cflags --libs libglade-2.0) after mingw doesn't work.. each comand put in output things :
1367211018 [main] bash 9420 fork: child -1 - forked process 8876 died unexpected ly, retry 0, exit code 0xc0000005, errno 11 bash: fork: retry: no child processes 1368436447 [main] bash 9420 fork: child -1 - forked process 3968 died unexpected ly, retry 0, exit code 0xc0000005, errno 11 bash: fork: retry: no child processes 1370680659 [main] bash 9420 fork: child -1 - forked process 1404 died unexpected ly, retry 0, exit code 0xc0000005, errno 11 bash: fork: retry: no child processes bash: fork: no child processes
how can resolve , compile project gtk(c),file.glade? have guide?
this not answer, since can't figure out problem information provided. so, need more space compared permitted "comment" box above (.. if moderators upset this, let me know, , i'll take down submission).
first, mean when "mingw"? mean:
1) have built proper mingw environment , compiled code scratch (e.g. following excellent instructions such these (http://ingar.satgnu.net/devenv/mingw32/index.html) )
2) have download windows binaries glade etc?
3) using msys2?
if using msys2, surprised glade gtk+ (2), alexpu (the head honcho @ msys2) has told me not create gtk+ (2) variant of glade, since feels cause conflict gtk3 variant. means, on msys2, way have (mingw) gtk+ (2) compliant glade use msys2/alexpu "create scratch mystery mechanism". have not ever been able build, not msys2's (and process throws lot of bash errors).
therefore, 1 possibility using gtk3 glade variant gtk2 code, never work, can't "issue", see below.
also, reference libs looks bit different expect if had proper mingw gtk+ machinery. example, of our win/gtk+ (2) apps, usually, have have @ least following libs required:
$(#gtk)\bin\libgtk-win32-2.0-0.dll
$(#gtk)\bin\libgdk-win32-2.0-0.dll
$(#gtk)\bin\libgobject-2.0-0.dll
$(#gtk)\bin\libglib-2.0-0.dll
... , many more pango, cairo, etc.
these should same whether compiled scratch, or if "installed via msys2/pacman".
of course, surely, there other dependencies, , "search paths" required, , various things must on "path".
second, error messages quite odd, , cite "bash" issues. sounds more "scripting/instruction" problems within whatever mingw/unix-like shell/system working in.
they don't sound "proper gtk crashes". typically, windows, issue sigsegv , in debugger log use words "segmentation fault" etc. if sigsegv nasty, windows may not "say anything" explicitly (blank console, etc), , gdb might see "some mention" of "some" problem.
also, if using glade, xml file attempts make gtk life easier. gtk has code interpreting glade xml files otherwise virtual "gtk code". frankly, have found glade more trouble worth in many cases, , writing gui via code more efficient, again, often, not always.
third, possible (we have done it) use glade based on windows binaries, , link libs therein, glade libs, still need obtain (correct) gtk+ libs.
as can see, difficult provide precise answer without knowing more set up.
i recommend not run command line. can done, there in way of fiddly things need "connected" have gtk/glade/gcc etc talking each other correctly. recommend installing code::blocks (http://www.codeblocks.org/); it's free , excellent (or decent ide). then, can set paths/dependencies (after have confirmed existence of dll's/lib's, , exact path, versions, tc.).
also, codeblock's community has considerable experience integrating external packages (like glade/gcc/gtk etc).
some, not all, mingw dll's include version numbers, right click dll, click properties , for, depending on os, "version" or "details" etc dll's version number kept. gtk ones will. often, file name incorporates version number "indicator", it's best sure.
btw, if glade has ver num > 3.8.5, surely it's gtk3.
incidentally, had coded "correctly" , supplied libs, etc etc. of libs gtk2 while others gtk3 (and there no other major problems), gtk disallow it, , tell wont accept "mixed 2 , 3".
... before, our experience msys2 has been unhappy one. have found investing day or , following "ingar's instructions" (http://ingar.satgnu.net/devenv/mingw32/index.html) provide built scratch functioning windows mingw infrastructure gcc/gtk etc, , have complete control over, , know is, , etc.
Comments
Post a Comment