osrf / homebrew-simulation

Homebrew tap for osrf simulation software
Apache License 2.0
56 stars 75 forks source link

ogre formulae don't compile on Macs with M1 arm processor #1628

Closed scpeters closed 1 year ago

scpeters commented 3 years ago

I tried compiling ogre1.9, ogre2.1, and ogre2.2 on a Mac mini with the new M1 processor and it failed to compile. I think we need to apply https://github.com/OGRECave/ogre-next/commit/ff013388249c4f51537e09f9f84b51e51d77cf10 to our formulae.

cd /tmp/ogre1.9-20210930-35690-ugtmev/sinbad-ogre-108ab0bcc696/build/OgreMain && /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DBOOST_ALL_NO_LIB -DFREEIMAGE_LIB -DOGRE_NONCLIENT_BUILD -DOgreMain_EXPORTS -D_MT -D_USRDLL -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0 -I/tmp/ogre1.9-20210930-35690-ugtmev/sinbad-ogre-108ab0bcc696/OgreMain/include -I/tmp/ogre1.9-20210930-35690-ugtmev/sinbad-ogre-108ab0bcc696/build/include -I/tmp/ogre1.9-20210930-35690-ugtmev/sinbad-ogre-108ab0bcc696/OgreMain/include/OSX -I/opt/homebrew/include/freetype2 -I/tmp/ogre1.9-20210930-35690-ugtmev/sinbad-ogre-108ab0bcc696 -I/tmp/ogre1.9-20210930-35690-ugtmev/sinbad-ogre-108ab0bcc696/OgreMain/include/Threading -I/tmp/ogre1.9-20210930-35690-ugtmev/sinbad-ogre-108ab0bcc696/OgreMain/src/nedmalloc -stdlib=libc++ -O3 -DNDEBUG -arch x86_64 -mmacosx-version-min=10.7 -fPIC   -pthread -MD -MT OgreMain/CMakeFiles/OgreMain.dir/src/OgrePass.cpp.o -MF CMakeFiles/OgreMain.dir/src/OgrePass.cpp.o.d -o CMakeFiles/OgreMain.dir/src/OgrePass.cpp.o -c /tmp/ogre1.9-20210930-35690-ugtmev/sinbad-ogre-108ab0bcc696/OgreMain/src/OgrePass.cpp
In file included from /tmp/ogre1.9-20210930-35690-ugtmev/sinbad-ogre-108ab0bcc696/OgreMain/src/OgreOptimisedUtilSSE.cpp:39:
In file included from /tmp/ogre1.9-20210930-35690-ugtmev/sinbad-ogre-108ab0bcc696/OgreMain/src/OgreSIMDHelper.h:76:
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/xmmintrin.h:13:
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:33:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
    __builtin_ia32_emms();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/math.h:649:12: note: '__builtin_isless' declared here
    return isless(__lcpp_x, __lcpp_y);
           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/math.h:545:22: note: expanded from macro 'isless'
#define isless(x, y) __builtin_isless((x),(y))
                     ^
