Cool VL Viewer forum http://sldev.free.fr/forum/ |
|
ARM64 port (was: Porting Difficulties) http://sldev.free.fr/forum/viewtopic.php?f=10&t=2212 |
Page 2 of 6 |
Author: | Henri Beauchamp [ 2021-08-20 10:34:54 ] | ||||||||||||||||||
Post subject: | Re: ARM64 port (was: Porting Difficulties) | ||||||||||||||||||
Good news ! For the architecture detection in cmake, just replace the "set(ARCH x86_64)" line in indra/cmake/Variables.cmake with:
Then you can make everything architecture-specific depend on ${ARCH} tests in the cmake files, such as in indra/cmake/Boost.cmake, where, instead of the 'set(ARCH_SUFFIX "-a64")' I suggested above, you can use:
The above two changes have already been included for next release. |
Author: | bjbdragon [ 2021-08-20 17:42:18 ] |
Post subject: | Re: ARM64 port (was: Porting Difficulties) |
Ran into issue when trying to build my cleaned up non system libs version... can't find the following libs and by this I mean you don't appear to have them and I can't find the linden versions: gstreamer libelfio libuuid |
Author: | Henri Beauchamp [ 2021-08-20 17:58:36 ] | |||||||||||||||||||||||||||
Post subject: | Re: ARM64 port (was: Porting Difficulties) | |||||||||||||||||||||||||||
|
Author: | bjbdragon [ 2021-08-20 18:28:13 ] |
Post subject: | Re: ARM64 port (was: Porting Difficulties) |
Thanks, that worked! How can I generate a patch so that you can look over and see if things look clean? Will of course have to wait until I get a successful compile. |
Author: | Henri Beauchamp [ 2021-08-20 19:34:41 ] | |||||||||
Post subject: | Re: ARM64 port (was: Porting Difficulties) | |||||||||
|
Author: | bjbdragon [ 2021-08-21 00:59:31 ] |
Post subject: | Re: ARM64 port (was: Porting Difficulties) |
These changes seem to build cleanly with minimal alterations to the actual viewer sources... the bulk of this diff file is the sse2neon.h code, making it too large to attach to the forum. Please let me know what you think of these changes. http://muckdragon.info/coolvlviewer/arm64-build-patches.txt |
Author: | Henri Beauchamp [ 2021-08-21 12:34:46 ] | |||||||||||||||||||||||||||
Post subject: | Re: ARM64 port (was: Porting Difficulties) | |||||||||||||||||||||||||||
Here is the amended patch, please let me know if it allows to compile the viewer fine on your side: EDIT: removed, used the v2 patch in the message below. |
Author: | bjbdragon [ 2021-08-21 15:22:04 ] |
Post subject: | Re: ARM64 port (was: Porting Difficulties) |
This breaks early in the build, because for some reason the "prebuilt" sse2neon.h hasn't been pulled by the time libopenjpeg tries to compile: /home/ruuko/src/linden/indra/libopenjpeg/dwt.c:35:11: fatal error: sse2neon.h: No such file or directory # include "sse2neon.h" ^~~~~~~~~~~~ compilation terminated. /home/ruuko/src/linden/indra/libopenjpeg/mct.c:33:11: fatal error: sse2neon.h: No such file or directory # include "sse2neon.h" ^~~~~~~~~~~~ compilation terminated. |
Author: | bjbdragon [ 2021-08-21 15:30:23 ] |
Post subject: | Re: ARM64 port (was: Porting Difficulties) |
Additionally, you accidentally entered "amd64" which should be "arm64". But, this change is not enough and libopenjpeg build is not even looking at our linden/include directory. # SSE2 to Neon conversion header is needed for arm64 builds if (ARCH STREQUAL "amd64") use_prebuilt_binary(sse2neon) endif () Also, and this does not seem related to my patching at all.. there is a bunch of garbage created by a libuuid download. rockpro64:~/src/linden$ ls LICENSES install.xml linux-build viewer-linux-aarch64-release bin install.xml.orig linux-build.sh windows-prebuild.bat doc installed.xml macos-prebuild.sh include lib python indra libuuid-1.3.0-linux64-20180312.tar.bz2 scripts |
Author: | Henri Beauchamp [ 2021-08-21 15:54:53 ] |
Post subject: | Re: ARM64 port (was: Porting Difficulties) |
Well, yes, just a typo, and a missing include_directories() directive in indra/libopenjpeg/CMakeLists.txt... This new patch should work: EDIT: removed. Get patch v3 in next message... As for the "garbage", it's not any garbage, but just the unpacked pre-built packages stuff and necessary build items. You can zap them with './linux-build.sh -z' to return to a clean sources tree state. |
Page 2 of 6 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |