Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation with libav in path under openSuSE TW stuck #70

Open
BlindDuck opened this issue Jan 6, 2017 · 0 comments
Open

compilation with libav in path under openSuSE TW stuck #70

BlindDuck opened this issue Jan 6, 2017 · 0 comments

Comments

@BlindDuck
Copy link

compilation as described:
https://github.com/ponchio/untrunc#installing-on-other-operating-system-manual-libav-installation
and a cloned git code
under openSuSE TW stuck

with following output:

"untrunc # g++ -o untrunc file.cpp main.cpp track.cpp atom.cpp mp4.cpp -I./libav-0.8.7 -L./libav-0.8.7/libavformat -lavformat -L./libav-0.8.7/libavcodec -lavcodec -L./libav-0.8.7/libavutil -lavutil -lpthread -lz
track.cpp:30:0: warning: "__STDC_LIMIT_MACROS" redefined
#define __STDC_LIMIT_MACROS 1

In file included from /usr/include/c++/6/cstdint:41:0,
from /usr/include/c++/6/bits/char_traits.h:420,
from /usr/include/c++/6/string:40,
from track.h:25,
from track.cpp:21:
/usr/lib64/gcc/x86_64-suse-linux/6/include/stdint.h:5:0: note: this is the location of the previous definition

define __STDC_LIMIT_MACROS

track.cpp:31:0: warning: "__STDC_CONSTANT_MACROS" redefined
#define __STDC_CONSTANT_MACROS 1

In file included from /usr/include/c++/6/cstdint:41:0,
from /usr/include/c++/6/bits/char_traits.h:420,
from /usr/include/c++/6/string:40,
from track.h:25,
from track.cpp:21:
/usr/lib64/gcc/x86_64-suse-linux/6/include/stdint.h:7:0: note: this is the location of the previous definition

define __STDC_CONSTANT_MACROS

mp4.cpp:25:0: warning: "__STDC_LIMIT_MACROS" redefined
#define __STDC_LIMIT_MACROS 1

In file included from /usr/include/c++/6/cstdint:41:0,
from /usr/include/c++/6/bits/char_traits.h:420,
from /usr/include/c++/6/string:40,
from mp4.cpp:22:
/usr/lib64/gcc/x86_64-suse-linux/6/include/stdint.h:5:0: note: this is the location of the previous definition

define __STDC_LIMIT_MACROS

mp4.cpp:26:0: warning: "__STDC_CONSTANT_MACROS" redefined
#define __STDC_CONSTANT_MACROS 1

In file included from /usr/include/c++/6/cstdint:41:0,
from /usr/include/c++/6/bits/char_traits.h:420,
from /usr/include/c++/6/string:40,
from mp4.cpp:22:
/usr/lib64/gcc/x86_64-suse-linux/6/include/stdint.h:7:0: note: this is the location of the previous definition

define __STDC_CONSTANT_MACROS

/tmp/ccVoj2sL.o: In function Codec::getLength(unsigned char*, int)': track.cpp:(.text+0x633): undefined reference to avcodec_alloc_frame'
collect2: error: ld returned 1 exit status

if the untrunc-master.zip is used:

untrunc-master # g++ -o untrunc file.cpp main.cpp track.cpp atom.cpp mp4.cpp -I./libav-0.8.7 -L./libav-0.8.7/libavformat -lavformat -L./libav-0.8.7/libavcodec -lavcodec -L./libav-0.8.7/libavutil -lavutil -lpthread -lz
track.cpp:30:0: warning: "__STDC_LIMIT_MACROS" redefined
#define __STDC_LIMIT_MACROS 1

In file included from /usr/include/c++/6/cstdint:41:0,
from /usr/include/c++/6/bits/char_traits.h:420,
from /usr/include/c++/6/string:40,
from track.h:25,
from track.cpp:21:
/usr/lib64/gcc/x86_64-suse-linux/6/include/stdint.h:5:0: note: this is the location of the previous definition

define __STDC_LIMIT_MACROS

track.cpp:31:0: warning: "__STDC_CONSTANT_MACROS" redefined
#define __STDC_CONSTANT_MACROS 1

In file included from /usr/include/c++/6/cstdint:41:0,
from /usr/include/c++/6/bits/char_traits.h:420,
from /usr/include/c++/6/string:40,
from track.h:25,
from track.cpp:21:
/usr/lib64/gcc/x86_64-suse-linux/6/include/stdint.h:7:0: note: this is the location of the previous definition

define __STDC_CONSTANT_MACROS

mp4.cpp:25:0: warning: "__STDC_LIMIT_MACROS" redefined
#define __STDC_LIMIT_MACROS 1

In file included from /usr/include/c++/6/cstdint:41:0,
from /usr/include/c++/6/bits/char_traits.h:420,
from /usr/include/c++/6/string:40,
from mp4.cpp:22:
/usr/lib64/gcc/x86_64-suse-linux/6/include/stdint.h:5:0: note: this is the location of the previous definition

define __STDC_LIMIT_MACROS

mp4.cpp:26:0: warning: "__STDC_CONSTANT_MACROS" redefined
#define __STDC_CONSTANT_MACROS 1

In file included from /usr/include/c++/6/cstdint:41:0,
from /usr/include/c++/6/bits/char_traits.h:420,
from /usr/include/c++/6/string:40,
from mp4.cpp:22:
/usr/lib64/gcc/x86_64-suse-linux/6/include/stdint.h:7:0: note: this is the location of the previous definition

define __STDC_CONSTANT_MACROS

./libav-0.8.7/libavformat/libavformat.a(matroskadec.o): In function matroska_decode_buffer': /usr/src/packages/SOURCES/untrunc-master/libav-0.8.7/libavformat/matroskadec.c:995: undefined reference to BZ2_bzDecompressInit'
/usr/src/packages/SOURCES/untrunc-master/libav-0.8.7/libavformat/matroskadec.c:1009: undefined reference to BZ2_bzDecompress' /usr/src/packages/SOURCES/untrunc-master/libav-0.8.7/libavformat/matroskadec.c:1003: undefined reference to BZ2_bzDecompressEnd'
/usr/src/packages/SOURCES/untrunc-master/libav-0.8.7/libavformat/matroskadec.c:1012: undefined reference to `BZ2_bzDecompressEnd'
collect2: error: ld returned 1 exit status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant