On Sat, 2005-05-07 at 11:37 +0200, Marc Kleine-Budde wrote:
> Hi!
> 
> On Fri, May 06, 2005 at 10:12:21PM +0200, Michael Neuhauser wrote:
> > > today I switched on the ARM architecture in RTnet's configure and tried 
> > > to build with some half-baked cross-environment (I have not real ARM 
> 
> [...]
> 
> > I've checked out the trunk (revision 789) and gave it a shot
> > (linux-2.4.21-rmk1-crus1.4.2 on a EDB9301, current vulcano (with some
> > minor local modification that I haven't committed yet).
> 
> > I was not able to pass the configure stage because of troubles with
> > DESTDIR detection:
> 
> > [...]
> > checking for RTAI 24.1.x source tree... no
> > checking for RTAI 3 installation... /disk/work/armrtai/build/rtai/_xdev
> > checking for RTAI DESTDIR... configure: error: *** Cannot identify
> > DESTDIR
> 
> > I've looked at configure.ac and I have to say I that I don't understand
> > how this should work:
> 
> This code tries to detect if you have installed rtai with DESTDIR != "".

The *what* is quite obvious from the comment, it's the *how* I don't
understand.

> > #
> > # check if rtai-3 is installed with DESTDIR
> > # e.g.: 'make DESTDIR=/foo install'
> > #
> >     AC_MSG_CHECKING([for RTAI DESTDIR])
> >     RTNET_RTAI_PREFIX="`${RTAI_CONFIG} --prefix | sed -e s,[/]*$,,`"        
> >         # strip trailing slashes
> >     if test "${RTNET_RTAI_PREFIX}" \!= "${RTAI_DIR}"; then
> >     RTNET_RTAI_DESTDIR="`echo ${RTAI_DIR} | sed -e 
> > s,${RTNET_RTAI_PREFIX}$,,`"
> >     export DESTDIR="${RTNET_RTAI_DESTDIR}"
> > 
> >     RTNET_RTAI_PREFIX="`${RTAI_CONFIG} --prefix | sed -e s,[/]*$,,`"        
> > # strip trailing slashes
> >     if test "${RTNET_RTAI_PREFIX}" = "${RTAI_DIR}"; then
> >         AC_MSG_RESULT([${DESTDIR}])
> >     else
> >         AC_MSG_ERROR([*** Cannot identify DESTDIR])
> >     fi
> 
> The procedure does like this:
> * Assuming you've configured RTAI with
>   'configure --prefix=/usr/realtime' and installed it with
>   'make DESTDIR=/disk/work/armrtai/build/rtai/_xdev'
>   The includes get installed into:
>   '/disk/work/armrtai/build/rtai/_xdev/usr/realtime/include'
> * you are configure'ing RTnet:
>   'configure --with-rtai=/disk/work/armrtai/build/rtai/_xdev/usr/realtime'
> 
> > Note that RTNET_RTAI_PREFIX is assigned the same value twice
> > (/usr/realtime in my case) and RTAI_DIR is not changed between the two
> > tests. So if the first test (i.e. ${RTNET_RTAI_PREFIX}" \!=
> > "${RTAI_DIR}") is true, the second one will be false (and an error is
> > generated).
> 
> * 'rtai-config --prefix' gives /usr/realtime, and subsequent '--cflags'
>   would point to nonexisting or wrong dirs like /usr/realtime/include
> * the directory supplied with the '--with-rtai=' parameter is stored
>   in the $RTAI_DIR variable, in your case
>   '/disk/work/armrtai/build/rtai/_xdev/usr/realtime'
> * 'sed' removes the rtai-prefix ("/usr/realtime") from $RTAI_DIR
>    resulting in '/disk/work/armrtai/build/rtai/_xdev', which is
>    stored in DESTDIR
> * the DESTDIR env-variable modifies the output of
>   'rtai-config --prefix'. It is prefixed to the paths.
>   (see [1] for details)

Ah, that's the info I was missing (the "export" before DESTDIR should
have been a clue; well it was late ...).

> * now the rtai-prefix equals rtai-dir check is repeated
> 
> Perhaps we have here a problem with trailings or leading slashes or with
> relative paths.
> 
> Can you please send your exact RTnet configure command and your
> 'rtai-config' (/disk/work/armrtai/build/rtai/_xdev/bin/rtai-config),
> aswell as the exact paths and commands during 'make install DESTDIR=...'

Thanks a lot, but I was able to make configure work and now I'm
wrestling with compiler flags etc. Will report findings later.

Mike

> regards - Marc
> 
> [1]
> http://www.rts.uni-hannover.de/rtai/lxr/source/base/scripts/rtai-config.in?v=cvs-3.2-vulcano
> 
-- 
Dr. Michael Neuhauser                phone: +43 1 789 08 49 - 30
Firmix Software GmbH                   fax: +43 1 789 08 49 - 55
Vienna/Austria/Europe                      email: [EMAIL PROTECTED]
Embedded Linux Development and Services    http://www.firmix.at/




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to