I posted this as a bug, here:
https://github.com/SFML/SFML/issues/382...but apparently, it's not really a bug. Oh well, here are the details anyway.
cmake configure:
cmake .. -DCMAKE_OSX_ARCHITECTURES=i386
yields:
-- Found OpenGL: /System/Library/Frameworks/OpenGL.framework
-- Found Freetype: /tmp/SFML-2.0/extlibs/libs-osx/Frameworks/freetype.framework (found version "2.4.11")
-- Found GLEW: /tmp/SFML-2.0/extlibs/libs-osx/lib/libGLEW.a
-- Found JPEG: /tmp/SFML-2.0/extlibs/libs-osx/lib/libjpeg.a
-- Found OpenAL: /System/Library/Frameworks/OpenAL.framework
-- Found SNDFILE: /tmp/SFML-2.0/extlibs/libs-osx/Frameworks/sndfile.framework
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/SFML-2.0/build
make yields:
[ 1%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Clock.cpp.o
[ 2%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Err.cpp.o
[ 3%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Lock.cpp.o
[ 4%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Mutex.cpp.o
[ 5%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Sleep.cpp.o
[ 6%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/String.cpp.o
[ 8%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Thread.cpp.o
[ 9%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/ThreadLocal.cpp.o
[ 10%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Time.cpp.o
[ 11%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Unix/ClockImpl.cpp.o
[ 12%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Unix/MutexImpl.cpp.o
[ 13%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Unix/SleepImpl.cpp.o
[ 15%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Unix/ThreadImpl.cpp.o
[ 16%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Unix/ThreadLocalImpl.cpp.o
Linking CXX shared library ../../../lib/libsfml-system.dylib
[ 16%] Built target sfml-system
[ 17%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Context.cpp.o
[ 18%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.cpp.o
[ 19%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/GlResource.cpp.o
[ 20%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Joystick.cpp.o
[ 22%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/JoystickManager.cpp.o
[ 23%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Keyboard.cpp.o
[ 24%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Mouse.cpp.o
[ 25%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/VideoMode.cpp.o
[ 26%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Window.cpp.o
[ 27%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/WindowImpl.cpp.o
[ 29%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/OSX/cpp_objc_conversion.mm.o
[ 30%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/OSX/cg_sf_conversion.cpp.o
[ 31%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/OSX/InputImpl.mm.o
[ 32%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/OSX/HIDInputManager.mm.o
/tmp/SFML-2.0/src/SFML/Window/OSX/HIDInputManager.mm:926:2: warning: sf::Keyboard::Tilde might be in conflict with
some other key. [-W#warnings]
#warning sf::Keyboard::Tilde might be in conflict with some other key.
^
/tmp/SFML-2.0/src/SFML/Window/OSX/HIDInputManager.mm:1018:2: warning: keycode 0x1b is not bound to any key.
[-W#warnings]
#warning keycode 0x1b is not bound to any key.
^
2 warnings generated.
[ 33%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/OSX/HIDJoystickManager.cpp.o
[ 34%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/OSX/JoystickImpl.cpp.o
[ 36%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/OSX/SFApplication.m.o
[ 37%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/OSX/SFContext.mm.o
[ 38%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/OSX/SFOpenGLView.mm.o
/tmp/SFML-2.0/src/SFML/Window/OSX/SFOpenGLView.mm:40:2: warning: Missing keycode for right control key.
[-W#warnings]
#warning Missing keycode for right control key.
^
1 warning generated.
[ 39%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/OSX/SFWindow.m.o
[ 40%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/OSX/SFWindowController.mm.o
[ 41%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/OSX/SFViewController.mm.o
[ 43%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/OSX/VideoModeImpl.cpp.o
[ 44%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/OSX/WindowImplCocoa.mm.o
[ 45%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/OSX/AutoreleasePoolWrapper.mm.o
Linking CXX shared library ../../../lib/libsfml-window.dylib
[ 45%] Built target sfml-window
[ 46%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/Ftp.cpp.o
[ 47%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/Http.cpp.o
[ 48%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/IpAddress.cpp.o
[ 50%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/Packet.cpp.o
[ 51%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/Socket.cpp.o
[ 52%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/SocketSelector.cpp.o
[ 53%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/TcpListener.cpp.o
[ 54%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/TcpSocket.cpp.o
[ 55%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/UdpSocket.cpp.o
[ 56%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/Unix/SocketImpl.cpp.o
Linking CXX shared library ../../../lib/libsfml-network.dylib
[ 56%] Built target sfml-network
Scanning dependencies of target sfml-graphics
[ 58%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Color.cpp.o
[ 59%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Font.cpp.o
[ 60%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/GLCheck.cpp.o
[ 61%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Image.cpp.o
[ 62%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/ImageLoader.cpp.o
[ 63%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/RenderStates.cpp.o
[ 65%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/RenderTexture.cpp.o
[ 66%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/RenderTarget.cpp.o
[ 67%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/RenderWindow.cpp.o
[ 68%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Shader.cpp.o
[ 69%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Texture.cpp.o
[ 70%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/TextureSaver.cpp.o
[ 72%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Transform.cpp.o
[ 73%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Transformable.cpp.o
[ 74%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/View.cpp.o
[ 75%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Vertex.cpp.o
[ 76%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Shape.cpp.o
[ 77%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/CircleShape.cpp.o
[ 79%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/RectangleShape.cpp.o
[ 80%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/ConvexShape.cpp.o
[ 81%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Sprite.cpp.o
[ 82%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Text.cpp.o
[ 83%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/VertexArray.cpp.o
[ 84%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/RenderTextureImpl.cpp.o
[ 86%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/RenderTextureImplFBO.cpp.o
[ 87%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/RenderTextureImplDefault.cpp.o
Linking CXX shared library ../../../lib/libsfml-graphics.dylib
ld: file too small for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libsfml-graphics.2.0.dylib] Error 1
make[1]: *** [src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/all] Error 2
make: *** [all] Error 2
and a verbose make on the failure yields:
"/Applications/CMake 2.8-10.app/Contents/bin/cmake" -H/tmp/SFML-2.0 -B/tmp/SFML-2.0/build --check-build-system CMakeFiles/Makefile.cmake 0
"/Applications/CMake 2.8-10.app/Contents/bin/cmake" -E cmake_progress_start /tmp/SFML-2.0/build/CMakeFiles /tmp/SFML-2.0/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make -f src/SFML/System/CMakeFiles/sfml-system.dir/build.make src/SFML/System/CMakeFiles/sfml-system.dir/depend
cd /tmp/SFML-2.0/build && "/Applications/CMake 2.8-10.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /tmp/SFML-2.0 /tmp/SFML-2.0/src/SFML/System /tmp/SFML-2.0/build /tmp/SFML-2.0/build/src/SFML/System /tmp/SFML-2.0/build/src/SFML/System/CMakeFiles/sfml-system.dir/DependInfo.cmake --color=
make -f src/SFML/System/CMakeFiles/sfml-system.dir/build.make src/SFML/System/CMakeFiles/sfml-system.dir/build
make[2]: Nothing to be done for `src/SFML/System/CMakeFiles/sfml-system.dir/build'.
"/Applications/CMake 2.8-10.app/Contents/bin/cmake" -E cmake_progress_report /tmp/SFML-2.0/build/CMakeFiles 48 49 50 51 52 53 54 55 56 57 58 59 60 61
[ 16%] Built target sfml-system
make -f src/SFML/Window/CMakeFiles/sfml-window.dir/build.make src/SFML/Window/CMakeFiles/sfml-window.dir/depend
cd /tmp/SFML-2.0/build && "/Applications/CMake 2.8-10.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /tmp/SFML-2.0 /tmp/SFML-2.0/src/SFML/Window /tmp/SFML-2.0/build /tmp/SFML-2.0/build/src/SFML/Window /tmp/SFML-2.0/build/src/SFML/Window/CMakeFiles/sfml-window.dir/DependInfo.cmake --color=
make -f src/SFML/Window/CMakeFiles/sfml-window.dir/build.make src/SFML/Window/CMakeFiles/sfml-window.dir/build
make[2]: Nothing to be done for `src/SFML/Window/CMakeFiles/sfml-window.dir/build'.
"/Applications/CMake 2.8-10.app/Contents/bin/cmake" -E cmake_progress_report /tmp/SFML-2.0/build/CMakeFiles 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
[ 45%] Built target sfml-window
make -f src/SFML/Network/CMakeFiles/sfml-network.dir/build.make src/SFML/Network/CMakeFiles/sfml-network.dir/depend
cd /tmp/SFML-2.0/build && "/Applications/CMake 2.8-10.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /tmp/SFML-2.0 /tmp/SFML-2.0/src/SFML/Network /tmp/SFML-2.0/build /tmp/SFML-2.0/build/src/SFML/Network /tmp/SFML-2.0/build/src/SFML/Network/CMakeFiles/sfml-network.dir/DependInfo.cmake --color=
make -f src/SFML/Network/CMakeFiles/sfml-network.dir/build.make src/SFML/Network/CMakeFiles/sfml-network.dir/build
make[2]: Nothing to be done for `src/SFML/Network/CMakeFiles/sfml-network.dir/build'.
"/Applications/CMake 2.8-10.app/Contents/bin/cmake" -E cmake_progress_report /tmp/SFML-2.0/build/CMakeFiles 38 39 40 41 42 43 44 45 46 47
[ 56%] Built target sfml-network
make -f src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/build.make src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/depend
cd /tmp/SFML-2.0/build && "/Applications/CMake 2.8-10.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /tmp/SFML-2.0 /tmp/SFML-2.0/src/SFML/Graphics /tmp/SFML-2.0/build /tmp/SFML-2.0/build/src/SFML/Graphics /tmp/SFML-2.0/build/src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/DependInfo.cmake --color=
make -f src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/build.make src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/build
Linking CXX shared library ../../../lib/libsfml-graphics.dylib
cd /tmp/SFML-2.0/build/src/SFML/Graphics && "/Applications/CMake 2.8-10.app/Contents/bin/cmake" -E cmake_link_script CMakeFiles/sfml-graphics.dir/link.txt --verbose=1
/usr/bin/c++ -O3 -DNDEBUG -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -dynamiclib -Wl,-headerpad_max_install_names -compatibility_version 2.0.0 -current_version 2.0.0 -o ../../../lib/libsfml-graphics.2.0.dylib -install_name @executable_path/../Frameworks/libsfml-graphics.2.dylib CMakeFiles/sfml-graphics.dir/Color.cpp.o CMakeFiles/sfml-graphics.dir/Font.cpp.o CMakeFiles/sfml-graphics.dir/GLCheck.cpp.o CMakeFiles/sfml-graphics.dir/Image.cpp.o CMakeFiles/sfml-graphics.dir/ImageLoader.cpp.o CMakeFiles/sfml-graphics.dir/RenderStates.cpp.o CMakeFiles/sfml-graphics.dir/RenderTexture.cpp.o CMakeFiles/sfml-graphics.dir/RenderTarget.cpp.o CMakeFiles/sfml-graphics.dir/RenderWindow.cpp.o CMakeFiles/sfml-graphics.dir/Shader.cpp.o CMakeFiles/sfml-graphics.dir/Texture.cpp.o CMakeFiles/sfml-graphics.dir/TextureSaver.cpp.o CMakeFiles/sfml-graphics.dir/Transform.cpp.o CMakeFiles/sfml-graphics.dir/Transformable.cpp.o CMakeFiles/sfml-graphics.dir/View.cpp.o CMakeFiles/sfml-graphics.dir/Vertex.cpp.o CMakeFiles/sfml-graphics.dir/Shape.cpp.o CMakeFiles/sfml-graphics.dir/CircleShape.cpp.o CMakeFiles/sfml-graphics.dir/RectangleShape.cpp.o CMakeFiles/sfml-graphics.dir/ConvexShape.cpp.o CMakeFiles/sfml-graphics.dir/Sprite.cpp.o CMakeFiles/sfml-graphics.dir/Text.cpp.o CMakeFiles/sfml-graphics.dir/VertexArray.cpp.o CMakeFiles/sfml-graphics.dir/RenderTextureImpl.cpp.o CMakeFiles/sfml-graphics.dir/RenderTextureImplFBO.cpp.o CMakeFiles/sfml-graphics.dir/RenderTextureImplDefault.cpp.o -F/tmp/SFML-2.0/extlibs/libs-osx/Frameworks ../../../lib/libsfml-window.2.0.dylib ../../../lib/libsfml-system.2.0.dylib -framework freetype ../../../../extlibs/libs-osx/lib/libGLEW.a ../../../../extlibs/libs-osx/lib/libjpeg.a -framework OpenGL -lpthread -framework Foundation -framework AppKit -framework IOKit -framework Carbon
ld: file too small for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libsfml-graphics.2.0.dylib] Error 1
make[1]: *** [src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/all] Error 2
make: *** [all] Error 2
Any suggestions?
(and no, building for x64 doesn't work either)
More random info:
doug@:/tmp/SFML-2.0/build$ clang --version
Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.3.0
Thread model: posix
Xcode info:
Version 4.6.2 (4H1003)