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










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















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










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













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










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

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


















  • 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






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Full-time equivalent

さくらももこ

13 indicted, 8 arrested in Calif. drug cartel investigation