Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2024-03-28 14:39:32



Reply to topic  [ 31 posts ]  Go to page 1, 2, 3, 4  Next
Running the ARM64 port on a PI4B 
Author Message

Joined: 2022-05-15 12:39:24
Posts: 24
Reply with quote
Hi Henri,

I'm tying to get the ARM version of Cool VL Viewer running on my Raspberry Pi4. I've downloaded:-
CoolVLViewer-src-13011.tar.bz2
CoolVLViewer-src-130018.tar.bz2

Being a total linux novice, I imagine only one of them is needed but I don't know which. I've followed the instructions you gave in the SL forum. I.e. I've untarred 13011, changed to the linden/ directory in a terminal, and typed ./linux-build.sh This is what I got:-

pi@raspberrypi:~/linden $ ./linux-build.sh
===============================================================================
Building a Release viewer.
Building for architecture: armv7l
Forcing the use of python interpreter: /usr/bin/python3.9
===============================================================================
Running "CXX='g++' cmake -DCMAKE_BUILD_TYPE:STRING=RELEASE -G 'Unix Makefiles' -DUSESYSTEMLIBS:BOOL=OFF -DROOT_PROJECT_NAME:STRING=CoolVLViewer '/home/pi/linden/indra'" in '../viewer-linux-armv7l-release'
sh: 1: cmake: not found
Cleaning '../viewer-linux-armv7l-release'
Error: the command 'cmake' was not found
setting DISTCC_DIR to /home/pi/linden/indra/.distcc
Error: run "develop.py cmake" first
pi@raspberrypi:~/linden $


I tried running develop.py cmake in the same folder which returned "develop.py command not found".
There's a folder called 'cmake' in the 'indra' folder and a 'develop.py' script in the scripts folder, which I tried running to no avail.

In short, I have no idea what to do. Can you help me please?


2022-09-26 14:19:48
Profile

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
Please, read linden/doc/LinuxBuildHowto.txt: it will give you the list of the required tools and libraries to compile the viewer.

Here, you need to install cmake from your Linux distribution packages manager.


2022-09-26 14:38:18
Profile WWW

Joined: 2022-05-15 12:39:24
Posts: 24
Reply with quote
Thank you Henri. I installed cmake but, to be perfectly honest, what's in LinuxBuildHowto.txt is totally outside my linux experience and I don't really understand it, let alone how to go about getting everything.

Thank you trying, but I'm going to concede and surrender.


2022-09-26 15:07:38
Profile

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
Phil Deakins wrote:
Thank you Henri. I installed cmake but, to be perfectly honest, what's in LinuxBuildHowto.txt is totally outside my linux experience and I don't really understand it, let alone how to go about getting everything.
Nothing hard, really... I cannot give you de detailed instructions, because there are many Linux distributions with various packages managers, but if you could install cmake, you should be able to install any other missing bits to compile the viewer... You already have most of it, actually (bash, binutils, python, now cmake)... Search for "stdc++" in your package manager and install the "devel" or "dev" package if not already installed; it should also take care to install g++ and gcc if not already installed. Proceed the same way for "x11" (install any lib*x11-dev*), "mesa" (install mesa*-dev or mesa*-devel), xrender, xinerama...


2022-09-26 16:24:43
Profile WWW

Joined: 2022-05-15 12:39:24
Posts: 24
Reply with quote
I'll try tomorrow, Henri. It looks daunting though, but I'll try :)


2022-09-26 17:08:25
Profile

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
Phil Deakins wrote:
I'll try tomorrow, Henri. It looks daunting though, but I'll try :)
I am curious however: did you try the existing ARM build ?
If the answer is yes and it did not work, did you check you had all runtime libraries installed (with a terminal pointing into the unpacked CoolVLViewer-arm64-1.30.0.3/ directory, type: ./cool_vl_viewer --check-libs) ?
For example, libopenal and gstreamer libraries might not be installed by default on your PI and would need to be installed using your packages manager.


2022-09-26 17:49:49
Profile WWW

Joined: 2022-05-15 12:39:24
Posts: 24
Reply with quote
Henri Beauchamp wrote:
Phil Deakins wrote:
I'll try tomorrow, Henri. It looks daunting though, but I'll try :)
I am curious however: did you try the existing ARM build ?
If the answer is yes and it did not work, did you check you had all runtime libraries installed (with a terminal pointing into the unpacked CoolVLViewer-arm64-1.30.0.3/ directory, type: ./cool_vl_viewer --check-libs) ?
For example, libopenal and gstreamer libraries might not be installed by default on your PI and would need to be installed using your packages manager.


I hadn't tried that one, Henri, but I have now and it looks less promising lol.

