1
General / Re: Help building SFML using CMake and Xcode on OSX
« on: May 19, 2014, 06:20:00 pm »
"CMAKE_OSX_ARCHITECTURES should be 'x86_64'; SFML doesn't support 32 bit on Mac OS X." is the error I am getting when I try to enter i386;x86_64 in the corresponding field.
But I realized something I had done wrong earlier. It says in the guide that you should set both CMAKE_CXX_FLAGS and CMAKE_C_FLAGS to "-stdlib=libc++". And I couldn't find those fields in the CMake GUI, so I added them manually as strings, but I realized now that you find them under "Advanced". Stupid mistake, but I will leave this here in case anyone has the same problem.
After using CMake to generate the Xcode project (with x86_64), I cannot even use the Xcode project to build SFML now. I get 41 errors, and I think most of them are for "Undefined symbols for architecture x86_64".
Edit: I realize now that making an Xcode project is not recommended. I will try to figure out how to use a makefile instead. Excuse this mess ...
But I realized something I had done wrong earlier. It says in the guide that you should set both CMAKE_CXX_FLAGS and CMAKE_C_FLAGS to "-stdlib=libc++". And I couldn't find those fields in the CMake GUI, so I added them manually as strings, but I realized now that you find them under "Advanced". Stupid mistake, but I will leave this here in case anyone has the same problem.
After using CMake to generate the Xcode project (with x86_64), I cannot even use the Xcode project to build SFML now. I get 41 errors, and I think most of them are for "Undefined symbols for architecture x86_64".
Edit: I realize now that making an Xcode project is not recommended. I will try to figure out how to use a makefile instead. Excuse this mess ...