Mam drobny problem z kompilacją blendera z paczkowych źródeł z z wersji testowej pod Lennym. W wersji stabilnej jest wersja 2.46 i takiej w tej chwili używam, jednak chciałem sobie skompilować wersję 2.49 (zawierająca różne dodatki). ¦ciągnąłem paczkę ze źródłem i zainstalowałem wszystkie zależności:
Kod: Zaznacz cały
apt-get build-dep
Kod: Zaznacz cały
dpkg-buildpackage -uc -b
Kod: Zaznacz cały
Compiling ==> 'writeffmpeg.c'
source/blender/blenkernel/intern/writeffmpeg.c:32:34: error: libavformat/avformat.h: Nie ma takiego pliku ani katalogu
source/blender/blenkernel/intern/writeffmpeg.c:33:32: error: libavcodec/avcodec.h: Nie ma takiego pliku ani katalogu
source/blender/blenkernel/intern/writeffmpeg.c:34:32: error: libavutil/rational.h: Nie ma takiego pliku ani katalogu
source/blender/blenkernel/intern/writeffmpeg.c:35:32: error: libswscale/swscale.h: Nie ma takiego pliku ani katalogu
source/blender/blenkernel/intern/writeffmpeg.c:36:28: error: libavcodec/opt.h: Nie ma takiego pliku ani katalogu
source/blender/blenkernel/intern/writeffmpeg.c:80: error: 'CODEC_ID_MPEG4' undeclared here (not in a function)
source/blender/blenkernel/intern/writeffmpeg.c:81: error: 'CODEC_ID_MP2' undeclared here (not in a function)
source/blender/blenkernel/intern/writeffmpeg.c:89: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
source/blender/blenkernel/intern/writeffmpeg.c:90: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
source/blender/blenkernel/intern/writeffmpeg.c:91: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
source/blender/blenkernel/intern/writeffmpeg.c:92: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
source/blender/blenkernel/intern/writeffmpeg.c:109: error: expected ')' before '*' token
source/blender/blenkernel/intern/writeffmpeg.c:123: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
source/blender/blenkernel/intern/writeffmpeg.c: In function 'write_audio_frame':
source/blender/blenkernel/intern/writeffmpeg.c:131: error: 'AVCodecContext' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:131: error: (Each undeclared identifier is reported only once
source/blender/blenkernel/intern/writeffmpeg.c:131: error: for each function it appears in.)
source/blender/blenkernel/intern/writeffmpeg.c:131: error: 'c' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:132: error: 'AVPacket' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:132: error: expected ';' before 'pkt'
source/blender/blenkernel/intern/writeffmpeg.c:134: warning: implicit declaration of function 'get_codec_from_stream'
source/blender/blenkernel/intern/writeffmpeg.c:134: error: 'audio_stream' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:140: warning: implicit declaration of function 'av_init_packet'
source/blender/blenkernel/intern/writeffmpeg.c:140: error: 'pkt' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:142: warning: implicit declaration of function 'avcodec_encode_audio'
source/blender/blenkernel/intern/writeffmpeg.c:155: error: 'PKT_FLAG_KEY' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:156: warning: implicit declaration of function 'av_interleaved_write_frame'
source/blender/blenkernel/intern/writeffmpeg.c:156: error: 'outfile' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c: At top level:
source/blender/blenkernel/intern/writeffmpeg.c:164: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
source/blender/blenkernel/intern/writeffmpeg.c:243: error: expected ')' before '*' token
source/blender/blenkernel/intern/writeffmpeg.c:287: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
source/blender/blenkernel/intern/writeffmpeg.c:357: error: expected ')' before '*' token
source/blender/blenkernel/intern/writeffmpeg.c:403: error: expected ')' before '*' token
source/blender/blenkernel/intern/writeffmpeg.c:428: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
source/blender/blenkernel/intern/writeffmpeg.c:549: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
source/blender/blenkernel/intern/writeffmpeg.c: In function 'start_ffmpeg_impl':
source/blender/blenkernel/intern/writeffmpeg.c:619: error: 'AVFormatContext' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:619: error: 'of' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:620: error: 'AVOutputFormat' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:620: error: 'fmt' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:621: warning: ISO C90 forbids mixed declarations and code
source/blender/blenkernel/intern/writeffmpeg.c:655: warning: implicit declaration of function 'guess_format'
source/blender/blenkernel/intern/writeffmpeg.c:662: warning: implicit declaration of function 'av_alloc_format_context'
source/blender/blenkernel/intern/writeffmpeg.c:677: error: 'AV_TIME_BASE' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:690: error: 'CODEC_ID_DVVIDEO' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:693: error: 'CODEC_ID_MPEG1VIDEO' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:696: error: 'CODEC_ID_MPEG2VIDEO' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:699: error: 'CODEC_ID_H264' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:702: error: 'CODEC_ID_XVID' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:705: error: 'CODEC_ID_FLV1' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:736: error: 'CODEC_ID_PCM_S16LE' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:746: error: 'video_stream' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:746: warning: implicit declaration of function 'alloc_video_stream'
source/blender/blenkernel/intern/writeffmpeg.c:754: error: 'audio_stream' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:754: warning: implicit declaration of function 'alloc_audio_stream'
source/blender/blenkernel/intern/writeffmpeg.c:762: warning: implicit declaration of function 'av_set_parameters'
source/blender/blenkernel/intern/writeffmpeg.c:767: error: 'AVFMT_NOFILE' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:768: warning: implicit declaration of function 'url_fopen'
source/blender/blenkernel/intern/writeffmpeg.c:768: error: 'URL_WRONLY' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:775: warning: implicit declaration of function 'av_write_header'
source/blender/blenkernel/intern/writeffmpeg.c:776: error: 'outfile' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:777: warning: implicit declaration of function 'dump_format'
source/blender/blenkernel/intern/writeffmpeg.c: In function 'write_audio_frames':
source/blender/blenkernel/intern/writeffmpeg.c:844: error: 'audio_stream' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:847: error: 'video_stream' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c: In function 'append_ffmpeg':
source/blender/blenkernel/intern/writeffmpeg.c:866: warning: implicit declaration of function 'write_video_frame'
source/blender/blenkernel/intern/writeffmpeg.c:866: warning: implicit declaration of function 'generate_video_frame'
source/blender/blenkernel/intern/writeffmpeg.c:869: warning: implicit declaration of function 'url_ftell'
source/blender/blenkernel/intern/writeffmpeg.c:869: error: 'outfile' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c: In function 'end_ffmpeg':
source/blender/blenkernel/intern/writeffmpeg.c:885: error: 'audio_stream' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:885: error: 'video_stream' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:889: error: 'outfile' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:890: warning: implicit declaration of function 'av_write_trailer'
source/blender/blenkernel/intern/writeffmpeg.c:896: warning: implicit declaration of function 'avcodec_close'
source/blender/blenkernel/intern/writeffmpeg.c:905: warning: implicit declaration of function 'av_freep'
source/blender/blenkernel/intern/writeffmpeg.c:910: error: 'current_frame' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:911: warning: implicit declaration of function 'delete_picture'
source/blender/blenkernel/intern/writeffmpeg.c:915: error: 'AVFMT_NOFILE' undeclared (first use in this function)
source/blender/blenkernel/intern/writeffmpeg.c:916: warning: implicit declaration of function 'url_fclose'
source/blender/blenkernel/intern/writeffmpeg.c:920: warning: implicit declaration of function 'av_free'
source/blender/blenkernel/intern/writeffmpeg.c:937: warning: implicit declaration of function 'sws_freeContext'
scons: *** [build/linux2/source/blender/blenkernel/intern/writeffmpeg.o] Error 1
scons: building terminated because of errors.
make: *** [build-stamp] Błąd 2
dpkg-buildpackage: niepowodzenie: debian/rules build zwrócił status błędu 2
W pliku control paczki ze źródłem znalazłem informacje o konflikcie z paczką nvidia-glx, a jako że mam kartę nvidii to oczywiście ta paczka też u mnie występuje. Czy użytkownicy nvidii nie mogą kompilować blendera?
Sprawdziłem jednak na innym komputerze z kartą ati, jednak efekt kompilacji ten sam więc to raczej nie to.
Czy ktoś próbował kompilować blendera z wersji testowej pod Lennym i natknął się na ten problem? Czy to tylko ja mam taki fart?
Poza tym miałbym również pytanko jak zmodyfikować $CFLAGS w pliku rules do tej paczki? nie mogę znaleźć definicji tej zmiennej w tym pliku, a skoro juz kompiluje to dorzuciłbym optymalizację pod swoja architekturę.
Pozdrawiam i z góry dziękuję za odpowiedzi.