Open henriquenunez opened 9 months ago
Maybe you can try without ogre1.9? Does it work if you comment out the following line?
https://github.com/osrf/homebrew-simulation/blob/master/Formula/gz-rendering8.rb#L26
Ogre2.3 also fails. On my side it seems to be a Freetype issue:
/tmp/ogre2.3-20240103-59973-jivofc/ogre-next-2.3.1/Components/Overlay/src/OgreFont.cpp:48:10: fatal error: 'ft2build.h' file not found
#include <ft2build.h>
^~~~~~~~~~~~
1 error generated.
make[2]: *** [Components/Overlay/CMakeFiles/OgreOverlay.dir/src/OgreFont.cpp.o] Error 1
...
[ 94%] Built target RenderSystem_GL3Plus
make: *** [all] Error 2
HOMEBREW_VERSION: 4.2.2
ORIGIN: https://github.com/Homebrew/brew
HEAD: 705d2564ddfb9c915ee9425dd9ed408bfac61005
Last commit: 2 days ago
Core tap JSON: 03 Jan 10:26 UTC
Core cask tap JSON: 03 Jan 10:26 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.JcsNn6Qqu3/org.xquartz:0
HOMEBREW_MAKE_JOBS: 10
HOMEBREW_NO_BOOTSNAP: set
Homebrew Ruby: 3.1.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 15.0.0 build 1500
Git: 2.39.3 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 8.4.0 => /usr/bin/curl
macOS: 14.2.1-arm64
CLT: 15.1.0.0.1.1700200546
Xcode: 15.1
Rosetta 2: false
However, I do have freetype installed:
$ brew link freetype
Warning: Already linked: /opt/homebrew/Cellar/freetype/2.13.2
I had the same issue when I try to install gz-garden.
"_zzip_file_read", referenced from: Ogre::ZipDataStream::read(void, unsigned long) in OgreZip.cpp.o "_zzip_seek", referenced from: Ogre::ZipDataStream::skip(long) in OgreZip.cpp.o Ogre::ZipDataStream::seek(unsigned long) in OgreZip.cpp.o "_zzip_strerror_of", referenced from: Ogre::ZipDataStream::read(void, unsigned long) in OgreZip.cpp.o "_zzip_tell", referenced from: Ogre::ZipDataStream::tell() const in OgreZip.cpp.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: [lib/macosx/libOgreMain.1.9.0.dylib] Error 1 make[1]: [OgreMain/CMakeFiles/OgreMain.dir/all] Error 2 make: *** [all] Error 2
The same result with both x86_64 and arm64.
However, the installation was successful when I used iTerm2 with Rosetta 2 enabled.
I had the same issue when I try to install gz-garden.
"_zzip_file_read", referenced from: Ogre::ZipDataStream::read(void, unsigned long) in OgreZip.cpp.o "_zzip_seek", referenced from: Ogre::ZipDataStream::skip(long) in OgreZip.cpp.o Ogre::ZipDataStream::seek(unsigned long) in OgreZip.cpp.o "_zzip_strerror_of", referenced from: Ogre::ZipDataStream::read(void, unsigned long) in OgreZip.cpp.o "_zzip_tell", referenced from: Ogre::ZipDataStream::tell() const in OgreZip.cpp.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: [lib/macosx/libOgreMain.1.9.0.dylib] Error 1 make[1]: [OgreMain/CMakeFiles/OgreMain.dir/all] Error 2 make: *** [all] Error 2
The same result with both x86_64 and arm64.
However, the installation was successful when I used iTerm2 with Rosetta 2 enabled.
But I guess we want to unlock full native speed specially when simulating, don't we?
If you think performance was not impaired too much, lmk and I will try this way!
HOMEBREW_VERSION: 4.1.16 ORIGIN: https://github.com/Homebrew/brew HEAD: c0c8a4dd4dd19ec16deb429abd50cdf82ea33b27 Last commit: 5 days ago Core tap JSON: 19 Oct 12:20 UTC HOMEBREW_PREFIX: /opt/homebrew HOMEBREW_CASK_OPTS: [] HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.01KX0mygsH/org.xquartz:0 HOMEBREW_MAKE_JOBS: 8 HOMEBREW_SORBET_RUNTIME: set Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby CPU: octa-core 64-bit arm_firestorm_icestorm Clang: 14.0.3 build 1403 Git: 2.39.2 => /Applications/Xcode.app/Contents/Developer/usr/bin/git Curl: 7.84.0 => /usr/bin/curl macOS: 13.0.1-arm64 CLT: 14.3.1.0.1.1683849156 Xcode: 14.3.1 Rosetta 2: false
Error (I couldnt gist the logs):
I tried changing the
-DCMAKE_OSX_ARCHITECTURES
flag toarm64
instead of the defaultx86-64
, but no success with that. I also saw a couple other issues with trouble building on apple silicon, but they seemed unrelated.