Installing the ACE development environment under Linux

Source: Internet
Author: User

Installation environment: Virtual Machine-centos 7

Ace Source: http://download.dre.vanderbilt.edu/

I choose is ace+tao.tar.gz ftp download full source code, previously downloaded sources only source inside no makefile, do not know why ~

Installation reference: Http://www.dre.vanderbilt.edu/~schmidt/DOC_ROOT/ACE/ACE-INSTALL.html#unix

One

Install GNU make 3.79.1, the virtual machine comes with a compiler.


Two

Unzip the downloaded installation package and get a ace_wrappers directory

Modify environment variable Vim/etc/profile append
Export Ace_root=/home/...your path.../ace_wrappers
Export ld_library_path= $ACE _root/lib: $LD _library_path
Export Ld_library_path=/usr/local/lib: $LD _library_path
Note to source

Three

New file $ACE _root/ace/config.h write a line:
#include "ace/config-linux.h"


Four

New file $ACE _root/include/makeinclude/platform_macros. GNU, it's written in two lines.
Include $ (ace_root)/include/makeinclude/platform_linux. Gnu
Install_prefix =/usr/local

Five

Make under Ace_root, you may encounter several problems here

1,error while loading shared libraries:libace
Solutions
Cp-a lib/libace.so.6.4.0/usr/lib/libace.so.6.4.0
Cp-a lib/libace.so.6.4.0/usr/local/lib/libace.so.6.4.0
2,/usr/local/ace_wrappers/apps/gperf/tests/test.cpp:28:undefined reference to
' In_word_set (char const *, unsigned int) '
Collect2:ld returned 1 exit status
MAKE[4]: * * * [cppout] Error 1
MAKE[4]: Leaving directory '/usr/local/ace_wrappers/apps/gperf/tests '
Solutions
I changed the Test.cpp file directly, modified the In_word_set function (the name also changed, New_in_word_set), perfect definition and invocation.


Six

Make install


Seven

Write an example to test the creation of HelloACE.cpp

#include "Ace/log_msg.h"
int ace_tmain (int argc, char* argv[])
{
Ace_debug (Lm_debug, Ace_text ("Hello ace!\n"));
return 0;
}
Compilation: g++-c-i/usr/local/ace/include helloace.cpp-o HELLOACE.O
Link: g++-l/usr/local/ace/lib/-lace helloace.o-o helloace
Execution:./helloace, Output: Hello ace means ACE available

Installing the ACE development environment under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.