okay i'm too lazy for a well-formatted patch so here's the howto:
1) download the latest gtk+ bundle:
http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.18/
extract it to a folder anywhere, i use "c:\users\user\desktop\gtk" from now. change it everywhere according to your folder.
2) control panel/system/advanced system settings/environmental variables/user variables for user:
new, name: PATH, value: c:\users\user\desktop\gtk\bin. if PATH already exists, append ";c:\users\user\desktop\gtk\bin" without quotation marks.
3) open lame-398-2/lame_vc8.sln with vs. if you're using vs2008, use the conversion wizard to update the solution. open mp3x_vc8/source files/gtkanal.c
line 1146. change
textwindow = gtk_window_new(GTK_WINDOW_DIALOG);
to
textwindow = gtk_window_new(GTK_WINDOW_POPUP);
line 1160. change
vscrollbar = gtk_vscrollbar_new(GTK_TEXT(box)->vadj);
to
vscrollbar = gtk_vscrollbar_new(GTK_TEXT_VIEW(box)->vadjustment);
line 1402: comment it out like:
/* gtk_accel_group_attach(accel_group, GTK_OBJECT(windows)); */
4) change solution configuration to "Release". go to mp3x project properties. right click on mp3x_vc8. go to configuration properties.
5) C/C++/General/Additional Include Directories. add:
c:\users\user\desktop\gtk\include\gtk-2.0
c:\users\user\desktop\gtk\include\glib-2.0
c:\users\user\desktop\gtk\lib\glib-2.0\include
c:\users\user\desktop\gtk\include\cairo
c:\users\user\desktop\gtk\include\pango-1.0
c:\users\user\desktop\gtk\lib\gtk-2.0\include
c:\users\user\desktop\gtk\include\atk-1.0
6) C/C++/Preprocessor/Preprocessor Definitions: add:
GTK_ENABLE_BROKEN
7) C/C++/Code Generation/Runtime Library: change to Multi-threaded (/MT)
Linker/General/Additional Library Directories: add:
c:\users\user\desktop\gtk\lib
9) Linker/Input/Additional Dependencies: remove
glib-2.0.lib
gdk.lib
gtk.lib
and add:
gtk-win32-2.0.lib
gdk-win32-2.0.lib
glib-2.0.lib
gobject-2.0.lib
10) build mp3x. go to lame-398-2/output. copy an mp3 here as "test.mp3". run a command prompt from here (in TC enter "cmd"). in cmd enter "mp3x test.mp3", and it should run.
there are errors in the command line ("assertion failed") and if you resize the window the graphs won't be redrawed, etc. so this is just a start, but at least it builds and runs. maybe someone will fix it correctly.