OpenVPN build, SWiG cannot find header files
up vote
-2
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
add a comment |
up vote
-2
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
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
-2
down vote
favorite
up vote
-2
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
297
297
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53243696%2fopenvpn-build-swig-cannot-find-header-files%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
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