Re: Cannot build sources in VC++ 6

"Joe Biron" <[email protected]>
Newsgroups gmane.comp.audio.zinf.devel
Message-ID <002901c360e6$9d4d76b0$b77ba8c0@shire>
Kristian , thanks for the explanation. Actually, I just wanted to toy around
with some MP3 decoding or even just PCM or WAV audio playback sources for
Win32. I want to develop a musician's toolkit for playing back audio files
at reduced speed but original pitch, indexing into portions of tracks,
etc...

Zinf is a rich player, more rich than I need. I just want to see some
barebones decoding and playback on Windows, WITHOUT using the MCI commands.
Can you point me in the right direction?

Thanks.


----- Original Message ----- 
From: "Kristian Kvilekval" <[email protected]>
To: <[email protected]>
Sent: Sunday, August 10, 2003 12:40 PM
Subject: Re: [Zinf-devel] Cannot build sources in VC++ 6


> Sorry for the trouble you are having.
>
> The win32 code has only been re-added to CVS recently.
> It was removed for the 2.2.2 release and abandoned
> for a while.   There is an effort afoot to bring
> the win32 code back in-line with 2.2.4 and the upcomming
> 2.2.5.    It would certainly be wonderful to be able
> to also release a win32 during that time.
>
> If you would like to help, send your patches to the
> list and one of the developers will commit them.
>
> The errors in musiccatalog are namespace errors.
>
> string, vector, pair need to be preceded with
> std:: when used in a header file.   i.e. the
> error you seeing is because vector -> std::vector
>
> It seems like you might also be missing the file
> stdint.h which defines int32_t etc..
>
>
>
>
> On Sun, 2003-08-10 at 07:24, Joe Biron wrote:
> > I recently heard about Zinf and would like to fiddle with the sources to
> > learn about MP3 decoding and playback.
> > I downloaded Win32 the source zip from
> > http://prdownloads.sourceforge.net/zinf/zinf-2.2.1.zip and attempted to
> > build in Visual Studio 6,0, but got numerous errors related to STL
> > incompatibilities. Tying to shoehorn in SGI's STL was a miserable and
> > fruitless experience.I found a thread on this mailing list archive stati
ng
> > that SGI STL is no longer required, and that one should get the latest
> > sources from CVS and simply build the BuildAll target. So, I obediently
got
> > the "zinf" module from CVS.
> >
> > Trying to load the zinf.dsw workspace into VC++6, I received complaints
that
> > the following projects were not available:
> >  - id3v1
> >  - id3v2
> >  - pls
> >  - unzip
> >  - zlib
> >
> > Sho'nuff, they do not exist, yet the dsw thinks they need to be around.
> > Thinking this may be a benign "refactoring", I set my Active
Configuration
> > to "BuildAll- Win32 NASM Release" (yes, I installed NASM and added it's
path
> > to my Tools/Options/Directories).
> >
> > I also had to stick in some dlls, like vorbisfile.dll, etc, but got past
> > that ok.
> >
> > There were some preprocessor blocks commented out, which resulted in the
> > compiler trying to find unistd.h and sys/time.h, which of course dont
exist
> > on Windows... I was able to resolve those issues. However, I still have
some
> > problems which I cannot resolve since I am not very familiar with the
STL,
> > and not familiar at all with this Zinf code.
> >
> > Here's a snippet of the build output
> >
> > ********************************************
> > main.cpp
> > ..\..\include\musiccatalog.h(170) : error C2061: syntax error :
identifier
> > 'vector'
> > ..\..\include\musiccatalog.h(216) : error C2065: 'pair' : undeclared
> > identifier
> > ..\..\include\musiccatalog.h(216) : error C2275: 'std::string' : illegal
use
> > of this type as an expression
> > ..\..\include\musiccatalog.h(216) : error C2059: syntax error : '>'
> > ..\..\include\musiccatalog.h(216) : error C2238: unexpected token(s)
> > preceding ';'
> > missingfile.cpp
> > ..\..\include\event.h(33) : error C2629: unexpected 'class Event ('
> > ..\..\include\event.h(33) : error C2334: unexpected token(s) preceding
'{';
> > skipping apparent function body
> > ..\..\include\event.h(37) : error C2146: syntax error : missing ';'
before
> > identifier 'Type'
> > ..\..\include\event.h(37) : error C2501: 'int32_t' : missing
storage-class
> > or type specifiers
> > ..\..\include\event.h(37) : warning C4183: 'Type': member function
> > definition looks like a ctor, but name does not match enclosing class
> > ..\..\include\event.h(41) : error C2146: syntax error : missing ';'
before
> > identifier 'm_type'
> > ..\..\include\event.h(41) : error C2501: 'int32_t' : missing
storage-class
> > or type specifiers
> > ..\..\include\event.h(41) : error C2501: 'm_type' : missing
storage-class or
> > type specifiers
> > musiccatalog.cpp
> > ..\..\include\event.h(33) : error C2629: unexpected 'class Event ('
> > ..\..\include\event.h(33) : error C2334: unexpected token(s) preceding
'{';
> > skipping apparent function body
> > ..\..\include\event.h(37) : error C2146: syntax error : missing ';'
before
> > identifier 'Type'
> > ..\..\include\event.h(37) : error C2501: 'int32_t' : missing
storage-class
> > or type specifiers
> > ..\..\include\event.h(37) : warning C4183: 'Type': member function
> > definition looks like a ctor, but name does not match enclosing class
> > ..\..\include\event.h(41) : error C2146: syntax error : missing ';'
before
> > identifier 'm_type'
> > ..\..\include\event.h(41) : error C2501: 'int32_t' : missing
storage-class
> > or type specifiers
> > ..\..\include\event.h(41) : error C2501: 'm_type' : missing
storage-class or
> > type specifiers
> > E:\Projects\zinf\base\src\musiccatalog.cpp(651) : error C2664:
'__thiscall
> > Event::Event(const class Event &)' : cannot convert parameter 1 from
'const
> > int' to 'const class Event &'
> >         Reason: cannot convert from 'const int' to 'const class Event'
> >         No constructor could take the source type, or constructor
overload
> > resolution was ambiguous
> >
> > *************************************
> >
> > This goes on and on, for 87 errors.
> >
> > What gives? I was able to install the binaries of Zinf and I can
actually
> > use the product, which proves that SOMEONE at SOME TIME, of THIS
DIMENSION
> > was able to compile this thing on Win32.
> >
> > Can someone point me in the right direction.
> >
> > Thanks,
> > Joe
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> > Data Reports, E-commerce, Portals, and Forums are available now.
> > Download today and enter to win an XBOX or Visual Studio .NET.
> >
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> > _______________________________________________
> > Zinf-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/zinf-devel
> -- 
> Kristian G. Kvilekval
> email:[email protected] office:(805)893-4276 http://www.cs.ucsb.edu/~kris
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
>
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> _______________________________________________
> Zinf-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/zinf-devel
>



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.