3D visualization demo using Python FastAPI, Three.js. Error when include lib in C++.
I've worked on a simple demo to retrieve slices data and plot 3 type of slices using Three.js which is available here.
I don't have access to any cloud S3 (I've tried Minio Playground but it's terribly slow) so I used VDS file instead for the demo - which is imported from Kerry3D data. It works fine but the response time is slow (between 2-3 seconds for a slice) so the transition is not smooth.
I'm trying to create a REST service using C++ but I'm not familiar with the language. I copied these 2 folder (OpenVDS, SEGYUtils) from OpenVDS+2.1.8 distribution into my include folder and proceed copy the C++ example. But there was an issue with undefined error from the variable "volumeDataAccessManagerInterface" at line 944 in OpenVDS.h.
g++ -std=c++11 -fdiagnostics-color=always -g W:\VDS\vds-3d-plot\cpp\api.cpp -o W:\VDS\vds-3d-plot\cpp\api.exe -I W:\VDS\vds-3d-plot\cpp\include
C:\Users\Trung\AppData\Local\Temp\ccGYBsSs.o: In function 'main': W:/VDS/vds-3d-plot/cpp/api.cpp:22: undefined reference to '__imp__ZN7OpenVDS4OpenENS_13StringWrapperES0_RNS_5ErrorE'
C:\Users\Trung\AppData\Local\Temp\ccGYBsSs.o: In function 'GetAccessManager': W:/VDS/vds-3d-plot/cpp/include/OpenVDS/OpenVDS.h:944: undefined reference to '__imp__ZN7OpenVDS25GetAccessManagerInterfaceEPNS_3VDSE '
collect2.exe: error: ld returned 1 exit status
Can someone help me with the error? I know this is not Stack Overflow but if someone can show me a minimal working example using OpenVDS in C++ so I can figure out how it works and continue doing experiments on decreasing the service response time. Thank you in advance.