Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMFL does not build using cmake + clang on OSX mountain lion. #382

Closed
shadowmint opened this issue Apr 30, 2013 · 5 comments
Closed

SMFL does not build using cmake + clang on OSX mountain lion. #382

shadowmint opened this issue Apr 30, 2013 · 5 comments

Comments

@shadowmint
Copy link

configure output:
-- The C compiler identification is Clang 4.2.0
-- The CXX compiler identification is Clang 4.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found OpenGL: /System/Library/Frameworks/OpenGL.framework
-- Found Freetype: /Users/douglasl/projects/go/libs/sfml/SFML-2.0/extlibs/libs-osx/Frameworks/freetype.framework (found version "2.4.11")
-- Found GLEW: /Users/douglasl/projects/go/libs/sfml/SFML-2.0/extlibs/libs-osx/lib/libGLEW.a
-- Found JPEG: /Users/douglasl/projects/go/libs/sfml/SFML-2.0/extlibs/libs-osx/lib/libjpeg.a
-- Found OpenAL: /System/Library/Frameworks/OpenAL.framework
-- Found SNDFILE: /Users/douglasl/projects/go/libs/sfml/SFML-2.0/extlibs/libs-osx/Frameworks/sndfile.framework
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/douglasl/projects/go/libs/sfml/SFML-2.0/build

Build output:
...
Linking CXX shared library ../../../lib/libsfml-graphics.dylib
ld: file too small for architecture x86_64
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

@shadowmint
Copy link
Author

NB. and no, it doesn't work with i386 either:

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

@eXpl0it3r
Copy link
Member

Please use the forum for help requests. This seems more like an environment issue than a bug in SFML.
When you're on the forum, you should also post the output with make -v so we get a more verbose output.

@mantognini
Copy link
Member

Yes, please open a thread on the forum to discuss this issue. Provide all information you can about your env : OS version, Xcode version, clang version, .......

@shadowmint
Copy link
Author

--> http://en.sfml-dev.org/forums/index.php?topic=11312.msg78458 (for anyone else who comes to the bug tracker, like me, expecting this to be the place to look for answers)

@LaurentGomila
Copy link
Member

The task tracker is the place for SFML bugs, not user bugs. I'd like it to contain only proven/validated/obvious bugs or tasks. All other issues should be discussed first, and the perfect place for that is the forum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants