Help - Search - Members - Calendar
Full Version: Windows Applications With Wine + X11 (10.4.1 - .3)
InsanelyMac Forum > Apple World > OS X > Virtualization, Emulation, and CrossOver
Pages: 1, 2, 3
dpeddi
Download here, and folllow the instruction below: http://xoomer.virgilio.it/dpeddi/Darwine%2...aller_0.1.1.dmg

- Run the installer you find inside the folder
- Run Applications/WineHelper to start windows programs in an easier way.

How to build by yourself:

I get wine workining using latest Xcode 2.1 + Wine-20050725 + http://www.winehq.com/hypermail/wine-patch...05/07/0325.html + http://wiki.opendarwin.org/index.php/Darwine:quartzdrv.

Obviously I had to adjust some rejects.

At the moment, I had to launch windows application from X11 console.

I tested with success wine bundled application (regedit, winefiles, winmine), total commander, winrar.

At the moment I can't get yet wine working using quartz.drv without X11.

Eddi
bebox
great news it's would be usefull launch some windows application directly on OSX .

I've read codeweavers are porting their stuff to osx x86 too.
dpeddi
I use this as blackboard...

To be tested:

Check if wine can be installed in a more OSX standard path...
Perhaps this should be ok: autoconf && ./configure --prefix=/Librady/Darwine && make && make install
At the moment the default MACOSX_DEPLOYMENT_TARGET should be ok

Try Building WineHelper from Darwine project..
"First checkout WineHelper from the darwine repository on cvs.opendarwin.org."
This should let us to avoid starting wine from terminal....
Check if WineHelper may be adapted to doesn't require qemu
Open the Xcode project in the WineHelper folder and choose Build

Activate quartz.drv:
I found this in key in dlls/gdi/driver.c and dlls/user/driver.c
CODE
   strcpy( buffer, "x11,tty" );  /* default value */
   /* @@ Wine registry key: HKCU\Software\Wine\Drivers */
   if (!RegOpenKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Drivers", &hkey ))
   {
       DWORD type, count = sizeof(buffer);
       RegQueryValueExA( hkey, "Graphics", 0, &type, (LPBYTE) buffer, &count );
       RegCloseKey( hkey );
   }

regedit -> HKCU\Software\Wine\Drivers
New string -> Graphics = quartz

Eddi
dpeddi
All works in x11 mode...

Using quarz.drv, wine crash..

I'll pkg my build when quarz.drv will work.
bebox
great waiting for that then :-)


i have looked your links ... i don't see how make it run even under X11 ... blink.gif

i hope this will be easy to install and use dry.gif

but having look on wine screenshots on official homepage look a really good thing if we can run it in osx x86

the best of the two worlds in the same OS
Ekylypse
Okay...so has anyone considered Darwine?

QUOTE
The Darwine project intends to port and develop WINE as well as other supporting tools that will allow Darwin and Mac OS X users to run Windows Applications, and to provide a Win32 API compatibility at application source code level.


I see that it was mentioned above, but I dont understand if anyone had tried it or not.
dpeddi
Please try this...

It shouldn't too difficult to install..

- Download http://xoomer.virgilio.it/dpeddi/Darwine%20x86-Installer.dmg

- OpenDarwine x86-Installer that you will find on your desktop

- Run the installer you find inside the folder

- Run Applications/X11

- in xterm digit:

PATH=$PATH:/Library/Darwine/bin/ /Library/Darwine/bin/regedit

- Run Applications/WineHelper to start windows programs in an easier way.

Thanks to Darwine staff for providing the files I used to build the x86 package!

E.
bebox
yes pretty cool i try it right now, really really thanks
bebox
QUOTE(dpeddi @ Aug 27 2005, 01:20 PM)
Please try this...

It shouldn't too difficult to install..

- Download http://62.149.228.120/dpeddi/Darwine%20x86-Installer.dmg

- OpenDarwine x86-Installer that you will find on your desktop

- Run the installer you find inside the folder

- Run Applications/X11

- in xterm digit:

PATH=$PATH:/Library/Darwine/bin/ /Library/Darwine/bin/regedit

- Run Applications/WineHelper to start windows programs in an easier way.

Thanks to Darwine staff for providing the files I used to build the x86 package!

E.
*

i've tried regedit run

but when i ruun winehelper it close and nothing happpened ...

but it's a start
sportman
Same problem i click on wine helper and nothing happens sad.gif
good job though, im sure im just doing something wrong

================================================================================
==============================
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

