bazza2jw / open62541Cpp

C++ Wrappers for Open62541 Version 0.3
35 stars 22 forks source link

Windows build #21

Open jroeglin opened 2 years ago

jroeglin commented 2 years ago

Hallo,

i tried to build the library under windows and with open62541 1.3. without UA_MULTITHREADING and UA_ARCHITECTURE win32.

I added some defines in open62541server.h so that i able to build the lib without multi threading support. Also i added '#include "open62541/win32/ua_architecture.h"' instead of the linux lib.

I can build the open62541cpp.lib but I get linker errors when i try to build den open62541cpp.dll.

servernodetree.obj : error LNK2001: Nicht aufgelöstes externes Symbol "UA_TYPES". ...

i linked the open62541.lib with target_link_libraries(${OPEN62541_CPP} PUBLIC ${Boost_LIBRARIES} ";C:/Program Files/open62541/lib/open62541.lib;C:/dependencies/boost_1_77_0/lib64-msvc-14.2/libboost_thread-vc142-mt-gd-x64-1_77.lib;C:/dependencies/boost_1_77_0/lib64-msvc-14.2/libboost_chrono-vc142-mt-gd-x64-1_77.lib" open62541::open62541)

Do i missed something?

jroeglin commented 2 years ago

I use it now without the library. I built open62541 without dll and use this wrapper as source code.