Compiling on Mac 10.6.8 using Xcode doesn't work
Issue #2
resolved
What I did so far (I really do not have any real clue what I'm doing):
1. install Xcode (4.0) and it's command line
2. install SourceTree
3. check out https://bitbucket.org/multicoreware/x265
4. open a terminal and navigat into the x265 folder cd ~/x265
5. change into the xcode build folder: cd build/xcode
6. call: ./make-project.sh
7. inside the make-project dialog I set CMAKE_OSX_ARCHITECTURES to x86_64
8. triggered 'configure' and then 'generate and exit'
9. opened the xcode folder inside Finder and double clicked x265.xcodeproj (-> xcode opens)
10. XCode spotted 9 issues inside 'common', which I ignored (all 'warning: no rule to process ..' some .asm file)
11. called Product->Build and got the info that 'Build ALL_BUILD: Failed' seemingly with:
'''
Apple Mach-O Linker (ld) Error
Command /Developer/usr/bin/clang++ failed with exit code 1
'''
12. called Product->Clean
13. double clicked on the x264 'folder' which opened a x265.xcodeproj window (with 'common' being selected)
14. switched to 'Build Rules', scrolled down to 'System Assembler rule' and pressed Copy to Target, not totally sure what to enter where I googled for Xcode and Yasm, found: http://stackoverflow.com/questions/5743662/how-to-instruct-xcode-to-use-yasm-to-compile-asm-files
and replaced:
# <com.apple.compilers.gcc>
with:
#!/bin/bash
/usr/local/bin/yasm -f macho64 -o ${OBJECT_FILE_DIR_normal}/${CURRENT_ARCH}/${INPUT_FILE_BASE}.o ${INPUT_FILE_DIR}/${INPUT_FILE}
and added:
"${OBJECT_FILE_DIR_normal}/${CURRENT_ARCH}/${INPUT_FILE_BASE}.o"
to the 'Output Files' section
15. called Product->Build
and got an issue for 'uninstall':
..........................
Shel Script Invocation Error
Command /bin/sh failed with exit code 2
..........................
after some clicking around (no clue what I clicked), I also found some additional infos:
..........................
PhaseScriptExecution "CMake Rules" /Users/selur/x265/build/xcode/x265.build/Debug/uninstall.build/Script-9B1253AAA6C441BDACD3845A.sh
cd /Users/selur/x265/source
/bin/sh -c /Users/selur/x265/build/xcode/x265.build/Debug/uninstall.build/Script-9B1253AAA6C441BDACD3845A.sh
echo ""
/Applications/CMake 2.8-12.app/Contents/bin/cmake -P /Users/selur/x265/build/xcode/cmake/cmake_uninstall.cmake
CMake Warning (dev) in cmake/cmake_uninstall.cmake:
Syntax Warning in cmake code at
/Users/selur/x265/build/xcode/cmake/cmake_uninstall.cmake:2:57
Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) in cmake/cmake_uninstall.cmake:
Syntax Warning in cmake code at
/Users/selur/x265/build/xcode/cmake/cmake_uninstall.cmake:10:91
Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) in cmake/cmake_uninstall.cmake:
Syntax Warning in cmake code at
/Users/selur/x265/build/xcode/cmake/cmake_uninstall.cmake:14:57
Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) in cmake/cmake_uninstall.cmake:
Syntax Warning in cmake code at
/Users/selur/x265/build/xcode/cmake/cmake_uninstall.cmake:17:31
Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at cmake/cmake_uninstall.cmake:2 (message):
Cannot find install manifest:
/Users/selur/x265/build/xcode/install_manifest.txt""
make: *** [/Users/selur/x265/build/xcode/CMakeFiles/uninstall] Error 1
Command /bin/sh failed with exit code 2
----
since the formating here is a pain, I also uploaded the content of this post to:
http://sebsauvage.net/paste/?0a452bbedc9dcb46#jG28zt8Mnp5Rp+MSlvl+QyaPgGYYnhJpkg/wsrAHDDc=
---> would be nice if either:
a. there could be some more detailed build instructions for Mac 10.6.8 (got no problem compiling x265 on LInux)
b. someone could share some statically linked mac binaries
Comments (5)
-
reporter -
- edited description
-
Building with GCC+Makefiles should work on Snow Leopard now; not sure if Xcode works or not. Xcode on Mavericks doesn't quite link x265 yet, even with a very recent cmake source drop
-
reporter yup works fine now, thanks
-
- changed status to resolved
it seems all is well
- Log in to comment
compiling seems to work on Mavericks, but still fails on Snow Leopard (10.6.8)