You are not logged in.

#1 2008-05-17 21:35:38

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

x264-git and GPAC error [SOLVED]

I'm currently having problems with compiling x264 from git with support for GPAC on 64 bit. It makes no difference if I'm using GPAC 0.4.4 or CVS. The error is simply this:

gcc wrote:

/usr/bin/ld: cannot find -lgpac_static

The only relevant search I came up with has this solution:

http://mailman.videolan.org/pipermail/x … 01917.html

This doesn't work because gpac_static.a doesn't exist here. The only thing I could think of was to try get GPAC to create a static library, and that changed nothing. Is anyone here able to get this working lately? I'd really like to get mp4 functionality back in x264.

Last edited by skottish (2008-05-21 15:37:16)

Offline

#2 2008-05-18 05:58:27

daneel971
Member
Registered: 2008-03-28
Posts: 197

Re: x264-git and GPAC error [SOLVED]

I had the same problem and I solved it with the following in the PKGBUILD's install step for gpac (cvs, if that's matter) - notice the last line:

 mkdir -p $startdir/pkg/usr/include/gpac/
  cp -r include/gpac/* $startdir/pkg/usr/include/gpac/
  rm -fr $startdir/pkg/usr/include/gpac/CVS
  rm -fr $startdir/pkg/usr/include/gpac/*/CVS
  cp bin/gcc/libgpac_static.a $startdir/pkg/usr/lib

Offline

#3 2008-05-19 01:01:25

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: x264-git and GPAC error [SOLVED]

Thanks daneel971. I appreciate your help.

I removed the version of GPAC that I had on my system to try to diagnose my build problems after doing what you and another user at doom9 suggested. So, I tried that "old" way. Of course I would use a PKGBUILD for this normally, but it wasn't working and this is a good test to make sure that I didn't screw anything up with my modifications. 'configure' works fine. Either I'm really dumb today or something is very wrong here.

[skottish@iasE gpac]$ make
make -C src all
make[1]: Entering directory `/home/skottish/gpac/src'
gcc -O3  -fPIC -DPIC -fno-strict-aliasing -Wno-pointer-sign -Wall -I/home/skottish/gpac/include -c -o utils/os_divers.o utils/os_divers.c 
utils/os_divers.c: In function 'gf_sys_get_rti':
utils/os_divers.c:1143: warning: format '%lld' expects type 'long long int *', but argument 3 has type 'u64 *'
utils/os_divers.c:1146: warning: format '%lld' expects type 'long long int *', but argument 3 has type 'u64 *'
gcc -O3  -fPIC -DPIC -fno-strict-aliasing -Wno-pointer-sign -Wall -I/home/skottish/gpac/include -DGPAC_IPV6 -c -o utils/os_net.o utils/os_net.c 
utils/os_net.c: In function 'gf_sk_connect':
utils/os_net.c:407: warning: cast from pointer to integer of different size
utils/os_net.c:417: warning: cast from pointer to integer of different size
utils/os_net.c: In function 'gf_sk_bind':
utils/os_net.c:517: warning: cast from pointer to integer of different size
utils/os_net.c:533: warning: cast from pointer to integer of different size
utils/os_net.c: In function 'gf_sk_setup_multicast':
utils/os_net.c:738: warning: cast from pointer to integer of different size
utils/os_net.c:762: warning: cast from pointer to integer of different size
gcc -O3  -fPIC -DPIC -fno-strict-aliasing -Wno-pointer-sign -Wall -I/home/skottish/gpac/include -c -o utils/os_module.o utils/os_module.c 
gcc -O3  -fPIC -DPIC -fno-strict-aliasing -Wno-pointer-sign -Wall -I/home/skottish/gpac/include -c -o utils/os_thread.o utils/os_thread.c 
utils/os_thread.c: In function 'RunThread':
utils/os_thread.c:97: warning: cast to pointer from integer of different size
gcc -O3  -fPIC -DPIC -fno-strict-aliasing -Wno-pointer-sign -Wall -I/home/skottish/gpac/include -c -o utils/list.o utils/list.c 
gcc -O3  -fPIC -DPIC -fno-strict-aliasing -Wno-pointer-sign -Wall -I/home/skottish/gpac/include -c -o utils/base_encoding.o utils/base_encoding.c 
gcc -O3  -fPIC -DPIC -fno-strict-aliasing -Wno-pointer-sign -Wall -I/home/skottish/gpac/include -c -o utils/bitstream.o utils/bitstream.c 
gcc -O3  -fPIC -DPIC -fno-strict-aliasing -Wno-pointer-sign -Wall -I/home/skottish/gpac/include -c -o utils/color.o utils/color.c 
In file included from /home/skottish/gpac/include/gpac/events.h:34,
                 from /home/skottish/gpac/include/gpac/user.h:35,
                 from utils/color.c:26:
/home/skottish/gpac/include/gpac/math.h:41:18: error: math.h: No such file or directory
make[1]: *** [utils/color.o] Error 1
make[1]: Leaving directory `/home/skottish/gpac/src'
make: *** [lib] Error 2
[skottish@iasE gpac]$ ls /home/skottish/gpac/include/gpac/
avparse.h      esi.h       media_tools.h   nodes_svg_sani.h   svg_types.h
base_coding.h  events.h    mediaobject.h   nodes_x3d.h        sync_layer.h
bifs.h         ietf.h      module.h        options.h          term_info.h
bifsengine.h   internal    modules         path2d.h           terminal.h
bitstream.h    ismacryp.h  mpeg4_odf.h     renderer.h         thread.h
color.h        iso639.h    mpegts.h        scene_manager.h    token.h
config.h       isomedia.h  network.h       scenegraph.h       tools.h
constants.h    laser.h     nodes_mpeg4.h   scenegraph_svg.h   user.h
crypt.h        list.h      nodes_svg_da.h  scenegraph_vrml.h  utf.h
download.h     math.h      nodes_svg_sa.h  setup.h            xml.h

GPAC doesn't like itself and x264 doesn't like it either...

Last edited by skottish (2008-05-19 01:02:36)

Offline

#4 2008-05-19 04:48:00

daneel971
Member
Registered: 2008-03-28
Posts: 197

Re: x264-git and GPAC error [SOLVED]

I build gpac with a cvs snapshot of 20080309, if this is important, and using noting more than "march=i686 -O2 -pipe" (I noticed a -O3 in the output of make you posted). And apart from the last line installing the static library, my pkgbuild is the same that's in AUR.

Offline

#5 2008-05-19 19:25:45

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: x264-git and GPAC error [SOLVED]

The story here gets even stranger. I can't compile the new Blender. It's also failing at math.h. In this case though, Blender doesn't have it's own copy. If this is a coincidence, it's a pretty amazing one.

Offline

#6 2008-05-21 15:39:55

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: x264-git and GPAC error [SOLVED]

daneel971,

Your idea on how to handle the library worked perfectly. It's just that I had to get all the header files from glibc that were missing back before I could test it! (thanks to Allan)

The -O3 flag is the default for GPAC unless you compile with the --disable-opt option. That's not coming from my makepkg.conf file.

Thanks again for your help.

Offline

Board footer

Powered by FluxBB