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

Can't compile on ubuntu 22.04 #38

Open
tonyxforce opened this issue Jun 30, 2023 · 1 comment
Open

Can't compile on ubuntu 22.04 #38

tonyxforce opened this issue Jun 30, 2023 · 1 comment

Comments

@tonyxforce
Copy link

tonyxforce commented Jun 30, 2023

cc -g -Wall `pkg-config --cflags libavformat libavcodec libavutil` -pthread -c segment.c
cc -g -Wall `pkg-config --cflags libavformat libavcodec libavutil` -pthread -c buffer.c
cc -g -Wall `pkg-config --cflags libavformat libavcodec libavutil` -pthread -c publisher.c
#cc -g -Wall `pkg-config --cflags libavformat libavcodec libavutil` `pkg-config --libs libavformat libavcodec libavutil` -pthread -o server segment.o buffer.o publisher.o server2.c
cc -g -Wall `pkg-config --cflags libavformat libavcodec libavutil` -pthread -o server segment.o buffer.o publisher.o server2.c `pkg-config --libs libavformat libavcodec libavutil`
server2.c: In function ‘accept_thread’:
server2.c:301:66: warning: passing argument 4 of ‘av_opt_get’ from incompatible pointer type [-Wincompatible-pointer-types]
  301 |             av_opt_get(client, "method", AV_OPT_SEARCH_CHILDREN, &method);
      |                                                                  ^~~~~~~
      |                                                                  |
      |                                                                  char **
In file included from server2.c:8:
/usr/include/x86_64-linux-gnu/libavutil/opt.h:757:84: note: expected ‘uint8_t **’ {aka ‘unsigned char **’} but argument is of type ‘char **’
  757 | int av_opt_get         (void *obj, const char *name, int search_flags, uint8_t   **out_val);
      |                                                                        ~~~~~~~~~~~~^~~~~~~
server2.c:302:68: warning: passing argument 4 of ‘av_opt_get’ from incompatible pointer type [-Wincompatible-pointer-types]
  302 |             av_opt_get(client, "resource", AV_OPT_SEARCH_CHILDREN, &resource);
      |                                                                    ^~~~~~~~~
      |                                                                    |
      |                                                                    char **
In file included from server2.c:8:
/usr/include/x86_64-linux-gnu/libavutil/opt.h:757:84: note: expected ‘uint8_t **’ {aka ‘unsigned char **’} but argument is of type ‘char **’
  757 | int av_opt_get         (void *obj, const char *name, int search_flags, uint8_t   **out_val);
      |                                                                        ~~~~~~~~~~~~^~~~~~~
server2.c: In function ‘main’:
server2.c:440:5: warning: ‘av_register_all’ is deprecated [-Wdeprecated-declarations]
  440 |     av_register_all();
      |     ^~~~~~~~~~~~~~~
In file included from server2.c:9:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:1955:6: note: declared here
 1955 | void av_register_all(void);
      |      ^~~~~~~~~~~~~~~

@stokedout
Copy link

I have the same output but they're only warnings.

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

2 participants