bugdone / headshotbox

https://headshotbox.github.io
MIT License
163 stars 25 forks source link

17.04 running on a RasberryPI with most current Java 8 #218

Open fg-jester opened 5 years ago

fg-jester commented 5 years ago

I would like to run headshotbox 0.17.4 on a most current RasberryPI

pi@raspi:/opt/headshotbox $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

with most current Java 8 runtime:

pi@raspi:/opt/headshotbox $ java -version java version "1.8.0_191" Java(TM) SE Runtime Environment (build 1.8.0_191-b12) Java HotSpot(TM) Client VM (build 25.191-b12, mixed mode)

All Demos are available on a network share which is mounted. I have full (r/w) access from my PI to that Share. I am running sudo ./headshotbox.sh and get this from all of my demos:

18-11-18 15:09:41 raspi DEBUG [hsbox.indexer:76] - Adding path /mnt/csgo-demos/match730_003304804337284284534_0845772536_195.dem 18-11-18 15:09:41 raspi INFO [hsbox.demo:317] - Processing /mnt/csgo-demos/match730_003304804337284284534_0845772536_195.dem 18-11-18 15:09:41 raspi ERROR [hsbox.indexer:87] - Cannot parse demo /mnt/csgo-demos/match730_003304804337284284534_0845772536_195.dem 18-11-18 15:09:41 raspi ERROR [hsbox.indexer:88] - hsbox.core.main
...
hsbox.core/-main core.clj: 46 hsbox.core/-main core.clj: 84 hsbox.indexer/run indexer.clj: 148 hsbox.indexer/add-demo indexer.clj: 78 hsbox.demo/get-demo-info demo.clj: 319 hsbox.demo/parse-demo demo.clj: 60 hsbox.demo/parse-demo/do-parse demo.clj: 57 java.lang.AssertionError: Assert failed: /opt/headshotbox/demoinfogo: 1: /opt/headshotbox/demoinfogo: Syntax error: word unexpected (expecting ")")

                      (zero? (:exit proc))

headshotbox 17.04 is fine with all of the Demos in Windows.

bugdone commented 5 years ago

HeadshotBox contains C++ code compiled in the demoinfogo binary. The linux release is compiled for i386. So to run the demo parsing binary of HeadshotBox on a RasberryPI you'd need to compile demoinfogo for ARM or whatever architecture is RasberryPI using.

fg-jester commented 5 years ago

uh, thx. You're right

pi@raspi:~ $ lscpu Architecture: armv7l Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 1 Core(s) per socket: 4 Socket(s): 1 Model: 4 Model name: ARMv7 Processor rev 4 (v7l) CPU max MHz: 1400.0000 CPU min MHz: 600.0000 BogoMIPS: 38.40 Flags: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32

I am wondering why nobody did that in the past (like google says), it seems so obvious to try. Tbh. I am using Linux for many years but did never need to compile anything. This will be my first then, right now I have no idea what to do....

fg-jester commented 5 years ago

Sorry to bother you again, a friend of mine help me and complied demoinfogo for me for ARM. But it did not work and provided another Error. I assume it not on your side, rather Valve with demoinfogo, or the compiler failed although my friend told me he got no error. Anyway I guess I should find another job for this raspberry......

18-11-20 18:14:28 raspi DEBUG [hsbox.indexer:76] - Adding path /mnt/csgo-demos/match730_003304804337284284534_0845772536_195.dem 18-11-20 18:14:28 raspi INFO [hsbox.demo:317] - Processing /mnt/csgo-demos/match730_003304804337284284534_0845772536_195.dem 18-11-20 18:14:28 raspi ERROR [hsbox.indexer:87] - Cannot parse demo /mnt/csgo-demos/match730_003304804337284284534_0845772536_195.dem 18-11-20 18:14:28 raspi ERROR [hsbox.indexer:88] -                hsbox.core.main                            ...               hsbox.core/-main     core.clj:  46               hsbox.core/-main     core.clj:  84              hsbox.indexer/run  indexer.clj: 148         hsbox.indexer/add-demo  indexer.clj:  78       hsbox.demo/get-demo-info     demo.clj: 319          hsbox.demo/parse-demo     demo.clj:  60 hsbox.demo/parse-demo/do-parse     demo.clj:  57 java.lang.AssertionError: Assert failed: /opt/headshotbox/demoinfogo: error while loading shared libraries: libprotobuf.so.9: cannot open shared object file: No such file or directory

                          (zero? (:exit proc))

bugdone commented 5 years ago

There might be an easy fix. The binary your friend compiled needs some libraries to be present on the machine the binary is run. You need to search in your linux distribution that is used on your RasberryPI for packages that have libprotobuf.so (most probably the package has libprotobuf in its name). The same applies for all errors like "*.so: cannot open shared object file: No such file or directory"