In file included from /tmp/ogre1.9-20210930-35690-ugtmev/sinbad-ogre-108ab0bcc696/OgreMain/src/OgreOptimisedUtilSSE.cpp:39:
In file included from /tmp/ogre1.9-20210930-35690-ugtmev/sinbad-ogre-108ab0bcc696/OgreMain/src/OgreSIMDHelper.h:76:
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/xmmintrin.h:13:
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:33:25: error: too few arguments to function call, expected 2, have 0
    __builtin_ia32_emms();
    ~~~~~~~~~~~~~~~~~~~~^
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:50:19: error: use of undeclared identifier '__builtin_ia32_vec_init_v2si'
    return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
                  ^
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:67:12: error: use of undeclared identifier '__builtin_ia32_vec_ext_v2si'
    return __builtin_ia32_vec_ext_v2si((__v2si)__m, 0);
           ^
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:129:19: error: use of undeclared identifier '__builtin_ia32_packsswb'
    return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:159:19: error: use of undeclared identifier '__builtin_ia32_packssdw'
    return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
                  ^
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:189:19: error: use of undeclared identifier '__builtin_ia32_packuswb'
    return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:216:19: error: use of undeclared identifier '__builtin_ia32_punpckhbw'
    return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:239:19: error: use of undeclared identifier '__builtin_ia32_punpckhwd'
    return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:260:19: error: use of undeclared identifier '__builtin_ia32_punpckhdq'
    return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);
                  ^
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:287:19: error: use of undeclared identifier '__builtin_ia32_punpcklbw'
    return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:310:19: error: use of undeclared identifier '__builtin_ia32_punpcklwd'
    return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:331:19: error: use of undeclared identifier '__builtin_ia32_punpckldq'
    return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2);
                  ^
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:352:19: error: use of undeclared identifier '__builtin_ia32_paddb'; did you mean '__builtin_arm_addg'?
    return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:352:19: note: '__builtin_arm_addg' declared here
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:352:19: error: first argument of MTE builtin function must be a pointer ('__v8qi' (vector of 8 'char' values) invalid)
    return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
                  ^                    ~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:373:19: error: use of undeclared identifier '__builtin_ia32_paddw'; did you mean '__builtin_arm_addg'?
    return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:352:19: note: '__builtin_arm_addg' declared here
    return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:373:19: error: first argument of MTE builtin function must be a pointer ('__v4hi' (vector of 4 'short' values) invalid)
    return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
                  ^                    ~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:394:19: error: use of undeclared identifier '__builtin_ia32_paddd'; did you mean '__builtin_arm_addg'?
    return (__m64)__builtin_ia32_paddd((__v2si)__m1, (__v2si)__m2);
                  ^
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:352:19: note: '__builtin_arm_addg' declared here
    return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:394:19: error: first argument of MTE builtin function must be a pointer ('__v2si' (vector of 2 'int' values) invalid)
    return (__m64)__builtin_ia32_paddd((__v2si)__m1, (__v2si)__m2);
                  ^                    ~~~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreOptimisedUtilSSE.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [OgreMain/CMakeFiles/OgreMain.dir/all] Error 2
make: *** [all] Error 2

HOMEBREW_VERSION: 3.2.14-35-g9b42a10
ORIGIN: https://github.com/Homebrew/brew
HEAD: 9b42a104ee51fd2c45f91a72fc18bbad73b1aa5a
Last commit: 2 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: c2af2f98b5e6c98abfd7065e0eed12600bb45b80
Core tap last commit: 45 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_NO_BOOTSNAP: set
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 13.0.0 build 1300
Git: 2.30.1 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.6-arm64
CLT: 13.0.0.0.1.1630607135
Xcode: N/A
Rosetta 2: false

HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /opt/homebrew/opt/icu4c:/opt/homebrew/opt/openssl@1.1:/opt/homebrew/opt/readline:/opt/homebrew/opt/sqlite:/opt/homebrew
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /opt/homebrew/opt/python@3.9/Frameworks
PKG_CONFIG_PATH: /opt/homebrew/opt/icu4c/lib/pkgconfig:/opt/homebrew/opt/libpng/lib/pkgconfig:/opt/homebrew/opt/freetype/lib/pkgconfig:/opt/homebrew/opt/libpthread-stubs/lib/pkgconfig:/opt/homebrew/opt/libxau/lib/pkgconfig:/opt/homebrew/opt/libxdmcp/lib/pkgconfig:/opt/homebrew/opt/libxcb/lib/pkgconfig:/opt/homebrew/opt/libx11/lib/pkgconfig:/opt/homebrew/opt/libzzip/lib/pkgconfig:/opt/homebrew/opt/openssl@1.1/lib/pkgconfig:/opt/homebrew/opt/readline/lib/pkgconfig:/opt/homebrew/opt/sqlite/lib/pkgconfig:/opt/homebrew/opt/xz/lib/pkgconfig:/opt/homebrew/opt/python@3.9/lib/pkgconfig:/opt/homebrew/opt/tbb/lib/pkgconfig:/opt/homebrew/opt/xorgproto/share/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/11
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
ACLOCAL_PATH: /opt/homebrew/share/aclocal
PATH: /opt/homebrew/Library/Homebrew/shims/mac/super:/opt/homebrew/opt/cmake/bin:/opt/homebrew/opt/icu4c/bin:/opt/homebrew/opt/doxygen/bin:/opt/homebrew/opt/libpng/bin:/opt/homebrew/opt/freetype/bin:/opt/homebrew/opt/pkg-config/bin:/opt/homebrew/opt/libzzip/bin:/opt/homebrew/opt/gdbm/bin:/opt/homebrew/opt/openssl@1.1/bin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/opt/xz/bin:/opt/homebrew/opt/python@3.9/bin:/usr/bin:/bin:/usr/sbin:/sbin
srmainwaring commented 2 years ago
  1. The command line is now:

