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 - bobdobbs3

Pages: [1]
1
General / SFML 2 plus Xcode4 on Lion architecture build error
« on: September 27, 2011, 06:25:15 am »
I got it.  I needed to explicitly link sfml-window.framework not just SFML.framework.   Well that was a total PEBCAK issue.

Thanks for the response!

2
General / SFML 2 plus Xcode4 on Lion architecture build error
« on: September 27, 2011, 12:56:34 am »
I get the following after building using CMake and copying the frame works over to /Library/Frameworks.

I used CMake, only changing the defaults to use 10.7 instead of 10.6 and to get around which freetype I linked to.  Otherwise it was whatever CMake wanted to use.

CMAKE_OSX_ARCHITECTURES i386;x86_64

Just ran make after that and then tried to do a simple test and got the following errors.  

Any help would be much appreciated.

Quote
Undefined symbols for architecture x86_64:
  "sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)", referenced from:
      _main in main.o
  "sf::Window::Window(sf::VideoMode, std::string const&, unsigned long, sf::ContextSettings const&)", referenced from:
      _main in main.o
  "sf::Window::~Window()", referenced from:
      _main in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)




Quote
#include <iostream>
#include <SFML/Window.hpp>


int main (int argc, const char * argv[])
{

    sf::Window(sf::VideoMode(800, 600, 32), "SFML OpenGL");
   
    std::cout << "Hello, World!\n";
    return 0;
}

Pages: [1]
anything