免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4702 | 回复: 13
打印 上一主题 下一主题

[安装配置] AIX上如何安装stlport库 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-10-21 11:29 |只看该作者 |倒序浏览
大家好!最近在AIX系统上安装STLport-5.1.6库,遇到一个编译的问题:我将STLport-5.1.6库包解压后FTP到我的AIX用户目录,然后进入build/lib/,ls -la显示如下:
-rw-r-----   1 test     oinstall          9 Oct 16 17:55 .cvsignore
-rw-r-----   1 test     oinstall        376 Oct 16 17:55 CC.mak
-rw-r-----   1 test     oinstall       1226 Oct 16 17:55 Makefile.inc
-rw-r-----   1 test     oinstall       2107 Oct 16 17:55 README
-rw-r-----   1 test     oinstall        346 Oct 16 17:55 aCC.mak
-rw-r-----   1 test     oinstall        597 Oct 16 17:55 bcc.mak
-rwxr-x--x   1 test     oinstall       4049 Oct 16 17:55 configure
-rw-r-----   1 test     oinstall      15847 Oct 16 17:55 configure.bat
-rw-r-----   1 test     oinstall        401 Oct 16 17:55 dmc.mak
-rw-r-----   1 test     oinstall       1156 Oct 16 17:55 evc.mak
-rw-r-----   1 test     oinstall        383 Oct 16 17:55 gcc.mak
-rw-r-----   1 test     oinstall        430 Oct 16 17:55 icc.mak
-rw-r-----   1 test     oinstall         39 Oct 16 17:55 icl.mak
-rw-r-----   1 test     oinstall       1049 Oct 16 17:55 msvc.mak
-rw-r-----   1 test     oinstall        350 Oct 16 17:55 mwccnlm.mak
-rw-r-----   1 test     oinstall       1827 Oct 16 17:55 nmake-src-prefix.mak
drwxr-xr-x   3 test     oinstall        256 Oct 16 18:27 obj
因为我们使用xlc做编译器,当前目录下没有xlc支持的make文件,因此我用用gcc做编译器,根据文档在当前目录下输入:make -f gcc.mak prepare,产生如下编译错误:
../Makefiles/top.mak:33: ../Makefiles/gmake/aix/sys.mak: A file or directory in the path name does not exist.
../Makefiles/top.mak:35: ../Makefiles/gmake/aix/targetsys.mak: A file or directory in the path name does not exist.
/bin/sh: c++:  not found.
make: c++: Command not found
../Makefiles/top.mak:41: ../Makefiles/gmake/aix/extern.mak: A file or directory in the path name does not exist.
../Makefiles/gmake/lib/top.mak:6: ../Makefiles/gmake/aix/lib.mak: A file or directory in the path name does not exist.
../Makefiles/gmake/lib/top.mak:8: ../Makefiles/gmake/aix/rules-so.mak: A file or directory in the path name does not exist.
../Makefiles/gmake/lib/top.mak:10: ../Makefiles/gmake/aix/rules-install-so.mak: A file or directory in the path name does not exist.
make: *** No rule to make target `../Makefiles/gmake/aix/rules-install-so.mak'.  Stop.
根据编译错误,我到../Makefiles/gmake下,发现并没有aix目录,也就是说这个软件包并不直接支持AIX,但是文档说这个软件包是跨平台的,不知道需要改些什么东东,请大侠帮助解决,非常感谢!附件中是安装说明的中文翻译 stlport安装说明.rar (4.75 KB, 下载次数: 82)

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
2 [报告]
发表于 2008-10-21 11:36 |只看该作者
自己改写makefile

论坛徽章:
0
3 [报告]
发表于 2008-10-21 11:40 |只看该作者

回复 #2 yddll 的帖子

老大,我就是不知道怎么改写啊,能不能详细的说一下!谢谢你了,最好能把具体的步骤写一下

论坛徽章:
0
4 [报告]
发表于 2008-10-21 20:26 |只看该作者
不是有configure文件吗,先执行一下./configure,再make应当就行了。

论坛徽章:
0
5 [报告]
发表于 2008-10-22 17:24 |只看该作者

不是吧!

[test@aix_dev:/home/test/STLport-5.1.6/build/lib]$./configure
[test@aix_dev:/home/test/STLport-5.1.6/build/lib]$make -f gcc.mak clean install
../Makefiles/top.mak:33: ../Makefiles/gmake/aix/sys.mak: A file or directory in the path name does not exist.
../Makefiles/top.mak:35: ../Makefiles/gmake/aix/targetsys.mak: A file or directory in the path name does not exist.
/bin/sh: c++:  not found.
make: c++: Command not found
../Makefiles/top.mak:41: ../Makefiles/gmake/aix/extern.mak: A file or directory in the path name does not exist.
../Makefiles/gmake/lib/top.mak:6: ../Makefiles/gmake/aix/lib.mak: A file or directory in the path name does not exist.
../Makefiles/gmake/lib/top.mak:8: ../Makefiles/gmake/aix/rules-so.mak: A file or directory in the path name does not exist.
../Makefiles/gmake/lib/top.mak:10: ../Makefiles/gmake/aix/rules-install-so.mak: A file or directory in the path name does not exist.
make: *** No rule to make target `../Makefiles/gmake/aix/rules-install-so.mak'.  Stop.
[test@aix_dev:/home/test/STLport-5.1.6/build/lib]$make -f gcc.mak prepare
../Makefiles/top.mak:33: ../Makefiles/gmake/aix/sys.mak: A file or directory in the path name does not exist.
../Makefiles/top.mak:35: ../Makefiles/gmake/aix/targetsys.mak: A file or directory in the path name does not exist.
/bin/sh: c++:  not found.
make: c++: Command not found
../Makefiles/top.mak:41: ../Makefiles/gmake/aix/extern.mak: A file or directory in the path name does not exist.
../Makefiles/gmake/lib/top.mak:6: ../Makefiles/gmake/aix/lib.mak: A file or directory in the path name does not exist.
../Makefiles/gmake/lib/top.mak:8: ../Makefiles/gmake/aix/rules-so.mak: A file or directory in the path name does not exist.
../Makefiles/gmake/lib/top.mak:10: ../Makefiles/gmake/aix/rules-install-so.mak: A file or directory in the path name does not exist.
make: *** No rule to make target `../Makefiles/gmake/aix/rules-install-so.mak'.  Stop.
[test@aix_dev:/home/test/STLport-5.1.6/build/lib]$
文档上面说:NOTE : Do NOT attempt to run "configure" ! It is deprecated, moved to safe standalone folder
          and should be used as a helper to create initial config for a new compiler only.
          Your compiler should be recognized by STLport source code with no configuring.
   Please edit appropriate configuration header for your compiler
          directly if you have to make compiler-specific configuration changes.
注意:不要尝试运行configure命令,该方法已经废弃不用了,已经移到一个安全单独的目录,只能用于作为为新编译器的创建初始配置的辅助手段。
您使用的编译器应该能够被STLport的源代码识别,如果需要针对您使用的编译器进行特殊的配置,请直接修改适当的头文件。

论坛徽章:
0
6 [报告]
发表于 2008-10-22 19:41 |只看该作者
configure之后应当会产生makefile文件吧。如果没有,那只好自已手工改makefile了。

论坛徽章:
0
7 [报告]
发表于 2008-10-23 09:26 |只看该作者
说了跟他妈没说一样!!!

论坛徽章:
0
8 [报告]
发表于 2008-10-23 09:52 |只看该作者
装的是IBM的C,用gcc.mak的定义文件,真不知道你是怎么想的

论坛徽章:
0
9 [报告]
发表于 2008-10-23 09:55 |只看该作者
configure 生成的应当是makefile 或者Makefile , 而不是gcc.mak 直接make 就行了不需要加-f gcc.mak , 如果没有makefile文件,你也应当找个AIX C的makefile而不是gcc的makefile,要么在AIX上装个gcc的编译环境。

论坛徽章:
0
10 [报告]
发表于 2008-10-23 15:28 |只看该作者
兄弟,麻烦你回答问题之前先打看仔细一点,我的aix上面如果没有安装gcc,怎么会产生编译错误呢,还有,我的附件上面带着安装说明的中文文档,麻烦老大你看一下再说话,人家已经不用config文件了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP