..前一段日子把老本的Arch重装惹下,目前是用来当作P-Code(伪代码)环境。在Arch上写模块打草稿,在Win8.1上写成品,用FreeBSD来跑服务器。Arch做开发还是很顺畅的ww//平时写写Desktop、Web、文档,测试书上的代码,高兴惹写写Lisp玩。远程下或者跑跑服务也不在话下。现在滚挂的几率已经越来越低惹。
OpenCV
安装OpenCV4环境:
官方源的OpenCV一直在保持更新!当然你也可以自己找源码makeinstall下。
查询OpenCV4环境位置:
在Qt的pro文件中引用OpenCV4库:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
| LIBS += -LD:/usr/include/opencv4/opencv2 \
-lopencv_gapi \
-lopencv_stitching\
-lopencv_aruco\
-lopencv_bgsegm\
-lopencv_bioinspired\
-lopencv_ccalib\
-lopencv_cvv\
-lopencv_dnn_objdetect\
-lopencv_dnn_superres\
-lopencv_dpm\
-lopencv_highgui\
-lopencv_face\
-lopencv_freetype\
-lopencv_fuzzy\
-lopencv_hdf\
-lopencv_hfs\
-lopencv_img_hash\
-lopencv_line_descriptor\
-lopencv_quality\
-lopencv_reg\
-lopencv_rgbd\
-lopencv_saliency\
-lopencv_stereo\
-lopencv_structured_light\
-lopencv_phase_unwrapping\
-lopencv_superres\
-lopencv_optflow\
-lopencv_surface_matching\
-lopencv_tracking\
-lopencv_datasets\
-lopencv_text\
-lopencv_dnn\
-lopencv_plot\
-lopencv_videostab\
-lopencv_videoio\
-lopencv_viz\
-lopencv_xfeatures2d\
-lopencv_shape\
-lopencv_ml\
-lopencv_ximgproc\
-lopencv_video\
-lopencv_xobjdetect\
-lopencv_objdetect\
-lopencv_calib3d\
-lopencv_imgcodecs\
-lopencv_features2d\
-lopencv_flann\
-lopencv_xphoto\
-lopencv_photo\
-lopencv_imgproc\
-lopencv_core\
|
FFmpeg
官网下载源码解压,然后make下:
1
2
3
| ./configure
make
make install
|
查询ffmpeg位置:
在Qt的pro文件中引用ffmpeg库:
1
2
3
4
5
6
7
8
9
10
| INCLUDEPATH += /mnt/sda1/learn_ffmpeg/ffmpeg/include/ \
LIBS += -LD:/mnt/sda1/learn_ffmpeg/ffmpeg/lib/ \
-lavdevice \
-lavformat \
-lavfilter \
-lavcodec \
-lswscale \
-lavutil \
-lswresample
|
SDL
安装SDL环境:
查询SDL环境位置:
在Qt的pro文件中引用ffmpeg库:
1
2
3
4
5
| INCLUDEPATH += -LE:/usr/include/SDL2
LIBS += -LE:/usr/lib -lSDL2
LIBS += -LE:/usr/lib -lSDL2main
#LIBS += -LE:/usr/lib -lSDL2test
|
新建Qt控制台,写好引用,测试下都能跑就好惹。
详细配置可以自己酌情动态调整!!
@本地磁盘姬
ohayou.aimo.moe
微博:@本地磁盘姬碟酱
Twitter:本地磁盘姬碟酱
知乎:本地磁盘姬
2020年02月13日