khan007 / cdg2video

Automatically exported from code.google.com/p/cdg2video
GNU General Public License v3.0
1 stars 0 forks source link

Trying to compile but errors occur #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. download the two latest versions and same problem 

What is the expected output? What do you see instead?
this is what is reproduced in errors:
luciano@note:~/downloads/cdg2video-0.3$ cmake .
CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.8)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/luciano/downloads/cdg2video-0.3
luciano@note:~/downloads/cdg2video-0.3$ make && sudo make install
/usr/bin/cmake -H/home/luciano/downloads/cdg2video-0.3 
-B/home/luciano/downloads/cdg2video-0.3 --check-build-system 
CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start 
/home/luciano/downloads/cdg2video-0.3/CMakeFiles 
/home/luciano/downloads/cdg2video-0.3/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/luciano/downloads/cdg2video-0.3'
make -f CMakeFiles/cdg2video.dir/build.make CMakeFiles/cdg2video.dir/depend
make[2]: Entering directory `/home/luciano/downloads/cdg2video-0.3'
cd /home/luciano/downloads/cdg2video-0.3 && /usr/bin/cmake -E cmake_depends 
"Unix Makefiles" /home/luciano/downloads/cdg2video-0.3 
/home/luciano/downloads/cdg2video-0.3 /home/luciano/downloads/cdg2video-0.3 
/home/luciano/downloads/cdg2video-0.3 
/home/luciano/downloads/cdg2video-0.3/CMakeFiles/cdg2video.dir/DependInfo.cmake 
--color=
make[2]: Leaving directory `/home/luciano/downloads/cdg2video-0.3'
make -f CMakeFiles/cdg2video.dir/build.make CMakeFiles/cdg2video.dir/build
make[2]: Entering directory `/home/luciano/downloads/cdg2video-0.3'
/usr/bin/cmake -E cmake_progress_report 
/home/luciano/downloads/cdg2video-0.3/CMakeFiles 1
[ 25%] Building CXX object CMakeFiles/cdg2video.dir/main.o
/usr/bin/c++   -DHAVE_CONFIG_H -I/home/luciano/downloads/cdg2video-0.3   -Wall 
-O2 -o CMakeFiles/cdg2video.dir/main.o -c 
/home/luciano/downloads/cdg2video-0.3/main.cpp
/home/luciano/downloads/cdg2video-0.3/main.cpp: In function ‘void 
open_audio(AVFormatContext*, AVStream*)’:
/home/luciano/downloads/cdg2video-0.3/main.cpp:220: error: ‘av_fifo_init’ 
was not declared in this scope
/home/luciano/downloads/cdg2video-0.3/main.cpp: In function ‘int 
write_audio_frame(AVFormatContext*, AVStream*, AVFormatContext*, AVStream*)’:
/home/luciano/downloads/cdg2video-0.3/main.cpp:249: warning: ‘int 
avcodec_decode_audio2(AVCodecContext*, int16_t*, int*, const uint8_t*, int)’ 
is deprecated (declared at /usr/include/libavcodec/avcodec.h:3455)
/home/luciano/downloads/cdg2video-0.3/main.cpp:251: warning: ‘int 
avcodec_decode_audio2(AVCodecContext*, int16_t*, int*, const uint8_t*, int)’ 
is deprecated (declared at /usr/include/libavcodec/avcodec.h:3455)
/home/luciano/downloads/cdg2video-0.3/main.cpp:283: error: ‘av_fifo_write’ 
was not declared in this scope
/home/luciano/downloads/cdg2video-0.3/main.cpp:285: error: ‘av_fifo_read’ 
was not declared in this scope
/home/luciano/downloads/cdg2video-0.3/main.cpp:328: error: ‘av_fifo_read’ 
was not declared in this scope
/home/luciano/downloads/cdg2video-0.3/main.cpp: In function ‘AVFrame* 
alloc_picture(int, int, int)’:
/home/luciano/downloads/cdg2video-0.3/main.cpp:525: error: invalid conversion 
from ‘int’ to ‘PixelFormat’
/home/luciano/downloads/cdg2video-0.3/main.cpp:525: error:   initializing 
argument 1 of ‘int avpicture_get_size(PixelFormat, int, int)’
/home/luciano/downloads/cdg2video-0.3/main.cpp:533: error: invalid conversion 
from ‘int’ to ‘PixelFormat’
/home/luciano/downloads/cdg2video-0.3/main.cpp:533: error:   initializing 
argument 3 of ‘int avpicture_fill(AVPicture*, uint8_t*, PixelFormat, int, 
int)’
/home/luciano/downloads/cdg2video-0.3/main.cpp: In function ‘int 
cdg2avi(const char*, const char*)’:
/home/luciano/downloads/cdg2video-0.3/main.cpp:686: warning: 
‘AVFormatContext* av_alloc_format_context()’ is deprecated (declared at 
/usr/include/libavformat/avformat.h:952)
/home/luciano/downloads/cdg2video-0.3/main.cpp:686: warning: 
‘AVFormatContext* av_alloc_format_context()’ is deprecated (declared at 
/usr/include/libavformat/avformat.h:952)
/home/luciano/downloads/cdg2video-0.3/main.cpp:738: warning: 
‘ReSampleContext* audio_resample_init(int, int, int, int)’ is deprecated 
(declared at /usr/include/libavcodec/avcodec.h:2991)
/home/luciano/downloads/cdg2video-0.3/main.cpp:740: warning: 
‘ReSampleContext* audio_resample_init(int, int, int, int)’ is deprecated 
(declared at /usr/include/libavcodec/avcodec.h:2991)
/home/luciano/downloads/cdg2video-0.3/main.cpp: In function ‘int main(int, 
char**)’:
/home/luciano/downloads/cdg2video-0.3/main.cpp:931: warning: ‘AVOutputFormat* 
guess_format(const char*, const char*, const char*)’ is deprecated (declared 
at /usr/include/libavformat/avformat.h:792)
/home/luciano/downloads/cdg2video-0.3/main.cpp:931: warning: ‘AVOutputFormat* 
guess_format(const char*, const char*, const char*)’ is deprecated (declared 
at /usr/include/libavformat/avformat.h:792)
/home/luciano/downloads/cdg2video-0.3/main.cpp:972: warning: ‘AVOutputFormat* 
guess_format(const char*, const char*, const char*)’ is deprecated (declared 
at /usr/include/libavformat/avformat.h:792)
/home/luciano/downloads/cdg2video-0.3/main.cpp:972: warning: ‘AVOutputFormat* 
guess_format(const char*, const char*, const char*)’ is deprecated (declared 
at /usr/include/libavformat/avformat.h:792)
make[2]: *** [CMakeFiles/cdg2video.dir/main.o] Error 1
make[2]: Leaving directory `/home/luciano/downloads/cdg2video-0.3'
make[1]: *** [CMakeFiles/cdg2video.dir/all] Error 2
make[1]: Leaving directory `/home/luciano/downloads/cdg2video-0.3'
make: *** [all] Error 2
luciano@note:~/downloads/cdg2video-0.3$

What version of the product are you using? On what operating system?
two latest, debian testing

Please provide any additional information below.
i have all required libs installed like libavformat-dev libavcodec-dev and 
libavutil-dev and too libswscale-dev

Original issue reported on code.google.com by nickmari...@gmail.com on 22 Sep 2010 at 4:24

GoogleCodeExporter commented 8 years ago
Try with the verision from svn

svn checkout http://cdg2video.googlecode.com/svn/trunk/ cdg2video-read-only

Original comment by nkniko...@gmail.com on 28 Sep 2010 at 1:30

GoogleCodeExporter commented 8 years ago
cdg2video-svn$ cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error: The following variables are used in this project, but they are set 
to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake 
files:
LIB_ZIP
    linked by target "cdg2video" in directory /home/USER/cdg2video-svn

-- Configuring incomplete, errors occurred!

Original comment by nickmari...@gmail.com on 28 Sep 2010 at 12:05

GoogleCodeExporter commented 8 years ago
There is a new dependency - libzip-dev
I've added partial support for zipped cdg files

Original comment by nkniko...@gmail.com on 28 Sep 2010 at 12:26

GoogleCodeExporter commented 8 years ago
NOW DONE ! THANKS A LOT !!!

$ cmake .
-- Configuring done
-- Generating done
-- Build files have been written to: /home/USER/cdg2video-svn

$ make && sudo make install
/usr/bin/cmake -H/home/USER/cdg2video-svn -B/home/USER/cdg2video-svn 
--check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/USER/cdg2video-svn/CMakeFiles 
/home/USER/cdg2video-svn/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/USER/cdg2video-svn'
make -f CMakeFiles/cdg2video.dir/build.make CMakeFiles/cdg2video.dir/depend
make[2]: Entering directory `/home/USER/cdg2video-svn'
cd /home/USER/cdg2video-svn && /usr/bin/cmake -E cmake_depends "Unix Makefiles" 
/home/USER/cdg2video-svn /home/USER/cdg2video-svn /home/USER/cdg2video-svn 
/home/USER/cdg2video-svn 
/home/USER/cdg2video-svn/CMakeFiles/cdg2video.dir/DependInfo.cmake --color=
Scanning dependencies of target cdg2video
make[2]: Leaving directory `/home/USER/cdg2video-svn'
make -f CMakeFiles/cdg2video.dir/build.make CMakeFiles/cdg2video.dir/build
make[2]: Entering directory `/home/USER/cdg2video-svn'
/usr/bin/cmake -E cmake_progress_report /home/USER/cdg2video-svn/CMakeFiles 1
[ 20%] Building CXX object CMakeFiles/cdg2video.dir/main.cpp.o
/usr/bin/c++   -DHAVE_CONFIG_H -I/home/USER/cdg2video-svn   -Wall -O2 -o 
CMakeFiles/cdg2video.dir/main.cpp.o -c /home/USER/cdg2video-svn/main.cpp
/home/USER/cdg2video-svn/main.cpp: In function ‘int 
write_audio_frame(AVFormatContext*, AVStream*, AVFormatContext*, AVStream*)’:
/home/USER/cdg2video-svn/main.cpp:259: warning: ‘int 
avcodec_decode_audio2(AVCodecContext*, int16_t*, int*, const uint8_t*, int)’ 
is deprecated (declared at /usr/include/libavcodec/avcodec.h:3455)
/home/USER/cdg2video-svn/main.cpp:261: warning: ‘int 
avcodec_decode_audio2(AVCodecContext*, int16_t*, int*, const uint8_t*, int)’ 
is deprecated (declared at /usr/include/libavcodec/avcodec.h:3455)
/home/USER/cdg2video-svn/main.cpp: In function ‘int cdg2avi(const char*, 
const char*)’:
/home/USER/cdg2video-svn/main.cpp:755: warning: ‘ReSampleContext* 
audio_resample_init(int, int, int, int)’ is deprecated (declared at 
/usr/include/libavcodec/avcodec.h:2991)
/home/USER/cdg2video-svn/main.cpp:757: warning: ‘ReSampleContext* 
audio_resample_init(int, int, int, int)’ is deprecated (declared at 
/usr/include/libavcodec/avcodec.h:2991)
/home/USER/cdg2video-svn/main.cpp: In function ‘int main(int, char**)’:
/home/USER/cdg2video-svn/main.cpp:956: warning: ‘AVOutputFormat* 
guess_format(const char*, const char*, const char*)’ is deprecated (declared 
at /usr/include/libavformat/avformat.h:792)
/home/USER/cdg2video-svn/main.cpp:956: warning: ‘AVOutputFormat* 
guess_format(const char*, const char*, const char*)’ is deprecated (declared 
at /usr/include/libavformat/avformat.h:792)
/home/USER/cdg2video-svn/main.cpp:1005: warning: ‘AVOutputFormat* 
guess_format(const char*, const char*, const char*)’ is deprecated (declared 
at /usr/include/libavformat/avformat.h:792)
/home/USER/cdg2video-svn/main.cpp:1005: warning: ‘AVOutputFormat* 
guess_format(const char*, const char*, const char*)’ is deprecated (declared 
at /usr/include/libavformat/avformat.h:792)
/usr/bin/cmake -E cmake_progress_report /home/USER/cdg2video-svn/CMakeFiles 2
[ 40%] Building CXX object CMakeFiles/cdg2video.dir/cdgfile.cpp.o
/usr/bin/c++   -DHAVE_CONFIG_H -I/home/USER/cdg2video-svn   -Wall -O2 -o 
CMakeFiles/cdg2video.dir/cdgfile.cpp.o -c /home/USER/cdg2video-svn/cdgfile.cpp
/usr/bin/cmake -E cmake_progress_report /home/USER/cdg2video-svn/CMakeFiles 3
[ 60%] Building CXX object CMakeFiles/cdg2video.dir/help.cpp.o
/usr/bin/c++   -DHAVE_CONFIG_H -I/home/USER/cdg2video-svn   -Wall -O2 -o 
CMakeFiles/cdg2video.dir/help.cpp.o -c /home/USER/cdg2video-svn/help.cpp
/usr/bin/cmake -E cmake_progress_report /home/USER/cdg2video-svn/CMakeFiles 4
[ 80%] Building CXX object CMakeFiles/cdg2video.dir/utils.cpp.o
/usr/bin/c++   -DHAVE_CONFIG_H -I/home/USER/cdg2video-svn   -Wall -O2 -o 
CMakeFiles/cdg2video.dir/utils.cpp.o -c /home/USER/cdg2video-svn/utils.cpp
/usr/bin/cmake -E cmake_progress_report /home/USER/cdg2video-svn/CMakeFiles 5
[100%] Building CXX object CMakeFiles/cdg2video.dir/cdgio.cpp.o
/usr/bin/c++   -DHAVE_CONFIG_H -I/home/USER/cdg2video-svn   -Wall -O2 -o 
CMakeFiles/cdg2video.dir/cdgio.cpp.o -c /home/USER/cdg2video-svn/cdgio.cpp
Linking CXX executable cdg2video
/usr/bin/cmake -E cmake_link_script CMakeFiles/cdg2video.dir/link.txt 
--verbose=1
/usr/bin/c++      CMakeFiles/cdg2video.dir/main.cpp.o 
CMakeFiles/cdg2video.dir/cdgfile.cpp.o CMakeFiles/cdg2video.dir/help.cpp.o 
CMakeFiles/cdg2video.dir/utils.cpp.o CMakeFiles/cdg2video.dir/cdgio.cpp.o  -o 
cdg2video -rdynamic -lavcodec -lavformat -lavutil -lswscale -lzip 
make[2]: Leaving directory `/home/USER/cdg2video-svn'
/usr/bin/cmake -E cmake_progress_report /home/USER/cdg2video-svn/CMakeFiles  1 
2 3 4 5
[100%] Built target cdg2video
make[1]: Leaving directory `/home/USER/cdg2video-svn'
/usr/bin/cmake -E cmake_progress_start /home/USER/cdg2video-svn/CMakeFiles 0
/usr/bin/cmake -H/home/USER/cdg2video-svn -B/home/USER/cdg2video-svn 
--check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/USER/cdg2video-svn/CMakeFiles 
/home/USER/cdg2video-svn/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/USER/cdg2video-svn'
make -f CMakeFiles/cdg2video.dir/build.make CMakeFiles/cdg2video.dir/depend
make[2]: Entering directory `/home/USER/cdg2video-svn'
cd /home/USER/cdg2video-svn && /usr/bin/cmake -E cmake_depends "Unix Makefiles" 
/home/USER/cdg2video-svn /home/USER/cdg2video-svn /home/USER/cdg2video-svn 
/home/USER/cdg2video-svn 
/home/USER/cdg2video-svn/CMakeFiles/cdg2video.dir/DependInfo.cmake --color=
make[2]: Leaving directory `/home/USER/cdg2video-svn'
make -f CMakeFiles/cdg2video.dir/build.make CMakeFiles/cdg2video.dir/build
make[2]: Entering directory `/home/USER/cdg2video-svn'
make[2]: Nothing to be done for `CMakeFiles/cdg2video.dir/build'.
make[2]: Leaving directory `/home/USER/cdg2video-svn'
/usr/bin/cmake -E cmake_progress_report /home/USER/cdg2video-svn/CMakeFiles  1 
2 3 4 5
[100%] Built target cdg2video
make[1]: Leaving directory `/home/USER/cdg2video-svn'
/usr/bin/cmake -E cmake_progress_start /home/USER/cdg2video-svn/CMakeFiles 0
make -f CMakeFiles/Makefile2 preinstall
make[1]: Entering directory `/home/USER/cdg2video-svn'
make[1]: Nothing to be done for `preinstall'.
make[1]: Leaving directory `/home/USER/cdg2video-svn'
Install the project...
/usr/bin/cmake -P cmake_install.cmake
-- Install configuration: ""
-- Installing: /usr/local/bin/cdg2video
-- Installing: /usr/local/bin/cdg2video-player

Original comment by nickmari...@gmail.com on 28 Sep 2010 at 1:18

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi. I would like to use this one in my ubuntu distro. But I'm getting error 
when running make && make install

~/cdg2video-read-only$ cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/MYUSER/cdg2video-read-only

~/cdg2video-read-only$ make && make install
/usr/bin/cmake -H/home/MYUSER/cdg2video-read-only 
-B/home/MYUSER/cdg2video-read-only --check-build-system 
CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start 
/home/MYUSER/cdg2video-read-only/CMakeFiles 
/home/MYUSER/cdg2video-read-only/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/MYUSER/cdg2video-read-only'
make -f CMakeFiles/cdg2video.dir/build.make CMakeFiles/cdg2video.dir/depend
make[2]: Entering directory `/home/MYUSER/cdg2video-read-only'
cd /home/MYUSER/cdg2video-read-only && /usr/bin/cmake -E cmake_depends "Unix 
Makefiles" /home/MYUSER/cdg2video-read-only /home/MYUSER/cdg2video-read-only 
/home/MYUSER/cdg2video-read-only /home/MYUSER/cdg2video-read-only 
/home/MYUSER/cdg2video-read-only/CMakeFiles/cdg2video.dir/DependInfo.cmake 
--color=
Scanning dependencies of target cdg2video
make[2]: Leaving directory `/home/MYUSER/cdg2video-read-only'
make -f CMakeFiles/cdg2video.dir/build.make CMakeFiles/cdg2video.dir/build
make[2]: Entering directory `/home/MYUSER/cdg2video-read-only'
/usr/bin/cmake -E cmake_progress_report 
/home/MYUSER/cdg2video-read-only/CMakeFiles 1
[ 20%] Building CXX object CMakeFiles/cdg2video.dir/main.cpp.o
/usr/bin/c++   -DHAVE_CONFIG_H -I/home/MYUSER/cdg2video-read-only    -Wall -O2 
-o CMakeFiles/cdg2video.dir/main.cpp.o -c 
/home/MYUSER/cdg2video-read-only/main.cpp
/home/MYUSER/cdg2video-read-only/main.cpp: In function ‘AVStream* 
add_audio_stream(AVFormatContext*, AVStream*)’:
/home/MYUSER/cdg2video-read-only/main.cpp:149:10: warning: ‘AVStream* 
av_new_stream(AVFormatContext*, int)’ is deprecated (declared at 
/usr/include/libavformat/avformat.h:1604) [-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:149:29: warning: ‘AVStream* 
av_new_stream(AVFormatContext*, int)’ is deprecated (declared at 
/usr/include/libavformat/avformat.h:1604) [-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp: In function ‘AVStream* 
add_audio_stream(AVFormatContext*, CodecID)’:
/home/MYUSER/cdg2video-read-only/main.cpp:181:10: warning: ‘AVStream* 
av_new_stream(AVFormatContext*, int)’ is deprecated (declared at 
/usr/include/libavformat/avformat.h:1604) [-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:181:29: warning: ‘AVStream* 
av_new_stream(AVFormatContext*, int)’ is deprecated (declared at 
/usr/include/libavformat/avformat.h:1604) [-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp: In function ‘void 
open_audio(AVFormatContext*, AVStream*)’:
/home/MYUSER/cdg2video-read-only/main.cpp:219:9: warning: ‘int 
avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at 
/usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:219:30: warning: ‘int 
avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at 
/usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp: In function ‘int 
write_audio_frame(AVFormatContext*, AVStream*, AVFormatContext*, AVStream*)’:
/home/MYUSER/cdg2video-read-only/main.cpp:263:23: warning: ‘int 
avcodec_decode_audio3(AVCodecContext*, int16_t*, int*, AVPacket*)’ is 
deprecated (declared at /usr/include/libavcodec/avcodec.h:4131) 
[-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:265:37: warning: ‘int 
avcodec_decode_audio3(AVCodecContext*, int16_t*, int*, AVPacket*)’ is 
deprecated (declared at /usr/include/libavcodec/avcodec.h:4131) 
[-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:307:32: warning: ‘int 
avcodec_encode_audio(AVCodecContext*, uint8_t*, int, const short int*)’ is 
deprecated (declared at /usr/include/libavcodec/avcodec.h:4269) 
[-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:310:64: warning: ‘int 
avcodec_encode_audio(AVCodecContext*, uint8_t*, int, const short int*)’ is 
deprecated (declared at /usr/include/libavcodec/avcodec.h:4269) 
[-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:315:116: error: ‘av_rescale_q’ 
was not declared in this scope
/home/MYUSER/cdg2video-read-only/main.cpp:347:32: warning: ‘int 
avcodec_encode_audio(AVCodecContext*, uint8_t*, int, const short int*)’ is 
deprecated (declared at /usr/include/libavcodec/avcodec.h:4269) 
[-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:349:80: warning: ‘int 
avcodec_encode_audio(AVCodecContext*, uint8_t*, int, const short int*)’ is 
deprecated (declared at /usr/include/libavcodec/avcodec.h:4269) 
[-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:357:112: error: ‘av_rescale_q’ 
was not declared in this scope
/home/MYUSER/cdg2video-read-only/main.cpp: In function ‘int 
copy_audio_frame(AVFormatContext*, AVStream*, AVFormatContext*, AVStream*)’:
/home/MYUSER/cdg2video-read-only/main.cpp:401:73: error: ‘av_rescale_q’ was 
not declared in this scope
/home/MYUSER/cdg2video-read-only/main.cpp:404:73: error: ‘av_rescale_q’ was 
not declared in this scope
/home/MYUSER/cdg2video-read-only/main.cpp: In function ‘AVStream* 
open_input_audio(const char*, AVFormatContext**)’:
/home/MYUSER/cdg2video-read-only/main.cpp:430:9: warning: ‘int 
av_find_stream_info(AVFormatContext*)’ is deprecated (declared at 
/usr/include/libavformat/avformat.h:1412) [-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:430:32: warning: ‘int 
av_find_stream_info(AVFormatContext*)’ is deprecated (declared at 
/usr/include/libavformat/avformat.h:1412) [-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:459:9: warning: ‘int 
avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at 
/usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:459:38: warning: ‘int 
avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at 
/usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp: In function ‘void 
close_input_audio(AVFormatContext*, AVStream*)’:
/home/MYUSER/cdg2video-read-only/main.cpp:470:13: warning: ‘void 
av_close_input_file(AVFormatContext*)’ is deprecated (declared at 
/usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:470:35: warning: ‘void 
av_close_input_file(AVFormatContext*)’ is deprecated (declared at 
/usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp: In function ‘AVStream* 
add_video_stream(AVFormatContext*, CodecID)’:
/home/MYUSER/cdg2video-read-only/main.cpp:479:10: warning: ‘AVStream* 
av_new_stream(AVFormatContext*, int)’ is deprecated (declared at 
/usr/include/libavformat/avformat.h:1604) [-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:479:29: warning: ‘AVStream* 
av_new_stream(AVFormatContext*, int)’ is deprecated (declared at 
/usr/include/libavformat/avformat.h:1604) [-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp: In function ‘void 
open_video(AVFormatContext*, AVStream*)’:
/home/MYUSER/cdg2video-read-only/main.cpp:574:9: warning: ‘int 
avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at 
/usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:574:30: warning: ‘int 
avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at 
/usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp: In function ‘void 
write_video_frame(AVFormatContext*, AVStream*)’:
/home/MYUSER/cdg2video-read-only/main.cpp:650:84: error: ‘av_rescale_q’ was 
not declared in this scope
/home/MYUSER/cdg2video-read-only/main.cpp: In function ‘int cdg2avi(const 
char*, const char*)’:
/home/MYUSER/cdg2video-read-only/main.cpp:740:9: warning: ‘int 
av_set_parameters(AVFormatContext*, AVFormatParameters*)’ is deprecated 
(declared at /usr/include/libavformat/avformat.h:1640) 
[-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:740:35: warning: ‘int 
av_set_parameters(AVFormatContext*, AVFormatParameters*)’ is deprecated 
(declared at /usr/include/libavformat/avformat.h:1640) 
[-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:774:13: warning: ‘int 
url_fopen(AVIOContext**, const char*, int)’ is deprecated (declared at 
/usr/include/libavformat/avio.h:316) [-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:774:51: warning: ‘int 
url_fopen(AVIOContext**, const char*, int)’ is deprecated (declared at 
/usr/include/libavformat/avio.h:316) [-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:783:9: warning: 
‘AVFormatContext::preload’ is deprecated (declared at 
/usr/include/libavformat/avformat.h:973) [-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:783:9: warning: 
‘AVFormatContext::preload’ is deprecated (declared at 
/usr/include/libavformat/avformat.h:973) [-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:787:5: warning: ‘int 
av_write_header(AVFormatContext*)’ is deprecated (declared at 
/usr/include/libavformat/avformat.h:1676) [-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:787:23: warning: ‘int 
av_write_header(AVFormatContext*)’ is deprecated (declared at 
/usr/include/libavformat/avformat.h:1676) [-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:843:2: warning: ‘int 
url_fclose(AVIOContext*)’ is deprecated (declared at 
/usr/include/libavformat/avio.h:317) [-Wdeprecated-declarations]
/home/MYUSER/cdg2video-read-only/main.cpp:843:19: warning: ‘int 
url_fclose(AVIOContext*)’ is deprecated (declared at 
/usr/include/libavformat/avio.h:317) [-Wdeprecated-declarations]
make[2]: *** [CMakeFiles/cdg2video.dir/main.cpp.o] Error 1
make[2]: Leaving directory `/home/MYUSER/cdg2video-read-only'
make[1]: *** [CMakeFiles/cdg2video.dir/all] Error 2
make[1]: Leaving directory `/home/MYUSER/cdg2video-read-only'
make: *** [all] Error 2

Hopefully you can help with this issue because I think this app is awesome! I'm 
a karaoke lover ;)

Original comment by brandoba...@gmail.com on 24 Mar 2014 at 3:25

GoogleCodeExporter commented 8 years ago
Hi the source code in svn is updated, try with the latest revision from svn

svn checkout http://cdg2video.googlecode.com/svn/trunk/ cdg2video-read-only

Original comment by nkniko...@gmail.com on 26 Mar 2014 at 9:36

GoogleCodeExporter commented 8 years ago
Hi! It's almost working. I'm just getting a copy error. 

sudo make && make install
/usr/bin/cmake -H/home/MYUSER/cdg2video-read-only 
-B/home/MYUSER/cdg2video-read-only --check-build-system 
CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start 
/home/MYUSER/cdg2video-read-only/CMakeFiles 
/home/MYUSER/cdg2video-read-only/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/MYUSER/cdg2video-read-only'
make -f CMakeFiles/cdg2video.dir/build.make CMakeFiles/cdg2video.dir/depend
make[2]: Entering directory `/home/MYUSER/cdg2video-read-only'
cd /home/MYUSER/cdg2video-read-only && /usr/bin/cmake -E cmake_depends "Unix 
Makefiles" /home/MYUSER/cdg2video-read-only /home/MYUSER/cdg2video-read-only 
/home/MYUSER/cdg2video-read-only /home/MYUSER/cdg2video-read-only 
/home/MYUSER/cdg2video-read-only/CMakeFiles/cdg2video.dir/DependInfo.cmake 
--color=
make[2]: Leaving directory `/home/MYUSER/cdg2video-read-only'
make -f CMakeFiles/cdg2video.dir/build.make CMakeFiles/cdg2video.dir/build
make[2]: Entering directory `/home/MYUSER/cdg2video-read-only'
make[2]: Nothing to be done for `CMakeFiles/cdg2video.dir/build'.
make[2]: Leaving directory `/home/MYUSER/cdg2video-read-only'
/usr/bin/cmake -E cmake_progress_report 
/home/MYUSER/cdg2video-read-only/CMakeFiles  1 2 3 4 5
[100%] Built target cdg2video
make[1]: Leaving directory `/home/MYUSER/cdg2video-read-only'
/usr/bin/cmake -E cmake_progress_start 
/home/MYUSER/cdg2video-read-only/CMakeFiles 0
/usr/bin/cmake -H/home/MYUSER/cdg2video-read-only 
-B/home/MYUSER/cdg2video-read-only --check-build-system 
CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start 
/home/MYUSER/cdg2video-read-only/CMakeFiles 
/home/MYUSER/cdg2video-read-only/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/MYUSER/cdg2video-read-only'
make -f CMakeFiles/cdg2video.dir/build.make CMakeFiles/cdg2video.dir/depend
make[2]: Entering directory `/home/MYUSER/cdg2video-read-only'
cd /home/MYUSER/cdg2video-read-only && /usr/bin/cmake -E cmake_depends "Unix 
Makefiles" /home/MYUSER/cdg2video-read-only /home/MYUSER/cdg2video-read-only 
/home/MYUSER/cdg2video-read-only /home/MYUSER/cdg2video-read-only 
/home/MYUSER/cdg2video-read-only/CMakeFiles/cdg2video.dir/DependInfo.cmake 
--color=
make[2]: Leaving directory `/home/MYUSER/cdg2video-read-only'
make -f CMakeFiles/cdg2video.dir/build.make CMakeFiles/cdg2video.dir/build
make[2]: Entering directory `/home/MYUSER/cdg2video-read-only'
make[2]: Nothing to be done for `CMakeFiles/cdg2video.dir/build'.
make[2]: Leaving directory `/home/MYUSER/cdg2video-read-only'
/usr/bin/cmake -E cmake_progress_report 
/home/MYUSER/cdg2video-read-only/CMakeFiles  1 2 3 4 5
[100%] Built target cdg2video
make[1]: Leaving directory `/home/MYUSER/cdg2video-read-only'
/usr/bin/cmake -E cmake_progress_start 
/home/MYUSER/cdg2video-read-only/CMakeFiles 0
make -f CMakeFiles/Makefile2 preinstall
make[1]: Entering directory `/home/MYUSER/cdg2video-read-only'
make[1]: Nothing to be done for `preinstall'.
make[1]: Leaving directory `/home/MYUSER/cdg2video-read-only'
Install the project...
/usr/bin/cmake -P cmake_install.cmake
-- Install configuration: ""
-- Installing: /usr/local/bin/cdg2video
CMake Error at cmake_install.cmake:42 (FILE):
  file INSTALL cannot copy file
  "/home/MYUSER/cdg2video-read-only/cdg2video" to
  "/usr/local/bin/cdg2video".

make: *** [install] Error 1

Do you have any idea what's need to be fixed? Ty

Original comment by brandoba...@gmail.com on 26 Mar 2014 at 11:18

GoogleCodeExporter commented 8 years ago
Maybe you should use sudo

sudo make install

Original comment by nkniko...@gmail.com on 26 Mar 2014 at 11:33

GoogleCodeExporter commented 8 years ago
Ah right. I used sudo make && make install. Thanks buddy

Original comment by brandoba...@gmail.com on 26 Mar 2014 at 12:52

GoogleCodeExporter commented 8 years ago
Btw, how can I convert cdg+mp3 to video? Is cdg2video [filename.cdg] okay?

Original comment by brandoba...@gmail.com on 26 Mar 2014 at 1:20

GoogleCodeExporter commented 8 years ago

Original comment by nkniko...@gmail.com on 20 Aug 2014 at 2:09