Expect Deadlock! [Assistance needed, Building Wine on Etch]

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
James Mckenzie

Expect Deadlock! [Assistance needed, Building Wine on Etch]

Post by James Mckenzie »

K4Z00 wrote about [Wine] Re: Expect Deadlock! [Building Wine on Etch]
How fast are you James!?
Real fast at times.
Was still googling my own post, and you had already answered.
Can you create the installation package and then install it on your own system?
This is something I haven't done before. So the answer is possibly. How do I go about it?
Please look through the WineHQ site. There are several articles on how to build Wine and the Required Packages for building Wine.

Hopefully, the Debian archive holder/builder will pop in and provide further assistance.

James McKenzie
K4Z00
Level 2
Level 2
Posts: 45
Joined: Sun Jun 29, 2008 3:53 pm

Post by K4Z00 »

Thanks again for taking the time James. It made me laugh that you had answered already as my second post went through! Will have a read of : http://www.codeweavers.com/support/docs/wine-user/getting-wine-source and http://www.winehq.org/docs/wineusr-guide/installing-wine-source
Think it will also require

Code: Select all

/home/user> apt-cache policy build-essential
build-essential:
  Installed: (none)
  Candidate: 11.3
  Version table:
     11.3 0
        910 http://download.tuxfamily.org p701/etch Packages
        900 http://xnv4.xandros.com etch/main Packages
Will have a look through the eeeuser forums too for more info. Assistance from the Debian archive holder/builder would be most welcome. :D

There looks to be some good info about, that will take me a bit to read through.
Eeeuser links : clicky & clicky
K4Z00
Level 2
Level 2
Posts: 45
Joined: Sun Jun 29, 2008 3:53 pm

Post by K4Z00 »

This is my attempt so far :D

1. removed winetricks, then wine directory first with m -rf ~/.wine, then sudo apt-get remove wine. haven't removed libwine. is that necessary?
2. have installed build-essential 11.3 (binutils dpkg-dev g++ g++-4.1 gcc gcc-4.1 libc6-dev libssp0 libstdc++6-4.1-dev linux-kernel-headers make)
3. added

Code: Select all

deb-src http://asusxntest.xandros.com/asus-source/p7xx/1.0.4/ v104 main contrib non-free
deb-src http://asusxntest.xandros.com/asus-source/p7xx/1.0.6/ v106 main contrib non-free
deb-src http://cle.linux.org.tw/EeePC/1.0.6 v106 main contrib non-free
to sources, and sudo apt-get update
4. downloaded wine source 1.1.21 to /home/user/download. cd to /home/user/download and ran tar xvf wine-XXXXXXXXXX.tar.bz2. cd to /home/user/download/wine-1.1.21 and ran ./tools/wineinstall. this asked for flex, and bison which were then installed. (should have read the read me file more carefully, it says that there!)

Output so far gives

Code: Select all

Warning !! wine binary (still) found, which may indicate
a (conflicting) previous installation.
You might want to abort and uninstall Wine first.
(If you previously tried to install from source manually,
run 'make uninstall' from the wine root directory)
wine should be uninstalled. Is this because libwine is still there and needs removing, or something else?

Then the error

Code: Select all

checking for X... no
configure: error: X development files not found. Wine will be built
without X support, which probably isn't what you want. You will need to install
development packages of Xlib/Xfree86 at the very least.
Use the --without-x option if you really want this.
now reading this rather useful guide it suggests running

Code: Select all

sudo apt-get build-dep wine
Will this install those missing files? (edit: Given the correct source repositories) Have not used this command before. Conky is showing 22% 325MiB free. Will this be good still for downloads and install?

Googling along, the read me in /home/user/download/wine-1.1.21 says
Basic requirements:
You need to have the X11 development include files installed
(called xlib6g-dev in Debian)
So checking that

Code: Select all

home/user> apt-cache policy xlib6g-dev
W: Unable to locate package xlib6g-dev
shows it as not available, so a source for that is required. Will look into that now. :D
K4Z00
Level 2
Level 2
Posts: 45
Joined: Sun Jun 29, 2008 3:53 pm

Post by K4Z00 »

Might it be?

Code: Select all