sportmankid$ ./winehelper
ZeroLink: could not load .o file: /Users/curtis/projects/darwine/WineHelper/build/WineHelper_2.1.build/Development/WineHelper.build/Objects-normal/i386/main.ob
ZeroLink: could not load .o file: /Users/curtis/projects/darwine/WineHelper/build/WineHelper_2.1.build/Development/WineHelper.build/Objects-normal/i386/WHController.ob
ZeroLink: could not load .o file: /Users/curtis/projects/darwine/WineHelper/build/WineHelper_2.1.build/Development/WineHelper.build/Objects-normal/i386/WHOpenArgumentsView.ob
ZeroLink: could not load .o file: /Users/curtis/projects/darwine/WineHelper/build/WineHelper_2.1.build/Development/WineHelper.build/Objects-normal/i386/WHPreferences.ob
ZeroLink: could not load .o file: /Users/curtis/projects/darwine/WineHelper/build/WineHelper_2.1.build/Development/WineHelper.build/Objects-normal/i386/WHSession.ob
ZeroLink: could not load .o file: /Users/curtis/projects/darwine/WineHelper/build/WineHelper_2.1.build/Development/WineHelper.build/Objects-normal/i386/WHSessionNotificationQueue.ob
ZeroLink: could not load .o file: /Users/curtis/projects/darwine/WineHelper/build/WineHelper_2.1.build/Development/WineHelper.build/Objects-normal/i386/NSForm_WHExtension.ob
ZeroLink: could not load .o file: /Users/curtis/projects/darwine/WineHelper/build/WineHelper_2.1.build/Development/WineHelper.build/Objects-normal/i386/NSString_WHExtension.ob
Bus error
sportmankids-computer:/volumes/untitled/applications/winehelper.app/contents/macos sportmankid$ sportmankids-computer:/volumes/untitled/applications/winehelper.app/contents/macos sportmankid$
-bash: sportmankids-computer:/volumes/untitled/applications/winehelper.app/contents/macos: No such file or directory
sportmankids-computer:/volumes/untitled/applications/winehelper.app/contents/macos sportmankid$ sportmankids-computer:/volumes/untitled/applications/winehelper.app/contents/macos sportmankid$ sportmankids-computer:/volumes/untitled/applications/winehelper.

THAT is my error when i run winehelper from terminal
dpeddi
I just killed my osx installation upgrading to itunes 4.9... I have to reinstll, I think I will try my binary package from scratch next week!

E.
Takuro
............................................
sportman
i found the problem when u compiled winehelper, u have the application point to files on ur computer that i dont have. bbl
darkten
QUOTE(sportman @ Aug 27 2005, 01:36 PM)
i found the problem when u compiled winehelper, u have the application point to files on ur computer that i dont have. bbl
*



What you need to do is rebuild this...correctly smile.gif

In XCode, you need to choose te build results window, and set the project to build a Deployment build. Your build is a Development build with Zerolink/Fix And Continue turned on.
dpeddi
Fixed version, I hope

http://xoomer.virgilio.it/dpeddi/Darwine%2...aller_0.1.1.dmg

It should be less difficult to install..

- Download http://xoomer.virgilio.it/dpeddi/Darwine%2...aller_0.1.1.dmg

- Darwinex86-Installer_0.1.1 that you will find on your desktop

- Run the installer you find inside the folder

- Run Applications/WineHelper to start windows programs in an easier way.

The postinstall script is bundled into the package and run the same command you need to run by hand in the previous version!

Thanks to Darwine staff for providing the files I used to build the x86 package!

E.

PS: darkten, This is my first time I used Xcode, however I supposed the problem! I just have to reinstall the whole system and come back to home from a party!
sammykrupa
Very cool! It works!
Velvet Nightmare
Hmm, quite an intresting concept. This is something that I may have to try, I would love being able to use a vast majority of my apps on my x86 drive, as I'm now completely fed up with Windows. If I was able to get the drivers for my wireless card in some magical way, i would have dumped Windows already, but until then, this is a great helper.
darkten
QUOTE(dpeddi @ Aug 27 2005, 09:36 PM)
PS: darkten, This is my first time I used Xcode, however I supposed the problem! I just have to reinstall the whole system and come back to home from a party!
*


Wow man, you picked a helluva thing to srtart with smile.gif Well done.
sportman
hope u dont mind im writing a tut on how to install and use :-P
ill give u credit.
jchowland
The thing i've noticed with WINE are these three things:

1. It will fail on any program which checks the windows version
2. It cannot load DLL's
3. It won't work with progs that use OpenGL
sportman
any time i try and run ./winecfg that app runs, but i cannot change the settings, when i click apply it gives me some wierd error, otherwise it runs nice.
ioevanc
How do I install Wine ? When Im installing it it gives me an error before the installation completes. And tells me to restart installation ? What am I doing wrong ?
sHARD>>
QUOTE(ioevanc @ Aug 28 2005, 08:10 AM)
How do I install Wine ? When Im installing it it gives me an error before the installation completes. And tells me to restart installation ? What am I doing wrong ?
*


