Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Building Custom Wine Engine


  • Please log in to reply
10 replies to this topic

#1 Slice

Slice

    Veteran Member

  • Members
  • PipPipPipPipPip
  • 305 posts
  • Graphics Card:AMD Radeon HD6670, GTX650
  • Operating System:OS X 10.11 (El Capitan)
  • I like to play:Heroes III
    4x4 Evolution
    made Heroes VI working!

Posted 20 February 2015 - 08:49 AM

Dear developers,
I want to open new thread to collect here tricks and howto to create own wine engines.
I know official site winehq with its help.
I know some advices exists here.
I know MacPort can install wine.
Nonetheless my compilation leads to non-working engine.
sudo port install wine-devel
give me non-working engine as well.
But thanks to MacPort I got all dependencies I needed.

I have two computers for the work. Both have 10.7.5.
One is 32bit and NVidia 7300 card.
Second with 64bit and Radeon 6670 card. There is also Maverics but it can't compile wine. So 10.7.5 used for compilation.

What I did:
1. As MacPort installs all libraries into /opt/local then I make --prefix=/opt/local for wine compilation.
2. I have several compilers but as I found only Apple-gcc4.2 can compile wine without errors.
Why? Is there any patches to move to new compilers?
Target: x86_64-apple-darwin11.4.2
Thread model: posix
gcc version 4.9.2 (GCC)
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix

3. Configure with follow flags
./configure --prefix=/opt/local \
--without-alsa --without-capi --without-gnutls --without-gsm --without-ldap --without-netapi --without-opencl --without-sane --without-v4l --without-xinerama --with-x --without-gphoto --without-tiff --without-oss --without-jpeg CC=llvm-gcc
Something wrong?

4.
make
sudo make install
Create wswine.bundle and copy all needed files from /opt/local to folders.
tar -r -f WS9WineMy-3.tar wswine.bundle
7za a WS9WineMy-3.tar.7z WS9WineMy-3.tar

Quote

Everything is Ok

5. Place into folder ..../Wineskin/Engines and play
.... not started

The log if follow
WineskinX11: main(): argc=12
Waiting for startup parameters via Mach IPC.
WineskinX11: do_start_x11_server(): argc=12
Attempting to use pixel depth of 24
[2787759.some number] WineskinX11 starting:
[2787759.some number] X.Org X Server 1.13.0
[2787759.some number] Build Date: 20120921
[2787759.667] _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
[2787759.677] Initializing built-in extension Generic Event Extension
[2787759.677] Initializing built-in extension SHAPE
[2787759.677] Initializing built-in extension MIT-SHM
[2787759.677] Initializing built-in extension XInputExtension
[2787759.677] Initializing built-in extension XTEST
[2787759.677] Initializing built-in extension BIG-REQUESTS
[2787759.677] Initializing built-in extension SYNC
[2787759.677] Initializing built-in extension XKEYBOARD
[2787759.677] Initializing built-in extension XC-MISC
[2787759.677] Initializing built-in extension XINERAMA
[2787759.677] Initializing built-in extension PseudoramiX
[2787759.677] Initializing built-in extension XFIXES
[2787759.677] Initializing built-in extension RENDER
[2787759.677] Initializing built-in extension RANDR
[2787759.677] Initializing built-in extension DAMAGE
[2787759.677] Initializing built-in extension MIT-SCREEN-SAVER
[2787759.677] Initializing built-in extension DOUBLE-BUFFER
[2787759.677] Initializing built-in extension RECORD
[2787759.677] Initializing built-in extension X-Resource
[2787759.677] Initializing built-in extension XVideo
[2787759.677] Initializing built-in extension XVideo-MotionCompensation
[2787759.677] Initializing built-in extension GLX
[2787759.677] x: 0, y: 0, w: 1280, h: 1002
[2787759.717] (II) GLX: Initialized Core OpenGL GL provider for screen 0
[2787760.057] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
Engine Used: WS9WineMy-3

Any advices?

#2 ovvldc

ovvldc

    Master Member

  • Members
  • 1253 posts
  • LocationEurope
  • Graphics Card:Intel Iris Plus
  • Operating System:Other OS/Not specified
  • I like to play:stories

Posted 20 February 2015 - 10:18 AM

Is this functionally the same as the build mechanics that are in the Winery?

#3 Slice

Slice

    Veteran Member

  • Members
  • PipPipPipPipPip
  • 305 posts
  • Graphics Card:AMD Radeon HD6670, GTX650
  • Operating System:OS X 10.11 (El Capitan)
  • I like to play:Heroes III
    4x4 Evolution
    made Heroes VI working!

Posted 20 February 2015 - 10:32 AM

View Postovvldc, on 20 February 2015 - 10:18 AM, said:

Is this functionally the same as the build mechanics that are in the Winery?
Sorry, Winery has build mechanism? I think it only download binary because build requires several hours.

#4 dankoB

dankoB

    Legendary Member

  • Super Moderators
  • 3011 posts
  • LocationNew Brunswick, Canada
  • Graphics Card:MacBook Pro 11,3
    Core i7 16GB
    NVIDIA GeForce GT 750M
    2GB GDDR5 vRAM
  • Operating System:macOS 10.12 (Sierra)
  • I like to play:la rockitar
