Sysprogs forums › Forums › VisualGDB › UnitTest with build on Host via CrossTool
Tagged: unittest edison
- This topic has 2 replies, 2 voices, and was last updated 8 years, 5 months ago by ThomasM. 
- 
		AuthorPosts
- 
		
			
				
May 17, 2017 at 13:10 #11244ThomasM ParticipantHi there, I’m currently developing for a Intel Edison and would like to get a unit test running. Because the project will expand more and more it would be nice to use the cross-compile method. In the tutorial (https://visualgdb.com/tutorials/tests/googletest/) a MSBuild for the unit test is used. It says that it’s also able to build with a cross toolchain tool. So I choosed the “Build the project locally with a cross-compiler” and got an error message after clicking finish: Tool arguments: -Wl,--start-group "C:\Users\Thomas\AppData\Local\Temp\/VisualGDB_ToolchainTestProgram.o" -o "C:\Users\Thomas\AppData\Local\Temp\/VisualGDB_ToolchainTestProgram" -Wl,-gc-sections -Wl,--end-group d:/toolchain/i686-pokysdk-mingw32/usr/bin/i586-poky-linux/../../libexec/i586-poky-linux/gcc/i586-poky-linux/4.8.2/ld.exe: cannot find crt1.o: No such file or directory d:/toolchain/i686-pokysdk-mingw32/usr/bin/i586-poky-linux/../../libexec/i586-poky-linux/gcc/i586-poky-linux/4.8.2/ld.exe: cannot find crti.o: No such file or directory d:/toolchain/i686-pokysdk-mingw32/usr/bin/i586-poky-linux/../../libexec/i586-poky-linux/gcc/i586-poky-linux/4.8.2/ld.exe: cannot find crtbegin.o: No such file or directory collect2.exe: error: ld returned 1 exit statu When I try to build the project the <ctype> and <string> headers are missing and the compilation process fails. How can I fix the problem? It seems that the GoogleTest Framework is stored in C:\Users\Thomas\AppData\Local\VisualGDB\TestFrameworks\com.sysprogs.unittest.googletest\. My files and the Cross-Toolchain are in a different path. Is there anything special compared to the build toolchain described in https://visualgdb.com/tutorials/linux/edison/ ? Maybe a special unit test tutorial for the Intel Edison 😉 ? Greetings, 
 Thomas**** EDIT **** Forgot to say: I need the cross-compile toolchain for the compile process. The edison itself takes to much time for the compile process… - 
		This topic was modified 8 years, 5 months ago by ThomasM. 
 May 18, 2017 at 04:21 #11247support KeymasterHi, The Edison toolchain might require an explicit “–sysroot” argument. Please try specifying it via additional command line flags for both compiler and linker (see the toolchain documentation or included examples for the correct sysroot value). May 18, 2017 at 11:22 #11248ThomasM ParticipantThat’s right. The tutorial suggested me to use the MSBuild instead of the GNU build. I choosed the GNU and set the sysroot settings as usual. Worked. 
- 
		This topic was modified 8 years, 5 months ago by 
- 
		AuthorPosts
- You must be logged in to reply to this topic.