The README-linux.txt file states as a minimum requirement "Computer processor: 64 bits x86 CPU."

Running ./cool_vl_viewer --check-libs lists 21 items that are "not a dynamic executable" and "The viewer cannot run on this system".

I'm going to soldier on with my previous attempt. I don't know what I'm doing but I have made a little bit of progress with it.


2022-09-27 07:53:13
Profile

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
Phil Deakins wrote:
The README-linux.txt file states as a minimum requirement "Computer processor: 64 bits x86 CPU."
Just a lingering old requirement in a rarely ever updated readme file I did not write myself (but just amended a bit over time). I will change that: do not care. :P

Quote:
Running ./cool_vl_viewer --check-libs lists 21 items that are "not a dynamic executable" and "The viewer cannot run on this system".
This is likely because your glibc dynamic loader is not compatible with the one of the distribution that viewer binary was built for... And it sadly does not bode well, because the pre-built ARM libraries needed by the viewer have been built by the same person on the same system, meaning they won't be compatible either with your PI's Linux distribution. :cry:

Quote:
I'm going to soldier on with my previous attempt. I don't know what I'm doing but I have made a little bit of progress with it.
It is always a good thing to learn, and the time you spend doing so is never totally lost, but given the above issue, do not hold high hopes on it. We'd need someone with a PI4B and the know-how to rebuild the viewer pre-built libraries...


2022-09-27 08:07:15
Profile WWW

Joined: 2022-05-15 12:39:24
Posts: 24
Reply with quote
You already have most of it, actually (bash, binutils, python, now cmake)... Search for "stdc++" in your package manager and install the "devel" or "dev" package if not already installed; it should also take care to install g++ and gcc if not already installed. Proceed the same way for "x11" (install any lib*x11-dev*), "mesa" (install mesa*-dev or mesa*-devel), xrender, xinerama...

I've discovered that I already have the following packages installed:
libstdc++-10-dev/stable,now 10.2.1-6+rpi1 armhf [installed,automatic]
g++/stable,now 4:10.2.1-1+rpi1 armhf [installed,automatic]
gcc/stable,now 4:10.2.1-1+rpi1 armhf [installed,automatic]
x11-common/stable,now 1:7.7+22 all [installed,automatic]
x11-xkb-utils/stable,now 7.7+5 armhf [installed,automatic]
x11-xserver-utils/stable,now 7.7+8 armhf [installed,automatic]
mesa-va-drivers/stable,now 20.3.5-1+rpt4+rpi1 armhf [installed,automatic]
mesa-vdpau-drivers/stable,now 20.3.5-1+rpt4+rpi1 armhf [installed,automatic

But I don't know if they satisfy the requirements. I think that the libstdc++ might, because it's a dev file, but I don't know about the others.

This is what I now get when I run ./linux-build.sh :
pi@raspberrypi:~/linden $ ./linux-build.sh
===============================================================================
Building a Release viewer.
Building for architecture: armv7l
Forcing the use of python interpreter: /usr/bin/python3.9
===============================================================================
Running "CXX='g++' cmake -DCMAKE_BUILD_TYPE:STRING=RELEASE -G 'Unix Makefiles' -DUSESYSTEMLIBS:BOOL=OFF -DROOT_PROJECT_NAME:STRING=CoolVLViewer '/home/pi/linden/indra'" in '../viewer-linux-armv7l-release'
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at cmake/Variables.cmake:34 (message):
Unsupported architecture armv7l, sorry !
Call Stack (most recent call first):
CMakeLists.txt:22 (include)

-- Configuring incomplete, errors occurred!
See also "/home/pi/linden/viewer-linux-armv7l-release/CMakeFiles/CMakeOutput.log".
Cleaning '../viewer-linux-armv7l-release'
Error: the command 'cmake' exited with status 1
setting DISTCC_DIR to /home/pi/linden/indra/.distcc
Error: run "develop.py cmake" first
pi@raspberrypi:~/linden $

And I still fail at running develop.py cmake no matter how I try to run it.

Am I getting any warmer? or am I a completely lost cause?


2022-09-27 08:12:52
Profile

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
Phil Deakins wrote:
Code:
CMake Error at cmake/Variables.cmake:34 (message):
  Unsupported architecture armv7l, sorry !
And I still fail at running develop.py cmake no matter how I try to run it.

Am I getting any warmer? or am I a completely lost cause?

A lost cause: ARMv7 denotes a 32 bits CPU, and the viewer can only build and run for 64 bits CPUs...

I thought you were owning a PI4B, which got an ARMv8 CPU...

Sorry ! :cry:


2022-09-27 08:16:33
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 31 posts ]  Go to page 1, 2, 3, 4  Next

Who is online

Users browsing this forum: No registered users and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.