help for wine patching

hello this is the instructions for patching wine

How to patch wine:

  • How to use git is on wine wiki, so download the source.

git clone git://source.winehq.org/git/wine.git ~/wine-git
cd ~/wine-git

  • Now patch your wine with

patch -p1 < path/to/the.patch

  • How to compile wine from source is in wine source README (just run ./tools/wineinstall )

So now you have working FT and you can host / join battle.net and LAN games (notice that after hosting a game you must restart w3tft before hosting another game - otherwise no-one can connect)

i already done the

git clone git://source.winehq.org/git/wine.git ~/wine-git
cd ~/wine-git
but the second step, i cant understand what will i do… here is it.

  • Now patch your wine with

patch -p1 < path/to/the.patch

thanks

Where did you download the patch? That’s what you need to input.

late I suppose but here is an answer

put the patches in the wine folder
change to that folder in terminal
and execute …
patch -p1 < (name of patch, and not the whole path)
than
./config, and
make and,
make install (or there equivalents in openSUSE.)

rghhhh please a patched wine seems impossible

I have done all the above as weell as compiling from another source and followed all the instructions in opensuse wine, and it (they) never compile HELPPP I hate to go back to Ubuntu or arghhhhWINDOWS!!!

ack@linux-cf5e:~/wine-git> su
Password:
linux-cf5e:/home/ack/wine-git # ./configure
checking build system type… x86_64-unknown-linux-gnu
checking host system type… x86_64-unknown-linux-gnu
checking whether make sets $(MAKE)… yes
checking for gcc… gcc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking for g++… g++
checking whether we are using the GNU C++ compiler… yes
checking whether g++ accepts -g… yes
checking for cpp… cpp
checking whether gcc -m32 works… no
configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries.

ANYbody have any ideas??

ack0329 wrote:
> ANYbody have any ideas??

i don’t see where you explain your problem…why are you patching WINE?

usually one just needs to use YaST to install wine…then use it?

and, if an update/patch is needed you use YaST to do that also…

when you did it that way, what happened? that is, what was wrong that
caused you (or the other two in this thread) to want to patch it the
way discussed???

however, if your question belongs in the games forum, please start
over, here http://forums.opensuse.org/applications/games/
(and explain your problem with a YaST installed and patched WINE, not
one of an unknown pedigree)


palladium

On Wed, 30 Dec 2009 12:36:02 GMT, ack0329 <ack0329@no-mx.forums.opensuse.org> wrote:

>
>rghhhh please a patched wine seems impossible
>
>I have done all the above as weell as compiling from another source and
>followed all the instructions in opensuse wine, and it (they) never
>compile HELPPP I hate to go back to Ubuntu or arghhhhWINDOWS!!!
>
>ack@linux-cf5e:~/wine-git> su
>Password:
>linux-cf5e:/home/ack/wine-git # ./configure
>checking build system type… x86_64-unknown-linux-gnu
>checking host system type… x86_64-unknown-linux-gnu
>checking whether make sets $(MAKE)… yes
>checking for gcc… gcc
>checking whether the C compiler works… yes
>checking for C compiler default output file name… a.out
>checking for suffix of executables…
>checking whether we are cross compiling… no
>checking for suffix of object files… o
>checking whether we are using the GNU C compiler… yes
>checking whether gcc accepts -g… yes
>checking for gcc option to accept ISO C89… none needed
>checking for g++… g++
>checking whether we are using the GNU C++ compiler… yes
>checking whether g++ accepts -g… yes
>checking for cpp… cpp
>checking whether gcc -m32 works… no
>configure: error: Cannot build a 32-bit program, you need to install
>32-bit development libraries.

I do believe that it just told you just what it needs. Though why you
are not installing or updating with YAST has not been explained.

I don’t mean to be arrogant, but patching wine is a very normal thing for people who want to play newer games that have problems with wine…and …

other people have made PATCHES to solve the problems, but they need to be applied to source code and compiled and installed fresh!

and this is no problem in ubuntu or many other distros and I want to stay with SUSE

On Mon, 11 Jan 2010 23:36:01 GMT, ack0329 <ack0329@no-mx.forums.opensuse.org> wrote:

