ogre icon indicating copy to clipboard operation
ogre copied to clipboard

Compile failure on M1 Mac 15

Open djmango opened this issue 5 months ago • 0 comments

System Information

  • Ogre Version: 1.9, 2.2, 2.3
  • Operating System / Platform: MacOS 15 M1 Pro
  • RenderSystem: :grey_question:

Detailled description

The homebrew installation for all ogre formulas (I tested 1.9, 2.2, 2.3) is failing at this step. Seems to be an architecture issue with arm64. I discovered this when attempting to install Gazebo Harmonic. All current LTS Gazebo versions fail on this step, with this same error. I've attempted recompilation of my system zzip, clearing cache, etc to no avail.

homebrew install ogre2.3


==> Fetching osrf/simulation/ogre2.3
==> Cloning https://github.com/OGRECave/ogre-next.git
Cloning into '/Users/djmango/Library/Caches/Homebrew/ogre2.3--git'...
Updating files: 100% (5287/5287), done.
==> Checking out branch v2-3
Already on 'v2-3'
Your branch is up to date with 'origin/v2-3'.
==> Installing ogre2.3 from osrf/simulation
==> cmake .. -DCMAKE_CXX_STANDARD=11 -DCMAKE_CXX_STANDARD_REQUIRED:BOOL=ON -DCMAKE_CXX_EXTENSIONS:BOOL=ON -DCMAKE_INSTALL_RPATH=@loader_path/../lib;@loader_path/..;@loader_path/../.. -DOGRE_B
==> make install
Last 15 lines from /Users/djmango/Library/Logs/Homebrew/ogre2.3/02.make:
      Ogre::ZipArchive::open(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, bool) in OgreZip.cpp.o
  "_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.2.3.4.dylib] Error 1
make[1]: *** [OgreMain/CMakeFiles/OgreMain.dir/all] Error 2
make: *** [all] Error 2```

djmango avatar Aug 29 '24 01:08 djmango