For the server:

gz sim -v4 -s -r shapes.sdf

For the client:

gz sim -v4 -g
  1. You should export the following to use the brew version of ruby
 export PATH=/opt/homebrew/opt/ruby/bin:$PATH

(your list of exports above is using /usr/local/opt).

  1. Search paths

This is where I had issues once everything was building correctly and the main difference between the compilation flags used by @iche033 and me is that I used

-DCMAKE_INSTALL_PREFIX=/opt/homebrew/Cellar/ogre2.2/2.2.6

when building ogre2.2. I haven't resolved why this should make a difference, but it solved the problem of the rendering plugins not finding libOgreMain and friends when loading.

Kakcalu13 commented 2 years ago

Sorry, I tried and followed everything. It's just no luck for me. I'm sorry for giving you some headache lol

So, here is my set_gz_env.sh:

#--------------------------------------------------------------------------
# Usage
#
# $ source ./set_gz_env.sh
#

#--------------------------------------------------------------------------
# set environment for Dart and Qt: https://ignitionrobotics.org/docs/fortress/install_osx_src

# dartsim@6.10.0
export CMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}:/opt/homebrew/opt/dartsim@5

export DYLD_FALLBACK_LIBRARY_PATH=${DYLD_FALLBACK_LIBRARY_PATH}:/opt/homebrew/opt/dartsim@6.10.0/lib:/opt/homebrew/opt/octomap/

export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/opt/homebrew/opt/dartsim@6.10.0/lib/pkgconfig

export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/opt/homebrew/opt/dartsim@6.10.0/lib/pkgconfig

# qt5
export CMAKE_PREFIX_PATH=/opt/homebrew/opt/qt@5:${CMAKE_PREFIX_PATH}

#--------------------------------------------------------------------------
# Set Ogre environment variables

unset OGRE_RESOURCE_PATH
export OGRE_RESOURCE_PATH=/opt/homebrew/opt/ogre1.9/lib/OGRE

unset OGRE2_RESOURCE_PATH
export OGRE2_RESOURCE_PATH=/opt/homebrew/opt/ogre2.2/lib/OGRE-2.2/OGRE

#--------------------------------------------------------------------------
# Set Ignition environment variables

# Set the render emgine to use when running tests with 'make test'
export RENDER_ENGINE_VALUES=ogre2

# used by ros_ign
export IGNITION_VERSION=garden

# ignition-transport
# if set to 1 this displays all transport messages
export IGN_VERBOSE=0
export IGN_IP=127.0.0.1

export IGN_CONFIG_PATH=\
$HOME/Code/osrf/gz_garden_ws/install/share/ignition

#--------------------------------------------------------------------------
# Use brew version of ruby to avoid SIP issues
export PATH=/opt/homebrew/opt/ruby/bin:$PATH

I don't see any /usr/local/opt in my set.

So the command I use now is:

colcon build --cmake-args -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=/opt/homebrew/Cellar/ogre2.2/2.2.6  --merge-install --packages-up-to gz-sim7 --cmake-clean-cache

This results the below error:

station1@Station1s-Mini workspace_new % export CMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}:/opt/homebrew/opt/dartsim@6.10.0
export DYLD_FALLBACK_LIBRARY_PATH=${DYLD_FALLBACK_LIBRARY_PATH}:/opt/homebrew/opt/dartsim@6.10.0/lib:/usr/local/opt/octomap/local
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/opt/homebrew/opt/dartsim@6.10.0/lib/pkgconfig
station1@Station1s-Mini workspace_new % gz sim -v4 -s -r shapes.sdf
Library error for [/Users/station1/workspace_new/install/lib/libgz-sim7-gz.7.0.0~pre1.dylib]: dlopen(/Users/station1/workspace_new/install/lib/libgz-sim7-gz.7.0.0~pre1.dylib, 0x0009): Library not loaded: @rpath/libgz-sim7-gui.7.dylib
  Referenced from: /Users/station1/workspace_new/install/lib/libgz-sim7-gz.7.0.0~pre1.dylib
  Reason: tried: '/usr/local/lib/libgz-sim7-gui.7.dylib' (no such file), '/usr/lib/libgz-sim7-gui.7.dylib' (no such file)

