mslehre / MAS

Maximum Acyclic Subgraph (MAS) - Multiple Sequence Alignment (MSA) Game
1 stars 0 forks source link

Adjustments and Fixes (i.e. compiler warnings) #70

Closed Luc4sQ closed 5 years ago

Luc4sQ commented 5 years ago

Notes:

But: I've merged the branch graph, so it just works with the new data structures

MarioStanke commented 5 years ago

The build fails as can be seen when clicking on the Travis CI results:

g++ -c -std=c++11 -Wall  ../GraphRenderer.cc -o GraphRenderer.o
../GraphRenderer.cc: In member function ‘void GraphRenderer::drawText(sf::RenderWindow&)’:
../GraphRenderer.cc:199:14: error: ‘class sf::Text’ has no member named ‘setFillColor’
         text.setFillColor(txt[i].col);

Can you fix that?

Luc4sQ commented 5 years ago

Das ist komisch. Auf der sfml Seite existiert der Member und mein Compiler wollte sogar, dass ich diese Funktion statt der setColor() funktion nutze.

https://www.sfml-dev.org/documentation/2.5.1/classsf_1_1Text.php#ab7bb3babac5a6da1802b2c3e1a3e6dcc

Soll ich sie trotzdem ersetzen?

MarioStanke commented 5 years ago

Verstehe. Bei mir (Ubuntu 18.04) kompiliert es auch. Die alte Version von SFML kannte offenbar setFillColor noch nicht. Leider gibt es bei Travis-CI noch nicht die Option ein Bionic Beaver (Ubuntu 18.04) image zu nehmen. Fuer den commit lassen wir einmal setFillColor und koennen nachher eine Loesung fuer das CI besprechen.

MarioStanke commented 5 years ago

This branch has conflicts that must be resolved. Please merge the current origin/master into sDt4_VisualFixes and reopen pull request.