Subject: Re: undefined reference to `rt_task_create References: <48de04a3-9f2c-d3e6-8a80-568a497015c1@vbm-grp.com> <5cf98ffb-d244-1030-552e-a1ebed830df0@siemens.com> <94d939cd-0274-84bd-62d0-3680f12aebe1@freyder.net> From: Jan Kiszka Message-ID: Date: Fri, 6 Dec 2019 08:58:54 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=iso-8859-15 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Electronic Dept. - Vbm Group" , xenomai@xenomai.org On 06.12.19 08:39, Electronic Dept. - Vbm Group via Xenomai wrote: > Hello Jan and Steve, > > I modified the Makefile as per your indication and now the compiling > signature is changed as follow: > > gcc -o cyclic_test cyclic_test.c -I/usr/xenomai/include/cobalt > -I/usr/xenomai/include -march=armv7-a -mfpu=vfp3 -D_GNU_SOURCE > -D_REENTRANT -fasynchronous-unwind-tables -D__COBALT__ > -I/usr/xenomai/include/alchemy -Wl,--no-as-needed > -Wl,@/usr/xenomai/lib/modechk.wrappers -lalchemy -lcopperplate > /usr/xenomai/lib/xenomai/bootstrap.o -Wl,--wrap=main > -Wl,--dynamic-list=/usr/xenomai/lib/dynlist.ld -L/usr/xenomai/lib > -lcobalt -lmodechk -lpthread -lrt -march=armv7-a -mfpu=vfp3 > > Unfortunately as response now I get: > ./cyclic_test: error while loading shared libraries: libalchemy.so.0: > cannot open shared object file: No such file or directory > > I've check and inside /usr/xenomai/lib there is: Either install Xenomai to /usr/lib* or add this path to LD_LIBRARY_PATH. Jan > libalchemy.a > libalchemy.la > libalchemy.so > libalchemy.so.0 > libalchemy.so.0.0.0 > > Thank you again for your assistance. > > Best Regards > Davide Brunelli > -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux