Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ACE + TAO + UBUNTU - how to compile?

Status
Not open for further replies.

pibako

Programmer
Jun 5, 2008
1
PL
Hi all,

I am new to ACE/TAO and I need some help with compiling programs. I've installed ACE+TAO from Ubuntu repositories. After that I added following paths to my environment:

export ACE_ROOT=/usr/share/ace
export TAO_ROOT=/usr/share/ace/TAO
export LD_LIBRARY_PATH=$ACE_ROOT/lib:$LD_LIBRARY_PATH

I tried to compile Hello program from "TAO Programmers Guide" so I followed by the instruction:

(1) I typed Hello.idl, Hello.h Hello.cpp, server.cpp, client.cpp and Hello.mpc.

(2) I run $tao_idl Hello.idl

(3) And to create make files I run: $mpc-ace -type gnuace Hello.mpc

(4) To compile client I run: $make -f GNUmakefile.Hello_Client

The output of (4) is:
g++ -W -Wall -Wpointer-arith -O2 -pipe -D_REENTRANT -DACE_HAS_AIO_CALLS -D_GNU_SOURCE -DACE_HAS_CUSTOM_EXPORT_MACROS=0 -DACE_HAS_SYS_SIGLIST=1 -DACE_GPERF=\"gperf-ace\" -I/usr/share/ace -I/usr/share/ace/TAO -DACE_NDEBUG -DACE_USE_RCSID=0 -I/usr/kerberos/include -DACE_HAS_EXCEPTIONS -DACE_COMPILE_TIMEPROBES -I/usr/share/ace -I/usr/share/ace/TAO -c -o .obj/client.o client.cpp
client.cpp: In function ‘int main(int, char**)’:
client.cpp:13: error: ‘LM_DEBUG’ was not declared in this scope
client.cpp:13: error: ‘ACE_ERROR_RETURN’ was not declared in this scope
client.cpp:18: error: ‘LM_DEBUG’ was not declared in this scope
client.cpp:18: error: ‘ACE_DEBUG’ was not declared in this scope
make: *** [.obj/client.o] Error 1

It looks like there are missing libraries but I don't know how to fix it despite I have been trying for several days.

Any help will be appreciated.
-piotrek

P.S. A details of installed packages on my Ubuntu:
libtao-dev
libtao-orbsvcs-dev
libtao-orbsvcs1.4.7ldbl
libace-dev
libkokyu5.4.7ldbl
libacexml5.4.7ldbl
libace-ssl5.4.7ldbl
tao-idl
mpc-ace
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top