Old 07-30-2018, 02:45 PM   #1
Garrick
Human being with feelings
 
Garrick's Avatar
 
Join Date: Jul 2009
Location: Wellington
Posts: 4,622
Default Building Wine from source

I didn't want to pollute another thread so started this one
winehq-devel 3.13 screwed up sgear so I thought it might be good to build from source and learn how to pin point where it turned to custard.


By documenting the process a little, it could make it easier for others(osxmidi) to help me.


I'm following the instructions on this page
https://wiki.winehq.org/Regression_Testing


After cloning the git repo


Code:
CC="ccache gcc" ./configure --verbose --disable-tests --enable-win64

--enable-win64 was osxmidi's suggestion
after running the above it complains of missing dependencies like flex, xlib, bison.
easily fixed by
Code:
sudo apt install bison

sudo apt install libx11-dev

sudo apt install libfreetype6-dev

I have no idea what these do but it gets you to the below console output, basically saying you have the go ahead to build but these 60-odd things will be missing



Code:
configure: libxcursor 64-bit development files not found, the Xcursor extension won't be supported.
configure: libxi 64-bit development files not found, the Xinput extension won't be supported.
configure: XShm 64-bit development files not found, X Shared Memory won't be supported.
configure: XShape 64-bit development files not found, XShape won't be supported.
configure: libXxf86vm 64-bit development files not found, XFree86 Vidmode won't be supported.
configure: libxrandr 64-bit development files not found, XRandr won't be supported.
configure: libxfixes 64-bit development files not found, Xfixes won't be supported.
configure: libxinerama 64-bit development files not found, multi-monitor setups won't be supported.
configure: libxcomposite 64-bit development files not found, Xcomposite won't be supported.
configure: libGLU 64-bit development files not found, GLU won't be supported.
configure: libOSMesa 64-bit development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
configure: OpenCL 64-bit development files not found, OpenCL won't be supported.
configure: pcap 64-bit development files not found, wpcap won't be supported.
configure: libdbus 64-bit development files not found, no dynamic device support.
configure: lib(n)curses 64-bit development files not found, curses won't be supported.
configure: libsane 64-bit development files not found, scanners won't be supported.
configure: libv4l 64-bit development files not found.
configure: libgphoto2 64-bit development files not found, digital cameras won't be supported.
configure: libgphoto2_port 64-bit development files not found, digital cameras won't be auto-detected.
configure: liblcms2 64-bit development files not found, Color Management won't be supported.
configure: libpulse 64-bit development files not found or too old, Pulse won't be supported.
configure: gstreamer-1.0 base plugins 64-bit development files not found, GStreamer won't be supported.
configure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported.
configure: libudev 64-bit development files not found, plug and play won't be supported.
configure: libSDL2 64-bit development files not found, SDL2 won't be supported.
configure: libcapi20 64-bit development files not found, ISDN won't be supported.
configure: libcups 64-bit development files not found, CUPS won't be supported.
configure: fontconfig 64-bit development files not found, fontconfig won't be supported.
configure: libgsm 64-bit development files not found, gsm 06.10 codec won't be supported.
configure: libkrb5 64-bit development files not found (or too old), Kerberos won't be supported.
configure: libgssapi_krb5 64-bit development files not found (or too old), no Kerberos SSP support.
configure: libtiff 64-bit development files not found, TIFF won't be supported.
configure: libmpg123 64-bit development files not found (or too old), mp3 codec won't be supported.
configure: libopenal 64-bit development files not found (or too old), OpenAL won't be supported.
configure: openal-soft 64-bit development files not found (or too old), XAudio2 won't be supported.
configure: libvulkan and libMoltenVK 64-bit development files not found, Vulkan won't be supported.
configure: vkd3d 64-bit development files not found, Direct3D 12 won't be supported.
configure: libldap (OpenLDAP) 64-bit development files not found, LDAP won't be supported.

configure: WARNING: libxrender 64-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: libxml2 64-bit development files not found (or too old), XML won't be supported.

configure: WARNING: libxslt 64-bit development files not found, xslt won't be supported.

configure: WARNING: libgnutls 64-bit development files not found, no schannel support.

configure: WARNING: libjpeg 64-bit development files not found, JPEG won't be supported.

configure: WARNING: No sound system was found. Windows applications will be silent.

 configure: Finished.  Do 'make' to compile Wine.

not sure what else I need, though the warning "No sound system was found. Windows applications will be silent." was pretty helpful
so

Code:
sudo apt install libpulse-dev
Garrick is offline   Reply With Quote
Old 07-30-2018, 02:48 PM   #2
Garrick
Human being with feelings
 
Garrick's Avatar
 
Join Date: Jul 2009
Location: Wellington
Posts: 4,622
Default

Code:
make
at 9:47am
Garrick is offline   Reply With Quote
Old 07-30-2018, 02:53 PM   #3
Garrick
Human being with feelings
 
