zoglauer / megalib

MEGAlib - the Medium-Energy Gamma-ray Astronomy library
http://megalibtoolkit.com
Other
42 stars 34 forks source link

ROOT compilation FREETYPE Error with macOS 10.14 Mojave #52

Closed dashmanix closed 2 years ago

dashmanix commented 5 years ago

Problems with freetype during ROOT compilations, this is the Error: ..... [ 58%] Built target ClangAttrDump [ 58%] Built target ClangCommentHTMLTags [ 58%] Built target ClangDeclNodes CMake Error at /Users/Documents/Simulation_Mont_Carlo/ROOT/root-6.16.00-build/FREETYPE-prefix/src/FREETYPE-stamp/FREETYPE-build-RelWithDebInfo.cmake:49 (message): Command failed: 2

'/Applications/Xcode.app/Contents/Developer/usr/bin/make'

See also

/Users/Documents/Simulation_Mont_Carlo/ROOT/root-6.16.00-build/FREETYPE-prefix/src/FREETYPE-stamp/FREETYPE-build-*.log

make[2]: [FREETYPE-prefix/src/FREETYPE-stamp/FREETYPE-build] Error 1 make[1]: [CMakeFiles/FREETYPE.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... [ 58%] Built target ClangAttrVisitor [ 58%] Built target ClangDiagnosticCommon [ 58%] Built target ClangARMNeon make: [all] Error 2

zoglauer commented 5 years ago

Could you send me the complete log file?

dashmanix commented 5 years ago

Could you send me the complete log file?

//the log file : ..../FREETYPE-build-*.log

/opt/local/bin/ranlib: object: /Users/Documents/Simulation_Mont_Carlo/ROOT/root-6.16.00-build/FREETYPE-prefix/src/FREETYPE/objs/.libs/libfreetype.a(ftsystem.o) malformed object (unknown load command 1) ar: internal ranlib command failed make[3]: *** [/Users/Documents/Simulation_Mont_Carlo/ROOT/root-6.16.00-build/FREETYPE-prefix/src/FREETYPE/objs/libfreetype.la] Error 1

zoglauer commented 5 years ago

Googling a bit, you will find that the most common reason for this problem is that your Xcode command line tools are either old or broken.

Could you do xcode-select --install and try again?