Skip to content
New issue

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

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

Already on GitHub? # to your account

Compile failure on M1 Mac 15 #3205

Closed
djmango opened this issue Aug 29, 2024 · 2 comments
Closed

Compile failure on M1 Mac 15 #3205

djmango opened this issue Aug 29, 2024 · 2 comments

Comments

@djmango
Copy link

djmango commented Aug 29, 2024

System Information

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

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```
@paroj
Copy link
Member

paroj commented Aug 29, 2024

this is not an issue for us, but should rather be reported here:
https://github.com/osrf/homebrew-simulation

ogre 14 compiles fine on M1 macs, as you can verify by our PIP packages: https://pypi.org/project/ogre-python/#files

@paroj paroj closed this as completed Aug 29, 2024
@djmango
Copy link
Author

djmango commented Aug 30, 2024

Ah yes found this osrf/homebrew-simulation#2478

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@paroj @djmango and others