-
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
Added JNI Related changes in PubSub #6128
base: master
Are you sure you want to change the base?
Conversation
Hi there, Thanks for making the PR.
So this can either live in the PR as-is or you open a dedicated repo. Regards, Julius |
Thanks @jpfr for your insights on the PR. |
Hi @jpfr,
Thanks! |
Hi @jpfr, |
Hey there, please move your code to |
If you need a java installation to test as the counterpart you can propose a solution. |
Hi @jpfr,
Thanks!! |
Hi @jpfr, Thanks!! |
I don't have any experience with JNI. The There you also have to add a java sdk as installation dependency. |
Hi @jpfr,
Thanks!! |
Hi @jpfr, |
Hi @jpfr, Thanks, |
Hi @jpfr, |
CMake can be configured to produce a DLL/so shared library. |
Hi @jpfr, But can you share the lines to be added to CMakeLists file for creating shared so/dll files as I am new to this environment and this code base? Thanks, |
Hi @jpfr
Following files were modified and added to integrate SDK with java based OPC UA client, that uses PubSub APIs of SDK using JNI Calls:
Modified Files:
Newly created files in /src/pubsub folder:
Note:
I am using this code change on tagged version 1.3.6 with following build configurations:
cmake.exe .. -G "Visual Studio 17 2022" -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DUA_BUILD_EXAMPLES=ON -DUA_ENABLE_PUBSUB=ON -DUA_ENABLE_PUBSUB_MQTT=OFF -DUA_ENABLE_JSON_ENCODING=ON -DUA_ENABLE_DEBUG_SANITIZER=OFF -DUA_ENABLE_DISCOVERY_SEMAPHORE=OFF -DUA_ENABLE_HARDENING=OFF -DUA_ENABLE_NODEMANAGEMENT=OFF -DUA_ENABLE_NODESET_COMPILER_DESCRIPTIONS=OFF -DUA_ENABLE_PARSING=OFF -DUA_ENABLE_PUBSUB_DELTAFRAMES=OFF -DUA_ENABLE_PUBSUB_INFORMATIONMODEL=ON -DUA_ENABLE_PUBSUB_INFORMATIONMODEL_METHODS=OFF -DUA_ENABLE_STATUSCODE_DESCRIPTIONS=OFF -DUA_ENABLE_SUBSCRIPTIONS=OFF -DUA_ENABLE_SUBSCRIPTIONS_EVENTS=OFF -DUA_ENABLE_TYPEDESCRIPTION=ON -DUA_FORCE_WERROR=OFF -DUA_MSVC_FORCE_STATIC_CRT=OFF -DUA_ENABLE_ENCRYPTION_TPM2=OFF -DUA_LOGLEVEL=400 -DUA_ENABLE_ENCRYPTION=OPENSSL -DUA_ENABLE_PUBSUB_ENCRYPTION=ON -DCMAKE_TOOLCHAIN_FILE= -DVCPKG_TARGET_TRIPLET=