OpenVPN build, SWiG cannot find header files [on hold]
up vote
-3
down vote
favorite
I'm currently trying to use SWiG to create an interface for ovpncli.hpp in order to be able to access the API from my C# project.
First of all, I would like to know why Visual Studio (tested with 2015 and 2017) ignores all directories in the OpenVPN project folder as like as shown in the image https://imgur.com/a/cXoj6Nj. I basically added the OpenVPN project to my current project using Visual Studio.
And my main problem is that SWiG ignores all specified headers if I compile the file ovpncli.i with the following command:
C:swigwin-3.0.12swig -c++ -csharp -outdir
C:swigwin-3.0.12Generated ovpncli.i
Please check this image https://imgur.com/a/3hOoy7u
Thank you.
Sincerely,
Chris
c# c++ visual-studio swig openvpn
put on hold as off-topic by Mark Tolonen, Flexo♦ 2 days ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Mark Tolonen, Flexo
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
up vote
-3
down vote
favorite
I'm currently trying to use SWiG to create an interface for ovpncli.hpp in order to be able to access the API from my C# project.
First of all, I would like to know why Visual Studio (tested with 2015 and 2017) ignores all directories in the OpenVPN project folder as like as shown in the image https://imgur.com/a/cXoj6Nj. I basically added the OpenVPN project to my current project using Visual Studio.
And my main problem is that SWiG ignores all specified headers if I compile the file ovpncli.i with the following command:
C:swigwin-3.0.12swig -c++ -csharp -outdir
C:swigwin-3.0.12Generated ovpncli.i
Please check this image https://imgur.com/a/3hOoy7u
Thank you.
Sincerely,
Chris
c# c++ visual-studio swig openvpn
put on hold as off-topic by Mark Tolonen, Flexo♦ 2 days ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Mark Tolonen, Flexo
If this question can be reworded to fit the rules in the help center, please edit the question.
Images/links are discouraged @ SO since they can expire and text can't be copied. Provide a Minimal, Complete, and Verifiable example to reproduce your issue, but the likely issues are the .i flie is wrong (and not shown) or the headers aren't in the current directory. Use-I<path>
to add an include search path to your command.
– Mark Tolonen
Nov 10 at 23:34
Well, changing the path like this imgur.com/a/j3IfDXJ works but it can't solve the other header files now. I guess that's because VisualStudio ignores all directories from OpenVPN project?
– XXvevo
Nov 11 at 6:34
Well, posting another tiny, blurry image doesn't help. Really, read Minimal, Complete, and Verifiable example.
– Mark Tolonen
Nov 11 at 6:58
You just need to import github.com/OpenVPN/openvpn3 into an existing VisualStudio project and compile the ovpncli.i file with SWiG. I think it shouldn't be so hard to reproduce the issue.
– XXvevo
Nov 11 at 7:56
add a comment |
up vote
-3
down vote
favorite
up vote
-3
down vote
favorite
I'm currently trying to use SWiG to create an interface for ovpncli.hpp in order to be able to access the API from my C# project.
First of all, I would like to know why Visual Studio (tested with 2015 and 2017) ignores all directories in the OpenVPN project folder as like as shown in the image https://imgur.com/a/cXoj6Nj. I basically added the OpenVPN project to my current project using Visual Studio.
And my main problem is that SWiG ignores all specified headers if I compile the file ovpncli.i with the following command:
C:swigwin-3.0.12swig -c++ -csharp -outdir
C:swigwin-3.0.12Generated ovpncli.i
Please check this image https://imgur.com/a/3hOoy7u
Thank you.
Sincerely,
Chris
c# c++ visual-studio swig openvpn
I'm currently trying to use SWiG to create an interface for ovpncli.hpp in order to be able to access the API from my C# project.
First of all, I would like to know why Visual Studio (tested with 2015 and 2017) ignores all directories in the OpenVPN project folder as like as shown in the image https://imgur.com/a/cXoj6Nj. I basically added the OpenVPN project to my current project using Visual Studio.
And my main problem is that SWiG ignores all specified headers if I compile the file ovpncli.i with the following command:
C:swigwin-3.0.12swig -c++ -csharp -outdir
C:swigwin-3.0.12Generated ovpncli.i
Please check this image https://imgur.com/a/3hOoy7u
Thank you.
Sincerely,
Chris
c# c++ visual-studio swig openvpn
c# c++ visual-studio swig openvpn
asked Nov 10 at 21:42
XXvevo
277
277
put on hold as off-topic by Mark Tolonen, Flexo♦ 2 days ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Mark Tolonen, Flexo
If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as off-topic by Mark Tolonen, Flexo♦ 2 days ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Mark Tolonen, Flexo
If this question can be reworded to fit the rules in the help center, please edit the question.
Images/links are discouraged @ SO since they can expire and text can't be copied. Provide a Minimal, Complete, and Verifiable example to reproduce your issue, but the likely issues are the .i flie is wrong (and not shown) or the headers aren't in the current directory. Use-I<path>
to add an include search path to your command.
– Mark Tolonen
Nov 10 at 23:34
Well, changing the path like this imgur.com/a/j3IfDXJ works but it can't solve the other header files now. I guess that's because VisualStudio ignores all directories from OpenVPN project?
– XXvevo
Nov 11 at 6:34
Well, posting another tiny, blurry image doesn't help. Really, read Minimal, Complete, and Verifiable example.
– Mark Tolonen
Nov 11 at 6:58
You just need to import github.com/OpenVPN/openvpn3 into an existing VisualStudio project and compile the ovpncli.i file with SWiG. I think it shouldn't be so hard to reproduce the issue.
– XXvevo
Nov 11 at 7:56
add a comment |
Images/links are discouraged @ SO since they can expire and text can't be copied. Provide a Minimal, Complete, and Verifiable example to reproduce your issue, but the likely issues are the .i flie is wrong (and not shown) or the headers aren't in the current directory. Use-I<path>
to add an include search path to your command.
– Mark Tolonen
Nov 10 at 23:34
Well, changing the path like this imgur.com/a/j3IfDXJ works but it can't solve the other header files now. I guess that's because VisualStudio ignores all directories from OpenVPN project?
– XXvevo
Nov 11 at 6:34
Well, posting another tiny, blurry image doesn't help. Really, read Minimal, Complete, and Verifiable example.
– Mark Tolonen
Nov 11 at 6:58
You just need to import github.com/OpenVPN/openvpn3 into an existing VisualStudio project and compile the ovpncli.i file with SWiG. I think it shouldn't be so hard to reproduce the issue.
– XXvevo
Nov 11 at 7:56
Images/links are discouraged @ SO since they can expire and text can't be copied. Provide a Minimal, Complete, and Verifiable example to reproduce your issue, but the likely issues are the .i flie is wrong (and not shown) or the headers aren't in the current directory. Use
-I<path>
to add an include search path to your command.– Mark Tolonen
Nov 10 at 23:34
Images/links are discouraged @ SO since they can expire and text can't be copied. Provide a Minimal, Complete, and Verifiable example to reproduce your issue, but the likely issues are the .i flie is wrong (and not shown) or the headers aren't in the current directory. Use
-I<path>
to add an include search path to your command.– Mark Tolonen
Nov 10 at 23:34
Well, changing the path like this imgur.com/a/j3IfDXJ works but it can't solve the other header files now. I guess that's because VisualStudio ignores all directories from OpenVPN project?
– XXvevo
Nov 11 at 6:34
Well, changing the path like this imgur.com/a/j3IfDXJ works but it can't solve the other header files now. I guess that's because VisualStudio ignores all directories from OpenVPN project?
– XXvevo
Nov 11 at 6:34
Well, posting another tiny, blurry image doesn't help. Really, read Minimal, Complete, and Verifiable example.
– Mark Tolonen
Nov 11 at 6:58
Well, posting another tiny, blurry image doesn't help. Really, read Minimal, Complete, and Verifiable example.
– Mark Tolonen
Nov 11 at 6:58
You just need to import github.com/OpenVPN/openvpn3 into an existing VisualStudio project and compile the ovpncli.i file with SWiG. I think it shouldn't be so hard to reproduce the issue.
– XXvevo
Nov 11 at 7:56
You just need to import github.com/OpenVPN/openvpn3 into an existing VisualStudio project and compile the ovpncli.i file with SWiG. I think it shouldn't be so hard to reproduce the issue.
– XXvevo
Nov 11 at 7:56
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Images/links are discouraged @ SO since they can expire and text can't be copied. Provide a Minimal, Complete, and Verifiable example to reproduce your issue, but the likely issues are the .i flie is wrong (and not shown) or the headers aren't in the current directory. Use
-I<path>
to add an include search path to your command.– Mark Tolonen
Nov 10 at 23:34
Well, changing the path like this imgur.com/a/j3IfDXJ works but it can't solve the other header files now. I guess that's because VisualStudio ignores all directories from OpenVPN project?
– XXvevo
Nov 11 at 6:34
Well, posting another tiny, blurry image doesn't help. Really, read Minimal, Complete, and Verifiable example.
– Mark Tolonen
Nov 11 at 6:58
You just need to import github.com/OpenVPN/openvpn3 into an existing VisualStudio project and compile the ovpncli.i file with SWiG. I think it shouldn't be so hard to reproduce the issue.
– XXvevo
Nov 11 at 7:56