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