Author

Posted 20 February 2015 - 04:26 PM

Nope, you can use Winery to build your own custom engines...the only thing it doesn't take care of would be patching the source with your preferred patch.

Simply open terminal and cd to the folder the source is in and the use the command patch -p1 >patchname.patch after it is patched open up Winery and click on the plus sign in the main window. It will open up another pane with the option to Build Custom Engine once you've named the engine and pointed winery to the source folder simply click build and it will take care of the rest.

#5 Slice

Slice

    Veteran Member

  • Members
  • PipPipPipPipPip
  • 305 posts
  • Graphics Card:AMD Radeon HD6670, GTX650
  • Operating System:OS X 10.11 (El Capitan)
  • I like to play:Heroes III
    4x4 Evolution
    made Heroes VI working!

Posted 20 February 2015 - 06:38 PM

All my builds leads to crash
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x7bc6aaee
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x7bc6aaee
wine: Unhandled page fault on read access to 0xffffffff at address 0x4264f2d4 (thread 0009), starting debugger...
Application tried to create a window, but no driver could be loaded.
The explorer process failed to start.
Unhandled exception: page fault on read access to 0xffffffff in 32-bit code (0x4264f2d4).
Why I can't build any working Wine engine???

#6 dankoB

dankoB

    Legendary Member

  • Super Moderators
  • 3011 posts
  • LocationNew Brunswick, Canada
  • Graphics Card:MacBook Pro 11,3
    Core i7 16GB
    NVIDIA GeForce GT 750M
    2GB GDDR5 vRAM
  • Operating System:macOS 10.12 (Sierra)
  • I like to play:la rockitar
Author

Posted 20 February 2015 - 07:15 PM

http://wineskin.urge...a Custom Engine

#7 Slice

Slice

    Veteran Member

  • Members
  • PipPipPipPipPip
  • 305 posts
  • Graphics Card:AMD Radeon HD6670, GTX650
  • Operating System:OS X 10.11 (El Capitan)
  • I like to play:Heroes III
    4x4 Evolution
    made Heroes VI working!

Posted 20 February 2015 - 07:50 PM

View PostDankoB, on 20 February 2015 - 07:15 PM, said:

Yes, thank you, I understand the method. The result of this compilation differs from my custom compilation. I think it is due to different flags.
But I still didn't obtain a working engine.
Yes, I have /Developer/SDKs/MacOSX10.6.sdk and apple-gcc4.2 was installed by the Winery 1.7. Wrapper proposed to be W2.5.5v1EngineBase
Sources from wine-crossover-1.7.25 with one patch about absent distversion.h.
All dependencies were installed by MacPort without errors.
Something else?

#8 Slice

Slice

    Veteran Member

  • Members
  • PipPipPipPipPip
  • 305 posts
  • Graphics Card:AMD Radeon HD6670, GTX650
  • Operating System:OS X 10.11 (El Capitan)
  • I like to play:Heroes III
    4x4 Evolution
    made Heroes VI working!

Posted 20 February 2015 - 08:08 PM

Where can I get wine sources v1.5.x or 1.6.x?

#9 Slice

Slice

    Veteran Member

  • Members
  • PipPipPipPipPip
  • 305 posts
  • Graphics Card:AMD Radeon HD6670, GTX650
  • Operating System:OS X 10.11 (El Capitan)
  • I like to play:Heroes III
    4x4 Evolution
    made Heroes VI working!

Posted 21 February 2015 - 07:24 AM

And what is mean?
err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.


#10 Slice

Slice

    Veteran Member

  • Members
  • PipPipPipPipPip
  • 305 posts
  • Graphics Card:AMD Radeon HD6670, GTX650
  • Operating System:OS X 10.11 (El Capitan)
  • I like to play:Heroes III
    4x4 Evolution
    made Heroes VI working!

Posted 21 February 2015 - 10:29 AM

View PostSlice, on 20 February 2015 - 08:08 PM, said:

Where can I get wine sources v1.5.x or 1.6.x?
I got them
Index of /wine/source/

View PostSlice, on 21 February 2015 - 07:24 AM, said:

And what is mean?
err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
This is smb support. We can no bother.

#11 Slice

Slice

    Veteran Member

  • Members
  • PipPipPipPipPip
  • 305 posts
  • Graphics Card:AMD Radeon HD6670, GTX650
  • Operating System:OS X 10.11 (El Capitan)
  • I like to play:Heroes III
    4x4 Evolution
    made Heroes VI working!

Posted 21 February 2015 - 12:01 PM

I have a success.
Download sources 1.5.31 and compile by Winery. Yes, they works! So 1.7.36 is just not working. It is not my mistake.

My purpose is making HoMM VI full working. Two problems:
1. 3D graphics is very slow. I know it was resolved in some branches (1.3.30-homm6) but I see no sources of the patch.
2. Black textures or "light switched off" in all engines with all tricks. The game from the same DVD works without this bug in real Windows so this is Wine Engine error.
I want somehow resolve those problems.
3. Versions 1.7.x not working at all with me.
4. Water looks like white place.


PS. Anyway the purpose of this thread are fulfilled. I have a build environment and able to build engines.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users