SOCI / soci

Official repository of the SOCI - The C++ Database Access Library
http://soci.sourceforge.net/
Boost Software License 1.0
1.37k stars 472 forks source link

soci 4.0 build Oracle backend on Windows #1092

Closed vassilux closed 8 months ago

vassilux commented 8 months ago

Hi alls, I can not build Oracle backend on windows, core , odbc are build fine this is y commande line cmake -G "Visual Studio 14" -DWITH_BOOST=OFF -DWITH_ORACLE=ON -DORACLE_INCLUDE_DIR=G:\Oracle\product\19.0.0\client_1\oci\include -DORACLE_LIBRARIES=G:\Oracle\product\19.0.0\client_1\oci\lib\msvc C:\soci-release-4.0 Thanks for help

vadz commented 8 months ago

It's not really serious to open an issue without even showing the error message.

vassilux commented 8 months ago

So I can find error jsute warning with cmake

CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed tofind_package_handle_standard_args(ORACLE) does not match the name of the calling package (Oracle). This can lead to problems in calling code that expectsfind_packageresult variables (e.g.,_FOUND) to follow a certain pattern. Call Stack (most recent call first): cmake/modules/FindOracle.cmake:84 (find_package_handle_standard_args) src/backends/CMakeLists.txt:17 (find_package) This warning is for project developers. Use -Wno-dev to suppress it.

I tried change CMaleLists.txt with file(GLOB SOCI_CMAKE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*.cmake") set(Oracle_INCLUDE_DIR "G:/Oracle/product/19.0.0/client_1/oci/include") set(Oracle_LIBRARIES "G:/Oracle/product/19.0.0/client_1/oci/lib")

Also tried with vcpkg core and odbc was generated well I home I'm clear now

vadz commented 8 months ago

No, sorry not at all. If you don't get any errors, why can't you build it?

vassilux commented 8 months ago

I try to generate oracle backend and I don't understand why cmake generate juste core and odbc backend maybe my cmake option are wrong ? cmake -G "Visual Studio 14" -DWITH_BOOST=OFF -DWITH_ORACLE=ON -DORACLE_INCLUDE_DIR=G:\Oracle\product\19.0.0\client_1\oci\include -DORACLE_LIBRARIES=G:\Oracle\product\19.0.0\client_1\oci\lib\msvc C:\soci-release-4.0

vassilux commented 8 months ago

I added to os PATH oci include and lib directories and the VC2015 projet was create and I can build oracle backend thanks

vassilux commented 8 months ago

I added to os PATH oci include and lib directories and the VC2015 projet was create and I can build oracle backend thanks