Jump to content

[Resolu] - Compilation Wine & cursor patch


Recommended Posts

Bonjours a tous !

Je souhaite faire marcher le jeu "Bataille pour la terre du milleu II" sur ma Ubuntu 8.04 (64b) (c'est quasi la seule chose qui m'oblige à garder un windows ...). Je précise que j'ai le jeu original ;).

Dans un premier temps j'ai installé le jeu avec wine 1.0 fournit sur les dépôts Ubuntu. Le jeux marche très bien à part le fais que je n'est pas de pointeur de souris, un peu chaud de jouer sans !! quand je déplace ma souris je voit qu'elle est bien la (animation des bouton au survole), je peut cliqué sur les boutons mais à l'aveuglette, sans affichage du pointeur.

J'ai regarder sur le net et j'ai trouver qu'il suffisait de recompiler wine avec un patch (voir le how to a la fin de cette page)

J'ai essayé suivre la procédure avec le dernier wine (1.1.1) mais le cursor patch du tuto (j'ai pas trouvé de version plus récente ?) n'a pas l'air de fonctionner. J'ai donc recommencé avec la version utilisée dans le howto. Le patch passe bien, par contre j'ai un souci au moment du ./configure (voir code plus bas).

Autre petit souci, il ne reconnais pas le cd original, je sais pas si, si je trouve un patch noCD, je pourrais encore jouer en ligne, mais bon sa a la limite c'est pas le souci pour le moment !.

root@logos:/usr/local/wine-0.9.48# cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Wine configure 0.9.48, which was
generated by GNU Autoconf 2.61.  Invocation command line was
  $ ./configure --prefix=/root/wine-0.9.48-bfme2

## --------- ##
## Platform. ##
## --------- ##

hostname = logos
uname -m = x86_64
uname -r = 2.6.24-19-generic
uname -s = Linux
uname -v = #1 SMP Wed Jun 18 14:15:37 UTC 2008

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1888: checking build system type
configure:1906: result: x86_64-unknown-linux-gnu
configure:1928: checking host system type
configure:1943: result: x86_64-unknown-linux-gnu
configure:2009: checking whether make sets $(MAKE)
configure:2030: result: yes
configure:2087: checking for gcc
configure:2114: result: gcc -m32
configure:2352: checking for C compiler version
configure:2359: gcc -m32 --version >&5
gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Copyright © 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2362: $? = 0
configure:2369: gcc -m32 -v >&5
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
configure:2372: $? = 0
configure:2379: gcc -m32 -V >&5
gcc: '-V' must come at the start of the command line
configure:2382: $? = 1
configure:2405: checking for C compiler default output file name
configure:2432: gcc -m32    conftest.c  >&5
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/libgcc.a when searching for -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
configure:2435: $? = 1
configure:2473: result:
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "Wine"
| #define PACKAGE_TARNAME "wine"
| #define PACKAGE_VERSION "0.9.48"
| #define PACKAGE_STRING "Wine 0.9.48"
| #define PACKAGE_BUGREPORT "wine-devel@winehq.org"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|  ;
|   return 0;
| }
configure:2480: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_prog_ac_ct_CC='gcc -m32'
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ALSALIBS=''
AR=''
AS='as --32'
AUDIOIOLIBS=''
BISON=''
BUILTINFLAG=''
CARBONLIB=''
CC='gcc -m32'
CFLAGS=''
COREAUDIO=''
COREFOUNDATIONLIB=''
CPP=''
CPPBIN=''
CPPFLAGS=''
CROSSCC=''
CROSSTEST=''
CROSSWINDRES=''
CRTLIBS=''
CXX='g++ -m32'
CXXFLAGS=''
DEFS=''
DEPENDENCIES=''
DISKARBITRATIONLIB=''
DLLEXT=''
DLLFLAGS=''
DLLTOOL=''
DLLWRAP=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ESDCONFIG=''
ESDINCL=''
ESDLIBS=''
EXEEXT=''
EXTRACFLAGS=''
EXTRA_BINARIES=''
FLEX=''
FONTCONFIGINCL=''
FONTFORGE=''
FONTSSUBDIRS=''
FREETYPEINCL=''
FREETYPELIBS=''
GLU32FILES=''
GPHOTO2INCL=''
GPHOTO2LIBS=''
GREP=''
HALINCL=''
IMPLIBEXT=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
IOKITLIB=''
LCMSLIBS=''
LD='ld -m elf_i386'
LDAPLIBS=''
LDCONFIG=''
LDD=''
LDDLLFLAGS=''
LDEXECFLAGS=''
LDFLAGS=''
LDPATH=''
LDRPATH_INSTALL=''
LDRPATH_LOCAL=''
LDSHARED=''
LIBDL=''
LIBEXT=''
LIBOBJS=''
LIBPOLL=''
LIBPTHREAD=''
LIBS=''
LINT=''
LINTFLAGS=''
LN=''
LN_S=''
LTLIBOBJS=''
MAIN_BINARY=''
MINGWAR=''
NASLIBS=''
OBJEXT=''
OPENGLFILES=''
OPENGL_LIBS=''
PACKAGE_BUGREPORT='wine-devel@winehq.org'
PACKAGE_NAME='Wine'
PACKAGE_STRING='Wine 0.9.48'
PACKAGE_TARNAME='wine'
PACKAGE_VERSION='0.9.48'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PRELINK=''
QUARTZFILES=''
RANLIB=''
RESOLVLIBS=''
SANEINCL=''
SET_MAKE=''
SHELL='/bin/bash'
SOCKETLIBS=''
STRIP=''
TOOLSDIR=''
WIN16_FILES='$(WIN16_FILES)'
WIN16_INSTALL='$(WIN16_INSTALL)'
WINDRES=''
XFILES=''
XLIB=''
XMKMF=''
XML2INCL=''
XML2LIBS=''
XSLTINCL=''
XSLTLIBS=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_AS=''
ac_ct_CC='gcc -m32'
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
ft_devel=''
gphoto2_devel=''
gphoto2port_devel=''
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='i386'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/root/wine-0.9.48-bfme2'
program_transform_name='s,x,x,'
psdir='${docdir}'
sane_devel=''
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ------------------- ##
## File substitutions. ##
## ------------------- ##