If this script was executed with /usr/bin/ruby, this error may be caused by
macOS System Integrity Protection. One workaround is to use a different
version of ruby, for example:
    brew install ruby
and add the following line to your shell profile:
    export PATH=/usr/local/opt/ruby/bin:$PATH
If you are using a colcon workspace, please ensure that the setup script
has properly set the DYLD_LIBRARY_PATH environment variables.

Here is the little meme, I hope this cures all headache :P

srmainwaring commented 2 years ago

There are some mistakes in your build as you have used the CMAKE_INSTALL_PREFIX I use for building ogre2.2 and have dropped the CMAKE_MACOSX_RPATH flag. There is also a mistake in setting the the IGN_CONFIG_PATH as you have used my workspace location rather than yours.

Let's try again, being careful:

  1. Install ogre2.2:

I am assuming that you have installed ogre following @iche033's instructions, using their osrf/simulation branch and modifying the Formula with the additional flag -DCMAKE_MACOSX_RPATH=FALSE. If this step is wrong you will have search path issues later when trying to load the ogre2 render engine plugin in the gui.

  1. Clear out your Gazebo workspace:

From the error messages I see your workspace is /Users/station1/workspace_new/. First we need to open a clean shell and clear out the existing build. I am assuming you have not set any Gazebo or Ogre or ROS environment variables in .zprofile that might mess things up. You don't need to clear out the src folder if you've already pulled the garden dependencies.

cd $HOME/workspace_new/

# clear out the previous build
rm -rf ./build ./log ./install
  1. Build gz-sim:
# set pre-build exports for dart and qt5
export CMAKE_PREFIX_PATH=/opt/homebrew/opt/dartsim@6.10.0:${CMAKE_PREFIX_PATH}
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/opt/homebrew/opt/dartsim@6.10.0/lib/pkgconfig
export CMAKE_PREFIX_PATH=/opt/homebrew/opt/qt@5:${CMAKE_PREFIX_PATH}

# build gazebo
colcon build --cmake-args -DBUILD_TESTING=OFF -DCMAKE_MACOSX_RPATH=FALSE -DCMAKE_INSTALL_NAME_DIR=$(pwd)/install/lib  --merge-install --packages-up-to gz-sim7 --cmake-clean-cache
  1. Set up the environment to run:
source ./install/setup.zh

#--------------------------------------------------------------------------
# Set Ogre environment variables

export OGRE_RESOURCE_PATH=/opt/homebrew/opt/ogre1.9/lib/OGRE
export OGRE2_RESOURCE_PATH=/opt/homebrew/opt/ogre2.2/lib/OGRE-2.2/OGRE

#--------------------------------------------------------------------------
# Set Gazebo environment variables

export GZ_IP=127.0.0.1
export GZ_CONFIG_PATH=$HOME/workspace_new/install/share/ignition

#--------------------------------------------------------------------------
# Use brew version of ruby to avoid SIP issues
export PATH=/opt/homebrew/opt/ruby/bin:$PATH
  1. Check the command line
% gz sim --version
Gazebo Sim, version 7.0.0~pre1
Copyright (C) 2018 Open Source Robotics Foundation.
Released under the Apache 2.0 License.
  1. Try gz-sim server:
% gz sim -v4 -s -r shapes.sdf
[Msg] Gazebo Sim Server v7.0.0~pre1
[Msg] Loading SDF world file[/Users/station1/workspace_new/install/share/ignition/gz-sim7/worlds/shapes.sdf].
[Msg] Loaded level [3]
...
  1. And finally the gui:
% gz sim -v4 -g
[Msg] Gazebo Sim GUI    v7.0.0~pre1
[Dbg] [Application.cc:94] Initializing application.
[Dbg] [Application.cc:102] Qt using Metal graphics interface
[GUI] [Dbg] [Application.cc:562] Create main window
...

It's at this point you'll notice if you ogre2.2 build is incorrect as the rendering plugins will not load.

scpeters commented 1 year ago

the ogre2.2 formula should be fixed by #1823, and ogre1.9 and ogre2.3 should already be fixed

skiopter commented 5 months ago

Hello, If I try to install ogre 1.9 (brew install ogre1.9) I get:

