Ubuntu 64-bit: Can't compile patchex

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

Post Reply
onesandzeroes
Posts: 16
Joined: Wed Jan 16, 2008 9:06 pm

Ubuntu 64-bit: Can't compile patchex

Post by onesandzeroes »

Hiya! I have ResidualVM up and running, and Grim Fandango seems to be running fine from the 5 minutes of it that I played. However, I haven't been able to install the patch (which from what I understand, is needed to be able to finish the game), because patchex doesn't want to compile.
I was able to clone the git repository for residualvm-tools, and I think I have all the relevant development libraries installed:

Code: Select all

me@mycomputer:~/residualvm-tools/build$ ../configure
Running Tools configure...
Looking for C++ compiler... g++
Checking for compiler version... 4.6.1, ok
Checking endianness... little
Type with 1 byte... char
Type with 2 bytes... short
Type with 4 bytes... int
Type with 8 bytes... long
Target 64 bits... yes
Compiling for x86... yes
Checking hosttype... linux-gnu
Alignment required... no
Checking whether to have a verbose build... no
Checking for Ogg Vorbis... yes
Checking for Tremor... no (Ogg Vorbis/Tremor support is mutually exclusive)
Checking for FLAC >= 1.0.1... yes
Checking for MAD... yes
Checking for zlib... yes

Creating config.h
Creating config.mk
Creating Makefile
But then when I try to compile:

Code: Select all

me@mycomputer:~/residualvm-tools/build$ make tools/patchex
make: *** No rule to make target `tools/patchex'.  Stop.
If anyone has any insight on how to compile patchex properly, or suggestions for any other way to get the patch installed, it would be much appreciated.[/code]
User avatar
Raziel
ScummVM Porter
Posts: 1538
Joined: Tue Oct 25, 2005 8:27 am
Location: a dying planet
Contact:

Post by Raziel »

I don't know Linux but you could try this...
Just do a "make" without tools/patchex

It will build all tools but amongst them should be patchex aswell
User avatar
giucam
Posts: 139
Joined: Mon Mar 21, 2011 9:20 am

Post by giucam »

You don't need to build patchex anymore. Just put the patch executable together with the other data files.
onesandzeroes
Posts: 16
Joined: Wed Jan 16, 2008 9:06 pm

Post by onesandzeroes »

Ah, brilliant. Works perfectly, thanks very much.
Gimlao
Posts: 19
Joined: Wed Dec 27, 2006 9:08 am
Contact:

Post by Gimlao »

I'd like to build patchex, even if it's not needed anymore (=p).

I use Ubuntu 32-bit, but it's the same message :
gimlao@gimlao-virtual-machine:~/residualvm-tools/build$ make tools/patchex
make: *** Pas de règle pour fabriquer la cible « tools/patchex ». Arrêt.
=/

And with only "make" :
gimlao@gimlao-virtual-machine:~/residualvm-tools/build$ make
C++ tools/lua/lapi.o
C++ tools/lua/lauxlib.o
C++ tools/lua/lbuffer.o
C++ tools/lua/lbuiltin.o
../tools/lua/lbuiltin.cpp: In function ÔÇÿvoid to_string()':
../tools/lua/lbuiltin.cpp:159:54: attention : ISO C++ interdit le transtypage entre un pointeur de fonction et un pointeur d'objet [enabled by default]
C++ tools/lua/ldo.o
C++ tools/lua/lfunc.o
C++ tools/lua/lgc.o
C++ tools/lua/liolib.o
C++ tools/lua/llex.o
C++ tools/lua/lmathlib.o
C++ tools/lua/lmem.o
C++ tools/lua/lobject.o
C++ tools/lua/lparser.o
C++ tools/lua/lstate.o
C++ tools/lua/lstring.o
C++ tools/lua/lstrlib.o
C++ tools/lua/ltable.o
C++ tools/lua/ltask.o
../tools/lua/ltask.cpp: In function ÔÇÿvoid next_script()':
../tools/lua/ltask.cpp:113:30: attention : variable ÔÇÿprev' set but not used [-Wunused-but-set-variable]
C++ tools/lua/ltm.o
C++ tools/lua/lundump.o
C++ tools/lua/lvm.o
C++ tools/lua/lzio.o
AR tools/lua/liblua.a
RANLIB tools/lua/liblua.a
mkdir -p tools/.deps
g++ -DHAVE_CONFIG_H -DPOSIX -DDATA_PATH=\"/usr/local/share/residualvm\" -DPLUGIN_DIRECTORY=\"/usr/local/lib/residualvm\" -DHAVE_CONFIG_H -I.. -I. -Wall \
-L../common -Ltools/lua -o tools/delua ../tools/delua.cpp -llua
mkdir -p tools/.deps
g++ -Wall -o tools/imc2wav ../tools/imc2wav.cpp
mkdir -p tools/.deps
g++ -Wall -o tools/int2flt ../tools/int2flt.cpp
mkdir -p tools/.deps
g++ -DHAVE_CONFIG_H -DPOSIX -DDATA_PATH=\"/usr/local/share/residualvm\" -DPLUGIN_DIRECTORY=\"/usr/local/lib/residualvm\" -DHAVE_CONFIG_H -I.. -I. -Wall \
-L../common -o tools/cosb2cos ../tools/emi/cosb2cos.cpp
C++ ../tools/emi/meshb2obj.o
../tools/emi/meshb2obj.cpp: In function ÔÇÿint main(int, char**)':
../tools/emi/meshb2obj.cpp:134:9: attention : declaration of ÔÇÿx' shadows a previous local [-Wshadow]
../tools/emi/meshb2obj.cpp:87:8: attention : shadowed declaration is here [-Wshadow]
../tools/emi/meshb2obj.cpp:134:16: attention : declaration of ÔÇÿy' shadows a previous local [-Wshadow]
../tools/emi/meshb2obj.cpp:87:15: attention : shadowed declaration is here [-Wshadow]
C++ ../tools/emi/lab.o
mkdir -p tools/.deps
g++ -DHAVE_CONFIG_H -DPOSIX -DDATA_PATH=\"/usr/local/share/residualvm\" -DPLUGIN_DIRECTORY=\"/usr/local/lib/residualvm\" -DHAVE_CONFIG_H -I.. -I. -Wall \
-L../common tools/emi/lab.o -o tools/meshb2obj ../tools/emi/meshb2obj.o
g++: erreur: tools/emi/lab.o: Aucun fichier ou dossier de ce type
make: *** [tools/meshb2obj] Erreur 1
User avatar
YakBizzarro
Posts: 37
Joined: Wed May 18, 2011 8:10 am

Post by YakBizzarro »

You could compile it with
make tools/patchex/patchex
Anyway, why do you want to use it?
Gimlao
Posts: 19
Joined: Wed Dec 27, 2006 9:08 am
Contact:

Post by Gimlao »

... It was so simple. ^^;

I want to extract the files from the patcher for personal use. (what else ? xD)

Many thanks! =p
Post Reply