-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Enable several architectures in the amalgamation (was: compile library with visual studio 2017) #2535
Comments
This is probably related to the architecture selection. There is only one solution: That means we need to additionally detect the architecture with macros. |
Update:
|
How actually we can use that lib in our projects for windows platform than? |
i'm using 0.3 downloaded from https://github.com/open62541/open62541/releases/download/v0.3.0/open62541-win64.zip |
Looks like a bug in Visual Studio. Let me explain. This works. So the path with the #error macros is not active. #if defined(QUEUE_MACRO_DEBUG) || (defined(_KERNEL) && defined(DIAGNOSTIC))
#define _Q_INVALIDATE2(a) (a) = ((void *)-1)
#error this is a problem
#endif
#define _Q_INVALIDATE(a) This does not work. Which is odd because the path of the first #define is not used... #if defined(QUEUE_MACRO_DEBUG) || (defined(_KERNEL) && defined(DIAGNOSTIC))
#define _Q_INVALIDATE(a) (a) = ((void *)-1)
#error this is a problem
#endif
#define _Q_INVALIDATE(a)
|
Okay. Main question is it is possible using open62541 program User interface for OPC UA server? I Think best tools for that world be VS 2017 and windows forms C# .net framework |
By default the included architectures in the release are for win32 and posix. open62541/include/ua_config.h.in Line 95 in 89b4127
So for your case you can check if that is working correctly. @klasik16 please also try to clone the github repository, and then create a Visual Studio solution using the CMake generator. Then open the solution in Visual Studio and build everything. This should generate a corresponding .c/.h file. |
Conclusion for creating .dll .lib .c and .h files is that we need use cmake to create project to able use it in VS 2017. All right now I have .dll .lib .c and .h files. How I suppose us them in c# windows forms project with Visual studio 2017? |
As you already mention, now you have all you need from our side, i.e. the .dll and/or the .lib. Basically you need the header files and the .dll, and include it in your visual studio. A how to on the basics of Visual Studio, especially how to include external libs is better asked on Stackoverflow, since this issue tracker is specifically a support for open62541. Please understand that we can not give you a tutorial on how to program or write C# apps |
https://stackoverflow.com/questions/54985518/build-open62541-dll-with-visual-studio-2017
The text was updated successfully, but these errors were encountered: