Fixed
Created: Feb 12, 2014
Updated: Dec 3, 2018
Resolved Date: Oct 10, 2014
Previous ID: LIN5-17972
Found In Version: 6.0
Fix Version: 6.0.0.13
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Workbench Integration
Using shared library project in Workbench, the build is failed by default:
c:/windriver/wrlinux-5/layers/wr-toolchain/4.6a-105-other/bin/../lib/gcc/i686-wrs-linux-gnu/4.6.3/../../../../i686-wrs-linux-gnu/bin/ld.exe: cannot find crti.o: No such file or directory
c:/windriver/wrlinux-5/layers/wr-toolchain/4.6a-105-other/bin/../lib/gcc/i686-wrs-linux-gnu/4.6.3/../../../../i686-wrs-linux-gnu/bin/ld.exe: cannot find -lc
c:/windriver/wrlinux-5/layers/wr-toolchain/4.6a-105-other/bin/../lib/gcc/i686-wrs-linux-gnu/4.6.3/../../../../i686-wrs-linux-gnu/bin/ld.exe: cannot find crtn.o: No such file or directory
It turned out to be missing sysroot path in the shared library linker option.
Adding the sysroot path in there, the build can be completed without problem.
1. Right mouse click on your project and select Properties.
2. Select Build Properties on the left
3. Select the Tools Tab in the main Build Properties section
4. In the Build Tool pulldown select Shared Library Linker
5. Add the sysroot specification to the Tools Flag field.
1. Export SDK from a Linux platform project.
2. Bring the generated win32 tarball over to a Windows PC and extract it
3. Start Workbench on Windows and import the SDK (File->import->Wind River Linux->Wind River Linux SDK)
4. Create a shared library project, select the build spec provided by the imported SDK and select the build tool as "Shared Library linker"
5. include some dummy source.
6. Build the project