slope icon indicating copy to clipboard operation
slope copied to clipboard

Building under Cygwin

Open BruceMardle opened this issue 5 years ago • 4 comments

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

BruceMardle avatar Sep 06 '19 14:09 BruceMardle

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

nov314k avatar Sep 06 '19 17:09 nov314k

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.

BruceMardle avatar Sep 07 '19 13:09 BruceMardle

Ah! There was a C compiler installed... in /mingw64/bin, which wasn't on the path.

BruceMardle avatar Sep 07 '19 14:09 BruceMardle

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' : : 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(xyseries.c.obj):xyseries.c:(.text+0x1190): undefined reference to `g_type_instance_get_private' collect2.exe: error: ld returned 1 exit status make[2]: *** [slope/CMakeFiles/slope.dir/build.make:248: slope/libslope.dll] Error 1 make[1]: *** [CMakeFiles/Makefile2:97: slope/CMakeFiles/slope.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

Any ideas?

BruceMardle avatar Sep 07 '19 14:09 BruceMardle