Windows 10 下编译 libmp3lame3.100

2021/12/7 7:21:38

本文主要是介绍Windows 10 下编译 libmp3lame3.100,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

目录结构如下

image

Makefile

LAME_ROOT=.
CC=gcc
CFLAG=-Iinclude -DSTDC_HEADERS -Duint8_t="unsigned char" -Duint16_t="unsigned short" -Duint32_t="unsigned int" -Duint64_t="unsigned long long" -Dint16_t="signed short" -c
all:
	echo starting
	$(CC) $(CFLAG) ${LAME_ROOT}/xmm_quantize_sub.c \
	${LAME_ROOT}/bitstream.c \
	${LAME_ROOT}/encoder.c \
	${LAME_ROOT}/fft.c \
	${LAME_ROOT}/gain_analysis.c \
	${LAME_ROOT}/id3tag.c \
	${LAME_ROOT}/lame.c \
	${LAME_ROOT}/mpglib_interface.c \
	${LAME_ROOT}/newmdct.c \
	${LAME_ROOT}/presets.c \
	${LAME_ROOT}/psymodel.c \
	${LAME_ROOT}/quantize.c \
	${LAME_ROOT}/quantize_pvt.c \
	${LAME_ROOT}/reservoir.c \
	${LAME_ROOT}/set_get.c \
	${LAME_ROOT}/tables.c \
	${LAME_ROOT}/takehiro.c \
	${LAME_ROOT}/util.c \
	${LAME_ROOT}/vbrquantize.c \
	${LAME_ROOT}/VbrTag.c \
	${LAME_ROOT}/version.c

link:
	$(CC) *.o --shared -o build.dll

clean:
	echo cleaning
	rm *.o

总共有 21.c 文件,24.h 文件,编译后会生成 21.o 文件,1.dll 文件



这篇关于Windows 10 下编译 libmp3lame3.100的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程