Hi,
I hope I'm not posting this on the wrong list.
I'm trying to build Geany on Windows Vista, following the Windows build instructions at: http://www.geany.org/Support/BuildingOnWin32
Even after adding a localwin32.mk file and changing the PREFIX as suggested, I still get lregex.c:22:18: glib.h: No such file or directory when compiling through the MSYS shell. If I used the standard command prompt, there's the makefiles would balk on the missing 'make' command.
As per the instructions, I've downloaded all the required libs to "C:\libs" and added that to my environment variables. I grabbed the Geany source (trunk) using Tortoise SVN
Am I missing something here regarding compiling using makefiles?
PS: when grabbing the dependencies, http://www.gimp.org/~tml/gimp/win32/downloads.html no longer lists the required ones, but points to http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/ instead
Thanks, Aligorith
On Wed, 29 Apr 2009 12:06:31 +1200 Joshua Leung aligorith@gmail.com wrote:
Even after adding a localwin32.mk file and changing the PREFIX as suggested, I still get lregex.c:22:18: glib.h: No such file or directory
Do you have the header files for glib (not glibc) installed inside your build environment?
Cheers, Frank
Hi,
I managed to solve this particular issue in the meantime (I dumped a .bat file wrapping mingw32-make as 'make' on mingw side, and used that to compile via command-prompt). However, I'm currently getting heaps of errors that seem to be related to G_GNUC_NULL_TERMINATED.
cd plugins && make -f makefile.win32 && cd .. mingw32-make[1]: Entering directory `c:/geanydev/trunk/plugins' gcc -O2 -Wall -pipe -mms-bitfields -DHAVE_CONFIG_H -I.. -I../src -I../scintilla/include -I../tagman ager/include -IC:\libs/include/gtk-2.0 -IC:\libs/lib/gtk-2.0/include -IC:\libs/include/atk-1.0 -IC:\ libs/include/pango-1.0 -IC:\libs/include/cairo -IC:\libs/include/glib-2.0 -IC:\libs/lib/glib-2.0/inc lude -IC:\libs/include/gettext -IC:\libs/include -o htmlchars.dll.o -c htmlchars.c In file included from htmlchars.c:32: ../src/plugindata.h:389: warning: no semicolon at end of struct or union ../src/plugindata.h:389: error: syntax error before "G_GNUC_NULL_TERMINATED" ../src/plugindata.h:399: error: syntax error before '}' token ../src/plugindata.h:400: warning: type defaults to `int' in declaration of `UIUtilsFuncs' ../src/plugindata.h:400: warning: data definition has no type or storage class In file included from htmlchars.c:36: ../src/ui_utils.h:191: error: syntax error before "G_GNUC_NULL_TERMINATED" ../src/ui_utils.h:191: warning: type defaults to `int' in declaration of `G_GNUC_NULL_TERMINATED' ../src/ui_utils.h:191: warning: data definition has no type or storage class In file included from htmlchars.c:37: ../src/utils.h:147: error: syntax error before "G_GNUC_NULL_TERMINATED" ../src/utils.h:147: warning: type defaults to `int' in declaration of `G_GNUC_NULL_TERMINATED' ../src/utils.h:147: warning: data definition has no type or storage class ../src/utils.h:149: error: syntax error before "G_GNUC_NULL_TERMINATED" ../src/utils.h:149: warning: type defaults to `int' in declaration of `G_GNUC_NULL_TERMINATED' ../src/utils.h:149: warning: data definition has no type or storage class ../src/utils.h:170: error: syntax error before "G_GNUC_NULL_TERMINATED" ../src/utils.h:170: warning: type defaults to `int' in declaration of `G_GNUC_NULL_TERMINATED' ../src/utils.h:170: warning: data definition has no type or storage class htmlchars.c: In function `tools_show_dialog_insert_special_chars': htmlchars.c:459: error: dereferencing pointer to incomplete type htmlchars.c: In function `plugin_init': htmlchars.c:696: error: dereferencing pointer to incomplete type htmlchars.c:721: error: dereferencing pointer to incomplete type mingw32-make[1]: *** [htmlchars.dll] Error 1 mingw32-make[1]: Leaving directory `c:/geanydev/trunk/plugins' mingw32-make: *** [all] Error 2
On Wed, Apr 29, 2009 at 11:30 PM, Frank Lanitz frank@frank.uvena.de wrote:
On Wed, 29 Apr 2009 12:06:31 +1200 Joshua Leung aligorith@gmail.com wrote:
Even after adding a localwin32.mk file and changing the PREFIX as
suggested,
I still get lregex.c:22:18: glib.h: No such file or directory
Do you have the header files for glib (not glibc) installed inside your build environment?
What's the difference? I'm not terribly familiar with the GTK stuff yet, though it "looks" like I've got the glib-dev-2.6.6.zip file the instructions said... The errors I'm getting above sound a lot like they are related to these headers being the wrong ones or some headers being missing...
Regards, Aligorith
On Wed, 29 Apr 2009 23:52:56 +1200, Joshua wrote:
Hey,
cd plugins && make -f makefile.win32 && cd .. [snip lots of boring errors :)] mingw32-make: *** [all] Error 2
On Wed, Apr 29, 2009 at 11:30 PM, Frank Lanitz frank@frank.uvena.de wrote:
On Wed, 29 Apr 2009 12:06:31 +1200 Joshua Leung aligorith@gmail.com wrote:
Even after adding a localwin32.mk file and changing the PREFIX as
suggested,
I still get lregex.c:22:18: glib.h: No such file or directory
Do you have the header files for glib (not glibc) installed inside your build environment?
What's the difference? I'm not terribly familiar with the GTK stuff
There is huge difference, as glibc is the GNU libc which is the C runtime environment. But this has mostly no relevance on Windows as you use Windows' C runtime library usually. Just forget about it. We are here only talking about "GLib" which is a supporting library of GTK.
yet, though it "looks" like I've got the glib-dev-2.6.6.zip file the instructions said... The errors I'm getting above sound a lot like
Sorry, the instructions were old and not appropriate anymore. You need at least GTK and Glib 2.8.x for Geany 0.16, I updated the website as mentioned in my other post in this thread. Sorry again.
they are related to these headers being the wrong ones or some headers being missing...
Not missing but outdated. I suggest to delete your libs dir completely, download http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.16/gtk+-bundle_2.16.1-2..., extract its contents into c:\libs and try again compiling. This should work *crossing-fingers*.
Regards, Enrico
Hey,
Ahh... that makes sense. I've replaced my libs folder with the package you mentioned. However, I also needed to redownload http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libiconv-1.9.1.bi... get things to compile.
By the way, is there any way to get make to not print the commands it uses?
.. Now on to making a few hacks on the symbol list :D ...
Regards, Aligorith
2009/4/30 Enrico Tröger enrico.troeger@uvena.de
Sorry, the instructions were old and not appropriate anymore. You need at least GTK and Glib 2.8.x for Geany 0.16, I updated the website as mentioned in my other post in this thread. Sorry again.
they are related to these headers being the wrong ones or some headers being missing...
Not missing but outdated. I suggest to delete your libs dir completely, download
http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.16/gtk+-bundle_2.16.1-2... , extract its contents into c:\libs and try again compiling. This should work *crossing-fingers*.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.asc
Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
On Thu, 30 Apr 2009 10:07:05 +1200 Joshua Leung aligorith@gmail.com wrote:
By the way, is there any way to get make to not print the commands it uses?
Prefix each command with a '@' character. e.g.
all: @echo "Silent echo"
Regards, Nick
On Thu, 30 Apr 2009 10:07:05 +1200, Joshua wrote:
Hey,
Ahh... that makes sense. I've replaced my libs folder with the package you mentioned. However, I also needed to redownload http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libiconv-1.9.1.bi... get things to compile.
Thanks, added.
By the way, is there any way to get make to not print the commands it uses?
Alternatively to what Nick said, you can use make -s or make --silent
Regards, Enrico
On Wed, 29 Apr 2009 12:06:31 +1200, Joshua wrote:
Hey,
I hope I'm not posting this on the wrong list.
it's fine here, welcome.
I'm trying to build Geany on Windows Vista, following the Windows build instructions at: http://www.geany.org/Support/BuildingOnWin32
Even after adding a localwin32.mk file and changing the PREFIX as suggested, I still get lregex.c:22:18: glib.h: No such file or directory when compiling through the MSYS shell. If I used the standard command prompt, there's the makefiles would balk on the missing 'make' command.
I never used the MSYS shell, I always use cmd.exe. If your gcc.exe is in your path, mingw32-make.exe should be as well and then something like
mingw32-make.exe -f makefile-win32
should work. To make things a bit more comfortable, on my test VM I renamed mingw32-make.exe to make.exe and created a Makefile in the Geany source directory which includes makefile.win32, so I can just type:
make
and it works.
As per the instructions, I've downloaded all the required libs to "C: \libs" and added that to my environment variables. I grabbed the Geany source (trunk) using Tortoise SVN
Am I missing something here regarding compiling using makefiles?
PS: when grabbing the dependencies, http://www.gimp.org/~tml/gimp/win32/downloads.html no longer lists the required ones, but points to http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/ instead
Thanks, I updated http://www.geany.org/Support/BuildingOnWin32 and also removed mentioning the GTK 2.6 package versions as this is very outdated since we depend on GTK 2.8. The easiest way is to use the new GTK bundle which is kindly offered on www.gtk.org.
Regards, Enrico