==> cmake -DCMAKE_OSX_ARCHITECTURES='x86_64' -DOGRE_BUILD_LIBS_AS_FRAMEWORKS=OFF -DOGRE_FULL_RPATH:BOOL=FALSE -DOGRE_BUILD_DOCS:BOOL=FALSE -DOGRE_INSTALL
==> make install
Last 15 lines from /Users/user/Library/Logs/Homebrew/ogre1.9/02.make:
make[2]: *** Waiting for unfinished jobs....
20 errors generated.
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimable.cpp.o] Error 1
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimationState.cpp.o] Error 1
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAxisAlignedBox.cpp.o] Error 1
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAlignedAllocator.cpp.o] Error 1
20 errors generated.
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreArchiveManager.cpp.o] Error 1
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreArchive.cpp.o] Error 1
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimationTrack.cpp.o] Error 1
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimation.cpp.o] Error 1
20 errors generated.
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAutoParamDataSource.cpp.o] Error 1
make[1]: *** [OgreMain/CMakeFiles/OgreMain.dir/all] Error 2
make: *** [all] Error 2
Kakcalu13 commented 5 months ago

Hello, If I try to install ogre 1.9 (brew install ogre1.9) I get:

==> cmake -DCMAKE_OSX_ARCHITECTURES='x86_64' -DOGRE_BUILD_LIBS_AS_FRAMEWORKS=OFF -DOGRE_FULL_RPATH:BOOL=FALSE -DOGRE_BUILD_DOCS:BOOL=FALSE -DOGRE_INSTALL
==> make install
Last 15 lines from /Users/user/Library/Logs/Homebrew/ogre1.9/02.make:
make[2]: *** Waiting for unfinished jobs....
20 errors generated.
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimable.cpp.o] Error 1
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimationState.cpp.o] Error 1
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAxisAlignedBox.cpp.o] Error 1
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAlignedAllocator.cpp.o] Error 1
20 errors generated.
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreArchiveManager.cpp.o] Error 1
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreArchive.cpp.o] Error 1
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimationTrack.cpp.o] Error 1
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimation.cpp.o] Error 1
20 errors generated.
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAutoParamDataSource.cpp.o] Error 1
make[1]: *** [OgreMain/CMakeFiles/OgreMain.dir/all] Error 2
make: *** [all] Error 2

Hi there!

Can you try this steps:

ulimit -n unlimited
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew tap osrf/simulation
brew install gz-harmonic

Let me know if it worked for you? The one you are currently trying is kinda rather too complicated. The one I provided is super easy!

Fuze15 commented 5 months ago

Hello, If I try to install ogre 1.9 (brew install ogre1.9) I get:

==> cmake -DCMAKE_OSX_ARCHITECTURES='x86_64' -DOGRE_BUILD_LIBS_AS_FRAMEWORKS=OFF -DOGRE_FULL_RPATH:BOOL=FALSE -DOGRE_BUILD_DOCS:BOOL=FALSE -DOGRE_INSTALL
==> make install
Last 15 lines from /Users/user/Library/Logs/Homebrew/ogre1.9/02.make:
make[2]: *** Waiting for unfinished jobs....
20 errors generated.
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimable.cpp.o] Error 1
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimationState.cpp.o] Error 1
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAxisAlignedBox.cpp.o] Error 1
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAlignedAllocator.cpp.o] Error 1
20 errors generated.
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreArchiveManager.cpp.o] Error 1
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreArchive.cpp.o] Error 1
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimationTrack.cpp.o] Error 1
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimation.cpp.o] Error 1
20 errors generated.
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAutoParamDataSource.cpp.o] Error 1
make[1]: *** [OgreMain/CMakeFiles/OgreMain.dir/all] Error 2
make: *** [all] Error 2

same error as yours, can not find a way out

skol101 commented 4 months ago

Patch doesn't help, didn't complile with error

cd /tmp/ogre1.9-20240614-15842-yi87n9/sinbad-ogre-108ab0bcc696/build/RenderSystems/GL && /opt/homebrew/Cellar/cmake/3.29.5/bin/cmake -E cmake_symlink_library ../../lib/macosx/RenderSystem_GL.1.9.0.dylib ../../lib/macosx/RenderSystem_GL.1.9.0.dylib ../../lib/macosx/RenderSystem_GL.dylib [ 92%] Built target RenderSystem_GL make: *** [all] Error 2

But this works! curl -ssL http://get.gazebosim.org | sh