Author Topic: Experimental OpenMPT Wine Integration issues  (Read 947 times)

Offline FreezeFlame(Alchemy)

  • Workaholic artist
  • ***
  • Posts: 333
  • Not best,but i take my work serious(mostly).
  • Operating System: Windows 7,XP
Experimental OpenMPT Wine Integration issues
« on: May 16, 2019, 23:02:39 »
I was trying to get the native sound system output for OpenMPT for performance reasons on a older Core 2 Duo laptop (not sure yet, need to get it to work for me to see). Been trying for a long time to get it to work, but i get the same error (windows.h is missing) always...

I know this is a experimental feature, yet i wish to see if it will make a difference in performance (my CPU is about ~50% for both cores) while playing a track. For anyone curious, this performance hit is only happening if im playing sound (be it a track, VSTi or even the OPL emulation) with OpenMPT.

I followed the guide for wine integration from here:
https://forum.openmpt.org/index.php?topic=5792.0

The operating system used is Linux Mint MATE 19.1 64bit.
WineHQ version is 4.0.1 (currently newest stable).
Installed the following packages using apt:
  • coreutils
  • make pkg-config cpp gcc g++
  • binutils
  • ccache
  • xterm
  • libpulse-dev
  • wine-stable wine64-tools libwine-dev

Checked "Enable Wine native host support (requires restarting OpenMPT)"
Set the "PulseAudio:" menu to "Auto", and the other to "Disabled".

Closed and opened OpenMPT again and...it went to heck.

Want to get it to work with only PulseAudio for now.

Help is really appreciated.
Blue Flames of the Night.

Was known as Alchemy before(with an Dialga picture).

Offline StarWolf3000

  • Active artist
  • *
  • Posts: 23
  • Gender: Male
  • Operating System: Windows 8.1 x64
Re: Experimental OpenMPT Wine Integration issues
« Reply #1 on: May 18, 2019, 15:20:59 »
You need the development files for cross-compiling, as you're targeting Windows and not Linux. There should be a package called mingw-w64-x86-64-dev (or mingw-w64-i386-dev, if you target a 32bit Wine) for your system.
mingw-w64-x86-64-dev/mingw-w64-i386-dev contains all required Windows-specific headers and libraries.

Offline FreezeFlame(Alchemy)

  • Workaholic artist
  • ***
  • Posts: 333
  • Not best,but i take my work serious(mostly).
  • Operating System: Windows 7,XP
Re: Experimental OpenMPT Wine Integration issues
« Reply #2 on: May 18, 2019, 17:39:15 »
Quote
You need the development files for cross-compiling, as you're targeting Windows and not Linux. There should be a package called mingw-w64-x86-64-dev (or mingw-w64-i386-dev, if you target a 32bit Wine) for your system.
mingw-w64-x86-64-dev/mingw-w64-i386-dev contains all required Windows-specific headers and libraries.

Thanks for the hint. MinGW was the last thing in my mind for this.
But...

I installed it with:
sudo apt-get install mingw-w64-x86-64-dev


And opened OpenMPT again, and compiling failed again, same error.

Tried then downloading MinGW-w64 from here:
https://mingw-w64.org/doku.php/download/mingw-builds

and set it up with the options:
threads = win32
exceptions = seh

Opened OpenMPT again, and compiling failed again, same error.
Blue Flames of the Night.

Was known as Alchemy before(with an Dialga picture).

Offline FreezeFlame(Alchemy)

  • Workaholic artist
  • ***
  • Posts: 333
  • Not best,but i take my work serious(mostly).
  • Operating System: Windows 7,XP
Re: Experimental OpenMPT Wine Integration issues
« Reply #3 on: May 18, 2019, 17:54:50 »
Did some experimenting (again) and hit gold.

And it finally WORKS :)!

The magic words for the terminal:
sudo apt-get install wine-stable-dev
Blue Flames of the Night.

Was known as Alchemy before(with an Dialga picture).

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,768
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
Re: Experimental OpenMPT Wine Integration issues
« Reply #4 on: May 22, 2019, 20:29:48 »
For the reference, choosing WASAPI output in OpenMPT yields very competitive results on current Wine 4.x. If you run a current Wine version, just using the built-in WASAPI output rather than the Wine wrapper can thus save you quite some hassle and still deliver very good results.
ยป No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.