[vlc] Re: How to link liveMedia library (RTSP) into vlc.exe?

Steve Huang t-steve.huang at midstream.com
Tue Dec 23 01:58:16 CET 2003


I got following compiler error when I used the config below. Is there
something wrong with the config?

Please help! Thanks!

------------------------------------------------------------------------
--
[steve at localhost live]$ make
cd liveMedia ; make
make[1]: Entering directory `/home/steve/windows/live/liveMedia'
i586-mingw32msvc-g++ -c -I/usr/win32/include -Iinclude
-I../UsageEnvironment/include -I../groupsock/include -
I. -O -DSOCKLEN_T=socklen_t -Wall -DBSD=1 Media.cpp
i586-mingw32msvc-g++ -c -I/usr/win32/include -Iinclude
-I../UsageEnvironment/include -I../groupsock/include -
I. -O -DSOCKLEN_T=socklen_t -Wall -DBSD=1 MediaSource.cpp
i586-mingw32msvc-g++ -c -I/usr/win32/include -Iinclude
-I../UsageEnvironment/include -I../groupsock/include -
I. -O -DSOCKLEN_T=socklen_t -Wall -DBSD=1 FramedSource.cpp
i586-mingw32msvc-g++ -c -I/usr/win32/include -Iinclude
-I../UsageEnvironment/include -I../groupsock/include -
I. -O -DSOCKLEN_T=socklen_t -Wall -DBSD=1 FramedFileSource.cpp
i586-mingw32msvc-g++ -c -I/usr/win32/include -Iinclude
-I../UsageEnvironment/include -I../groupsock/include -
I. -O -DSOCKLEN_T=socklen_t -Wall -DBSD=1 FramedFilter.cpp
i586-mingw32msvc-g++ -c -I/usr/win32/include -Iinclude
-I../UsageEnvironment/include -I../groupsock/include -
I. -O -DSOCKLEN_T=socklen_t -Wall -DBSD=1 ByteStreamFileSource.cpp
ByteStreamFileSource.cpp:71: error: aggregate `timezone Idunno' has
incomplete 
   type and cannot be defined
ByteStreamFileSource.cpp:71: error: storage size of `Idunno' isn't known
make[1]: *** [ByteStreamFileSource.o] Error 1
make[1]: Leaving directory `/home/steve/windows/live/liveMedia'
make: *** [liveMedia/libliveMedia.a] Error 2
[steve at localhost live]$ 

------------------------------------------------------------------------
--

[steve at localhost live]$ cat config.windows 
COMPILE_OPTS =          -I/usr/win32/include $(INCLUDES) -I. -O
-DSOCKLEN_T=socklen_t
C =                     c
C_COMPILER =            i586-mingw32msvc-gcc
C_FLAGS =               $(COMPILE_OPTS) -DUSE_OUR_BZERO=1
CPP =                   cpp
CPLUSPLUS_COMPILER =    i586-mingw32msvc-g++
CPLUSPLUS_FLAGS =       $(COMPILE_OPTS) -Wall -DBSD=1
OBJ =                   o
LINK =                  i586-mingw32msvc-g++ -o
LINK_OPTS =             -L. 
CONSOLE_LINK_OPTS =     $(LINK_OPTS)
LIBRARY_LINK =          i586-mingw32msgc-ld -o
LIBRARY_LINK_OPTS =     $(LINK_OPTS) -r -Bstatic
LIB_SUFFIX =                    a
LIBS_FOR_CONSOLE_APPLICATION =
LIBS_FOR_GUI_APPLICATION =
EXE =
[steve at localhost live]$ 
bash-2.04$

-----Original Message-----
From: vlc-bounce at videolan.org [mailto:vlc-bounce at videolan.org] On Behalf
Of Steve Huang
Sent: Monday, December 22, 2003 4:33 PM
To: vlc at videolan.org
Subject: [vlc] Re: How to link liveMedia library (RTSP) into vlc.exe?

Hi Gildas,

The following config doesn't work. 

Should the line that reads "CPP = i586-mingw32msvc-cpp" be "CPP = cpp" ?

Similarly, line that reads "C = i586-mingw32msvc-gcc" should be " C =
c"?

-----Original Message-----
From: vlc-bounce at videolan.org [mailto:vlc-bounce at videolan.org] On Behalf
Of Gildas Bazin
Sent: Thursday, December 18, 2003 4:56 AM
To: vlc at videolan.org
Subject: [vlc] Re: How to link liveMedia library (RTSP) into vlc.exe?

On Wednesday 17 December 2003 20:53, Steve Huang wrote:
> Has someone successfully built libliveMedia.a and linked a vlc.exe in
> cygwin on Windows? If so, please tell me how you did it. I need the
make
> file or shell scripts that you used.
> 

The version which is included in our contrib package was cross-compiled 
under linux with mingw.

Here is the config I used:

INCLUDES = $(INCLUDES) -I/home/videolan/win32/liveMedia/include
COMPILE_OPTS =          $(INCLUDES) -I. -O -DSOCKLEN_T=socklen_t
C =                     i586-mingw32msvc-gcc
C_COMPILER =            i586-mingw32msvc-gcc
C_FLAGS =               $(COMPILE_OPTS) -DUSE_OUR_BZERO=1
CPP =                   i586-mingw32msvc-cpp
CPLUSPLUS_COMPILER =    i586-mingw32msvc-g++
CPLUSPLUS_FLAGS =       $(COMPILE_OPTS) -Wall -DBSD=1
OBJ =                   o
LINK =                  i586-mingw32msvc-g++ -o
LINK_OPTS =             -L.
CONSOLE_LINK_OPTS =     $(LINK_OPTS)
LIBRARY_LINK =          i586-mingw32msvc-ld -o
LIBRARY_LINK_OPTS =     $(LINK_OPTS) -r -Bstatic
LIB_SUFFIX =                    a
LIBS_FOR_CONSOLE_APPLICATION =
LIBS_FOR_GUI_APPLICATION =
EXE =

Now if you want to compile it under cygwin, using the config.cygwin file

without the -D__CYGWIN__ and with -mno-cygwin should do the trick
although 
I haven't tried.

--
Gildas

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
If you are in trouble, please contact <postmaster at videolan.org>

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
If you are in trouble, please contact <postmaster at videolan.org>

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc mailing list