All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Dehann Fourie <dehann.fourie@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Compile and run problem
Date: Mon, 01 Sep 2008 15:23:34 +0200	[thread overview]
Message-ID: <48BBECD6.8020008@domain.hid> (raw)
In-Reply-To: <2b490f270809010608m4b9bf58ej9e63f2784e61bae4@domain.hid>

Dehann Fourie wrote:
> Hi,
> 
> I'm having trouble compiling a code fragment. After running the makefile, I
> try to run the program wich then gives the the following error?
> 
> dehann:/home/dehann/workspace/rtPP_AD# make
> gcc -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -D__XENO__
> -L/usr/xenomai/lib -lpthread -lnative main.o -o main -lm
> dehann:/home/dehann/workspace/rtPP_AD# ./main
> ./main: error while loading shared libraries: libnative.so.1: cannot open
> shared object file: No such file or directory
> 
> the libnative.so.1 file is in the /usr/xenomai/ directory. Thanks in
> advance!

There are several ways out:
- use ld -rpath option (see ld manual);
- use the LD_LIBRARY_PATH environment variable;
- add /usr/xenomai to /etc/ld.so.conf and re-run ldconfig.

-- 
                                                 Gilles.


  reply	other threads:[~2008-09-01 13:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-01 13:08 [Xenomai-help] Compile and run problem Dehann Fourie
2008-09-01 13:23 ` Gilles Chanteperdrix [this message]
2008-09-01 14:32   ` Gilles Chanteperdrix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48BBECD6.8020008@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=dehann.fourie@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.