Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compiling libshout on Win32

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Sat Oct 28, 2006 1:29 pm    Post subject: Compiling libshout on Win32 Reply with quote

I try to compile libshout2 2 2 on win32 (VS 7)

in file sock.h

Code:

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#elif _WIN32
#include <compat.h>
#endif




what compat.h the source is waiting about ?

i ve got about 5 differents files called compat.h on my system.

edit:

fixed i changed to

Code:

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#elif _WIN32
//#include <compat.h>
#define ssize_t long
#endif



just one error now :

ret = sock_write_bytes (self->socket, data + pos, len - pos);

shout.c(1016): error C2036: 'const void *' : unknown size

what type is supposed to come here

if i cast data+pos to (int*) it compiles but not sure it s ok to do this.
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Oct 28, 2006 1:55 pm    Post subject: Reply with quote

Not sure what is going on with the header part, but compat.h is an icecast thing not a net thing. You change is ok.

For sock_write_bytes the cast should be (char*) as it works on the byte level (with int* it would be more bytes).

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Sat Oct 28, 2006 9:36 pm    Post subject: Reply with quote

ok , i m about to compile my first program with libshout , but still got one problem while linking to libshout:

ShoutClient32 error LNK2001: unresolved external symbol __shout_open_vorbis


If I open shout_ogg.h i see a function called

_shout_open_vorbis ( line 43) but can t find any definition for this function or file called shout_ogg.c
Back to top
Anonymous
Guest





PostPosted: Thu Feb 15, 2007 9:59 am    Post subject: Reply with quote

hi,

i still have the same error, does anybody has compiled a program with libshout on win32 on this forum?
Back to top
Anonymous
Guest





PostPosted: Fri Apr 27, 2007 2:51 am    Post subject: Reply with quote

velk wrote:
hi,

i still have the same error, does anybody has compiled a program with libshout on win32 on this forum?


I am having the same problem. I got all the libs compiled and I can't get the example code to compile because of the same error. Anyone have any idea what is wrong?
Back to top
Anonymous
Guest





PostPosted: Fri Apr 27, 2007 3:25 am    Post subject: Reply with quote

Ok so I figured out what the problem I was using VC7 and when it converted the project file to the new format it stopped including vorbis.c. If you add that to the project file and point it to all the dependencies you can compile the example code Smile hope this helps someone else.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber