Old 1st May 2016, 14:00   #1
dickchuck
Junior Member
 
Join Date: Jan 2011
Posts: 17
Milkdrop 2.25c compile issues

Hi all - not sure how many people still use this forum; seems like lots of new options are out there for music and graphics. Winamp and milkdrop are still my favorite combo for music-ing.

the short version - does anyone have some detailed advice they can offer for compiling the 2.25c source code in Visual Studio (Community 2015) for windows 7 64 bit. I don't really need it to be a 64 bit compile; that's just where I am OS-wise. Or the DirectX11 code would be even better.

more...
I wanted to update my event dispatcher mod of milkdrop. Before, I had it compiling under XP 32 bit. Since then, I am using Windows 7 64bit. Out-of-the box, I couldn't get the source code to compile in Visual Studio (Community 2015). There were tons of deprecation warnings and a few fatal errors - they seemed to be mostly about the older ways of handling "large integers" and bring them to 64 bit - or insure they stayed 32 as needed, and one bad parameter count. Anyway, I made what seemed to be necessary fixes and it compiles - however when I launch the plugin in winamp it crashes before doing anything noticeable. Would love to 'borrow' anyone's vcproj files if they have them for Studio 2015. Also, I downloaded the DirectX11 milkdrop and it runs great in Winamp; it compiles to .lib from the source code but when I compile to .dll something bad happens.

Thanks ahead of time... hello... is there anybody out there?
dickchuck is offline   Reply With Quote
Old 30th August 2016, 03:46   #2
lightbulblight
Junior Member
 
Join Date: Aug 2016
Posts: 1
Smile Hellooo

After much fiddling around, I finally got MilkDrop to compile in newer versions of Visual Studio. However, Winamp would crash when attempting to start the plugin. After attaching a debugger I saw the exception was in msvcr110.dll. Rather than reverse engineer that whole deal, I just took the advice on http://www.geisswerks.com/milkdrop/ and compiled it in Visual Studio Express 2008. I can confirm the resulting dll works with Winamp.

I did have to change a couple of things after opening the solution in Visual Studio Express 2008.
  • Right click the project -> Properties -> Configuration Properties -> C/C++ -> General -> Additional Include Directories. I changed this to be
    code:
    C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include
    ../Wasabi

  • After a build attempt, it will complain about afxres.h in plugin.rc. Change this to be WinResrc.h.
  • It then complained about IDC_STATIC. So I added
    code:
    #ifndef IDC_STATIC
    #define IDC_STATIC -1
    #endif


    in there, right below // Dialog.

Hope this helps!
lightbulblight is offline   Reply With Quote
Old 17th December 2017, 04:29   #3
skalamondre
Junior Member
 
Join Date: Dec 2017
Posts: 5
Hello there I was wondering if you made any progress in your fiddling. I tried to get this working in VS 2017 but also with only about 5100 errors. Admittedly I'm not sharp with c++ anyway but I was hoping to find a way to load a preset in similar fashion to the way custom messages are loaded. For example, you would have a milk2_preset.ini file which has this:

code:

[preset00]
name=Aderrasi - Airhandler (Principle of Sharing)

[preset01]
name=fiShbRaiN - crystal glasses

[preset02]
name=Flexi - braggadocio



then you would need a way to refresh/re-read this file and the keyboard events to launch the preset i.e. "P01", "P02" etc.

This way you could have 99 different presets accessible via keyboard. I could probably hack this together if I can get VS to build although it wouldn't be pretty.
skalamondre is offline   Reply With Quote
Old 17th December 2017, 04:30   #4
skalamondre
Junior Member
 
Join Date: Dec 2017
Posts: 5
I should clarify that I'm on Windows 10 and I get errors installing the DirectX SDK. When I compile I seem to be missing files such as stdlib.h so I may just not be fully setup yet.
skalamondre is offline   Reply With Quote
Old 20th December 2017, 02:36   #5
skalamondre
Junior Member
 
Join Date: Dec 2017
Posts: 5
Dickchuck I caught up to you. I'm at the same place now where I can compile without errors however Winamp crashes instantly when it's launched.

Were you able to solve that problem?
skalamondre is offline   Reply With Quote
Old 28th May 2018, 20:47   #6
Heiler
Junior Member
 
Join Date: Jul 2009
Posts: 6
I can compile with VS2017 but not every preset work.. some of them just gets a blinking color on all screen..
Heiler is offline   Reply With Quote
Old 28th May 2018, 20:55   #7
Heiler
Junior Member
 
Join Date: Jul 2009
Posts: 6
are your crashes related to ucrtbase.dll ? I had to replace a lot of functions which relied on C_LOCALE or something
Heiler is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Visualizations > MilkDrop > MilkDrop Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off

Forum Jump