librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

Cannot generate sln files for c# wrapper

Open dommy1C opened this issue 7 years ago • 10 comments

Hi I downloaded the zipped file. I installed cmake. I get an error when running: cmake .. -DBUILD_CSHARP_BINDINGS=ON -DBUILD_SHARED_LIBS=ON realsesnse error

dommy1C avatar Feb 12 '19 08:02 dommy1C

Hi @dommy1C Did you try with CMake gui?

dorodnic avatar Feb 12 '19 10:02 dorodnic

No, I will try it now. Thanks

dommy1C avatar Feb 12 '19 11:02 dommy1C

Using it now. Get error. What directory do I actually select? Thanks e2

dommy1C avatar Feb 12 '19 11:02 dommy1C

You should not use C:\Program Files\... as the build folder. Choose other location, you can also have it same as sources location. Also, if you are having trouble with CMake, Intel.RealSense.SDK-2.18.1.exe includes the C# assembly.

dorodnic avatar Feb 12 '19 12:02 dorodnic

Ok, changed the target but now complains it cannot find Visual studio so looks like it does not support VS2017?

e2

Also, i downloaded that other setup. I cannot see any C#wrappers? Can you please tell me the directory it should be installed in please?

Thanks

dommy1C avatar Feb 12 '19 12:02 dommy1C

If you look to the right of the configure and generate buttons, it says "Current Generator: Visual Studio 16 2019". Try deleting the cache via the dropdown menus and selecting Visual Studio 15 2017 as your generator instead

lramati avatar Feb 12 '19 13:02 lramati

OK, did all that.

Got new error:

e2

dommy1C avatar Feb 12 '19 13:02 dommy1C

I'm not sure what to do about that one, sorry. In the meantime, don't forget to select the BUILD_CSHARP_BINDINGS option at the top

lramati avatar Feb 12 '19 13:02 lramati

Ok - thanks. Seems to be a problem for other people as well. Why it is so difficult to get sample code working for this I do not know. Looks like a decent camera as well. OK, will give up as my role waa to evaluate on behalf of my client. Thanks all for trying to help :)

dommy1C avatar Feb 12 '19 13:02 dommy1C

I solved this by installing Git. I guess I should be more careful when I look though the log files

dommy1C avatar Feb 12 '19 13:02 dommy1C