>
>I don’t mean to be arrogant, but patching wine is a very normal thing
>for people who want to play newer games that have problems with
>wine…and …
>
>other people have made PATCHES to solve the problems, but they need to
>be applied to source code and compiled and installed fresh!
>
>and this is no problem in ubuntu or many other distros and I want to
>stay with SUSE

Nice response. I take it then you are used to doing this with Suse?
Suse tends to be very difficult if you get out of the RPM mode.

the error you gave on Dec 30 shows:

configure: error: Cannot build a 32-bit program, you need to install
32-bit development libraries.

so open YaST and even though you have a 64 bit machine, install the 32
bit gcc, then i guess it will run (or at least give you a different error)

i don’t have access to 11.2 here so i can’t tell you exactly what to
search for, but i guess “gcc” and then use your eyeball to pick the 32
bit package…hmmmm, maybe you have to add the 32 bit repos–i don’t
remember)

a couple of other things:

NEVER run configure or make as root…only run ‘make install’ as root,
so the series is:

…/config
make
su -
make install

(i recommend you always use “su -” rather than just su (read more:
http://tinyurl.com/ydbwssh)


palladium
Ubuntu is an African word meaning “I can’t set up Debian.”

Right, it’s ‘gcc-32bit’ that needs to be installed. There may be some more like this, that you need.

Thanks for the thoughtful post, much appreciated in this dilemma, and here is my new state of confusion

I found from Wine - openSUSE a list of dependencies and i INSTALLED THEM like this

zypper install gcc gcc+ make flex bison ncurses-devel-32bit giflib-devel-32bit liblcms-devel-32bit libxslt-devel-32bit Mesa-devel-32bit libpng-devel-32bit libxml2-devel-32bit freeglut-devel-32bit zlib-devel-32bit glibc-devel-32bit fontconfig-devel-32bit xorg-x11-devel-32bit xorg-x11-libXext-32bit xorg-x11-libXp-32bit xorg-x11-libXt-32bit capi4linux-32bit xorg-x11-libICE-32bit xorg-x11-libXext-devel-32bit sane-32bit cups-libs-32bit libjpeg-devel-32bit unixODBC-devel-32bit freetype2-devel-32bit openssl-devel-32bit openldap2-devel-32bit freetype2-devel-32bit hal-32bit hal-devel audiofile-devel

cool so easy with the command line :slight_smile:

and Configured with

./configure --prefix=<where to install wine> --x-libraries=/usr/X11R6/lib --x-includes=/usr/include/X11/ --with-x

and it compiled with some errors, here are the errors …

configure: libxcursor 32-bit development files not found, the Xcursor extension won’t be supported.
configure: libxi 32-bit development files not found, the Xinput extension won’t be supported.
configure: XShm 32-bit development files not found, X Shared Memory won’t be supported.
configure: XShape 32-bit development files not found, XShape won’t be supported.
configure: libXxf86vm 32-bit development files not found, XFree86 Vidmode won’t be supported.
configure: libxrandr 32-bit development files not found, XRandr won’t be supported.
configure: libxinerama 32-bit development files not found, multi-monitor setups won’t be supported.
configure: libxcomposite 32-bit development files not found, Xcomposite won’t be supported.
configure: libGLU 32-bit development files not found, GLU won’t be supported.
configure: libhal/libdbus 32-bit development files not found, no dynamic device support.
configure: libgnutls 32-bit development files not found, no schannel support.
configure: libsane 32-bit development files not found, scanners won’t be supported.
configure: libgphoto2 32-bit development files not found, digital cameras won’t be supported.
configure: libcapi20 32-bit development files not found, ISDN won’t be supported.
configure: libcups 32-bit development files not found, CUPS won’t be supported.
configure: libgsm 32-bit development files not found, gsm 06.10 codec won’t be supported.
configure: libmpg123 32-bit development files not found (or too old), mp3 codec won’t be supported.
configure: libopenal 32-bit development files not found (or too old), OpenAL won’t be supported.

configure: WARNING: libxrender 32-bit development files not found, XRender won’t be supported.

configure: WARNING: No OpenGL library found on this system.
OpenGL and Direct3D won’t be supported.

configure: WARNING: OpenSSL 32-bit development files not found, SSL won’t be supported.

configure: Finished. Do ‘make depend && make’ to compile Wine.

  • so i tried a “make && make install”, and it finished after a minute or so (too fast i think) and ended with these errors …

make[2]: Nothing to be done for all'. make[2]: Leaving directory /home/ack/System/Ubuntu_Apps/Wine/wine-1.1.33/dlls/capi2032’
make[2]: Entering directory `/home/ack/System/Ubuntu_Apps/Wine/wine-1.1.33/dlls/cards’
LD_LIBRARY_PATH="…/…/libs/wine:$LD_LIBRARY_PATH" …/…/tools/wrc/wrc --nostdinc -I. -I. -I…/…/include -I…/…/include -D__WINESRC__ -focards.res cards.rc

cards.rc:156: Oops, segment violation
make[2]: *** [cards.res] Aborted
make[2]: Leaving directory /home/ack/System/Ubuntu_Apps/Wine/wine-1.1.33/dlls/cards' make[1]: *** [cards] Error 2 make[1]: Leaving directory /home/ack/System/Ubuntu_Apps/Wine/wine-1.1.33/dlls’
make: *** [dlls] Error 2

ANY SUGGESTIONS, thanks

ok so here we go again

from your suggestions and new info from WineOn64bit - The Official Wine Wiki

I have made some progress but still no install … here is what I did, and thanks for your help all!!!

#zypper install gcc gcc+ make flex bison ncurses-devel-32bit giflib-devel-32bit liblcms-devel-32bit libxslt-devel-32bit Mesa-devel-32bit libpng-devel-32bit libxml2-devel-32bit freeglut-devel-32bit zlib-devel-32bit glibc-devel-32bit fontconfig-devel-32bit xorg-x11-devel-32bit xorg-x11-libXext-32bit xorg-x11-libXp-32bit xorg-x11-libXt-32bit capi4linux-32bit xorg-x11-libICE-32bit xorg-x11-libXext-devel-32bit sane-32bit cups-libs-32bit libjpeg-devel-32bit unixODBC-devel-32bit freetype2-devel-32bit openssl-devel-32bit openldap2-devel-32bit freetype2-devel-32bit hal-32bit hal-devel audiofile-devel git-core git-gui gitk libgnutls-extra-devel libgnutls-extra26 libjack-devel libsamplerate-devel update-desktop-files libgnutls-devel libgphoto2-devel libgsm-devel libmpg123-devel libcom_err-devel-32bit xorg-x11-libICE-devel-32bit xorg-x11-libX11-devel-32bit

cd /usr/lib
sudo ln -s libasound.so.2.0.0 libasound.so sudo ln -s libfreetype.so.6 libfreetype.so
sudo ln -s libgphoto2.so.2.3.0 libgphoto2.so
sudo ln -s libcups.so.2 libcups.so
sudo ln -s libssl.so.0.9.8 libssl.so
sudo ln -s libcrypto.so.0.9.8 libcrypto.so
sudo ln -s libhal.so.1.0.0 libhal.so
sudo ln -s libgphoto2_port.so.0.8.0 libgphoto2_port.so
sudo ln -s libgnutls.so.26 libgnutls.so
cd /lib
sudo ln -s libdbus-1.so.3.4.0 libdbus-1.so
sudo ln -s libkeyutils.so.1 /usr/lib/libkeyutils.so

Run configure with:
./configure --prefix=/usr –x-libraries=/usr/X11R6/lib

resulted in
configure: libGLU 32-bit development files not found, GLU won’t be supported.
configure: libsane 32-bit development files not found, scanners won’t be supported.
configure: libgphoto2 32-bit development files not found, digital cameras won’t be supported.
configure: libcapi20 32-bit development files not found, ISDN won’t be supported.
configure: libgsm 32-bit development files not found, gsm 06.10 codec won’t be supported.
configure: libmpg123 32-bit development files not found (or too old), mp3 codec won’t be supported.
configure: libopenal 32-bit development files not found (or too old), OpenAL won’t be supported.
configure: Finished. Do ‘make depend && make’ to compile Wine.

OPTIMISM only a few errors

‘make depend && make’ resulted in

cards.rc:156: Oops, segment violation
make[2]: *** [cards.res] Aborted
make[2]: Leaving directory /home/ack/System/Ubuntu_Apps/Wine/wine-1.1.33/dlls/cards' make[1]: *** [cards] Error 2 make[1]: Leaving directory /home/ack/System/Ubuntu_Apps/Wine/wine-1.1.33/dlls’
make: *** [dlls] Error 2

$ su -

make install

make install

resulted in
make: *** No rule to make target `install’. Stop.

On Wed, 13 Jan 2010 20:06:04 GMT, ack0329 <ack0329@no-mx.forums.opensuse.org> wrote:

>
>ok so here we go again
>
>from your suggestions and new info from WineOn64bit - The Official Wine
>Wiki
>
>I have made some progress but still no install … here is what I did,
>and thanks for your help all!!!
>
>#zypper install gcc gcc+ make flex bison ncurses-devel-32bit
>giflib-devel-32bit liblcms-devel-32bit libxslt-devel-32bit
>Mesa-devel-32bit libpng-devel-32bit libxml2-devel-32bit
>freeglut-devel-32bit zlib-devel-32bit glibc-devel-32bit
>fontconfig-devel-32bit xorg-x11-devel-32bit xorg-x11-libXext-32bit
>xorg-x11-libXp-32bit xorg-x11-libXt-32bit capi4linux-32bit
>xorg-x11-libICE-32bit xorg-x11-libXext-devel-32bit sane-32bit
>cups-libs-32bit libjpeg-devel-32bit unixODBC-devel-32bit
>freetype2-devel-32bit openssl-devel-32bit openldap2-devel-32bit
>freetype2-devel-32bit hal-32bit hal-devel audiofile-devel git-core
>git-gui gitk libgnutls-extra-devel libgnutls-extra26 libjack-devel
>libsamplerate-devel update-desktop-files libgnutls-devel
>libgphoto2-devel libgsm-devel libmpg123-devel libcom_err-devel-32bit
>xorg-x11-libICE-devel-32bit xorg-x11-libX11-devel-32bit
>
>cd /usr/lib
>sudo ln -s libasound.so.2.0.0 libasound.so sudo ln -s libfreetype.so.6
>libfreetype.so
>sudo ln -s libgphoto2.so.2.3.0 libgphoto2.so
>sudo ln -s libcups.so.2 libcups.so
>sudo ln -s libssl.so.0.9.8 libssl.so
>sudo ln -s libcrypto.so.0.9.8 libcrypto.so
>sudo ln -s libhal.so.1.0.0 libhal.so
>sudo ln -s libgphoto2_port.so.0.8.0 libgphoto2_port.so
>sudo ln -s libgnutls.so.26 libgnutls.so
>cd /lib
>sudo ln -s libdbus-1.so.3.4.0 libdbus-1.so
>sudo ln -s libkeyutils.so.1 /usr/lib/libkeyutils.so
>
>Run configure with:
>/configure --prefix=/usr –x-libraries=/usr/X11R6/lib
>
>resulted in
>configure: libGLU 32-bit development files not found, GLU won’t be
>supported.
>configure: libsane 32-bit development files not found, scanners won’t
>be supported.
>configure: libgphoto2 32-bit development files not found, digital
>cameras won’t be supported.
>configure: libcapi20 32-bit development files not found, ISDN won’t be
>supported.
>configure: libgsm 32-bit development files not found, gsm 06.10 codec
>won’t be supported.
>configure: libmpg123 32-bit development files not found (or too old),
>mp3 codec won’t be supported.
>configure: libopenal 32-bit development files not found (or too old),
>OpenAL won’t be supported.
>configure: Finished. Do ‘make depend && make’ to compile Wine.
>
>
>OPTIMISM only a few errors
>
>‘make depend && make’ resulted in
>
>cards.rc:156: Oops, segment violation
>make[2]: *** [cards.res] Aborted
>make[2]: Leaving directory
>`/home/ack/System/Ubuntu_Apps/Wine/wine-1.1.33/dlls/cards’

make[1]: *** [cards] Error 2
make[1]: Leaving directory
/home/ack/System/Ubuntu_Apps/Wine/wine-1.1.33/dlls' &gt;make: *** [dlls] Error 2 &gt; &gt;$ su - &gt;# make install &gt;# make install &gt;resulted in &gt;make: *** No rule to make target install’. Stop.

I do believe that you were asked to use YAST to install the 32 bit development pattern.
Please try doing exactly that.

Thanks, wow a simple response, if it could be that easy, perhaps you can elaborate a bit, and so will I as I think that is what I have been doing, please fill in hte gaps or tell me where to find the missing stuff if thjat’s the case…thanks

I have been keeping a list of everything I have installed as suggested from 5 or 6 sources, they are…

  • successfully >
    gcc gcc+ make flex bison alsa-devel giflib-devel-32bit liblcms-devel-32bit libxslt-devel-32bit Mesa-devel-32bit ncurses-devel-32bit libpng-devel-32bit libxml2-devel-32bit openal-soft-devel freeglut-devel-32bit zlib-devel-32bit glibc-devel-32bit fontconfig-devel-32bit fontconfig-devel xorg-x11-devel-32bit xorg-x11-libXext-32bit xorg-x11-libXp-32bit xorg-x11-libXt-32bit capi4linux-32bit capi4linux xorg-x11-libICE-32bit xorg-x11-libXext-devel-32bit sane-32bit cups-libs-32bit libjpeg-devel-32bit unixODBC-devel-32bit freetype2-devel-32bit openssl-devel-32bit openldap2-devel-32bit hal-32bit hal-devel audiofile-devel git-core git-gui gitk libgnutls-extra-devel libgnutls-extra26 libjack-devel libsamplerate-devel update-desktop-files libgnutls-devel libgphoto2-devel libgsm-devel libmpg123-devel libcom_err-devel-32bit xorg-x11-libICE-devel-32bit xorg-x11-libX11-devel-32bit

  • files not found in yast or anywhere …but already installed after installing wine (unpatched with yast)
    libX11.so.6 libXext.so.6 libXcursor.so.1 libXi.so.6 libXxf86vm.so.1 libXrender.so.1 libXrandr.so.2 libXinerama.so.1 libXcomposite.so.1 libGL.so.1 libGLU.so.1 libxslt.so.1 libncurses.so.5 libfreetype.so.6 libpng12.so.0 libjpeg.so.62 libfontconfig.so.1 libcups.so.2
    libgnutls.so.26 wine-geck

  • A summary or the present config errors are
    LibGLU, libgphoto2, libcapi20, libmpg123, libopenal, libsane, libgsm 32-bit development files not found (or too old), but they all are listed as not serious, as in only certain things won’t work (like video camera or openal whatever that is), and it goes on to suggest > make depend && make

do I simply need the missing ones listed, if so where the %#@% do I find them or am I missing the point somewhere about how to get the 32-bit dependency library???

TTHHAANNKKSSrotfl!

OK I an just updating my progress while “make” is happening (23 minutes so far and no glitches), OPTIMISM!!

A summary of the present config errors are:
libgphoto2, libgsm, libmpg123, libopenal 32-bit development files not found (or too old),
LibGLU, libcapi20, libsane, NO LONGER MISSING!!!

so I installed similar ones from the Software.openSUSE.org COOOLLL, they are
libgphoto2-32bit, libgsm1-32bit libopenal1-soft-32bit

I reconfigured and the 4 items were still missing
**but they all are listed as not serious, as in only certain things won’t work (like video camera or openal whatever that is)

Then i “make” as suggested (not make depend && make)
and am waiting, I will post back for sure with the results…
THANKS finger crossed!

YAHOOOOOOOOOOOOO!!! Finally SUCCESS!!

openSUSE has got a new level of optimism, and the silly game of Dragon Age is working better than in any other distro (other than Windows 7), tried ubuntu, mint, Fedora, Mandrave, all for this … to try and get out of windows completely Now just my tv tuner card would function but that’s another 1 year old project

I would sure like to know what made it compile and install, any suggestions would help put closure to this month and a half battle.

the differences today were, other than optimism haha… were

1/ A summary of the present config errors are
libgphoto2, libgsm, libmpg123, libopenal 32-bit development files not found (or too old),
BUT…LibGLU, libcapi20, libsane, were NO LONGER not found!!!

2/ I used the Git method of downloading and patching the source file… and AWESOME by the way!!!

3/ I only did “make” and not “make depend && make”, or

4/ I had installed wine from yast yesterday, then uninstalled it, could it have left some dependencies behind? though it didn’t seem make a difference yesterday when i tried to compile the source.

hmmmmmmmmmm

and thanks for the patience all,
one bit of constructive criticism would be for those being critical to read the previous posts, because some people made suggestions that were not seemingly necessary or unnecessarily aggressive for a guy struggling with this…(though any suggestion is better than none for sure!!)

remember NOOBIES may reasonably miss something very basic that others think is obvious.
and NOOBIES are the ones we want to help the most bcause the learning curve can be daunting

thanks all!!!
rotfl!

just a note to mention it is solved

On Thu, 14 Jan 2010 21:56:01 GMT, ack0329 <ack0329@no-mx.forums.opensuse.org> wrote:

>
>Thanks, wow a simple response, if it could be that easy, perhaps you can
>elaborate a bit, and so will I as I think that is what I have been
>doing, please fill in hte gaps or tell me where to find the missing
>stuff if thjat’s the case…thanks
>
>I have been keeping a list of everything I have installed as suggested
>from 5 or 6 sources, they are…
>
>- successfully >
>gcc gcc+ make flex bison alsa-devel giflib-devel-32bit
>liblcms-devel-32bit libxslt-devel-32bit Mesa-devel-32bit
>ncurses-devel-32bit libpng-devel-32bit libxml2-devel-32bit
>openal-soft-devel freeglut-devel-32bit zlib-devel-32bit
>glibc-devel-32bit fontconfig-devel-32bit fontconfig-devel
>xorg-x11-devel-32bit xorg-x11-libXext-32bit xorg-x11-libXp-32bit
>xorg-x11-libXt-32bit capi4linux-32bit capi4linux xorg-x11-libICE-32bit
>xorg-x11-libXext-devel-32bit sane-32bit cups-libs-32bit
>libjpeg-devel-32bit unixODBC-devel-32bit freetype2-devel-32bit
>openssl-devel-32bit openldap2-devel-32bit hal-32bit hal-devel
>audiofile-devel git-core git-gui gitk libgnutls-extra-devel
>libgnutls-extra26 libjack-devel libsamplerate-devel update-desktop-files
>libgnutls-devel libgphoto2-devel libgsm-devel libmpg123-devel
>libcom_err-devel-32bit xorg-x11-libICE-devel-32bit
>xorg-x11-libX11-devel-32bit
>
>- files not found in yast or anywhere …but already installed after
>installing wine (unpatched with yast)
>libX11.so.6 libXext.so.6 libXcursor.so.1 libXi.so.6 libXxf86vm.so.1
>libXrender.so.1 libXrandr.so.2 libXinerama.so.1 libXcomposite.so.1
>libGL.so.1 libGLU.so.1 libxslt.so.1 libncurses.so.5 libfreetype.so.6
>libpng12.so.0 libjpeg.so.62 libfontconfig.so.1 libcups.so.2
>libgnutls.so.26 wine-geck
>
>- A summary or the present config errors are
>LibGLU, libgphoto2, libcapi20, libmpg123, libopenal, libsane, libgsm
>32-bit development files not found (or too old), but they all are listed
>as not serious, as in only certain things won’t work (like video camera
>or openal whatever that is), and it goes on to suggest > make depend &&
>make
>
>do I simply need the missing ones listed, if so where the %#@% do I
>find them or am I missing the point somewhere about how to get the
>32-bit dependency library???
>
>TTHHAANNKKSSrotfl!

In Yast->Software->Software Management
When the panel comes up go to the left edge near the top and find Filter:
followed by a selector box: select patterns
scroll through the patterns to Base Technologies and select 32-bit runtime environment,
select all the packages found there that may help you of that you think are missing.
scroll down further to development patterns and select more patterns there as you like.

See if that helps.

Learning more even after it’s solved COOOL , thanks that was helpful, I just installed things that were missing even though it is already working haha. rotfl!