Compiling IDL Files / CORBA

Reiner Beck R.K.Beck at t-online.de
Sat Mar 18 16:53:06 UTC 2000


Hi,

I am trying to compile a project which contains CORBA idl files. The
products are a "filename.hh" and a "filename.cc" file, which needs - of
course - to be compiled. I found a proposed solution in the mailing
archive, but it doesn't work!

This is what I did to the "Makefile.am":
--- snip ---
####### kdevelop will overwrite this part!!! (begin)##########
bin_PROGRAMS = testserver
testserver_SOURCES = echo.idl vg_corba_base.cpp echo_i.cpp main.cpp 
testserver_LDADD   = -lomniORB2 -lomniGK_stub


EXTRA_DIST = main.cpp echo_srv.h echo_i.cpp echo_i.h echo.hh
vg_corba_base.cpp vg_corba_base.h echo.idl 

####### kdevelop will overwrite this part!!! (end)############
bin_PROGRAMS = testserver

IDLCOMPILER = omniidl2
IDLARGS = -t -s .cc

IDLSOURCES = $(wildcard *.idl)
EXTRA_DIST = $(wildcard *.cpp) $(IDLSOURCES)

testserver_SOURCES = $(wildcard *.cpp) $(IDLSOURCES) $(patsubst %.idl,
%.cc, $(IDLSOURCES))

%.cc %.hh: %.idl
	$(IDLCOMPILER) $(IDLARGS) $<
--- snip END ---

Hitting the "Build" Button produces this output:
--- snip ---
cd .. && automake --gnu testserver/Makefile
cd .. \
  && CONFIG_FILES=testserver/Makefile CONFIG_HEADERS= /bin/sh
./config.status
creating testserver/Makefile
lomniORB2 -lomniGK_stub 
make: lomniORB2: Command not found
make: [testserver] Error 127 (ignored)
*** success ***

--- snip EBD ---

I checked the resulting Makefile, if there is somewhere the "command"
lomniORB2 (which is the name of a library as you can see in the
Makefile.am), but it looks ok-ish ...
BTW, I did set the lib-entry with "Project/Options" ...

Any advice?
Am I missing something?

Thanks & Regards
Reiner




More information about the KDevelop mailing list