Help - Search - Members - Calendar
Full Version: mp3x frame analyser
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - Tech
morpheus1982
I wish to compile LAMES MP3x Frame Analyser so that I can amend a few things in the source code for project reasons.

However, following the instructions (README.WINGTK) provided and including all the .lib file etc leads to the first of the following errors:

--------------------Configuration: MP3x - Win32 Release GTK--------------------
Compiling...
gtkanal.c
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(303) : warning C4013: 'gtk_text_freeze' undefined; assuming extern returning int
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(303) : warning C4013: 'GTK_TEXT' undefined; assuming extern returning int
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(304) : warning C4013: 'gtk_text_backward_delete' undefined; assuming extern returning int
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(305) : warning C4013: 'gtk_text_get_length' undefined; assuming extern returning int
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(306) : warning C4013: 'gtk_text_set_point' undefined; assuming extern returning int
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(307) : warning C4013: 'gtk_text_insert' undefined; assuming extern returning int
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(336) : warning C4013: 'gtk_text_thaw' undefined; assuming extern returning int
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(1083) : warning C4013: 'gtk_text_new' undefined; assuming extern returning int
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(1083) : warning C4047: '=' : 'struct _GtkWidget *' differs in levels of indirection from 'int '
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(1084) : warning C4013: 'gtk_text_set_editable' undefined; assuming extern returning int
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(1085) : error C2223: left of '->vadj' must point to struct/union
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(1085) : error C2198: 'gtk_vscrollbar_new' : too few actual parameters
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(1092) : warning C4013: 'gtk_text_set_word_wrap' undefined; assuming extern returning int
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(1327) : warning C4013: 'gtk_accel_group_attach' undefined; assuming extern returning int
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(1437) : warning C4047: '=' : 'struct _GtkWidget *' differs in levels of indirection from 'int '
Error executing cl.exe.

mp3x.exe - 2 error(s), 24 warning(s)



Then it you can comment out the lines causing the problems(because they only create the help window), you eventually end up with more errors, requesting access to files not provided in the downloaded libraries.

--------------------Configuration: MP3x - Win32 Release GTK--------------------
Linking...
LINK : fatal error LNK1181: cannot open input file "gdk.lib"
Error executing link.exe.

mp3x.exe - 1 error(s), 0 warning(s)


I have mentioned this to Gabriel Bouvigne and he says that these libraries must have changed since mp3x was written therefore creating incompatibility problems.

If anyone has compiled MP3x recently, could you please tell me how you did it...

Thanks
metaller
Make sure you are using proper GTK version (1.2 or 1.3), and make sure you have specified library path correctly.
morpheus1982
--------------------Configuration: MP3x - Win32 Release GTK--------------------
Compiling...
gtkanal.c
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(303) : warning C4013: 'gtk_text_freeze' undefined; assuming extern returning int
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(303) : warning C4013: 'GTK_TEXT' undefined; assuming extern returning int
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(304) : warning C4013: 'gtk_text_backward_delete' undefined; assuming extern returning int
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(305) : warning C4013: 'gtk_text_get_length' undefined; assuming extern returning int
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(306) : warning C4013: 'gtk_text_set_point' undefined; assuming extern returning int
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(307) : warning C4013: 'gtk_text_insert' undefined; assuming extern returning int
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(336) : warning C4013: 'gtk_text_thaw' undefined; assuming extern returning int
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(1069) : error C2065: 'GTK_WINDOW_DIALOG' : undeclared identifier
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(1083) : warning C4013: 'gtk_text_new' undefined; assuming extern returning int
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(1083) : warning C4047: '=' : 'struct _GtkWidget *' differs in levels of indirection from 'int '
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(1084) : warning C4013: 'gtk_text_set_editable' undefined; assuming extern returning int
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(1085) : error C2223: left of '->vadj' must point to struct/union
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(1085) : error C2198: 'gtk_vscrollbar_new' : too few actual parameters
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(1092) : warning C4013: 'gtk_text_set_word_wrap' undefined; assuming extern returning int
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(1327) : warning C4013: 'gtk_accel_group_attach' undefined; assuming extern returning int
C:\MATLAB7\work\lame-3.96\lame-3.96\frontend\gtkanal.c(1437) : warning C4047: '=' : 'struct _GtkWidget *' differs in levels of indirection from 'int '
Error executing cl.exe.

mp3x.exe - 3 error(s), 13 warning(s)


These intermediate errors come from gtkanal.c, commenting out these lines of code removes the above errors.

Even after using the older version of gtk 1.3 this last error comes up...

Linking...
gpkplotting.obj : error LNK2001: unresolved external symbol _g_type_check_instance_cast
gtkanal.obj : error LNK2001: unresolved external symbol _g_type_check_instance_cast
gtkanal.obj : error LNK2001: unresolved external symbol _GTK_TEXT
../output/mp3x.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

mp3x.exe - 4 error(s), 11 warning(s)


Now, I dont have a clue what the problem is here. Someone must know the correct why of compiling this.... unsure.gif
Gabriel
I uploaded the gtk libs I am using on gabriel.mp3-tech.org/lame
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.