-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build error for NEON #430
Comments
I pased this error by type casting but, another error is occurred.
vmovemaskq_u32 is defined OgreMain/include/Math/Array/NEON/Single/OgreMathlibNEON.h. BR, |
Hi! There's little we can do on unsupported platforms (PRs are accepted if you wish to fix it).
Indeed it is. Given that it says it cannot be found, either OgreMathlibNEON.h was not included, or (most likely) __OGRE_HAVE_NEON is not defined. It is defined in OgrePlatform.h. Apologies for the late reply. |
Hi, I have patched this issue and build is fine for me now. I can not push for this change because I would have no access right for this repo. So, I created a patch file and share it in here, BR, |
Hi @bchoineubility , I started trying to get gazebo and rviz2 to build in meta-ros and stumbled across your patch. May I get your sign off to include the patch in meta-ros? Thanks, |
Hi @bchoineubility, I was successful in getting both Ogre 1.12.12, Ogre-Next 2.2.0, and Ogre-Next 2.3.3 to build in my feature branch: ros/meta-ros#1140 It still needs some work and runtime testing before I can merge it. Any feedback you can provide is great. For the benefit of the ogre-next folks and anyone stumbling across this issue:
Regards, |
No problem thanks. |
I'm looking into this issue and unfortunately the patch cannot be merged as is. I suspect the reason behind these issues boil down to Clang vs GCC. Our main source of testing for ARM64 so far have been Android & iOS; and both use Clang for building for ARM. Are there any guides on how to cross compile to the platforms you are targeting? |
@darksylinc Thanks for picking this up. I think that sounds like a great idea. At the moment, the instructions I could give are automated, but would require building a lot of other source packages before it got to OGRE. I was planning on producing an SDK that would provide the libraries and the toolchain ready to go. I am hoping to have that done by May 23rd at the latest. I think that might be the easiest way to proceed. I could potentially provide you with an SDK as a tarball to extract or a Docker container that you just needed to download and run. The binaries inside would likely be for Linux running on x86-64. Would that work for you? |
@robwoolley , FYI Ogre 2.3.3 is now in Ubuntu Noble. The solution to the arm64 issue has been to disable Gazebo Harmonic is going to be available from the |
Hi! It doesn't need to be a full environment. Usually it boils down to installing the right GCC and *.cmake toolchain file to indicate CMake how to use it. Since the problem is at compiling time, it doesn't even need to link properly. This is an example of a file I use to compile via mingw from Ubuntu when I want to test Windows: # Sample toolchain file for building for Windows from an Ubuntu Linux system.
#
# Typical usage:
# *) install cross compiler: `sudo apt-get install mingw-w64`
# *) cd build
# *) cmake -DCMAKE_TOOLCHAIN_FILE=~/mingw-w64-x86_64.cmake ..
set(CMAKE_SYSTEM_NAME Windows)
set(TOOLCHAIN_PREFIX x86_64-w64-mingw32)
# cross compilers to use for C, C++ and Fortran
set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc)
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++)
set(CMAKE_Fortran_COMPILER ${TOOLCHAIN_PREFIX}-gfortran)
set(CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres)
# target environment on the build host system
set(CMAKE_FIND_ROOT_PATH /usr/${TOOLCHAIN_PREFIX})
# modify default behavior of FIND_XXX() commands
#set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
#set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
#set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) |
Hi,
I have a build error for NEON on aarch64, exact platform name is Jetson xavier.
I am using ogre-next-2.3.3 now for cross compiling on Yocto.
Error message is
BR,
Mark
The text was updated successfully, but these errors were encountered: