Codeman655 / osxwinebuilder

Automatically exported from code.google.com/p/osxwinebuilder
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Sane Backends #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Sane Backends uses Rosetta and with Lion Rosetta has been removed, can you add 
a check for Lion and skip Sane Backends if Lion is found?

Thanks!

Original issue reported on code.google.com by stott...@gmail.com on 1 Sep 2011 at 9:51

GoogleCodeExporter commented 9 years ago
Okay,

I've modified Ryan's script so that his will compile on Lion.  Though I tried 
to use most of his functions I really got lazy in the end and just slammed in 
the new code.  Things I've changes in this version:

Removed Sanebackends (Can't seem to get this to compile at all on Lion, though 
I hadn't tried since the addition of gcc-4.6.)
Changed to the development branch of SDL since it has some code fixes for Lion.
If on Lion changed wine to use gcc-4.6 instead of XCode's. (XCode is used for 
everything else.)

I hadn't did any regression testing so I don't know if it'll still work on Snow 
Leopard or earlier (since I don't have and Snow Leopards right now).  

What I did to install (in a Terminal session):

mkdir ~/wine
(Copy the attached lion_osxwinebuild.sh script to the wine folder.)
cd ~/wine
./lion_osxwinebuild.sh --devel (The --devel is the default so you could leave 
that off.)
(Walked away for about 60-90 minutes.)
(Came back to a finished compile, and proceeded to use!)

I will say that Wine 1.3.31 seems to have some "sound" glitches that I hadn't 
noticed in prior versions but overall things seem to run smoothly.

Enjoy!
Jason

Original comment by stott...@gmail.com on 29 Oct 2011 at 5:23

Attachments:

GoogleCodeExporter commented 9 years ago
Missed a step...

You'll probably need to:
chmod 755 lion_osxwinebuild.sh

So that it'll run...

Original comment by stott...@gmail.com on 29 Oct 2011 at 5:47

GoogleCodeExporter commented 9 years ago
Wine 1.3.32 is out. :-) And also XQuartz 2.7.0 :-)
Does it work with this? Did someone test it?

Original comment by yvesdaes...@gmail.com on 14 Nov 2011 at 10:26

GoogleCodeExporter commented 9 years ago
I'm not always updating my wine, but I can take a look at it and see.  Maybe 
I'll do a "update" option for newer versions of wine.

Will let you know.

Original comment by stott...@gmail.com on 14 Nov 2011 at 2:43

GoogleCodeExporter commented 9 years ago
Updated the PERL script for Wine 1.3.32.  Also added a few options for this 
script (do a "./wine_lion_v.35.pl --help" for a list of options), if you built 
your wine using an older version of this script then you could run the 
"--update"  option to just rebuild wine.  (*Note* if you do this you'll need to 
change the '${WINEVER}="wine-1.3.32";' line to the version that you last built. 
 i.e. wine-1.3.31) 

I did update my XQuartz to 2.7.0 and it seem to work fine.    Since I seem to 
be updating the PERL script more than the other, maybe I need to move it to its 
own place.  

Original comment by stott...@gmail.com on 14 Nov 2011 at 4:42

Attachments:

GoogleCodeExporter commented 9 years ago
Currently testing it... Thanks a lot!!!

Original comment by yvesdaes...@gmail.com on 14 Nov 2011 at 6:01

