Tips: 使用autotools生成动态.so库文件 / Generate .so library files using autotools in Solaris and Linux
来源:互联网 发布:淘宝购物券怎么使用 编辑:程序博客网 时间:2024/06/06 16:38
Makefile.am形式如下
lib_LTLIBRARIES=libprintinfo.la
libprintinfo_la_SOURCES=printinfo.h printinfo.cpp
注意
1 ./Configure, make之后并不会马上生成libprintinfo.so文件,而要等到make install之后,libprintinfo.so文件将会位于/usr/local/lib中。
2 需要在文件configure.in中加入一行:AC_PROG_LIBTOOL;
3 如果发生错误configure.in:18: required file `./ltmain.sh' not found,则可运行libtoolize命令生成该文件;
参考资料
1. 例解autoconf和automake生成Makefile文件,http://www.ibm.com/developerworks/cn /linux/l-makefile/;
2. 《嵌入式Linux应用程序开发详解》之3.7 使用autotools。
// The English Version
Makefile.am is like this:
lib_LTLIBRARIES=libprintinfo.la
libprintinfo_la_SOURCES=printinfo.h printinfo.cpp
Notes:
1 After "./Configure", "make", the file libprintinfo.so will not appear immediately,until you run "make install",the file libprintinfo.so will defaultly under /usr/local/lib.
2 You may need to add one line in file configure.in:AC_PROG_LIBTOOL;
3 If you meet the error of "configure.in:18: required file `./ltmain.sh' not found",you can use the command tool "libtoolize" to generate the file Itmain.sh.
lib_LTLIBRARIES=libprintinfo.la
libprintinfo_la_SOURCES=printinfo.h printinfo.cpp
注意
1 ./Configure, make之后并不会马上生成libprintinfo.so文件,而要等到make install之后,libprintinfo.so文件将会位于/usr/local/lib中。
2 需要在文件configure.in中加入一行:AC_PROG_LIBTOOL;
3 如果发生错误configure.in:18: required file `./ltmain.sh' not found,则可运行libtoolize命令生成该文件;
参考资料
1. 例解autoconf和automake生成Makefile文件,http://www.ibm.com/developerworks/cn /linux/l-makefile/;
2. 《嵌入式Linux应用程序开发详解》之3.7 使用autotools。
// The English Version
Makefile.am is like this:
lib_LTLIBRARIES=libprintinfo.la
libprintinfo_la_SOURCES=printinfo.h printinfo.cpp
Notes:
1 After "./Configure", "make", the file libprintinfo.so will not appear immediately,until you run "make install",the file libprintinfo.so will defaultly under /usr/local/lib.
2 You may need to add one line in file configure.in:AC_PROG_LIBTOOL;
3 If you meet the error of "configure.in:18: required file `./ltmain.sh' not found",you can use the command tool "libtoolize" to generate the file Itmain.sh.
- Tips: 使用autotools生成动态.so库文件 / Generate .so library files using autotools in Solaris and Linux
- Linux 下使用gcc生成so(动态链接库)文件
- linux使用autotools生成可执行文件、静态库、动态库Makefile的流程介绍
- 使用autotools工具自动生成makefile文件
- 使用Autotools生成Makefile
- 使用autotools生成makefile
- 使用autotools生成Makefile
- Linux下使用Autotools生成Makefile
- linux下使用autotools创建makefile文件
- Linux autotools使用简介
- linux autotools的使用
- Linux autotools使用简介
- Linux动态库.a与动态库.so的生成与区别、以及.so库文件的封装与使用
- C++文件如何在linux下生成动态库So,以及如何使用这个动态库
- C++文件如何在linux下生成动态库So,以及如何使用这个动态库
- C++文件如何在linux下生成动态库So,以及如何使用这个动态库
- autotools生成makefile文件实例
- autotools生成makefile文件实例
- New Year of 2010, went home, tired
- Meeting with the management team is the best chance to ask for all kinds of resources
- Punbb footer.php
- The mistakes I ever made
- The task of making reverse engineering difficult is not easy.
- Tips: 使用autotools生成动态.so库文件 / Generate .so library files using autotools in Solaris and Linux
- Way to Scrum Master
- Wednesday Badminton Activity
- java中的__LINE__, __FILE__
- remove the title bar of a window in Android
- [转]从一个男人关注的事情上 可以看出他的修养和抱负
- yangmichina.bigbullbill@blogger.com
- 一个错误只犯一次
- 乐观思考,敏捷,执行力,以及如何对待变革