Bug #1012
15号线车载,列车CCTV编译环境整理
Start date:
11/23/2020
Due date:
11/23/2020
% Done:
100%
Estimated time:
1.00 h
Defect version:
Description
15号线车载,列车CCTV编译环境整理,删除不需要的头文件和库
History
Updated by shixun yan about 4 years ago
- Due date set to 11/23/2020
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
- Estimated time set to 1.00 h
1.环境变量里面增加一个变量: VLC_INSTALL_PATH 值为: D:\QT\5.8\msvc2013\bin\plugins -->QT的安装路径bin下面放入libvlc的plugins文件夹
2.将libvlc.dll,libvlccore.dll放到D:\QT\5.8\msvc2013\bin下面.
3.将libvlc里面sdk/include/vlc 整个文件夹复制到D:\QT\5.8\msvc2013\include下面. 同时要修改里面的vlc.h头文件,增加typedef __int64 ssize_t; 和#include "vlc/vlc.h" 两行代码.
4.将libvlc里面sdk/lib下面4个lib文件复制到D:\QT\5.8\msvc2013\lib 下面.
5.在工程里面增加这些include和lib路径.
Updated by zhixue wei almost 4 years ago
6.如果在编译的时候报fatal error LNK1281: 无法生成 SAFESEH 的错误,就在项目属性->链接器->命令行->其他选择项里面增加/SAFESEH:NO
Updated by jiawei mao over 3 years ago
- Assignee changed from shixun yan to jiawei mao
修正:
“3.将libvlc里面sdk/include/vlc 整个文件夹复制到D:\QT\5.8\msvc2013\include下面. 同时要修改里面的vlc.h头文件,增加typedef __int64 ssize_t; 和#include "vlc/vlc.h" 两行代码.”
这一点中,注意需要将typedef __int64 ssize_t;一行放到所有头文件前面;