Skip to content
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

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

Open
fg-jester opened this issue Nov 18, 2018 · 4 comments
Open

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

fg-jester opened this issue Nov 18, 2018 · 4 comments

Comments

@fg-jester
Copy link

fg-jester commented Nov 18, 2018

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
Copy link
Owner

bugdone commented Nov 18, 2018

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
Copy link
Author

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
Copy link
Author

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
Copy link
Owner

bugdone commented Nov 24, 2018

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants