PDA

View Full Version : Compiling GPAC on MinGW


Inventive Software
23rd March 2006, 10:48
This may sound a little stupid, but I can't compile the damn thing for want of trying!

I downloaded the latest official sources from GPAC's website, and started to read how to compile them. So I compiled all the extra libs necessary to get it working. Then I tried configuring the main GPAC. Problem:
Error. Zlib not found in system or in local libs
(or words to that effect).

Point is, it can't find it, even though (and I doubled and triple checked this) I compiled it and installed it. For good measure, when it failed the first time, I copied the necessary libs to the directory specified (gpac/extra_lib/gcc OTTOMH).

The reason I wanted this is to compile x264 properly (as in with MP4 support).

Please help! It's driving me crazy, and I don't know what to do!:(

Kurtnoise
23rd March 2006, 10:52
You need to install zlib first.

Inventive Software
23rd March 2006, 10:55
Read the post! I did that, and it still didn't find it!

Or are you telling me I need the official version of zlib?

Kurtnoise
23rd March 2006, 10:59
Well...grab zlib here (http://www.zlib.net/).

Then, in the cmd prompt :
tar -xvzf zlib-1.2.3.tar.gz
cd zlib-1.2.3
./configure --prefix=/usr
make && make install

Now, you can try to install gpac...

You've an error message because gpac hasn't found zlib headers and/or library.

Inventive Software
23rd March 2006, 11:09
OK, I'll try that and see what happens. Thanks.

hellfred
23rd March 2006, 13:40
OK, I'll try that and see what happens. Thanks.
For building mplayer/mencoder, I install all necessary libaries (zlib, libpng, one for jpeg, libregif, xvid, x264 etc.) to /mingw using ./configure --prefix=/mingw. Then the configure file which needs the lib i question usually finds it automatically. But updating mingw means having to compile and install the libs once more. You can try to install the libs into a spezific folder and include it with ./configure --with-extralibdir=folder/lib --with-extraincbdir=folder/include, if the configure script support this. And you can add the gcc parameters with path to folder.

Hellfred

max-holz
24th March 2006, 10:06
Today gpac's cvs update is borked? I have tried to compile with gcc-3.4.5 getting these of errors.


os_net.o:os_net.c:(.text+0x173): undefined reference to `getnameinfo'
os_net.o:os_net.c:(.text+0x49a): undefined reference to `getaddrinfo'
os_net.o:os_net.c:(.text+0x4d4): undefined reference to `freeaddrinfo'

emmel
25th March 2006, 14:02
I guess its not gpac. Check your /mingw/include/ws2tcpip.h and search for the keyword "fixme" :) If found, then take a backup copy of that header, and replace the original by a working one.