MAKE_DLL_RULES=''
MAKE_IMPLIB_RULES=''
MAKE_PROG_RULES=''
MAKE_RULES=''
MAKE_TEST_RULES=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "Wine"
#define PACKAGE_TARNAME "wine"
#define PACKAGE_VERSION "0.9.48"
#define PACKAGE_STRING "Wine 0.9.48"
#define PACKAGE_BUGREPORT "wine-devel@winehq.org"
[size="3"][/size]
configure: exit 77

Link to comment
Share on other sites

Merci tsubasaleguedin pour ta réponse rapide !!

mais (j'aurai du le précisé) j'ai déjà essayé, j'avais trouver sa sur le net, mais le paquet build-essantial est déja installé.

root@logos:/usr/local/wine-0.9.48# apt-get install build-essential
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
build-essential est déjà  la plus récente version disponible.
0 mis à  jour, 0 nouvellement installés, 0 à enlever et 24 non mis à jour.

Link to comment
Share on other sites

root@logos:/usr/local/wine-0.9.48# cat config.log
configure:1888: checking build system type
configure:1906: result: x86_64-unknown-linux-gnu
configure:1928: checking host system type
configure:1943: result: x86_64-unknown-linux-gnu
[...]
configure:2114: result: gcc -m32

configure:2369: gcc -m32 -v >&5
Using built-in specs.
Target: x86_64-linux-gnu
[...]
configure:2379: gcc -m32 -V >&5
[...]
configure:2432: gcc -m32    conftest.c  >&5
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/libgcc.a when searching for -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc

Tu ne serais pas en train de compiler en 32 bits avec uniquement des libs 64 bits ?

(Pense aux codebox aussi).

Link to comment
Share on other sites

Bien vu :cap:

J'ai suivit la procedure sur ton lien SlumSlaYer

Le ./configure passe sans souci maintenant

Bon par contre j'ai une erreur de compile ... :incline:

[...]
../../tools/wrc/wrc --nostdinc -I. -I. -I../../include -I../../include  -D__WINESRC__   -fowldap32.res wldap32.rc
../../tools/winegcc/winegcc -B../../tools/winebuild -shared ./wldap32.spec	add.o ber.o bind.o compare.o control.o delete.o dn.o error.o extended.o init.o main.o misc.o modify.o modrdn.o option.o page.o parse.o rename.o search.o value.o	 wldap32.res	-o wldap32.dll.so  -luser32 -lkernel32  -lldap_r -llber ../../libs/port/libwine_port.a -L/lib32 -L/usr/lib32 -L/home/baboon/lib32 -Wl,-rpath,/lib32 -Wl,-rpath,/usr/lib32
parse.o: In function `ldap_parse_vlv_controlW':
/usr/local/wine-0.9.48/dlls/wldap32/parse.c:420: undefined reference to `ldap_parse_vlv_control'
/usr/local/wine-0.9.48/dlls/wldap32/parse.c:420: undefined reference to `ldap_parse_vlv_control'
parse.o: In function `ldap_parse_sort_controlW':
/usr/local/wine-0.9.48/dlls/wldap32/parse.c:339: undefined reference to `ldap_parse_sort_control'
collect2: ld a retourné 1 code d'état d'exécution
winegcc: gcc-4.2 failed
make[2]: *** [wldap32.dll.so] Erreur 2
make[2]: quittant le répertoire « /usr/local/wine-0.9.48/dlls/wldap32 »
make[1]: *** [wldap32] Erreur 2
make[1]: quittant le répertoire « /usr/local/wine-0.9.48/dlls »
make: *** [dlls] Erreur 2
root@logos:/usr/local/wine-0.9.48#

Link to comment
Share on other sites

Compilation Ok !

J'ai pas encore testé, (je l'ai fais en ssh depuis le boulot !) mais c'est compiler !! je regarderai sa en rentrant ce soir (j'éditerai ce post pour vous dire si sa marche ou pas !).

Merci à tous pour votre aide ! sa ma bien aidé :D

Pour le souci de avec le wldap32 J'ai trouver la solution ici

Ok, I tried something ugly and it compiled.

In a clean source folder, open the file parse.c (in the /dlls/wldap32 folder), and search for line 339 and 420 respectively.

line 339:

ret = ldap_parse_sort_control( ld, controlU, &res, &attrU );

line 420 (this one is spread out over 2 lines):

ret = ldap_parse_vlv_control( ld, controlU, &pos, &count,
(struct berval **)context, errcode );

change both into:

ret = LDAP_SUCCESS;

- Then continue with the howto (creating symlinks, etc). When done compiling, you can create a .deb file using checkinstall:

sudo apt-get install checkinstall

sudo checkinstall --fstrans=no

- On first sight, it appears to work fine (it runs Tomb Raider Legend for example).

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...