Garrick's Avatar
 
Join Date: Jul 2009
Location: Wellington
Posts: 4,622
Default

think i'll make a cup of tea
Garrick is offline   Reply With Quote
Old 07-30-2018, 03:11 PM   #4
Garrick
Human being with feelings
 
Garrick's Avatar
 
Join Date: Jul 2009
Location: Wellington
Posts: 4,622
Default

ha
if I read the whole page of https://wiki.winehq.org/Regression_Testing
I would have seen
Code:
sudo apt-get build-dep wine wine-dev
would have saved a lot of time
Garrick is offline   Reply With Quote
Old 07-30-2018, 03:26 PM   #5
Garrick
Human being with feelings
 
Garrick's Avatar
 
Join Date: Jul 2009
Location: Wellington
Posts: 4,622
Default

10:25
finished!
Garrick is offline   Reply With Quote
Old 07-30-2018, 04:29 PM   #6
Garrick
Human being with feelings
 
Garrick's Avatar
 
Join Date: Jul 2009
Location: Wellington
Posts: 4,622
Default

Quote:
Originally Posted by Garrick View Post
ha
if I read the whole page of https://wiki.winehq.org/Regression_Testing
I would have seen
Code:
sudo apt-get build-dep wine wine-dev
would have saved a lot of time

I get this

Code:
Unable to find a source package for wine-dev
but
Code:
sudo apt-get build-dep wine
worked and brought the requirements down to a few
Code:
configure: libhal 64-bit development files not found, no legacy dynamic device support.
configure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported.
configure: libSDL2 64-bit development files not found, SDL2 won't be supported.
configure: libvulkan and libMoltenVK 64-bit development files not found, Vulkan won't be supported.
configure: vkd3d 64-bit development files not found, Direct3D 12 won't be supported.

Last edited by Garrick; 07-30-2018 at 04:42 PM.
Garrick is offline   Reply With Quote
Old 07-30-2018, 04:42 PM   #7
Garrick
Human being with feelings
 
Garrick's Avatar
 
Join Date: Jul 2009
Location: Wellington
Posts: 4,622
Default

compiling the second time only took 7 minutes
Garrick is offline   Reply With Quote
Old 07-30-2018, 05:18 PM   #8
Garrick
Human being with feelings
 
Garrick's Avatar
 
Join Date: Jul 2009
Location: Wellington
Posts: 4,622
Default

hmmm


to be continued
unless of course I give up


if i run wine64 --version, it says 3.13 but
wine64 'some.exe' does nothing
Garrick is offline   Reply With Quote
Old 08-22-2018, 07:18 AM   #9
Hypex
Human being with feelings
 
Join Date: Mar 2015
Location: Australia
Posts: 451
Default

Read through the thread. LOL. Make a cup of tea. That was funny. :-D

Go ahead punk. Make my tea. You'd better be compiled before I come back. :-P

I'm somewhat familiar with getting stuff to compile and Googling errors can be the best thing to do at times. I do it a bit if I forget what some dumb error is about.

It looks like you are missing the source packages. Open up your sources list and make sure source packages are enabled. On my Linux Mint this is called 'Source code" in Software Sources. Or in your /etc/apt/sources.list* file(s) it needs deb-src entry enabled.

Reload the list after or do an:
Code:
apt-get update
Then try the build-dep command again.

Also, what is "ccache gcc" ? Never hard of a caching gcc. Strange.

If it fails just try the native Linux build. Works like a charm. Only thing is adding a neat little icon and menu has to be done by hand. :-)
Hypex is offline   Reply With Quote
Old 08-22-2018, 09:40 PM   #10
Garrick
Human being with feelings
 
Garrick's Avatar
 
Join Date: Jul 2009
Location: Wellington
Posts: 4,622
Default

Hey hypex, yeah im happy with the deb package from winehq.


I just thought I'd try and be clever and find the commit that broke sgear.
Which is not broke anymore with 3:14.


It was a good exercise to do, to be a little less intimidated by the process of compiling and how things work in general.


The gcc cache thing was new to me but makes sense. The initial build took over half an hour but the subsequent build took under 10 mins.
pretty handy for troubleshooting purposes
Garrick is offline   Reply With Quote
Old 08-27-2018, 05:03 AM   #11
Hypex
Human being with feelings
 
Join Date: Mar 2015
Location: Australia
Posts: 451
Default

Good you got it going Garrick.


Yes a pre-compiled deb is the best I only compile from source if I really need too. :-)


I found Wine tends to be an older version included as standard. Well it was on my Mint.


I tried Reaper with Wine but found it to be too buggy. I couldn't insert media files IIRC which is the first thing I do for a project so in effect useless for me. So I gave up on Wine, which only simulated XP, without fiddling to get newer versions installed. And recently removed it.


I found Reaper has a native Linux build so tested that and found it stable. It looks more basic and lacks a native Linux file requester but works fine. :-D
Hypex is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:20 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.