GoogleCodeExporter commented 9 years ago
Didn't work. Will post the error... currently I'm at work.
(gcc didn't compile...)

Original comment by yvesdaes...@gmail.com on 15 Nov 2011 at 6:46

GoogleCodeExporter commented 9 years ago
See the information in the --help. 

Original comment by stott...@gmail.com on 15 Nov 2011 at 5:52

GoogleCodeExporter commented 9 years ago
Yes, but I cleaned up my folder (deleted all files) completely after my first 
try didn't work... Then started again and still not getting the gcc to 
compile...

Original comment by yvesdaes...@gmail.com on 16 Nov 2011 at 6:36

GoogleCodeExporter commented 9 years ago
The --cleangcc option didn't work for you?  That option seems to work for me, I 
guess I'll try to debug why it fails to compile initially since gcc seems to 
fail almost every time for me.

Original comment by stott...@gmail.com on 16 Nov 2011 at 4:48

GoogleCodeExporter commented 9 years ago
Yes but I started with a clean directory...
And got this error message:

configure: error: libgmp not found or uses a different ABI.
Please read the INSTALL file -- see "In case of problem".
make[2]: *** [configure-stage1-mpfr] Error 1
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2

Original comment by yvesdaes...@gmail.com on 20 Nov 2011 at 4:23

GoogleCodeExporter commented 9 years ago
Yeah. I'm getting that consistently now. I'm looking into it. 

Original comment by stott...@gmail.com on 20 Nov 2011 at 4:33

GoogleCodeExporter commented 9 years ago
Here's the ironic thing... I do the following:

cd build
rm -rf gcc-4.6.1/ gmp-4.3.2/ mpc-0.8.1/ mpfr-2.4.2/
cd ..
./wine_lion_v.35.pl

Then gcc will compile correctly, this is what the --cleangcc option is supposed 
to be doing but that seems to fail.  I'm still trying to figure out why gcc 
fails when trying to build clean.

Original comment by stott...@gmail.com on 20 Nov 2011 at 5:47

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks!
This worked! ;-) Now with actual wine1.3.33 and XQuartz 2.7.0.
But still my clipboard syncing problems :-(

Original comment by yvesdaes...@gmail.com on 21 Nov 2011 at 7:10

GoogleCodeExporter commented 9 years ago
Hi there,

I'm having problems with SDL hash:

ales-macbook:wine ale$ ./wine_lion_v.35.pl 

OS/X 10.7 (Lion) Detected.
+ Using the system X11.
Base directory: /Users/ale/wine
Output directory /Users/ale/wine/output already exists, not creating.
Temporary directory /Users/ale/wine/tmp already exists, not creating.

File "SDL-1.2.14.tar.gz" already exists, not downloading.
Checking /Users/ale/wine/source/SDL-1.2.14.tar.gz.
- /Users/ale/wine/source/SDL-1.2.14.tar.gz doesn't match the expect SHA1 string!
- Removing /Users/ale/wine/source/SDL-1.2.14.tar.gz, please restart this script
- and it should re-try the download of this file.

I've changed to 625fc9c28143e38cde6764a9cd3117f166869c50

and now it's working

thnx

Original comment by ali...@gmail.com on 23 Nov 2011 at 11:51

GoogleCodeExporter commented 9 years ago
another one, this time with berkley db:

http://download-uk.oracle.com/berkeley-db/

Invalid URL
The requested URL "/berkeley-db/", is invalid.

Reference #9.4cdb6ad4.1322050243.2a0bd918 

i've got the file from a random server

cheers

Original comment by ali...@gmail.com on 23 Nov 2011 at 12:13

GoogleCodeExporter commented 9 years ago
Yeah, unless I keep a server with all of the files it's kinda hard to keep 
track of every change to files / servers.  I'll have to update the script with 
these changes...   I should have some time later this week to make these 
changes.

Original comment by stott...@gmail.com on 23 Nov 2011 at 3:47

GoogleCodeExporter commented 9 years ago
is it possible to upload here in osxwinebuilder google code page?

Thanks Jason!

Original comment by ali...@gmail.com on 23 Nov 2011 at 3:59

GoogleCodeExporter commented 9 years ago
Yes, but I'm not the owner...  

One of two things would need to happen, 1:) I'd have to get permissions from 
Ryan to make changes to this project.  2:) Start my own.

I'll look into 2, but in the meantime I'll keep my updates here.

Original comment by stott...@gmail.com on 23 Nov 2011 at 4:11

GoogleCodeExporter commented 9 years ago
Fixed a couple of the issues from the .35 release, but it still won't compile 
gcc in the first pass.  

After it fails the first time you'll need to do the following:

cd build
rm -rf gcc-4.6.1/ gmp-4.3.2/ mpc-0.8.1/ mpfr-2.4.2/
cd ..
./wine_lion_v.37.pl

And it should complete...

Original comment by stott...@gmail.com on 23 Nov 2011 at 6:53

Attachments:

GoogleCodeExporter commented 9 years ago
I've setup a repository for the PERL script that I've been working on.  

Information can be found here.

http://code.google.com/p/lion-winebuilder/

Original comment by stott...@gmail.com on 26 Nov 2011 at 3:13

GoogleCodeExporter commented 9 years ago
I am getting this error, but not on Lion, I am running xcode 4.2 on Snow 
leopard and having the same compile problem.  Anyone have some suggestion for 
what I need to do to make it work?  see error below:

What steps will reproduce the problem?
1. download current script on latest Snow leopard 10.6.8
2. Install Xcode 4.2
3. Try to run script

NOTE that I am running 4.2 xcode, but not on Lion.  This is supported.  That is 
the last supporte version of xcode4 that works on Snow Leopard.

What is the expected output? What do you see instead?

I expect everything to compile.  Instead I get the following errors:

