Hi Peter

------------------------------
> From: [email protected]
> To: [email protected]
> Subject: Xenomai and CodeBlocks
> Date: Wed, 28 Oct 2009 08:42:48 +1100
>
> Hello,
>
> I am trying to get Xenomai Code to compile and run correctly under
> CodeBlocks 8.02.
>
> I have followed the advice in this mailing list by another subscriber. This
> is what I have followed:
>
> To use the Xenomai realtime framework in  Code::Blocks IDE,
>
> 1. Add these commands to "Project build options", "Compiler settings",
> "Other options"
>
> `/usr/xenomai/bin/xeno-config --xeno-cflags`
> `/usr/xenomai/bin/xeno-config --xeno-ldflags`
>
>  [you can type the commands on the command line without the apostrophes to
> get an idea of the output]
>
> 2. Under "Project build options", "linker settings" add libraries as
> required
>
> eg native, rtdm ...
>
> [See /usr/xenomai/lib for available libraries]
>
> 3. Under "Project build options", "Search Directories", "Linker" add
>
> /usr/xenomai/lib
>
> The code compiles, but when it tries to run it comes up with the error:
>
> /home/computer/Desktop/projects/MyProject/bin/Debug/MyProject: error while 
> loading shared libraries: libnative.so.1: cannot open shared object file: No 
> such file or directory
>
> Has anyone used CodeBlocks to compile Xenomai applications correctly?
>
> Thanks.
>
>
>
The error that you're getting is not specific to codeblocks.

Try adding /usr/xenomai/lib to /etc/ld.so.conf
Create the /etc/ld.so.conf  file if it does not exist.

Then run "sudo ldconfig"

This updates the shared library cache

Hope this helps
Vicki
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to