/home/user> apt-cache policy libx11-dev
libx11-dev:
  Installed: (none)
  Candidate: 2:1.0.3-7
  Version table:
     2:1.0.3-7 0
        950 http://update.eeepc.asus.com p701/main Packages
        900 http://xnv4.xandros.com etch/main Packages
     2:1.0.3-2xandros1 0
        750 http://www.geekconnection.org xandros4/main Packages
K4Z00
Level 2
Level 2
Posts: 45
Joined: Sun Jun 29, 2008 3:53 pm

Post by K4Z00 »

Well the output of

Code: Select all

/home/user/download> sudo apt-get build-dep wine
Reading package lists... Done
Building dependency tree... Done
E: Unable to find a source package for wine
doesn't get me any further. Know that i'm missing something obvious here! :lol:
apt needs to know the source of wine, which is http://sourceforge.net/project/showfiles.php?group_id=6241&package_id=77449,
and is now unzipped in /home/user/download/wine-1.1.21.
The apt-how to says
All source packages have a field in their control files called 'Build-Depends:' that indicates which additional packages are needed for the package to be built from source.
but there doesn't seem to be a Build-Depends?
How/what address does apt need to get this information. Is it an addition to my /etc/apt/sources.list? :D

The Recommended_Packages in the wiki lists various x packages, can i just install them separately? Will that solve this?
3vi1
Level 4
Level 4
Posts: 125
Joined: Sun Feb 24, 2008 8:24 pm

Post by 3vi1 »

Sounds like you don't have all the necessary repos enabled in your /etc/apt/sources.list file.
K4Z00
Level 2
Level 2
Posts: 45
Joined: Sun Jun 29, 2008 3:53 pm

yay!

Post by K4Z00 »

you're right there...

Code: Select all

deb-src http://wine.budgetdedicated.com/apt etch main
would be the one in question

Code: Select all

/home/user> sudo apt-get build-dep wine
Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed:
  cpp-3.4 debhelper docbook docbook-dsssl docbook-to-man docbook-utils
  docbook-xsl fontforge gcc-3.4 gettext gettext-base html2text intltool-debian
  jadetex libasound2-dev libaudio-dev libaudiofile-dev libcapi20-3
  libcapi20-dev libcupsys2-dev libdbus-1-dev libelfg0 libesd0-dev libexif-dev
  libexpat1-dev libfontconfig1-dev libfreetype6-dev libgcrypt11-dev
  libgl1-mesa-dev libglu1-mesa-dev libgnutls-dev libgpg-error-dev
  libgphoto2-2-dev libhal-dev libhal-storage-dev libice-dev libieee1284-3-dev
  libjack0.100.0-dev libjpeg62-dev libkpathsea4 liblcms1-dev libldap2-dev
  liblzo-dev libncurses5-dev libopencdk8-dev libosp5 libostyle1c2 libpng12-dev
  libpopt-dev libsane-dev libsgmls-perl libsm-dev libsp1c2 libssl-dev libt1-5
  libtasn1-3-dev libtiff4-dev libtiffxx0c2 libungif4-dev libusb-dev libx11-dev
  libxau-dev libxcomposite-dev libxcursor-dev libxdmcp-dev libxext-dev
  libxfixes-dev libxi-dev libxml2-dev libxrandr-dev libxrender-dev
  libxslt1-dev libxt-dev libxxf86vm-dev lynx mesa-common-dev openjade
  pkg-config po-debconf prelink sgmlspl sp tetex-base tetex-bin tetex-extra
  tex-common tipa x11proto-composite-dev x11proto-core-dev x11proto-fixes-dev
  x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-render-dev
  x11proto-xext-dev x11proto-xf86vidmode-dev x11proto-xinerama-dev xtrans-dev
  zlib1g-dev
The following packages will be upgraded:
  fontconfig-config libfontconfig1 libxml2
3 upgraded, 99 newly installed, 0 to remove and 152 not upgraded.
Need to get 86.0MB of archives.
After unpacking 274MB of additional disk space will be used.
Do you want to continue [Y/n]?   
that's a crap load of stuff. do i need all of it? can i get away with just the x based packages

Code: Select all

libx11-dev
  libxau-dev libxcomposite-dev libxcursor-dev libxdmcp-dev libxext-dev
  libxfixes-dev libxi-dev libxml2-dev libxrandr-dev libxrender-dev
  libxslt1-dev libxt-dev libxxf86vm-dev
