Trying to build OpenGFX, "Please install grfcodec"

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

Post Reply
User avatar
Erato
Chief Executive
Chief Executive
Posts: 653
Joined: 25 May 2015 09:09
Location: The Netherlands

Trying to build OpenGFX, "Please install grfcodec"

Post by Erato »

Hey guys,

I'm trying to build OpenGFX so I can insert my own sprites for the main menu, and I got the following error:

Code: Select all

Cannot create obg files without grfid. Please install grfcodec, and try again. Aborting.
Makefile:356: recipe for target 'opengfx.obg' failed
make: *** [opengfx.obg] Error 1
I understand that I need to install grfcodec, but I have no idea what I need to do with the files downloaded from here: https://www.openttd.org/downloads/grfco ... atest.html
I use Bash on Ubuntu on Windows, so I reckoned I needed the Linux version, but I don't know where to put the files or to let the system know I have them.

So how do I install GRFcodec?

Thanks in advance,
Erato
No pics no clicks. Seriously.
ImageImageImageImageImageImageImage
Eddi
Tycoon
Tycoon
Posts: 7764
Joined: 17 Jan 2007 00:14

Re: Trying to build OpenGFX, "Please install grfcodec"

Post by Eddi »

you unpack it somewhere that is in your PATH
You might not exactly be interested in Ferion, but if you are, have fun :)
User avatar
paritcl3s
Engineer
Engineer
Posts: 24
Joined: 15 Jun 2020 08:01

Re: Trying to build OpenGFX, "Please install grfcodec"

Post by paritcl3s »

I've a similar problem, it's a Linux machine.
[Manjaro] Aur doesn't permit grfcodec install, trying alternate.

Using 'grfcodec-6.0.6-linux-generic-amd64' it states to place the executable in build directory.
After compiling with 'make -d'

Code: Select all

Must remake target 'opengfx.obg'.
which: no grfid in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
Putting child 0x55bba0f9b3f0 (opengfx.obg) PID 208336 on the chain.
Live child 0x55bba0f9b3f0 (opengfx.obg) PID 208336 
Cannot create obg files without grfid. Please install grfcodec, and try again. Aborting.
Reaping winning child 0x55bba0f9b3f0 PID 208336 
Live child 0x55bba0f9b3f0 (opengfx.obg) PID 208337 
Reaping losing child 0x55bba0f9b3f0 PID 208337 
make: *** [Makefile:357: opengfx.obg] Error 1
Removing child 0x55bba0f9b3f0 PID 208337 from chain.
User avatar
jfs
Tycoon
Tycoon
Posts: 1379
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: Trying to build OpenGFX, "Please install grfcodec"

Post by jfs »

The complete error message:
Cannot create obg files without grfid. Please install grfcodec, and try again. Aborting.
The operational words here are without grfid, here grfid is the name of another program that's part of the grfcodec suite. It's not asking for the grfcodec program, it's asking for the grfid program from the grfcodec suite.
User avatar
paritcl3s
Engineer
Engineer
Posts: 24
Joined: 15 Jun 2020 08:01

Re: Trying to build OpenGFX, "Please install grfcodec"

Post by paritcl3s »

They're all in there, permissions are allowing use as a executable.
Image

I'm guessing it's a path issue or command that isn't being specified.
Eddi
Tycoon
Tycoon
Posts: 7764
Joined: 17 Jan 2007 00:14

Re: Trying to build OpenGFX, "Please install grfcodec"

Post by Eddi »

you must copy all these executables to somewhere that is in your $PATH
You might not exactly be interested in Ferion, but if you are, have fun :)
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 15 guests