Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2022-12-03 20:20:15



Reply to topic  [ 31 posts ]  Go to page Previous  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
Quote:
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...

That's true. In my time I've written some very big programmes - VB and assembly hybrids - but I've never even tried to get the hang of Linux. I did get a viewer running on a previous linux machine but that didn't have an ARM CPU.

So I'll give up my efforts at logging into SL with the Pi, and I'll thank you for your efforts to help.


2022-09-27 08:19:16
Profile

Joined: 2022-05-15 12:39:24
Posts: 24
Reply with quote
Henri Beauchamp wrote:
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:


It is a 64bit processor.

ETA: oooooooh. I always thought it was 64 bit. My mistake.


Last edited by Phil Deakins on 2022-09-27 08:22:13, edited 1 time in total.



2022-09-27 08:20:12
Profile

Joined: 2009-03-17 18:42:51
Posts: 5097
Reply with quote
Phil Deakins wrote:
It is a 64bit processor.
Wait !

Did you install a 32 bits Linux distro on a PI4B ?

In this case, that would explain it, and you just need to install a 64 bits distro, instead...


2022-09-27 08:20:45
Profile WWW

Joined: 2022-05-15 12:39:24
Posts: 24
Reply with quote
I have 4 Raspberry Pi4Bs. The one I'm using for this is one of them - all Pi4Bs. So the Pi4B was produced with the ARMv7l before the ARMv8.

I could check the others the see what CPUs they have but there's no point. This one has 4G but the others only have 2G, and I don't think 2G will be any good for getting into SL. On the other hand, it might be worthwhile just seeing if I can get the viewer working on one, even if using it won't be much good. I think I'll see if I've got an ARMv8 :)


2022-09-27 08:46:18
Profile

Joined: 2022-05-15 12:39:24
Posts: 24
Reply with quote
Henri Beauchamp wrote:
Phil Deakins wrote:
It is a 64bit processor.
Wait !

Did you install a 32 bits Linux distro on a PI4B ?

In this case, that would explain it, and you just need to install a 64 bits distro, instead...


I actually acquired the 4G one from my brother because he never used it. If I can install a 64 bit distro on it, I will. First I have to find out how to do it but I will. Stand by...


2022-09-27 08:48:24
Profile

Joined: 2022-05-15 12:39:24
Posts: 24
Reply with quote
Henri Beauchamp wrote:
Phil Deakins wrote:
It is a 64bit processor.
Wait !

Did you install a 32 bits Linux distro on a PI4B ?

In this case, that would explain it, and you just need to install a 64 bits distro, instead...

I got the 64 bit version and lscpu now shows:
CPU op-mode(s): 32-bit, 64-bit
It previously only showed 32-bit, of course.

So I downloaded and extracted CoolVLViewer-src-13011.tar.bz2
I installed cmake as before.
In the linden folder I ran ./linux-build.sh and it was very different.

The installation kept on going for quite a while. When it stopped, these were the final lines:
File "/home/phil/linden/scripts/install.py", line 161, in fetch_local
raise RuntimeError("Error matching md5 for %s" % self.url)
RuntimeError: Error matching md5 for https://raccoons.tech/coolvlviewer/buil ... 21.tar.bz2
CMake Error at DownloadPrebuilt.cmake:26 (message):
Failed to download or unpack prebuilt 'curl_old'. Process returned: 1

make[2]: *** [CMakeFiles/prepare.dir/build.make:81: prepare/prebuilt] Error 1
make[2]: Leaving directory '/home/phil/linden/viewer-linux-aarch64-release'
make[1]: *** [CMakeFiles/Makefile2:623: CMakeFiles/prepare.dir/all] Error 2
make[1]: Leaving directory '/home/phil/linden/viewer-linux-aarch64-release'
make: *** [Makefile:103: all] Error 2
make: Leaving directory '/home/phil/linden/viewer-linux-aarch64-release'
Error: the command 'make' exited with status 2

No viewer file was produced in the linden directory so there's nothing to run.

