Page 1 of 1

Running Raze on Chromebook Debian

PostPosted: Tue Mar 03, 2020 10:38 pm
by Dwailing
Hey folks, so I'm currently trying to get Raze to work on my Chromebook in the Debian shell and it's... not going well. The GZDoom package that's available for download on zdoom.org works just fine, so I'm assuming Raze should work and I'm just missing a few of the in-between steps that ChromeOS's Linux installer would do automatically.

First off, I've put all the files in the /opt/raze directory, mirroring what the installer did with GZDoom. Then I set the included "raze" file to be an executable via:

sudo chmod +x raze

Now when I try to run this executable using the ./raze command I get:

./raze: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory

Naturally, this sent me to search for libjpeg, and I didn't find libjpeg8 but I did find a package called "libjpeg62-turbo" which is already installed on my system. I'm stumped at this point because I'm still fairly new to the Linux shell, but I'd like to be able to make this work and I'd appreciate any help you can give me.

Re: Running Raze on Chromebook Debian

PostPosted: Wed Mar 04, 2020 12:24 am
by Manuel-K
"libjpeg62-turbo" contains libjpeg.so.62 and that has a different ABI than libjpeg.so.8, so they are incompatible. Since raze should automatically search for libraries in the folder that contains its binary, you can probably take the library from the debian package (https://packages.debian.org/sid/libjpeg8) and just extract the so file. Debian packages are compressed archives that contain several archives. One of them is called data.* and that contains what you want.

Edit: That package seems to be ARM only, that's unfortunate.

The Arch version (https://www.archlinux.org/packages/extr ... peg-turbo/) should work as well, although that one might be too new.

Re: Running Raze on Chromebook Debian

PostPosted: Wed Mar 04, 2020 12:57 am
by Graf Zahl
If you got problems with libjpeg, activate the one provided with the source in the CMake project.

Re: Running Raze on Chromebook Debian

PostPosted: Wed Mar 04, 2020 1:16 am
by Rachael
I think he might be using my precompiled binary - and if he is, then yeah you'd need a systemwide libjpeg8 because my cmake finds mine and will use it.

Needless to say, using Chrome OS is such an esoteric setup that I had not considered it in building the binary, and therefore should be considered unsupported as far as the binary goes. I don't know what kind of help I can offer you short of forcing CMake to use the internal library in future builds.

TBH I would just find a system that has the horsepower to compile the binary completely for ChromeOS or ... just let it sit while you're away from the system for an hour or two while it builds on that one. I'm not quite sure how to build it, my best guess is it would be similar to Debian.

Re: Running Raze on Chromebook Debian

PostPosted: Wed Mar 04, 2020 1:46 am
by Graf Zahl
I wouldn't even consider compiling a binary Linux release against the system's libjpeg - the library is far too unreliable. You can do that when solely building for your own setup.

Re: Running Raze on Chromebook Debian

PostPosted: Wed Mar 04, 2020 3:53 pm
by Dwailing
I ended up compiling from source. That seems to work just fine. I'm wondering what the package for GZDoom does when it's installing that's different from Raze...

Edit: Yes, to confirm, I was trying to use Rachel's precompiled binaries.

Re: Running Raze on Chromebook Debian

PostPosted: Wed Mar 04, 2020 3:56 pm
by Rachael
When the next version comes out I'll force it to use all internal libraries.

Re: Running Raze on Chromebook Debian

PostPosted: Wed Mar 04, 2020 4:00 pm
by Dwailing
Rachael wrote:I think he might be using my precompiled binary - and if he is, then yeah you'd need a systemwide libjpeg8 because my cmake finds mine and will use it.

Needless to say, using Chrome OS is such an esoteric setup that I had not considered it in building the binary, and therefore should be considered unsupported as far as the binary goes. I don't know what kind of help I can offer you short of forcing CMake to use the internal library in future builds.

TBH I would just find a system that has the horsepower to compile the binary completely for ChromeOS or ... just let it sit while you're away from the system for an hour or two while it builds on that one. I'm not quite sure how to build it, my best guess is it would be similar to Debian.


I followed your guide for compiling on Raspberry Pi and it worked that way.

Re: Running Raze on Chromebook Debian

PostPosted: Wed Mar 04, 2020 4:02 pm
by Rachael
Cool, thanks for letting me know. That is useful information. :)