按如下步骤操作:
1、 安装 GNU make
还要判断是否需要安装 g++ gcc
2、环境变量设置:
export ACE_ROOT= ***/ACE_wrappers
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ACE_ROOT/ace:$ACE_ROOT/lib
export $TAO_ROOT=$ACE_ROOT/TAO
3、编译ACE
a、 创建配置文件: $ACE_ROOT/ace/config.h,写入如下内容
#include "ace/config-linux.h"
b、创建配置文件: $ACE_ROOT/include/makeinclude/platform_macros.GNU,写入内容
include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
c、进入$ACE_ROOT,然后make
小程序来测试一下,test.cpp:
#include "ace/Log_Msg.h"
int ACE_TMAIN(int arg,ACE_TCHAR * argv[])
{
ACE_DEBUG((LM_DEBUG,ACE_TEXT("Hello Ace")));
return 0;
}
编译连接程序,命令:gcc test.cpp -lACE -L $ACE_ROOT/lib
生成了a。out
4、安装TAO
cd $TAO_ROOT
find . -name "*GNUmakefile*" | xargs rm
重新生成Makefile文件:
$ACE_ROOT/bin/mwc.pl -type gnuace TAO_ACE.mwc
================================================
现在问题是安装TAO这一步,
$TAO_ROOT\orbsvcs/Naming_Service
$TAO_ROOT\orbsvcs/Notify_Service
这两个怎么就make不了呢???生成不了命名服务和通知服务的执行文件???
请高手指导下,怎么操作呀??十分感谢…………………………[img][/img]
=====================================================
linux-v0oh:/opt/ace/ACE_wrappers/TAO/orbsvcs/Naming_Service # make
make[1]: Entering directory `/opt/ace/ACE_wrappers/TAO/orbsvcs/Naming_Service'
NT_Naming_Service will not be built due to the following disabled make macros: winnt
GNUmakefile: /opt/ace/ACE_wrappers/TAO/orbsvcs/Naming_Service/GNUmakefile.NT_Naming_Service MAKEFLAGS=w
make[1]: Leaving directory `/opt/ace/ACE_wrappers/TAO/orbsvcs/Naming_Service'
make[1]: Entering directory `/opt/ace/ACE_wrappers/TAO/orbsvcs/Naming_Service'
GNUmakefile: /opt/ace/ACE_wrappers/TAO/orbsvcs/Naming_Service/GNUmakefile.Naming_Service MAKEFLAGS=w
make[1]: Leaving directory `/opt/ace/ACE_wrappers/TAO/orbsvcs/Naming_Service'
linux-v0oh:/opt/ace/ACE_wrappers/TAO/orbsvcs/Naming_Service #
lyee 于 2012-06-19 08:40:50发表:
编译步骤没有问题,只是从1.6a到2.0a,很多可执行文件的文件名称变更了。比如'Notify_Service' to 'tao_cosnotification','Naming_Service' to 'tao_cosnaming'
全部变更详情如下:
* 'LifeCycle_Service' to 'tao_coslifecycle'
* 'Dump_Schedule' to 'tao_dump_schedule'
* 'NT_Notify_Service' to 'tao_nt_cosnotification'
* 'Notify_Service' to 'tao_cosnotification'
* 'FT_ReplicationManager' to 'tao_ft_replicationmanager'
* 'IFR_Service' to 'tao_ifr_service'
* 'TAO_Service' to 'tao_service'
* 'Fault_Detector' to 'tao_fault_detector'
* 'Scheduling_Service' to 'tao_cosscheduling'
* 'Basic_Logging_Service' to 'tao_tls_basic'
* 'Notify_Logging_Service' to 'tao_tls_notify'
* 'Event_Logging_Service' to 'tao_tls_event'
* 'RTEvent_Logging_Service' to 'tao_tls_rtevent'
* 'Naming_Service' to 'tao_cosnaming'
* 'NT_Naming_Service' to 'tao_nt_cosnaming'
* 'CosEvent_Service' to 'tao_cosevent'
* 'Event_Service' to 'tao_rtevent'
* 'LoadManager' to 'tao_loadmanager'
* 'LoadMonitor' to 'tao_loadmonitor'
* 'Trading_Service' to 'tao_costrading'
* 'Time_Service_Server' to 'tao_costime_server'
* 'Time_Service_Clerk' to 'tao_costime_clerk'
* 'ImplRepo_Service' to 'tao_imr_locator'
* 'ImR_Activator' to 'tao_imr_activator'
* 'Fault_Notifier' to 'tao_fault_notifier'
* 'Concurrency_Service' to 'tao_cosconcurrency'
wonderful5115 于 2012-05-30 16:28:01发表:
这个不懂。占个沙发