Git Product home page Git Product logo

Comments (8)

Jamiras avatar Jamiras commented on June 16, 2024 1

Your steps to reproduce say "Make binary executable", which I interpreted as build the executable. You should have linked the docker commands in the first place.

The prebuilt linux executables are managed by a github action. It looks like that's not providing the HAVE_CHD=1 flag.

from ralibretro.

Jamiras avatar Jamiras commented on June 16, 2024 1

There shouldn't be any external dependencies. If you didn't get any compilation errors, it's a functional thing. The git submodule should tie you to the same version of libchd that I used.

"Could not locate primary executable" is a generic error message indicating several things could have gone wrong. Since you don't have a "Found SYSTEM.CNF at sector X" message, it seems like locating that is what failed.

from ralibretro.

Jamiras avatar Jamiras commented on June 16, 2024

Have you tried building with make HAVE_CHD=1 as suggested by the error?

from ralibretro.

RandomNinjaAtk avatar RandomNinjaAtk commented on June 16, 2024

I did not build, I downloaded the precompiled binary for ease of deployment/use.... see below:
https://github.com/RandomNinjaAtk/docker-raromprocessor/blob/c1f4a6992f9d7ea837beef23c02aafbecc55f4ca/Dockerfile#L57-L61

I can look at building it alternatively, but maybe the precompiled binary should already have it enabled?

from ralibretro.

RandomNinjaAtk avatar RandomNinjaAtk commented on June 16, 2024

Compiled it with the flag, but a new error:

root@02612a87ace1:/config/test2# bin64/RAHasher
RAHasher
====================
Usage: RAHasher [-v] systemid filepath

  -v           (optional) enables verbose messages for debugging
  systemid     specifies the system id associated to the game (which hash algorithm to use)
  filepath     specifies the path to the game file
root@02612a87ace1:/config/test2# bin64/RAHasher -v 12 "/config/file.chd"
Could not locate primary executable

from ralibretro.

Jamiras avatar Jamiras commented on June 16, 2024

I'm not sure what's in file.chd, but this seems to work fine for me:

brian@ubuntu18 master:~/source/RALibretro$ bin64/RAHasher -v 12 ~/roms/Darkstalkers\ 3.chd
Found SYSTEM.CNF at sector 23
Looking for boot executable: SLUS_007.45
Found SLUS_007.45 at sector 24
Hashing SLUS_007.45 title (11 bytes) and contents (514048 bytes) 
Generated hash e9ddaf41a7cf406b5d7fc803c59d4a52
e9ddaf41a7cf406b5d7fc803c59d4a52

from ralibretro.

RandomNinjaAtk avatar RandomNinjaAtk commented on June 16, 2024

Are there other dependencies? Since I'm using a docker container and may have not accounted for it...

file.chd is a CHD rom file that I changed the file name for posting here. I'll try to do some more testing.

from ralibretro.

RandomNinjaAtk avatar RandomNinjaAtk commented on June 16, 2024

Fresh build via docker hub and compiling with flag, it now appears to work:

root@700227a77bc8:/config# /usr/local/RALibretro/bin64/RAHasher -v 12 "A-Train - Trains, Power, Money (USA) (En,Ja,Fr,De).chd"
Found SYSTEM.CNF at sector 19492
Looking for boot executable: SLUS_000.03
Found SLUS_000.03 at sector 19403
Hashing SLUS_000.03 title (11 bytes) and contents (182272 bytes)
Generated hash a5242af3db70ea41d4d8aad8511df310
a5242af3db70ea41d4d8aad8511df310
root@700227a77bc8:/config#

So maybe my quick compile without full docker rebuild, it wasn't enough, so this should now be resolved. Also It looks like your fixing the issue with the precompiled binary, and this identified that...

Thanks for all the help!

I'll leave this open for now until you've resolved the precompiled binary issue. Feel free to close though...

from ralibretro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.