Have we come to the end of the line with my Pi4Bs now? I can continue if you have any suggetions as to what I need to do. (Incidentally, each of my Pis has "Raspberry Pi 4 Model B" printed on the circuit board, and they all have the ARMv7l processor. So the B isn't an indication of the processor).


2022-09-27 14:04:37
Profile

Joined: 2009-03-17 18:42:51
Posts: 5097
Reply with quote
Phil Deakins wrote:
Henri Beauchamp wrote:
I got the 64 bit version and lscpu now shows:
CPU op-mode(s): 32-bit, 64-bit
It previously only showed 32-bit, of course.
Did you try the existing ARM release then ?...

Quote:
.../...
[color=#008000] File "/home/phil/linden/scripts/install.py", line 161, in fetch_local
raise RuntimeError("Error matching md5 for %s" % self.url)
RuntimeError: Error matching md5 for https://raccoons.tech/coolvlviewer/buil ... 21.tar.bz2
Ah, just a MD5 checksum mismatch; not sure why, but since I cannot test ARM64 builds by myself and no one reported the issue so far...

Replace install.xml in the linden/ directory with the one attached to this post, and re-launch ./linux-build.sh


Attachments:
install.xml [54.14 KiB]
Downloaded 6 times
2022-09-27 15:49:55
Profile WWW

Joined: 2022-05-15 12:39:24
Posts: 24
Reply with quote
Did you try the existing ARM release then ?...
I followed the instructions from https://www.raspberrypi.com/software/ and selected the 64 bit version. It did a bit of updating when I ran it, so it should be right up to date.

Replace install.xml in the linden/ directory with the one attached to this post, and re-launch ./linux-build.sh
I did that and it did change the installation process. I'm sure it took longer; i.e. went further.
These are the last few lines:
make[2]: Leaving directory '/home/phil/linden/viewer-linux-aarch64-release'
[ 10%] Built target llcharacter
make[2]: Leaving directory '/home/phil/linden/viewer-linux-aarch64-release'
[ 10%] Built target llinventory
make[1]: Leaving directory '/home/phil/linden/viewer-linux-aarch64-release'
make: *** [Makefile:103: all] Error 2
make: Leaving directory '/home/phil/linden/viewer-linux-aarch64-release'
Error: the command 'make' exited with status 2
phil@raspberrypi:~/linden $ ls

I still don't have a programme file in the linden directory that I can run. I'm assuming that it should appear there?


2022-09-27 17:49:57
Profile

Joined: 2009-03-17 18:42:51
Posts: 5097
Reply with quote
Phil Deakins wrote:
Did you try the existing ARM release then ?...
I followed the instructions from https://www.raspberrypi.com/software/ and selected the 64 bit version. It did a bit of updating when I ran it, so it should be right up to date.

I mean the existing viewer release (do run ./cool_vl_viewer --check-libs to verify you have all needed runtime libraries).

Quote:
These are the last few lines:
The last few lines are useless, since they do not show the compilation error itself but just the make exit code...

Quote:
I still don't have a programme file in the linden directory that I can run. I'm assuming that it should appear there?
After a successful build, the script will tell you exactly where to find the ready-to-run viewer (and its packaged tar ball).


2022-09-27 18:06:37
Profile WWW

Joined: 2022-05-15 12:39:24
Posts: 24
Reply with quote
Good morning, Henri :)

I had tried the existing viewer release but without success. I tried it again though and this is the result. I'm showing you everything so you know exactly what happens.

There are 7 'not found's for the viewer and another 3 for plugins. These are for the viewer:-
Checking for missing system libraries for the viewer:
- dependencies for ./bin/cool_vl_viewer-bin...
liburing.so.2 => not found
./bin/cool_vl_viewer-bin: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./bin/cool_vl_viewer-bin)
./bin/cool_vl_viewer-bin: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/phil/Downloads/CoolVLViewer-arm64-1.30.0.3/lib/libSDL2-2.0.so.0)
./bin/cool_vl_viewer-bin: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/phil/Downloads/CoolVLViewer-arm64-1.30.0.3/lib/libapr-1.so.0)
Checking for missing system libraries for the viewer libraries:
- dependencies for ./lib/libEGL.so...
- dependencies for ./lib/libGLESv2.so...
- dependencies for ./lib/libSDL2-2.0.so.0...
./lib/libSDL2-2.0.so.0: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./lib/libSDL2-2.0.so.0)
- dependencies for ./lib/libalut.so.0...
- dependencies for ./lib/libapr-1.so.0...
./lib/libapr-1.so.0: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./lib/libapr-1.so.0)
- dependencies for ./lib/libaprutil-1.so.0...
./lib/libaprutil-1.so.0: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/phil/Downloads/CoolVLViewer-arm64-1.30.0.3/lib/libapr-1.so.0)


I tried searching for the first one:
phil@raspberrypi:~/Downloads/CoolVLViewer-arm64-1.30.0.3 $ apt search liburing.so.2
Sorting... Done
Full Text Search... Done
phil@raspberrypi:~/Downloads/CoolVLViewer-arm64-1.30.0.3 $

It did something but nothing was listed.

So I tried searching for just liburing which returned:
phil@raspberrypi:~/Downloads/CoolVLViewer-arm64-1.30.0.3 $ apt search liburing
Sorting... Done
Full Text Search... Done
liburing-dev/stable 0.7-3 arm64
Linux kernel io_uring access library - development files

liburing1/stable 0.7-3 arm64
Linux kernel io_uring access library - shared library

phil@raspberrypi:~/Downloads/CoolVLViewer-arm64-1.30.0.3 $


Two items were listed but they don't look like the item that's 'not found'.

I really don't know what to do. I don't know if I'm searching for the right things and, when I get a return, I don't know if they are what I'm looking for.

I'll do and try whatever you say, Henri, but I'm at the point of accepting that I won't be able to log into SL with my Pi.


2022-09-28 09:01:46
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 31 posts ]  Go to page Previous  1, 2, 3, 4  Next

Who is online

Users browsing this forum: No registered users and 0 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:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.