libtool: compile:  gcc -g -O2 -arch i386 -m32 -mmmx -msse -msse2 -msse3 
-mfpmath=sse -I/Users/sjs/wine/wine-1.5.4/include -I/usr/X11/include -g -O2 
-arch i386 -m32 -mmmx -msse -msse2 -msse3 -mfpmath=sse 
-I/Users/sjs/wine/wine-1.5.4/include -I/usr/X11/include 
-I/Users/sjs/wine/wine-1.5.4/include -I/usr/X11/include -I./include 
-D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX 
-fvisibility=hidden -I/usr/X11/include -DXTHREADS -D_THREAD_SAFE 
-force_cpusubtype_ALL -fpascal-strings -c ./src/video/SDL_blit_N.c  -fno-common 
-DPIC -o build/.libs/SDL_blit_N.o
/var/folders/qO/qOTSbezhExiWABQBFWk-ok+++TI/-Tmp-//ccEWCR7d.s:2717:suffix or 
operands invalid for `movq'
/var/folders/qO/qOTSbezhExiWABQBFWk-ok+++TI/-Tmp-//ccEWCR7d.s:2760:suffix or 
operands invalid for `movq'
/var/folders/qO/qOTSbezhExiWABQBFWk-ok+++TI/-Tmp-//ccEWCR7d.s:2995:suffix or 
operands invalid for `movq'
/var/folders/qO/qOTSbezhExiWABQBFWk-ok+++TI/-Tmp-//ccEWCR7d.s:3056:suffix or 
operands invalid for `movq'
/var/folders/qO/qOTSbezhExiWABQBFWk-ok+++TI/-Tmp-//ccEWCR7d.s:5165:suffix or 
operands invalid for `movq'
/var/folders/qO/qOTSbezhExiWABQBFWk-ok+++TI/-Tmp-//ccEWCR7d.s:5265:suffix or 
operands invalid for `movq'
/var/folders/qO/qOTSbezhExiWABQBFWk-ok+++TI/-Tmp-//ccEWCR7d.s:5598:suffix or 
operands invalid for `movq'
/var/folders/qO/qOTSbezhExiWABQBFWk-ok+++TI/-Tmp-//ccEWCR7d.s:5704:suffix or 
operands invalid for `movq'
make: *** [build/SDL_blit_A.lo] Error 1
make: *** Waiting for unfinished jobs....
/var/folders/qO/qOTSbezhExiWABQBFWk-ok+++TI/-Tmp-//ccvm6KN9.s:1252:suffix or 
operands invalid for `movq'
/var/folders/qO/qOTSbezhExiWABQBFWk-ok+++TI/-Tmp-//ccvm6KN9.s:1955:suffix or 
operands invalid for `movq'
/var/folders/qO/qOTSbezhExiWABQBFWk-ok+++TI/-Tmp-//ccvm6KN9.s:2671:suffix or 
operands invalid for `movq'
/var/folders/qO/qOTSbezhExiWABQBFWk-ok+++TI/-Tmp-//ccvm6KN9.s:2953:suffix or 
operands invalid for `movd'
/var/folders/qO/qOTSbezhExiWABQBFWk-ok+++TI/-Tmp-//ccvm6KN9.s:3052:suffix or 
operands invalid for `movq'
/var/folders/qO/qOTSbezhExiWABQBFWk-ok+++TI/-Tmp-//ccvm6KN9.s:4041:suffix or 
operands invalid for `movq'
/var/folders/qO/qOTSbezhExiWABQBFWk-ok+++TI/-Tmp-//ccvm6KN9.s:4602:suffix or 
operands invalid for `movq'
/var/folders/qO/qOTSbezhExiWABQBFWk-ok+++TI/-Tmp-//ccvm6KN9.s:5183:suffix or 
operands invalid for `movq'
/var/folders/qO/qOTSbezhExiWABQBFWk-ok+++TI/-Tmp-//ccvm6KN9.s:5398:suffix or 
operands invalid for `movd'
/var/folders/qO/qOTSbezhExiWABQBFWk-ok+++TI/-Tmp-//ccvm6KN9.s:5499:suffix or 
operands invalid for `movq'
make: *** [build/SDL_RLEaccel.lo] Error 1
could not run 'make -j3' in /Users/sjs/wine/build/SDL-1.2.14 - exiting

Original comment by dewdman42 on 14 May 2012 at 12:19

GoogleCodeExporter commented 9 years ago
I don't have any Snow Leopards left at my house, but this seems like a similar 
error I was getting through XCode 4.x on Lion because Apple switched to Clang.  
My advice would be to try one of the "working" scripts that I posted earlier 
that was based on Ryan's script or uninstall 4.2 and install 3.x that is on 
your Snow Leopard installation disk. 

Original comment by stott...@gmail.com on 14 May 2012 at 5:43

GoogleCodeExporter commented 9 years ago
when you guys made the lion scripts did you change anything that would be 
incompatible with snow leopard in general or was it more like an xcode 4.x 
upgrade as opposed to being for lion per say?

Original comment by dewdman42 on 14 May 2012 at 7:02

GoogleCodeExporter commented 9 years ago
drats, your new perl script has a check in it to prevent me from running it on 
anything earlier then Lion.  I can tweak the script around that I guess, but I 
guess I need to know if its dependent on Lion or dependent more on xcode 4.2

Original comment by dewdman42 on 14 May 2012 at 7:06

GoogleCodeExporter commented 9 years ago
That's why I said to use one of the ones  that was based on the osxwinebuilder. 
 My lionwine perl script does have a check, but you could comment out the check 
in the script. 

Original comment by stott...@gmail.com on 14 May 2012 at 8:25

GoogleCodeExporter commented 9 years ago
I believe all of the problems in this issue should be worked out. Please pull a 
new SVN revision, rerun the build and let me know if there are further 
problems. -r

Original comment by rwoodsm...@gmail.com on 2 Jun 2012 at 6:20

GoogleCodeExporter commented 9 years ago

Original comment by rwoodsm...@gmail.com on 18 Sep 2012 at 4:57