Same here, perhaps the installer has been corrupted. Anyone got another copy?
sportman
dunno y ppl are having trouble, worked fine for me. Check out my tutorial on the wiki
Takuro
............................................
sHARD>>
Found the problem for users which have installation failure. For some reason /Applications is set as read-only for some people. Copy the installer to the root of your hard drive, open Terminal, and run "sudo Installer -pkg "/Darwine x86-Installer_0.1.1.pkg" -target tiger-x86". When it prompts, enter your account password. The machine will go quite slow and freeze up for a moment, and when it is complete Darwine will be installed. Enjoy.
sportman
TAKURO, I got that working, but i test installs through both winehelper and xterm
and it seems ones through xterm run better, wine helper seems to muck some things up. and put the applications on the wiki, like i told u a million times.
http://wiki.osx86project.org/wiki/index.ph...ng_Applications
Go here and list ur applications Damn stay organized

ALSO WE NEED HELP GETTING THE ./winecfg command to actaully configure, i see to be experiences output erros and it wont write anything to the actual wine configuration file (wherever it may be)
register
QUOTE(dpeddi @ Aug 27 2005, 10:26 AM)
I just killed my osx installation upgrading to itunes 4.9... I have to reinstll, I think I will try my binary package from scratch next week!

E.
*


I was able to just delete 4.9 and reinstall 4.7
sportman
You can view add to a list in the wiki http://wiki.osx86project.org/wiki/index.php/Darwine_Apps

ALSO WHO EVER CAN COMPILE PLEASE TRY AND FIX IT SO WE CAN EDIT THE WINE CONFIG through ./winecfg, as of now it gives output errors. especially when attempting to change audio settings.
stelriah
i did not install x11 when i installed OSX. can i still install it from the developer disk?

haha, adaware works.
myzar
QUOTE(sportman @ Aug 28 2005, 06:14 PM)
TAKURO, I got that working, but i test installs through both winehelper and xterm
and it seems ones through xterm run better, wine helper seems to muck some things up. and put the applications on the wiki, like i told u a million times.
http://wiki.osx86project.org/wiki/index.ph...ng_Applications
Go here and list ur applications Damn stay organized

ALSO WE NEED HELP GETTING THE ./winecfg command to actaully configure, i see to be experiences output erros and it wont write anything to the actual wine configuration file (wherever it may be)
*


winecfg works for me, i think your problem is that you used sudo to install the package and the .wine dir in your user dir ended up owned by root so when you run it as user it can't write there
dpeddi
QUOTE(sportman @ Aug 29 2005, 04:49 AM)
You can view add to a list in the wiki http://wiki.osx86project.org/wiki/index.php/Darwine_Apps

ALSO WHO EVER CAN COMPILE PLEASE TRY AND FIX IT SO WE CAN EDIT THE WINE CONFIG through ./winecfg, as of now it gives output errors. especially when attempting to change audio settings.
*



I seen the problem, Just edit user.reg inside $YOURHOME/.wine and a section for Software\\Wine.

After that you should be able to use wincfg.

E.
sportman
Thanks a lot, im going to add the work around to the wiki, if possible could u show where exactly in that file do we edit? If possbile show us a copy of your user .reg
Thanks in advance
----Sportman
dpeddi
Just edit user.reg, then add [Software\\Wine] and save the file!

Then HKEY_CURRENT_USER will bi writable by wine and by winecfg!

CODE
tiger-x86:~ curtis$ cd .wine
tiger-x86:~/.wine curtis$ nano user.reg


WINE REGISTRY Version 2
;; All keys relative to \\User\\S-1-5-4

[Software\\Wine]

[Control Panel\\Colors] 1125196438


E.
sportman
thanks, now onto getting audio smile.gif, i kinda came close, messing with some driver settings.
register
I've added [Software\\Wine] to the .wine/user.reg
but every time I run an installer the user.reg file reverts to having no [Software\\Wine] entry!

So I add it again. Save it.
Close, open it up and verify the [Software\\Wine] line is there.
Close. Run an installer,
[Installing the Xvid codec using Gordian Knot Rip Pack, install chokes on registering the files]
then open the .wine/user.reg file and

there is no longer any [Software\\Wine] line!!

Any ideas?

