Hello again. It seems I was able to get through the configure stage, but
now I'm stuck on linking the project. In the beginning, I was getting that
mistake:

Linking halcmd
/opt/OSELAS.Toolchain-2011.11.1/arm-cortexa9-linux-gnueabi/gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/lib/gcc/arm-cortexa9-linux-gnueabi/4.6.2/../../../../arm-cortexa9-linux-gnueabi/bin/ld:
cannot find -lreadline
collect2: ld returned 1 exit status

After that, I tried to write -lreadline right after the path to /lib folder
to LDFLAGS variable in Makefile:

LDFLAGS := -L$(LIB_DIR) -Wl,-rpath,$(LIB_DIR)
-L/home/USER/OSELAS.BSP-Phytec/platform-mx6/root/usr/xenomai/lib
-Wl,-rpath-link,-rpath,/home/USER/OSELAS.BSP-Phytec/platform-mx6/root/usr/xenomai/lib
\
-L/home/USER/OSELAS.BSP-Phytec/platform-mx6/sysroot-host/lib
-L,-rpath-link,/home/USER/OSELAS.BSP-Phytec/platform-mx6/sysroot-target/lib
-lreadline

And now that mistake turned into this:

Linking halcmd
Linking pci_read
/opt/OSELAS.Toolchain-2011.11.1/arm-cortexa9-linux-gnueabi/gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/lib/gcc/arm-cortexa9-linux-gnueabi/4.6.2/../../../../arm-cortexa9-linux-gnueabi/bin/ld:
cannot find -lreadline
/opt/OSELAS.Toolchain-2011.11.1/arm-cortexa9-linux-gnueabi/gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/lib/gcc/arm-cortexa9-linux-gnueabi/4.6.2/../../../../arm-cortexa9-linux-gnueabi/bin/ld:
cannot find -lreadline
collect2: ld returned 1 exit status
make[1]: *** [../bin/halcmd] Error 1
make[1]: *** Waiting for unfinished jobs....
Assembling PRU code ../rtlib/xenomai-kernel//pru_generic.bin
/opt/OSELAS.Toolchain-2011.11.1/arm-cortexa9-linux-gnueabi/gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/lib/gcc/arm-cortexa9-linux-gnueabi/4.6.2/../../../../arm-cortexa9-linux-gnueabi/bin/ld:
cannot find -lreadline
collect2: ld returned 1 exit status
make[1]: *** [../libexec/pci_read] Error 1
../bin/pasm: 1: Syntax error: word unexpected (expecting ")")

Can you give any clues about what should I fix? Like, where, if not in
Makefile, should I give the LDFLAGS & CFLAGS values?

-- 
sincerely, Paul
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to