If you are under Windows, you need to use GCC 4.7 (or later) to build the
C files, and a unix-like environment (e.g. cygwin or msys) where the paths
correspond to real Windows path (for instance by installing cygwin under
the root directory). You can use an older GCC version for the Ada files
(gnatmake). Under sh:
In my contrib folder there is no gtkada-2.10-win32.diff file.
I have cygwin installed at C:/cygwin. I do not understand what you mean by: "the paths
correspond to real Windows path (for instance by installing cygwin under
the root directory)." What root directory? Which paths ... should correspond to real Windoes path?
. Is it the cygwin install dir or gtkada install dir?
Why do you specify gcc-4.7. On my cygwin default install, the Gcc version (in my case 5.4) is executed by just calling gcc. Actually executing gcc-5.4 at the cygwin prompt does not work.
I ask because I tried many combinations and nothing ends up working. Compilation of misc-generated.c fails to find #include which I have under [cygwin_install_dir]/usr/include/gtk-3/gtk/gtk.h
you can safely ignore the absence of the .diff file, this is a left-over from a previous distribution, we will remove this
I think this is the cause of your problem in 4 - GtkAda probably expects to find your gtk install in /usr/include, not cygwinsomething/usr/include. Basically what is important is that /some/path in cygwin world should look like C:\some\path in the Windows world. You can achieve that with cygwin mount points, I believe.
that's the gtkada install dir
the mention of 'gcc-47' is for illustration purposes. For the actual problem, see answer to 2. You can also patch the makefile, or use standard compiler mechanisms to find the include files, for instance setting the C_INCLUDE_PATH environment variable to the path of your gtk+ installation.
Good luck! We know that building under Windows is tricky!
Hi,
In the INSTALL file we can read the following:
If you are under Windows, you need to use GCC 4.7 (or later) to build the C files, and a unix-like environment (e.g. cygwin or msys) where the paths correspond to real Windows path (for instance by installing cygwin under the root directory). You can use an older GCC version for the Ada files (gnatmake). Under sh:
$ (cd src; patch -p0 < ../contrib/gtkada-2.10-win32.diff) $ CC='gcc-4.7 -mms-bitfields' ./configure --prefix= \
--build=i686-pc-mingw32
I would need the following precisions:
I ask because I tried many combinations and nothing ends up working. Compilation of misc-generated.c fails to find #include which I have under [cygwin_install_dir]/usr/include/gtk-3/gtk/gtk.h
Thank you.