[Icecast] Compiling icecast on windows?

Ricardo Meechan r.meechan at wgltd.com
Fri Jul 8 10:35:55 UTC 2005


Hi,
Thanks for the reply,
I got the dependancies but with no lucl :(

Its just error after error.

Does anyone on the list have experience with compiling on windows? 
Does anyone have a compiled version icecast-2.2-kh12d?
Should I just give up and wait for the next official release? :(

Heres the errors I get now:

------ Build started: Project: icecast, Configuration: Release Win32
------

Compiling...
yp.c
icecast-2.2-kh12d\src\log\log.h(37) : error C2061: syntax error :
identifier '__attribute__'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ';'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ','
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\logging.h(33) : warning C4117: macro name
'__FUNCTION__' is reserved, '#define' ignored
icecast-2.2-kh12d\src\yp.c(138) : warning C4013: 'log_write' undefined;
assuming extern returning int
xslt.c
icecast-2.2-kh12d\src\log\log.h(37) : error C2061: syntax error :
identifier '__attribute__'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ';'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ','
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\logging.h(33) : warning C4117: macro name
'__FUNCTION__' is reserved, '#define' ignored
icecast-2.2-kh12d\src\xslt.c(113) : warning C4013: 'log_write'
undefined; assuming extern returning int
icecast-2.2-kh12d\src\xslt.c(187) : warning C4013: 'snprintf' undefined;
assuming extern returning int
util.c
icecast-2.2-kh12d\src\log\log.h(37) : error C2061: syntax error :
identifier '__attribute__'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ';'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ','
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\logging.h(33) : warning C4117: macro name
'__FUNCTION__' is reserved, '#define' ignored
icecast-2.2-kh12d\src\util.c(336) : warning C4013: 'log_write'
undefined; assuming extern returning int
stats.c
icecast-2.2-kh12d\src\log\log.h(37) : error C2061: syntax error :
identifier '__attribute__'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ';'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ','
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\logging.h(33) : warning C4117: macro name
'__FUNCTION__' is reserved, '#define' ignored
icecast-2.2-kh12d\src\stats.c(166) : warning C4013: 'log_write'
undefined; assuming extern returning int
source.c
icecast-2.2-kh12d\src\log\log.h(37) : error C2061: syntax error :
identifier '__attribute__'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ';'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ','
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\logging.h(33) : warning C4117: macro name
'__FUNCTION__' is reserved, '#define' ignored
icecast-2.2-kh12d\src\source.c(191) : warning C4013: 'log_write'
undefined; assuming extern returning int
slave.c
icecast-2.2-kh12d\src\log\log.h(37) : error C2061: syntax error :
identifier '__attribute__'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ';'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ','
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\logging.h(33) : warning C4117: macro name
'__FUNCTION__' is reserved, '#define' ignored
icecast-2.2-kh12d\src\slave.c(77) : warning C4013: 'log_write'
undefined; assuming extern returning int
sighandler.c
icecast-2.2-kh12d\src\log\log.h(37) : error C2061: syntax error :
identifier '__attribute__'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ';'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ','
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\logging.h(33) : warning C4117: macro name
'__FUNCTION__' is reserved, '#define' ignored
main.c
icecast-2.2-kh12d\src\log\log.h(37) : error C2061: syntax error :
identifier '__attribute__'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ';'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ','
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\logging.h(33) : warning C4117: macro name
'__FUNCTION__' is reserved, '#define' ignored
icecast-2.2-kh12d\src\main.c(497) : warning C4013: 'log_write'
undefined; assuming extern returning int
logging.c
icecast-2.2-kh12d\src\log\log.h(37) : error C2061: syntax error :
identifier '__attribute__'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ';'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ','
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\logging.h(33) : warning C4117: macro name
'__FUNCTION__' is reserved, '#define' ignored
log.c
icecast-2.2-kh12d\src\log\log.h(37) : error C2061: syntax error :
identifier '__attribute__'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ';'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ','
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
fserve.c
icecast-2.2-kh12d\src\log\log.h(37) : error C2061: syntax error :
identifier '__attribute__'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ';'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ','
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\logging.h(33) : warning C4117: macro name
'__FUNCTION__' is reserved, '#define' ignored
icecast-2.2-kh12d\src\fserve.c(118) : warning C4013: 'log_write'
undefined; assuming extern returning int
icecast-2.2-kh12d\src\fserve.c(489) : warning C4244: 'function' :
conversion from '__int64' to 'long', possible loss of data
format_vorbis.c
icecast-2.2-kh12d\src\log\log.h(37) : error C2061: syntax error :
identifier '__attribute__'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ';'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ','
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\logging.h(33) : warning C4117: macro name
'__FUNCTION__' is reserved, '#define' ignored
icecast-2.2-kh12d\src\format_vorbis.c(84) : warning C4013: 'log_write'
undefined; assuming extern returning int
format_ogg.c
icecast-2.2-kh12d\src\log\log.h(37) : error C2061: syntax error :
identifier '__attribute__'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ';'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ','
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\logging.h(33) : warning C4117: macro name
'__FUNCTION__' is reserved, '#define' ignored
icecast-2.2-kh12d\src\format_ogg.c(92) : warning C4013: 'log_write'
undefined; assuming extern returning int
format_mp3.c
icecast-2.2-kh12d\src\log\log.h(37) : error C2061: syntax error :
identifier '__attribute__'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ';'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ','
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\logging.h(33) : warning C4117: macro name
'__FUNCTION__' is reserved, '#define' ignored
icecast-2.2-kh12d\src\format_mp3.c(213) : warning C4013: 'log_write'
undefined; assuming extern returning int
format.c
icecast-2.2-kh12d\src\log\log.h(37) : error C2061: syntax error :
identifier '__attribute__'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ';'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ','
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\logging.h(33) : warning C4117: macro name
'__FUNCTION__' is reserved, '#define' ignored
icecast-2.2-kh12d\src\format.c(211) : warning C4013: 'log_write'
undefined; assuming extern returning int
event.c
icecast-2.2-kh12d\src\log\log.h(37) : error C2061: syntax error :
identifier '__attribute__'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ';'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ','
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\logging.h(33) : warning C4117: macro name
'__FUNCTION__' is reserved, '#define' ignored
icecast-2.2-kh12d\src\event.c(36) : warning C4013: 'log_write'
undefined; assuming extern returning int
connection.c
icecast-2.2-kh12d\src\log\log.h(37) : error C2061: syntax error :
identifier '__attribute__'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ';'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ','
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\logging.h(33) : warning C4117: macro name
'__FUNCTION__' is reserved, '#define' ignored
icecast-2.2-kh12d\src\connection.c(273) : warning C4013: 'log_write'
undefined; assuming extern returning int
client.c
icecast-2.2-kh12d\src\log\log.h(37) : error C2061: syntax error :
identifier '__attribute__'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ';'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ','
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\logging.h(33) : warning C4117: macro name
'__FUNCTION__' is reserved, '#define' ignored
icecast-2.2-kh12d\src\client.c(59) : warning C4013: 'log_write'
undefined; assuming extern returning int
cfgfile.c
icecast-2.2-kh12d\src\log\log.h(37) : error C2061: syntax error :
identifier '__attribute__'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ';'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ','
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\logging.h(33) : warning C4117: macro name
'__FUNCTION__' is reserved, '#define' ignored
icecast-2.2-kh12d\src\cfgfile.c(838) : warning C4013: 'log_write'
undefined; assuming extern returning int
auth_url.c
icecast-2.2-kh12d\src\log\log.h(37) : error C2061: syntax error :
identifier '__attribute__'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ';'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ','
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\logging.h(33) : warning C4117: macro name
'__FUNCTION__' is reserved, '#define' ignored
icecast-2.2-kh12d\src\auth_url.c(108) : warning C4013: 'strncasecmp'
undefined; assuming extern returning int
icecast-2.2-kh12d\src\auth_url.c(169) : warning C4013: 'log_write'
undefined; assuming extern returning int
auth_htpasswd.c
icecast-2.2-kh12d\src\log\log.h(37) : error C2061: syntax error :
identifier '__attribute__'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ';'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ','
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\logging.h(33) : warning C4117: macro name
'__FUNCTION__' is reserved, '#define' ignored
icecast-2.2-kh12d\src\auth_htpasswd.c(102) : warning C4013: 'log_write'
undefined; assuming extern returning int
icecast-2.2-kh12d\src\auth_htpasswd.c(277) : warning C4013: 'snprintf'
undefined; assuming extern returning int
auth.c
icecast-2.2-kh12d\src\log\log.h(37) : error C2061: syntax error :
identifier '__attribute__'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ';'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ','
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\logging.h(33) : warning C4117: macro name
'__FUNCTION__' is reserved, '#define' ignored
icecast-2.2-kh12d\src\auth.c(65) : warning C4013: 'log_write' undefined;
assuming extern returning int
icecast-2.2-kh12d\src\auth.c(405) : error C2065: 'type' : undeclared
identifier
icecast-2.2-kh12d\src\auth.c(406) : warning C4098: 'get_authenticator' :
'void' function returning a value
admin.c
icecast-2.2-kh12d\src\log\log.h(37) : error C2061: syntax error :
identifier '__attribute__'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ';'
icecast-2.2-kh12d\src\log\log.h(37) : error C2059: syntax error : ','
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\log\log.h(37) : error C2143: syntax error :
missing ')' before 'constant'
icecast-2.2-kh12d\src\logging.h(33) : warning C4117: macro name
'__FUNCTION__' is reserved, '#define' ignored
icecast-2.2-kh12d\src\admin.c(325) : warning C4013: 'log_write'
undefined; assuming extern returning int
icecast-2.2-kh12d\src\admin.c(1173) : warning C4018: '<' :
signed/unsigned mismatch

Build log was saved at
"file://icecast-2.2-kh12d\win32\Releaseicecast\BuildLog.htm"
icecast - 117 error(s), 48 warning(s)


---------------------- Done ----------------------

    Build: 0 succeeded, 1 failed, 0 skipped




-----Original Message-----
From: Karl Heyes [mailto:karl at xiph.org] 
Sent: 08 July 2005 1:18 AM
To: Ricardo Meechan
Cc: icecast
Subject: Re: [Icecast] Compiling icecast on windows?

On Fri, 2005-07-08 at 00:45, Ricardo Meechan wrote:
> Hi list,
> I have posted this question onto the forums but thought I would also 
> use the list:


> could you tell me if its possible to compile (icecast-2.2-kh12d) on 
> windows using VS.NET 2003?

it could certainly be done, as there is nothing really platform
specific, although I don't have the product to try a build. It's just a
question of the project files.

> i use vs.net 2003 for .net development and never tried compiling other

> stuff onit,
> 
> what dependencies will i require for it to build on windows? 

just the same as for the release icecast, xml2, xslt, pthread-win32,
ogg, vorbis, theora, curl.  The last 2 are optional but you lose some
functionality if they are missing.

> i currently have the linux version compiled on a fedora box but i have

> a colocated win2003 server and would like to try kh12 on this (for 
> relay on demend)

I don't have access to a win2003/VS.NET to even attempt a build, I
suspect we could do with cleaning up the build process for win32 but
it's a bit hard to do without trying it.

karl. 
 
 
 
Ricardo Meechan 
IT Administrator 
Mobile: +44 (0) 7966 484 371 
 
Wilson & Garden LTD 
t: +44 (0) 1236 823291 
f: +44 (0) 1236 825683 
 
 
Company registered in Scotland  SC267457 
 
NOTE: All emails to and from Wilson & Garden are protected by Antivirus and spam filters.  
We use Trend Scanmail for AV and spamhaus.org & spamcop.net for spam filtering.  
 
This message (and any associated files) is intended only for the use of the individual or entity to which it is addressed and may contain information that is confidential, subject to copyright or constitutes a trade secret. If you are not the intended recipient you are hereby notified that any dissemination, copying or distribution of this message, or files associated with this message, is strictly prohibited. If you have received this message in error, please notify us immediately by replying to the message and deleting it from your computer. Messages sent to and from us may be monitored.  
 
Internet communications cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Therefore, we do not accept responsibility for any errors or omissions that are present in this message, or any attachment, that have arisen as a result of e-mail transmission. If verification is required, please request a hard-copy version. Any views or opinions presented are solely those of the author and do not necessarily represent those of the company.  
 

 

 



More information about the Icecast mailing list