Changes between Initial Version and Version 1 of Ticket #2016, comment 4


Ignore:
Timestamp:
Dec 13, 2012, 1:42:18 AM (7 years ago)
Author:
rogerdpack
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2016, comment 4

    initial v1  
    1 for me, after renaming libopenjp2.a to libopenjpeg.a (to try and fake out ffmpeg), I get this:
     1for me, after copying the include files to the "openjpeg 1.x" location, and renaming libopenjp2.a to libopenjpeg.a (to try and fake out ffmpeg), configure passes, and then I get this:
    22
    33{{{
    4 libavcodec/libavcodec.a(libopenjpegenc.o): In function `libopenjpeg_encode_frame’:
    5 /home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/ffmpeg_git/libavcodec/libopenjpegenc.c:421: undefined reference to `opj_cio_open’
    6 /home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/ffmpeg_git/libavcodec/libopenjpegenc.c:433: undefined reference to `cio_tell’
    7 /home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/ffmpeg_git/libavcodec/libopenjpegenc.c:442: undefined reference to `opj_cio_close’
    8 /home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/ffmpeg_git/libavcodec/libopenjpegenc.c:435: undefined reference to `opj_cio_close’
    9 /home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/ffmpeg_git/libavcodec/libopenjpegenc.c:428: undefined reference to `opj_cio_close’
    10 libavcodec/libavcodec.a(libopenjpegenc.o): In function `libopenjpeg_encode_close’:
    11 /home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/ffmpeg_git/libavcodec/libopenjpegenc.c:450: undefined reference to `opj_destroy_compress’
    12 libavcodec/libavcodec.a(libopenjpegenc.o): In function `libopenjpeg_encode_init’:
    13 /home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/ffmpeg_git/libavcodec/libopenjpegenc.c:203: undefined reference to `opj_set_event_mgr’
    14 libavcodec/libavcodec.a(libopenjpegdec.o): In function `libopenjpeg_decode_frame’:
    15 /home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/ffmpeg_git/libavcodec/libopenjpegdec.c:268: undefined reference to `opj_set_event_mgr’
    16 /home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/ffmpeg_git/libavcodec/libopenjpegdec.c:273: undefined reference to `opj_cio_open’
    17 /home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/ffmpeg_git/libavcodec/libopenjpegdec.c:283: undefined reference to `opj_decode_with_info’
    18 /home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/ffmpeg_git/libavcodec/libopenjpegdec.c:284: undefined reference to `opj_cio_close’
    19 /home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/ffmpeg_git/libavcodec/libopenjpegdec.c:330: undefined reference to `opj_cio_open’
    20 /home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/ffmpeg_git/libavcodec/libopenjpegdec.c:339: undefined reference to `opj_decode_with_info’
    21 /home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/ffmpeg_git/libavcodec/libopenjpegdec.c:340: undefined reference to `opj_cio_close’
    22 /home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/ffmpeg_git/libavcodec/libopenjpegdec.c:389: undefined reference to `opj_destroy_decompress’
    23 /home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/ffmpeg_git/libavcodec/libopenjpegdec.c:288: undefined reference to `opj_destroy_decompress’
    24 collect2: error: ld returned 1 exit status
     4CC      libavcodec/libopenjpegenc.o
     5In file included from libavcodec/libopenjpegdec.c:28:0:
     6/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/openjpeg.h:1052:75: error: unknown type name 'FILE'
     7/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/openjpeg.h:1060:67: error: unknown type name 'FILE'
     8In file included from libavcodec/libopenjpegdec.c:28:0:
     9/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/openjpeg.h:1367:12: error: unknown type name 'FILE'
     10In file included from libavcodec/libopenjpegenc.c:28:0:
     11/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/openjpeg.h:1052:75: error: unknown type name 'FILE'
     12/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/openjpeg.h:1060:67: error: unknown type name 'FILE'
     13In file included from libavcodec/libopenjpegenc.c:28:0:
     14/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/openjpeg.h:1367:12: error: unknown type name 'FILE'
     15libavcodec/libopenjpegdec.c: In function 'libopenjpeg_guess_pix_fmt':
     16libavcodec/libopenjpegdec.c:104:10: error: 'CLRSPC_SRGB' undeclared (first use in this function)
     17libavcodec/libopenjpegdec.c:104:10: note: each undeclared identifier is reported only once for each function it appears in
     18libavcodec/libopenjpegdec.c:108:10: error: 'CLRSPC_GRAY' undeclared (first use in this function)
     19libavcodec/libopenjpegdec.c:112:10: error: 'CLRSPC_SYCC' undeclared (first use in this function)
     20libavcodec/libopenjpegdec.c: In function 'libopenjpeg_decode_frame':
     21libavcodec/libopenjpegdec.c:241:5: error: unknown type name 'opj_dinfo_t'
     22libavcodec/libopenjpegdec.c:242:5: error: unknown type name 'opj_cio_t'
     23libavcodec/libopenjpegdec.c:255:37: error: 'CODEC_JP2' undeclared (first use in this function)
     24libavcodec/libopenjpegdec.c:261:37: error: 'CODEC_J2K' undeclared (first use in this function)
     25libavcodec/libopenjpegdec.c:268:5: error: implicit declaration of function 'opj_set_event_mgr' [-Werror=implicit-function-declaration]
     26libavcodec/libopenjpegdec.c:268:24: error: 'opj_common_ptr' undeclared (first use in this function)
     27libavcodec/libopenjpegdec.c:268:39: error: expected ')' before 'dec'
     28libavcodec/libopenjpegdec.c:269:20: error: 'opj_dparameters_t' has no member named 'cp_limit_decoding'
     29libavcodec/libopenjpegdec.c:269:41: error: 'LIMIT_TO_MAIN_HEADER' undeclared (first use in this function)
     30libavcodec/libopenjpegdec.c:272:5: warning: passing argument 1 of 'opj_setup_decoder' from incompatible pointer type [enabled by default]
     31In file included from libavcodec/libopenjpegdec.c:28:0:
     32/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/openjpeg.h:1140:31: note: expected 'void **' but argument is of type 'int *'
     33libavcodec/libopenjpegdec.c:273:5: error: implicit declaration of function 'opj_cio_open' [-Werror=implicit-function-declaration]
     34libavcodec/libopenjpegdec.c:273:43: error: expected ')' before 'dec'
     35libavcodec/libopenjpegdec.c:278:9: error: implicit declaration of function 'opj_destroy_decompress' [-Werror=implicit-function-declaration]
     36libavcodec/libopenjpegdec.c:283:5: error: implicit declaration of function 'opj_decode_with_info' [-Werror=implicit-function-declaration]
     37libavcodec/libopenjpegdec.c:283:11: warning: assignment makes pointer from integer without a cast [enabled by default]
     38libavcodec/libopenjpegdec.c:284:5: error: implicit declaration of function 'opj_cio_close' [-Werror=implicit-function-declaration]
     39libavcodec/libopenjpegdec.c:326:20: error: 'opj_dparameters_t' has no member named 'cp_limit_decoding'
     40libavcodec/libopenjpegdec.c:326:41: error: 'NO_LIMITATION' undeclared (first use in this function)
     41libavcodec/libopenjpegdec.c:329:5: warning: passing argument 1 of 'opj_setup_decoder' from incompatible pointer type [enabled by default]
     42In file included from libavcodec/libopenjpegdec.c:28:0:
     43/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/openjpeg.h:1140:31: note: expected 'void **' but argument is of type 'int *'
     44libavcodec/libopenjpegdec.c:330:43: error: expected ')' before 'dec'
     45libavcodec/libopenjpegdec.c:339:11: warning: assignment makes pointer from integer without a cast [enabled by default]
     46cc1: some warnings being treated as errors
     47make: *** [libavcodec/libopenjpegdec.o] Error 1
     48make: *** Waiting for unfinished jobs....
     49libavcodec/libopenjpegenc.c:42:5: error: unknown type name 'opj_cinfo_t'
     50libavcodec/libopenjpegenc.c:43:5: error: unknown type name 'opj_event_mgr_t'
     51libavcodec/libopenjpegenc.c: In function 'mj2_create_image':
     52libavcodec/libopenjpegenc.c:79:35: error: 'CLRSPC_UNKNOWN' undeclared (first use in this function)
     53libavcodec/libopenjpegenc.c:79:35: note: each undeclared identifier is reported only once for each function it appears in
     54libavcodec/libopenjpegenc.c:92:23: error: 'CLRSPC_GRAY' undeclared (first use in this function)
     55libavcodec/libopenjpegenc.c:98:23: error: 'CLRSPC_SRGB' undeclared (first use in this function)
     56libavcodec/libopenjpegenc.c:133:23: error: 'CLRSPC_SYCC' undeclared (first use in this function)
     57libavcodec/libopenjpegenc.c: In function 'libopenjpeg_encode_init':
     58libavcodec/libopenjpegenc.c:180:19: warning: assignment from incompatible pointer type [enabled by default]
     59libavcodec/libopenjpegenc.c:199:39: error: 'opj_event_mgr_t' undeclared (first use in this function)
     60libavcodec/libopenjpegenc.c:200:19: error: request for member 'info_handler' in something not a structure or union
     61libavcodec/libopenjpegenc.c:201:19: error: request for member 'error_handler' in something not a structure or union
     62libavcodec/libopenjpegenc.c:202:19: error: request for member 'warning_handler' in something not a structure or union
     63libavcodec/libopenjpegenc.c:203:5: error: implicit declaration of function 'opj_set_event_mgr' [-Werror=implicit-function-declaration]
     64libavcodec/libopenjpegenc.c:203:24: error: 'opj_common_ptr' undeclared (first use in this function)
     65libavcodec/libopenjpegenc.c:203:39: error: expected ')' before 'ctx'
     66libavcodec/libopenjpegenc.c: In function 'libopenjpeg_encode_frame':
     67libavcodec/libopenjpegenc.c:344:5: error: unknown type name 'opj_cinfo_t'
     68libavcodec/libopenjpegenc.c:346:5: error: unknown type name 'opj_cio_t'
     69libavcodec/libopenjpegenc.c:420:5: warning: passing argument 1 of 'opj_setup_encoder' from incompatible pointer type [enabled by default]
     70In file included from libavcodec/libopenjpegenc.c:28:0:
     71/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/openjpeg.h:1312:31: note: expected 'void **' but argument is of type 'int *'
     72libavcodec/libopenjpegenc.c:421:5: error: implicit declaration of function 'opj_cio_open' [-Werror=implicit-function-declaration]
     73libavcodec/libopenjpegenc.c:421:28: error: 'opj_common_ptr' undeclared (first use in this function)
     74libavcodec/libopenjpegenc.c:421:43: error: expected ')' before 'compress'
     75libavcodec/libopenjpegenc.c:427:5: warning: passing argument 1 of 'opj_encode' from incompatible pointer type [enabled by default]
     76In file included from libavcodec/libopenjpegenc.c:28:0:
     77/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/openjpeg.h:1341:31: note: expected 'void **' but argument is of type 'int *'
     78libavcodec/libopenjpegenc.c:427:5: warning: passing argument 2 of 'opj_encode' from incompatible pointer type [enabled by default]
     79In file included from libavcodec/libopenjpegenc.c:28:0:
     80/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/openjpeg.h:1341:31: note: expected 'void **' but argument is of type 'int *'
     81libavcodec/libopenjpegenc.c:427:5: error: too many arguments to function 'opj_encode'
     82In file included from libavcodec/libopenjpegenc.c:28:0:
     83/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/openjpeg.h:1341:31: note: declared here
     84libavcodec/libopenjpegenc.c:428:9: error: implicit declaration of function 'opj_cio_close' [-Werror=implicit-function-declaration]
     85libavcodec/libopenjpegenc.c:433:5: error: implicit declaration of function 'cio_tell' [-Werror=implicit-function-declaration]
     86libavcodec/libopenjpegenc.c:439:29: error: request for member 'buffer' in something not a structure or union
     87libavcodec/libopenjpegenc.c: In function 'libopenjpeg_encode_close':
     88libavcodec/libopenjpegenc.c:450:5: error: implicit declaration of function 'opj_destroy_compress' [-Werror=implicit-function-declaration]
     89libavcodec/libopenjpegenc.c: At top level:
     90libavcodec/libopenjpegenc.c:459:96: error: 'CODEC_JP2' undeclared here (not in a function)
     91libavcodec/libopenjpegenc.c:459:111: error: 'CODEC_J2K' undeclared here (not in a function)
     92libavcodec/libopenjpegenc.c:462:96: error: 'STD_RSIZ' undeclared here (not in a function)
     93libavcodec/libopenjpegenc.c:462:122: error: 'CINEMA4K' undeclared here (not in a function)
     94libavcodec/libopenjpegenc.c:464:96: error: 'CINEMA2K' undeclared here (not in a function)
     95libavcodec/libopenjpegenc.c:466:96: error: 'OFF' undeclared here (not in a function)
     96libavcodec/libopenjpegenc.c:466:122: error: 'CINEMA4K_24' undeclared here (not in a function)
     97libavcodec/libopenjpegenc.c:468:96: error: 'CINEMA2K_24' undeclared here (not in a function)
     98libavcodec/libopenjpegenc.c:469:96: error: 'CINEMA2K_48' undeclared here (not in a function)
     99libavcodec/libopenjpegenc.c:471:96: error: 'LRCP' undeclared here (not in a function)
     100libavcodec/libopenjpegenc.c:471:122: error: 'CPRL' undeclared here (not in a function)
     101libavcodec/libopenjpegenc.c:473:96: error: 'RLCP' undeclared here (not in a function)
     102libavcodec/libopenjpegenc.c:474:96: error: 'RPCL' undeclared here (not in a function)
     103libavcodec/libopenjpegenc.c:475:96: error: 'PCRL' undeclared here (not in a function)
     104cc1: some warnings being treated as errors
     105make: *** [libavcodec/libopenjpegenc.o] Error 1
     106
    25107}}}
    26108
    27 Which I assume means that openjpeg has changed their internal api, with version 2, perhaps? (though I might be cross compiling libopenjpeg 2.0.0 wrong as well).
     109Which I assume means that openjpeg has changed their internal api, with version 2, perhaps? (though I might be cross compiling libopenjpeg 2.0.0 wrong).