[tsc-devel] Did you build SFML from source...

datahead | Sun, 18 Oct 2015 06:31:36 UTC

Post via forum by datahead <…9@x…>:
@Quintus, did you build SFML from source or pull it from a repository?

I had used this command to get SFML:
[code]
sudo apt-get install libsfml-dev
[/code]

I get build errors when building TSC from the feature sfml branch, and I'm guessing it's because Ubuntu 12 does not have the most recent version of SFML posted (not substantiated but a logical hypothesis).  I came across a forum, though, that seemed to suggest that SFML in general was not up to date for Ubuntu and that Ubuntu users should always build from source.

I also tried installing these libraries:
https://github.com/SFML/SFML/wiki/Tutorial%3A-Installing-SFML-dependencies

...those libraries are probably for building SFML from source, which explains why it's useless at the moment.

I suppose I should upgrade Ubuntu, though I'll have to put TSC on halt until I do all the backups and get it done once I start this.

These are the TSC errors (top portion):
[code]
[ 37%] Building CXX object CMakeFiles/tsc.dir/src/core/collision.cpp.o
In file included from /home/datahead/boost_libs/include/boost/bind/bind.hpp:29:0,
                 from /home/datahead/boost_libs/include/boost/bind.hpp:22,
                 from /home/datahead/boost_libs/include/boost/thread/detail/thread.hpp:29,
                 from /home/datahead/boost_libs/include/boost/thread/thread_only.hpp:22,
                 from /home/datahead/boost_libs/include/boost/thread/thread.hpp:12,
                 from /home/datahead/TSC-Release/TSC/tsc/src/core/global_basic.hpp:84,
                 from /home/datahead/TSC-Release/TSC/tsc/src/core/collision.cpp:1:
/home/datahead/boost_libs/include/boost/bind/arg.hpp: In constructor ‘boost::arg<I>::arg(const T&)’:
/home/datahead/boost_libs/include/boost/bind/arg.hpp:37:22: warning: typedef ‘T_must_be_placeholder’ locally defined but not used [-Wunused-local-typedefs]
         typedef char T_must_be_placeholder[ I == is_placeholder<T>::value? 1: -1 ];
                      ^
In file included from /home/datahead/TSC-Release/TSC/tsc/src/core/collision.cpp:4:0:
/home/datahead/TSC-Release/TSC/tsc/src/core/../objects/actor.hpp: At global scope:
/home/datahead/TSC-Release/TSC/tsc/src/core/../objects/actor.hpp:28:5: error: expected class-name before ‘{’ token
     {
     ^
/home/datahead/TSC-Release/TSC/tsc/src/core/../objects/actor.hpp:189:13: error: ‘RectangleShape’ in namespace ‘sf’ does not name a type
         sf::RectangleShape m_debug_colrect_shape;
             ^
/home/datahead/TSC-Release/TSC/tsc/src/core/../objects/actor.hpp: In member function ‘void TSC::cActor::Set_Pos(float, float, bool)’:
/home/datahead/TSC-Release/TSC/tsc/src/core/../objects/actor.hpp:168:29: error: ‘setPosition’ was not declared in this scope
             setPosition(x, y);
                             ^
/home/datahead/TSC-Release/TSC/tsc/src/core/../objects/actor.hpp: In member function ‘void TSC::cActor::Set_Pos_X(float, bool)’:
/home/datahead/TSC-Release/TSC/tsc/src/core/../objects/actor.hpp:172:36: error: ‘getPosition’ was not declared in this scope
             Set_Pos(x, getPosition().y, new_startpos);
                                    ^
/home/datahead/TSC-Release/TSC/tsc/src/core/../objects/actor.hpp: In member function ‘void TSC::cActor::Set_Pos_Y(float, bool)’:
/home/datahead/TSC-Release/TSC/tsc/src/core/../objects/actor.hpp:176:33: error: ‘getPosition’ was not declared in this scope
             Set_Pos(getPosition().x, y, new_startpos);

[/code]

-- 
Sent by Chessboard.