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










share|improve this 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















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










share|improve this 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













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










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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


















  • 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

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














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





















































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







Popular posts from this blog

Xamarin.iOS Cant Deploy on Iphone

Glorious Revolution

Dulmage-Mendelsohn matrix decomposition in Python