Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Error during build of CSFML 2.0 on Lubuntu  (Read 4192 times)

0 Members and 1 Guest are viewing this topic.

MarekkPie

  • Newbie
  • *
  • Posts: 19
    • View Profile
Error during build of CSFML 2.0 on Lubuntu
« on: March 29, 2012, 02:29:59 am »
Code: [Select]
[ 61%] Building CXX object src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/RenderTexture.cpp.o
/home/mkosler/Downloads/CSFML/src/SFML/Graphics/RenderTexture.cpp: In function ‘sfVector2f sfRenderTexture_convertCoords(const sfRenderTexture*, sfVector2i, const sfView*)’:
/home/mkosler/Downloads/CSFML/src/SFML/Graphics/RenderTexture.cpp:151:103: error: no matching function for call to ‘sf::RenderTexture::convertCoords(sf::Vector2i, const sf::View&) const’
/home/mkosler/Downloads/CSFML/src/SFML/Graphics/RenderTexture.cpp:151:103: note: candidates are:
/usr/local/include/SFML/Graphics/RenderTarget.hpp:153:14: note: sf::Vector2f sf::RenderTarget::convertCoords(unsigned int, unsigned int) const
/usr/local/include/SFML/Graphics/RenderTarget.hpp:153:14: note:   no known conversion for argument 1 from ‘sf::Vector2i {aka sf::Vector2<int>}’ to ‘unsigned int’
/usr/local/include/SFML/Graphics/RenderTarget.hpp:179:14: note: sf::Vector2f sf::RenderTarget::convertCoords(unsigned int, unsigned int, const sf::View&) const
/usr/local/include/SFML/Graphics/RenderTarget.hpp:179:14: note:   candidate expects 3 arguments, 2 provided
/home/mkosler/Downloads/CSFML/src/SFML/Graphics/RenderTexture.cpp:153:85: error: no matching function for call to ‘sf::RenderTexture::convertCoords(sf::Vector2i) const’
/home/mkosler/Downloads/CSFML/src/SFML/Graphics/RenderTexture.cpp:153:85: note: candidates are:
/usr/local/include/SFML/Graphics/RenderTarget.hpp:153:14: note: sf::Vector2f sf::RenderTarget::convertCoords(unsigned int, unsigned int) const
/usr/local/include/SFML/Graphics/RenderTarget.hpp:153:14: note:   candidate expects 2 arguments, 1 provided
/usr/local/include/SFML/Graphics/RenderTarget.hpp:179:14: note: sf::Vector2f sf::RenderTarget::convertCoords(unsigned int, unsigned int, const sf::View&) const
/usr/local/include/SFML/Graphics/RenderTarget.hpp:179:14: note:   candidate expects 3 arguments, 1 provided
make[2]: *** [src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/RenderTexture.cpp.o] Error 1
make[1]: *** [src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/all] Error 2
make: *** [all] Error 2

Trying to get SFML.Net 2.0 to work with Mono, and it seems I need the libcsfml files to do so, which means I need to build CSFML. Ran into this error while building.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Error during build of CSFML 2.0 on Lubuntu
« Reply #1 on: March 29, 2012, 09:20:47 am »
Yep, and to build CSFML you need the latest SFML as well ;)
Laurent Gomila - SFML developer