developer command工具,cd到dll所在目录
dumpbin /exports libx265.dll > libx265.def
生成的def文件,手动改成如下:
LIBRARY
EXPORTS
x265_api_get_188
x265_api_query
x265_build_info_str
x265_cleanup
x265_csvlog_encode
x265_csvlog_frame
x265_csvlog_open
x265_dither_image
x265_encoder_close
x265_encoder_ctu_info
x265_encoder_encode
x265_encoder_get_stats
x265_encoder_headers
x265_encoder_intra_refresh
x265_encoder_log
x265_encoder_open_188
x265_encoder_parameters
x265_encoder_reconfig
x265_get_ref_frame_list
x265_get_slicetype_poc_and_scenecut
x265_max_bit_depth
x265_param_alloc
x265_param_apply_profile
x265_param_default
x265_param_default_preset
x265_param_free
x265_param_parse
x265_picture_alloc
x265_picture_free
x265_picture_init
x265_set_analysis_data
x265_version_str
lib /def:libx265.def /machine:x64 /out:x265.lib
生成
本文介绍了如何使用developercommand工具中的dumpbin和lib命令来生成DLL的导出库。首先,通过dumpbin导出dll的函数列表到def文件,然后手动编辑def文件,最后使用lib命令根据修改后的def文件创建静态库文件。这个过程对于管理和使用DLL的API非常关键。
3707

被折叠的 条评论
为什么被折叠?



