上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: 官网下载最新的ffmpeg源文件,直接./confiure --prefix=path_to_install && make && make install ,期间没有什么问题。(但是在最后想生成动态库的时候有问题,暂时不去解决了,静态的先凑合用吧) 但是在写了一个测试文件去测试的时候,总是链接错误 阅读全文
posted @ 2020-04-03 23:38 yushimeng 阅读(368) 评论(0) 推荐(0) 编辑
摘要: ./configure --toolchain=msvc --enable-cross-compile --arch=x86_64 --extra-ldflags="-static-libgcc" --extra-cflags=-I/usr/include --extra-ldflags=-L/us 阅读全文
posted @ 2020-04-02 22:27 yushimeng 阅读(990) 评论(0) 推荐(0) 编辑
摘要: 问题现象: libpng warning: Application built with libpng-1.6.37 but running with 1.5.13; 原因: 编译时,用的一个版本的库。但是运行的时候用的却是另外一个版本的库。 解决办法: 编译的时候指定通过 -L参数 指向一个版本的 阅读全文
posted @ 2020-04-02 11:21 yushimeng 阅读(1001) 评论(0) 推荐(0) 编辑
摘要: 问题现象: [root@localhost mico]# gcc test_wrapper.c -L ./ -lqrencode_wrapper -lqrencode.//libqrencode_wrapper.so:对‘png_set_pHYs’未定义的引用.//libqrencode_wrapp 阅读全文
posted @ 2020-04-02 11:19 yushimeng 阅读(4277) 评论(0) 推荐(0) 编辑
摘要: 情景: 开发了一个http模块,挂在conten-phase阶段, static char * ngx_http_ivms(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) { ngx_http_core_loc_conf_t *clcf; clcf = 阅读全文
posted @ 2020-02-25 18:50 yushimeng 阅读(1117) 评论(0) 推荐(0) 编辑
摘要: 本来包体长度170是没问题的,接收到r->request_body->bufs->buf->pos, 结尾为r->request_body->bufs->buf->last. cgdb过程中发现last - pos = 170 但是不是指向结尾,而是指向了webrtcid字段里面了。 解答: 报文中 阅读全文
posted @ 2020-02-12 14:50 yushimeng 阅读(271) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> int main() { int a=9, b = 0; char *p ; int tmp=0; if(1>0?0:0){ printf("1>0 1\n"); } else { printf("1>0 0\n"); // 1>0 0 } if(1>0?++t 阅读全文
posted @ 2019-12-17 10:36 yushimeng 阅读(176) 评论(0) 推荐(0) 编辑
摘要: C++ 改成C语言接口时,build遇到错误如下: /usr/bin/ld: objs/addon/src/KeepAliveNotify.o: undefined reference to symbol '_ZNKSs5c_strEv@@GLIBCXX_3.4'/usr/local/lib64/l 阅读全文
posted @ 2019-12-12 14:06 yushimeng 阅读(2733) 评论(0) 推荐(0) 编辑
摘要: 参考文章:https://www.cnblogs.com/jimodetiantang/p/9193858.html// 连续申请共享内存时,128字节是系统之前申请的。 ctx->sh:0x7fff6f4c8000 // 系统申请的80字节,实际占用128字节 8 p1:0x7fff6f4c9040, p2:0x7fff6f4c9048,p3:0x7fff6f4c9050,p4:0x7f... 阅读全文
posted @ 2019-10-31 11:14 yushimeng 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 结果自己试验,不贴。 首先用代码生成下代码: 然后生成了1K个宏定义,然后加点东西运行: 阅读全文
posted @ 2019-05-22 15:06 yushimeng 阅读(416) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 下一页