先建立Makefile.am和configure.in文件,从其他项目拷贝后进行修改
动态库的Makefile文件生成:
执行命令:
aclocal
libtoolize -f -c
autoconf
automake --add-missing
./configure 或者 ./configure --host=mipsel-linux
可执行程序的Makefile文件生成:
执行命令:
aclocal
autoconf
automake --add-missing
./configure 或者 ./configure --host=mipsel-linux
设置当前目录为库的搜索目录
export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
动态库的Makefile文件生成:
执行命令:
aclocal
libtoolize -f -c
autoconf
automake --add-missing
./configure 或者 ./configure --host=mipsel-linux
可执行程序的Makefile文件生成:
执行命令:
aclocal
autoconf
automake --add-missing
./configure 或者 ./configure --host=mipsel-linux
设置当前目录为库的搜索目录
export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
本文介绍如何通过执行特定命令来生成动态库和可执行程序的Makefile文件,包括使用aclocal、libtoolize、autoconf及automake等工具,并展示了如何设置库的搜索路径。
7842

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



