So here is the error, I downloaded the src and build it using cmake along with my SFML 2.1 and here is what it throws at me:
||=== thor, all ===|
C:\libraries\Thor\branches\Thor-master\src\Particle.cpp||In function 'float thor::getElapsedRatio(const thor::Particle&)':|
C:\libraries\Thor\branches\Thor-master\src\Particle.cpp|62|error: no match for 'operator/' (operand types are 'sf::Time' and 'sf::Time')|
C:\libraries\Thor\branches\Thor-master\src\Particle.cpp|62|note: candidates are:|
C:\libraries\SFML\branches\SFML2.1\include\SFML\System\Vector2.inl|131|note: template<class T> sf::Vector2<T> sf::operator/(const sf::Vector2<T>&, T)|
C:\libraries\SFML\branches\SFML2.1\include\SFML\System\Vector2.inl|131|note: template argument deduction/substitution failed:|
C:\libraries\Thor\branches\Thor-master\src\Particle.cpp|62|note: 'sf::Time' is not derived from 'const sf::Vector2<T>'|
C:\libraries\SFML\branches\SFML2.1\include\SFML\System\Time.hpp|376|note: sf::Time sf::operator/(sf::Time, sf::Int64)|
C:\libraries\SFML\branches\SFML2.1\include\SFML\System\Time.hpp|376|note: no known conversion for argument 2 from 'sf::Time' to 'sf::Int64 {aka long long int}'|
C:\libraries\SFML\branches\SFML2.1\include\SFML\System\Time.hpp|364|note: sf::Time sf::operator/(sf::Time, float)|
C:\libraries\SFML\branches\SFML2.1\include\SFML\System\Time.hpp|364|note: no known conversion for argument 2 from 'sf::Time' to 'float'|
C:\libraries\Thor\branches\Thor-master\src\Particle.cpp||In function 'float thor::getRemainingRatio(const thor::Particle&)':|
C:\libraries\Thor\branches\Thor-master\src\Particle.cpp|67|error: no match for 'operator/' (operand types are 'sf::Time' and 'sf::Time')|
C:\libraries\Thor\branches\Thor-master\src\Particle.cpp|67|note: candidates are:|
C:\libraries\SFML\branches\SFML2.1\include\SFML\System\Vector2.inl|131|note: template<class T> sf::Vector2<T> sf::operator/(const sf::Vector2<T>&, T)|
C:\libraries\SFML\branches\SFML2.1\include\SFML\System\Vector2.inl|131|note: template argument deduction/substitution failed:|
C:\libraries\Thor\branches\Thor-master\src\Particle.cpp|67|note: 'sf::Time' is not derived from 'const sf::Vector2<T>'|
C:\libraries\SFML\branches\SFML2.1\include\SFML\System\Time.hpp|376|note: sf::Time sf::operator/(sf::Time, sf::Int64)|
C:\libraries\SFML\branches\SFML2.1\include\SFML\System\Time.hpp|376|note: no known conversion for argument 2 from 'sf::Time' to 'sf::Int64 {aka long long int}'|
C:\libraries\SFML\branches\SFML2.1\include\SFML\System\Time.hpp|364|note: sf::Time sf::operator/(sf::Time, float)|
C:\libraries\SFML\branches\SFML2.1\include\SFML\System\Time.hpp|364|note: no known conversion for argument 2 from 'sf::Time' to 'float'|
src\CMakeFiles\thor.dir\build.make|465|recipe for target 'src/CMakeFiles/thor.dir/Particle.cpp.obj' failed|
CMakeFiles\Makefile2|77|recipe for target 'src/CMakeFiles/thor.dir/all' failed|
C:\libraries\Thor\branches\Thor-build\Makefile|115|recipe for target 'all' failed|
||=== Build finished: 5 errors, 0 warnings (0 minutes, 13 seconds) ===|
First thing, since I am using Cmake to build files automagically with SFML 2.1 it actually looks for the SFML 2.1 directory which I think somehow the cmake files on SFML 2.1 master file I have downloaded was not updated accordingly, but this can be fixed easily by adding entries on Cmake:
CMAKE_MODULE_PATH and assigning here the SFML/Module/ directory and
SFML_ROOT and assigning here SFML/'s root directory and finally I removed the entry on CMAKE the SFML_DIR that causes building to fail.
I hope this information doesn't mess up with the building process? I am compiling Thor source on code::blocks and that what it throws at me. I am lost at this point...
Thank you!