also is this what is causing installers to be unable to register their dll's?
sportman
thats ok, its still set up right now, now run the ./winecfg command from /library/darwine/bin and set program settings to xp or 2003 mode, for specific apps then they will be added to the user.reg
cabron
man, the interface of this is a bit bizarre!
lol, win98+mac = :?

i don't test it too much here, i just tried out: winrar, winamp(install but don't startup correctly), teamspeak(don't works too).

i tested too a little other programs, like adls automatic autentication and etc, some works and others hangon, i will play more a bit with it for make best opinion.
cwestpha
Gah, here I wait until I have time and now the download site is down. Anyone mirrored it like the nice person asked?
dpeddi
QUOTE(cwestpha @ Aug 30 2005, 05:24 AM)
Gah, here I wait until I have time and now the download site is down. Anyone mirrored it like the nice person asked?
*


Uploaded to another site!
I've edited my post with new url!

E.
oceanant
GOOD

nickcirc
Very Good Find....will try later today
anarkhos
Hello,

I'm the author of quartzdrv and I also have OpenGL and DirectX working (for my OpenGL and DirectX Win32 apps compiled for PowerPC).

I don't know if you have the latest quartzdrv sources. I rewrote about 90-100% of it some time ago, but stopped working on it since I was the only one doing so and debugging got really tedious. If anyone would like to help I might redouble my efforts.

The driver as I left it implemented the basic framework as well as some basic GDI (like MoveTo, LineTo, etc.). I got stuck on bitmaps however due to undocumented behaviors of GDI and WINE (both of which are poorly documented). I don't have Win32 programming experience and got tired of flailing in the dark.

The X11 code is ugly, largely due to X11 being ugly, so that wasn't much help either.

I'll try to correct some things posted on this thread:

1) You don't need to edit other sources to get quartzdrv to load. Just add the relevant registry variables with regedit.exe.

2) The reason OpenGL and DirectX doesn't work is because the search path is wrong. This can be fixed by either using complete paths (set in configure or the headers) or setting DYLD_LIBRARY_PATH.

I'm "strobe" on the IRC channel if you want to code on this. Emphasis on coding please, not whining.

Have fun smile.gif
anarkhos
PS: .wine/config is being phased out, if it hasn't already.
anarkhos
D3D tunnel app
anarkhos
OpenGL app
anarkhos
PS: I also wrote the code (and made the icon) to display the Dock icon. If your version doesn't do so, then I guess it didn't have the appropriate patch wink.gif
dpeddi
QUOTE(anarkhos @ Sep 1 2005, 03:19 AM)
I don't know if you have the latest quartzdrv sources. I rewrote about 90-100% of it some time ago, but stopped working on it since I was the only one doing so and debugging got really tedious. If anyone would like to help I might redouble my efforts.

The X11 code is ugly, largely due to X11 being ugly, so that wasn't much help either.

I'll try to correct some things posted on this thread:

1) You don't need to edit other sources to get quartzdrv to load. Just add the relevant registry variables with regedit.exe.


Hi, I get quartzdrv from darwine cvs, it build correctly, but it fails on some calls. On setbkcolor wine crash so I comment out it, CreateNewWindow works and allocate the window, but the window doesn't appear and the function out with error -5600 but it's strange... errInvalidWindowPtr -5600 Invalid window pointer the pointer is exactly the same we get from CreateNewWindow! I tried to call wine as you suggested in an old discussion in the wine list by creating an application bundle.

It's strange... a test application on RunApplication(); after ShowWindow show the window, quartzdrv, never .

Due to the large interest, I decided to release a x86 build without quartzdrv!

E.
patrick21
I get each time these error's:

fixme:ole:CoCreateInstance no classfactory created for CLSID {cda42200-bd88-11d0-bd4e-00a0c911ce86}, hres is 0x80004002
wine: Unhandled exception (thread 0009), starting debugger...
fixme:ntdll:NtQueryVolumeInformationFile device info not properly supported on this platform
not done
Can't attach process 8: error 87
FWRU\?
8VHUVSDWULFNZLQH
wineprefixcreate failed while creating '/Users/patrick/.wine'.
wineserver: could not save registry branch to /Users/patrick/.wine-c4OzKM/system.reg : No such file or directory
wineserver: could not save registry branch to /Users/patrick/.wine-c4OzKM/userdef.reg : No such file or directory
wineserver: could not save registry branch to /Users/patrick/.wine-c4OzKM/user.reg : No such file or directory
?GRQH

can someon help me with this......?
anarkhos
QUOTE(dpeddi @ Aug 31 2005, 11:21 PM)
Hi, I get quartzdrv from darwine cvs...
*


I don't maintain that and it's likely ancient.

There was no point in maintaining CVS since only one developer was working on it.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.