|
From: Darrell S. <dr...@nr...> - 2004-04-27 21:24:44
|
On Tuesday, April 27 2004 at 10:24+0200, Egon Teiniker wrote: > >In the current version, we have skipped the ccmtools-cpp-environment >script. Now there are three packages (java-environment, cpp-environment >and ccmtools). You install *-environment first (using Ant and Confix). >After that, ccmtools can be installed and used - see chapter 3 of the >tutorial. Thanks for the help Egon! OK, I've built java-environment (easy) and most of cpp-environment (painful). I see a note in the INSTALL file for CCM_Python: -------------------------------------------------------------------- o) Install the python component's environment: $ confix.py --packageroot=CCM_Python --bootstrap --configure --make --targets="all install" But, it does not work because CCM_Python is the package root directory of the Python generator environment!! -------------------------------------------------------------------- So how do I build it? I'm trying to build this for packaging with RPM (so I can get others to try ccmtools, if it looks promising). Currently I have to sed most of the Makefiles to patch the repo location not to install into /usr (BTW, what is the repo for?), see below. Is there an easier way to build cpp-environment in an intermediate location for later installation via RPM? What I'd like to use ccmtools for is creating components which can either be used directly from Python or remotely via a C++ CORBA server. Do you think this is a reasonable application of ccmtools? Also, from the tutorial diagram, it looks like the "local Python Component Generator" and the "remote C++ Component Generator" are works in progress (perhaps why I cannot compile CCM_Python?). Is this right? Any idea if these represents significant work? Thanks for your help and sorry for all of the questions! Darrell ##============================================================================ ## cpp-environment ##============================================================================ ## WX_Utils: ##---------- mkdir ../root confix.py '--prefix=/usr' '--buildroot=/home/drs/dev/ccmtools/cpp-environment' --bootstrap --configure sed -i -e 's@/usr/repo@/home/drs/dev/ccmtools/cpp-environment/root/repo@' code/Makefile sed -i -e 's@/usr/repo@/home/drs/dev/ccmtools/cpp-environment/root/repo@' error/Makefile sed -i -e 's@/usr/repo@/home/drs/dev/ccmtools/cpp-environment/root/repo@' types/Makefile make make 'prefix=/home/drs/dev/ccmtools/cpp-environment/root' install ## CCM_Local ##---------- confix.py '--prefix=/usr' '--buildroot=/home/drs/dev/ccmtools/cpp-environment' --bootstrap --configure sed -i -e 's@^\(DEFAULT_INCLUDES = \)@\1 -I../../root/include@' HomeFinder/Makefile sed -i -e 's@/usr/repo@/home/drs/dev/ccmtools/cpp-environment/root/repo@' HomeFinder/Makefile sed -i -e 's@/usr/repo@/home/drs/dev/ccmtools/cpp-environment/root/repo@' LocalComponents/Makefile sed -i -e 's@/usr/repo@/home/drs/dev/ccmtools/cpp-environment/root/repo@' LocalTransaction/Makefile make make 'prefix=/home/drs/dev/ccmtools/cpp-environment/root' install ## external ##---------- confix.py '--prefix=/usr' '--buildroot=/home/drs/dev/ccmtools/cpp-environment' --bootstrap --configure sed -i -e 's@/usr/repo@/home/drs/dev/ccmtools/cpp-environment/root/repo@' mico/Makefile sed -i -e 's@/usr/repo@/home/drs/dev/ccmtools/cpp-environment/root/repo@' python/Makefile make make 'prefix=/home/drs/dev/ccmtools/cpp-environment/root' install ## CCM_Remote ##---------- confix.py '--prefix=/usr' '--buildroot=/home/drs/dev/ccmtools/cpp-environment' --bootstrap --configure sed -i -e 's@^\(DEFAULT_INCLUDES = \)@\1 -I../../root/include@' CCM_Session_Container/Makefile sed -i -e 's@/usr/repo@/home/drs/dev/ccmtools/cpp-environment/root/repo@' CCM_Session_Container/Makefile sed -i -e 's@/usr/repo@/home/drs/dev/ccmtools/cpp-environment/root/repo@' RemoteComponents/Makefile make make 'prefix=/home/drs/dev/ccmtools/cpp-environment/root' install ## CCM_Python ##---------- confix.py '--prefix=/usr' '--packageroot=CCM_Python' '--buildroot=/home/drs/dev/ccmtools/cpp-environment' --bootstrap --configure ##============================================================================ ## java-environment ##============================================================================ mkdir root ant install '-Dprefix=/home/drs/dev/ccmtools/java-environment/root' |