bytebrew / slope

C/Gtk+ data visualization library.
GNU Lesser General Public License v3.0
102 stars 16 forks source link

animation.c doesn't work #14

Closed crazyBaboon closed 7 years ago

crazyBaboon commented 7 years ago

using gcc animation.c -lslope -lm -o simple pkg-config --cflags --libs gtk+-3.0, I get the following:

animation.c: In function ‘timer_callback’: animation.c:42:5: warning: implicit declaration of function ‘slope_chart_redraw’ [-Wimplicit-function-declaration] slope_chart_redraw(SLOPE_CHART(chart)); ^~~~~~ /tmp/ccEnD5Cu.o: In function timer_callback': animation.c:(.text+0x146): undefined reference toslope_chart_redraw' collect2: error: ld returned 1 exit status

Please see the next merge request for a potential solution, including the now fixed y-axis issue!

elvismt commented 7 years ago

I think you compiled this application without updating your installed version of the library. slope_chart_redraw() is a new function introduced today. It is a better approach because it only redraws the chart for each frame instead of the whole window. Please recompile slope and them animation.c would work. I checked the version in branch master and it is working. Additionally, please issue your next pull requests on top of the devel branch instead of the master one.

crazyBaboon commented 7 years ago

It works thanks! I am closing this issue now.

Also, I have added animation_stack! Have you checked that out?