error: storage size of ‘srcFormat’ isn’t known

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello

I`m try to build PJSIP 2.10 as static library with FFMEG 3.4 (static)
and get error:
```
../src/pjmedia/converter_libswscale.c:81:24: error: storage size of ‘srcFormat’ isn’t known
     enum AVPixelFormat srcFormat, dstFormat;
                        ^
../src/pjmedia/converter_libswscale.c:81:35: error: storage size of ‘dstFormat’ isn’t known
     enum AVPixelFormat srcFormat, dstFormat;
                                   ^
../src/pjmedia/converter_libswscale.c:124:70: error: type of formal parameter 3 is incomplete
     sws_ctx = sws_getContext(src_detail->size.w, src_detail->size.h, srcFormat,
                                                                      ^
../src/pjmedia/converter_libswscale.c:125:56: error: type of formal parameter 6 is incomplete
                dst_detail->size.w, dst_detail->size.h, dstFormat,
                                                        ^
```
When i run ./configure I get this message:

```
Using ffmpeg prefix... /home/pi/ffmpeg_build
checking for pkg-config... pkg-config
checking ffmpeg packages...  libavdevice libavformat libavcodec libswscale libavutil
checking for enum AVPixelFormat... no
```

"AVPixelFormat... no" BUT if I change ffmpeg version to 4.10 it still appears.

in my `pjlib/include/pj/config_site.h` I set this:
```
#define PJMEDIA_HAS_VIDEO 1 #define PJMEDIA_HAS_FFMPEG 1
```

I see that `-DPJMEDIA_USE_OLD_FFMPEG=1`

How can I fix these errors?  

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux