Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yarp c# Binding in superbuild #1341

Closed
omareldardear opened this issue Feb 10, 2023 · 6 comments · Fixed by #1346
Closed

Yarp c# Binding in superbuild #1341

omareldardear opened this issue Feb 10, 2023 · 6 comments · Fixed by #1346

Comments

@omareldardear
Copy link

Hello Everyone,

We were trying to compile the c# binding on Linux,
But there was no cmake flag for the c# , I only find python , Matlab, and Octave. But not Python.

Would you please consider adding a flag for the c# ?

This issue is connected to the open issue in Yarp as we are trying to have csharp binding work in both windows and linux.
robotology/yarp#2937

@traversaro
Copy link
Member

Hello @omareldardear ! We can look into adding such an option to the superbuild if it is used in a consistent way. If this is just for a one time experiment, you can also just enable it in YARP build directory:

cd robotology-superbuild/build/src/YARP
# enable the option you want to enable via ccmake . , then generate by pressing c several times, and then g
ccmake . 
# now the option is enabled, so unless the superbuild is overwriting it, you can go back and compile the superbuils as usual
cd ../..
cmake --build . --config Release

@traversaro
Copy link
Member

Hello @omareldardear, did you checked if the suggested workaround is working for your objectives?

@omareldardear
Copy link
Author

Hello @traversaro
Thank you for your reply.
Yes, It worked. Actually, we did this workaround before opening the issue.
But a couple of members of our team will be using the c# bindings. So It will be great to consider the flag.

Thanks again

@traversaro
Copy link
Member

Ok! Which CMake options need to be enabled on the YARP side for enabling C# bindings?

@omareldardear
Copy link
Author

omareldardear commented Feb 14, 2023

@traversaro
CREATE_CSHARP
Which will appear after enabling YARP_COMPILE_BINDINGS

It is the same as Python or Octave (CREATE_PYTHON , CREATE_OCTAVE)

@traversaro
Copy link
Member

Further improvements can be discussed in #1347 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants