slope
slope copied to clipboard
Building under Cygwin
Sorry if this is in the wrong place (or of no interest at all!) Has anyone got Slope to build under Cygwin? To cut a long story short, I get as far as: [ 6%] Building C object slope/CMakeFiles/slope.dir/source/slope/chart.c.obj In file included from C:/Users/Bruce/c/GTK/slope-master/slope/include/slope/chart.h:24:0, from C:/Users/Bruce/c/GTK/slope-master/slope/source/slope/chart.c:21: C:/Users/Bruce/c/GTK/slope-master/slope/include/slope/view.h:24:10: fatal error: gtk/gtk.h: No such file or directory
Presumably it's not -I'ing the appropriate directory (but I don't know what the cc command is). $ find /usr/include/ -name gtk.h /usr/include/gtk-2.0/gtk/gtk.h /usr/include/gtk-3.0/gtk/gtk.h
Hi Bruce, (Small correction if you received my erroneous comment just before.) I managed to build it under MSYS2 (I gave up on Cygwin). Have a look at my project that's using Slope: https://github.com/novakpetrovic/farmafit and contact me if you need any further assistance (it was a while back though). Cheers
Hi, Novak.Thanks for the suggestion. I installed MSYS2 last night. It took hours and 4.6 gigabytes(!) and that doesn't seem to include a C compiler! I'll have another attempt at getting Slope (and my GTK programs) build later, when I've recovered from the shock :-)
On Friday, 6 September 2019, 18:02:48 BST, Novak Petrovic <[email protected]> wrote:
Hi Bruce, (Small correction if you received my erroneous comment just before.) I managed to build it under MSYS2 (I gave up on Cygwin). Have a look at my project that's using Slope: https://github.com/novakpetrovic/farmafit and contact me if you need any further assistance (it was a while back though). Cheers
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Ah! There was a C compiler installed... in /mingw64/bin, which wasn't on the path.
Me again!I've got as far as running make
to make Slope. It ends with:[ 60%] Linking C shared library libslope.dll
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/slope.dir/objects.a(chart.c.obj):chart.c:(.text+0x11): undefined reference to g_type_class_peek_parent' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/slope.dir/objects.a(chart.c.obj):chart.c:(.text+0x32): undefined reference to
g_type_class_adjust_private_offset'
:
Any ideas?