x11proto-composite-dev x11proto-core-dev x11proto-fixes-dev
  x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-render-dev
  x11proto-xext-dev x11proto-xf86vidmode-dev x11proto-xinerama-dev xtrans-dev
plus those listed in the Recommended_Packages?
actually think i'm answering my own question. going to at least try it first!
K4Z00
Level 2
Level 2
Posts: 45
Joined: Sun Jun 29, 2008 3:53 pm

Post by K4Z00 »

Code: Select all

sudo apt-get install libx11-dev
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  libxau-dev libxdmcp-dev libxext-dev x11proto-core-dev x11proto-input-dev
  x11proto-kb-dev x11proto-xext-dev xtrans-dev
which overcame the x error
and got

Code: Select all

./tools/wineinstall
checking for -lfreetype... not found
configure: error: FreeType development files not found. Fonts will not be built.
Use the --without-freetype option if you really want this.
so have installed that

Code: Select all

The following extra packages will be installed:
  zlib1g-dev
The following NEW packages will be installed:
  libfreetype6-dev zlib1g-dev
just need to get home to try it

think the issue here is am trying to compile it using the minimum of space, as there is only a minimum of space available! am guessing will get several more of these from the Recommended_Packages selection. perhaps running xandros differently, fresh install/off usb might be worth looking at. will have to see whether it works as well as the ubuntu version when compiled...:)
K4Z00
Level 2
Level 2
Posts: 45
Joined: Sun Jun 29, 2008 3:53 pm

yay

Post by K4Z00 »

installed libx11-dev, then manually checked and installed all the required packages in the Recommended_Packages page for debian
ran ./tools/wineinstall
said no to

Code: Select all

configure. Finished. Do 'make depend && make' to compile wine.
We need to install wine as root user, do you want us to build wine,
'su root' and install Wine? Enter 'no' to continue without installing
because i want to install it as a .deb, with checkinstall
the file checkinstallrc defaults to being called checkinstallrc-dist for some reason
so after editing it no changes took place until it was renamed
then set checkinstallrc to

Code: Select all

BASE_TMP_DIR=/home/user/A/partition6
DOC_DIR="/media/A/partition6/"
PAK_DIR="/media/A/partition6/"
ran gparted & made a 2gb ext2 partition on my 60gb ext hard drive
then cd to /media/A/partition6/wine-1.1.21
su + password/checkinstall
& it built a debian package quite quickly

Code: Select all

Done. The new package has been saved to
/media/A/partition6//wine_1.1.21-1_i386.deb
You can install it in your system anytime using:
dpkg -i wine_1.1.21-1_i386.deb
installed the deb, ran wine cfg

Code: Select all

/home/user> apt-cache policy wine
wine:
  Installed: 1.1.21-1
  Candidate: 1.1.21-1
  Version table:
 *** 1.1.21-1 0
        100 /var/lib/dpkg/status
     1.1.1~winehq0~debian~4.0-1 0
        700 http://wine.budgetdedicated.com etch/main Packages
     1.0.0-1+eeepc2 0
        975 http://updates.xepc.org p701/main Packages
     0.9.25-2.1 0
        900 http://xnv4.xandros.com etch/main Packages
        500 ftp://ftp.uk.debian.org etch/main Packages
so happy after days of frustration, err sorry learning
it works beautifully, and runs the proprietary software, though will test it again!

most of the issues were down to the tiny 4gb drive on the eee
checkinstall couldn't deal with the space in the usb drive name
(/home/user/DataTraveler 2.0/kingston_2)
no combination of quotes ""/''/ or backslash would get round it
all build/compile/extract etc had to be routed externally

thanks so much James for your help, and most of all for giving me the push to give it a go! :D
K4Z00
Level 2
Level 2
Posts: 45
Joined: Sun Jun 29, 2008 3:53 pm

Post by K4Z00 »

if anyone's interested to try wine 1.1.21 for the eee pc with xandros!
the file is here: wine_1.1.21-1_i386.deb
it includes all the libwine stuff (cups/printing/alsa etc)
mainly because don't know yet how to compile that separately!
Locked