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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Caleb P

Pages: [1]
1
General / Re: SFML and V8
« on: May 30, 2014, 12:33:13 pm »
Thanks to everyone - at the moment, @Hiura's answer works, but I think I'll try compiling V8 with libc++ and see where that takes me.

Thanks again :)

- C

2
General / SFML and V8
« on: May 28, 2014, 06:12:13 pm »
I'm trying to use SFML as my graphics backbone for a C++ game engine. I'm also using the V8 JavaScript engine. The problem is, to get V8 to compile, I've got to use -stdlib=libstdc++, and to get SFML to compile, I've got to use -stdlib=libc++. Obviously, I can't use both, so how can I work around this?

I'm using Xcode on a Mac Mini, by the way, but it doesn't work through the terminal either.

- C

3
General / Re: Tutorial App Won't Build
« on: February 05, 2014, 04:32:14 pm »
I managed to get it working by manually adding the framework libraries... Strange, because the tutorial has XCode adding them automatically in a "Frameworks" folder.

4
General / Tutorial App Won't Build
« on: February 05, 2014, 01:41:23 pm »
I'm a complete newbie to graphical apps (only done C++ command-line utilities), so I was delighted when I found SFML (it seems to be quite easy to use). I downloaded and installed it just as the tutorial (http://www.sfml-dev.org/tutorials/2.1/start-osx.php) says, but when I clicked "Run", I get 35 errors and "Build Failed". I'm on Mavericks with XCode 5.0.2.

Here are the errors I'm getting:
Undefined symbols for architecture x86_64:
  "sf::SoundStream::play()", referenced from:
      _main in main.o
  "sf::RenderStates::Default", referenced from:
      _main in main.o
  "sf::RenderTarget::draw(sf::Drawable const&, sf::RenderStates const&)", referenced from:
      _main in main.o
  "sf::RenderTarget::clear(sf::Color const&)", referenced from:
      _main in main.o
  "sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&)", referenced from:
      _main in main.o
  "sf::RenderWindow::~RenderWindow()", referenced from:
      _main in main.o
  "sf::Transformable::~Transformable()", referenced from:
      sf::Sprite::~Sprite() in main.o
      sf::Text::~Text() in main.o
  "sf::Font::loadFromFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      _main in main.o
  "sf::Font::Font()", referenced from:
      _main in main.o
  "sf::Font::~Font()", referenced from:
      _main in main.o
  "sf::Text::setColor(sf::Color const&)", referenced from:
      _main in main.o
  "sf::Text::Text(sf::String const&, sf::Font const&, unsigned int)", referenced from:
      _main in main.o
  "sf::Color::Black", referenced from:
      _main in main.o
  "sf::Color::Color(unsigned char, unsigned char, unsigned char, unsigned char)", referenced from:
      _main in main.o
  "sf::Image::loadFromFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      _main in main.o
  "sf::Image::Image()", referenced from:
      _main in main.o
  "sf::Music::openFromFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      _main in main.o
  "sf::Music::Music()", referenced from:
      _main in main.o
  "sf::Music::~Music()", referenced from:
      _main in main.o
  "sf::Sprite::Sprite(sf::Texture const&)", referenced from:
      _main in main.o
  "sf::String::String(char const*, std::__1::locale const&)", referenced from:
      _main in main.o
  "sf::Window::close()", referenced from:
      _main in main.o
  "sf::Window::display()", referenced from:
      _main in main.o
  "sf::Window::setIcon(unsigned int, unsigned int, unsigned char const*)", referenced from:
      _main in main.o
  "sf::Window::pollEvent(sf::Event&)", referenced from:
      _main in main.o
  "sf::Texture::loadFromFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, sf::Rect<int> const&)", referenced from:
      _main in main.o
  "sf::Texture::Texture()", referenced from:
      _main in main.o
  "sf::Texture::~Texture()", referenced from:
      _main in main.o
  "sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)", referenced from:
      _main in main.o
  "sf::Image::getPixelsPtr() const", referenced from:
      _main in main.o
  "sf::Image::getSize() const", referenced from:
      _main in main.o
  "sf::Window::isOpen() const", referenced from:
      _main in main.o
  "vtable for sf::VertexArray", referenced from:
      sf::VertexArray::~VertexArray() in main.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "vtable for sf::Text", referenced from:
      sf::Text::~Text() in main.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Pages: [1]
anything