LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Where is .so after build in NI Eclipse 2017

Solved!
Go to solution

After building my project I cannot find the .so that should have been made or if it has been made. I was using this guide, (Archived: Getting Started with C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition - NI) but it is for an executable. Does anyone have a better link for making an .so in eclipse or can guide me how?

0 Kudos
Message 1 of 9
(1,059 Views)

For Eclipse: Archived: Creating Shared Library For LabVIEW Real-Time or VeriStand on NI Linux RT Target

You should consider using the latest guide of Visual Studio Code. See Getting Started with C/C++ Development for NI Linux Real-Time

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 2 of 9
(1,053 Views)

I will look at the link, you replied to my other post about using vscode but I am still having an error with calling the vscode-made .so on my cRIO.

0 Kudos
Message 3 of 9
(1,045 Views)

The first link worked for me. I do not like NI Eclipse's menu layout at all, causing it to be a little troublesome, but the .so file worked as it should have in LabVIEW and DOES work on the cRIO. It could have possibly been a compiler issue while I was using Visual Studio Code, the guide shows a different compiler being used as the one in the NI Eclipse guide. Thanks for the links.

0 Kudos
Message 4 of 9
(1,011 Views)

@JacobRiley77 wrote:

 It could have possibly been a compiler issue while I was using Visual Studio Code, the guide shows a different compiler being used as the one in the NI Eclipse guide. Thanks for the links.


Both Eclipse and visual studio code are using the same compiler. Just different versions.

Eclipse: 

ZYOng_0-1688152146745.pngZYOng_1-1688152170457.png

 

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 5 of 9
(996 Views)

I would like to use vscode in the future to create .so. I am using toolchain version 17.0 in both. Visual Studio Code still does not work for me.

0 Kudos
Message 6 of 9
(991 Views)

This is my config for vscode. The intellisense automatically updates to linux-gcc-x64. I cannot generate a .so that works in the cRIO. It does work on Windows.

JacobRiley77_0-1688154456063.png

 

0 Kudos
Message 7 of 9
(987 Views)
Solution
Accepted by JacobRiley77

I have attached the visual studio code and LabVIEW project I created following the guide. I am using compiler version 17.0 as well. The project is running well on a Linux RT virtual machine.

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 8 of 9
(969 Views)

I have found out that the generated files that my CMake and Ninja had used the path for the wrong compiler such as cmake.check_cache and such. Your files worked fine considering the paths were correct. 

0 Kudos
Message 9 of 9
(928 Views)