<div dir="ltr"><p style="box-sizing:border-box;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px;margin-top:0px">Hello.</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">I was able to build it in Visual Studio 2017 doing some changes at the scripts.<br style="box-sizing:border-box">However, I can't get any oracle support. The button is not present at the layer browser window and in DB Manager I get this error when try to connect to any oracle database:</p><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.9px;margin-top:0px;margin-bottom:16px;padding:16px;overflow:auto;line-height:1.45;background-color:rgb(246,248,250);border-radius:3px;color:rgb(36,41,46)"><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.9px;padding:0px;margin:0px;background:initial;border-radius:3px;word-break:normal;border:0px;display:inline;overflow:visible;line-height:inherit">2020-03-03T14:20:48     CRITICAL    Qt : QSqlDatabase: QOCISPATIAL driver not loaded
2020-03-03T14:20:48     CRITICAL    Qt : QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7
</code></pre><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">There is also other erros on startup:</p><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.9px;margin-top:0px;margin-bottom:16px;padding:16px;overflow:auto;line-height:1.45;background-color:rgb(246,248,250);border-radius:3px;color:rgb(36,41,46)"><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.9px;padding:0px;margin:0px;background:initial;border-radius:3px;word-break:normal;border:0px;display:inline;overflow:visible;line-height:inherit">2020-03-03T17:33:58     WARNING    Falha ao carregar D:/workspace/github/QGIS/ms-windows/osgeo4w/build-qgis-test-x86_64/output/plugins/RelWithDebInfo/grassplugin7.dll (Razão: Cannot load library D:\workspace\github\QGIS\ms-windows\osgeo4w\build-qgis-test-x86_64\output\plugins\RelWithDebInfo\grassplugin7.dll: Não foi possível encontrar o módulo especificado.)
2020-03-03T17:33:58     WARNING    Falha ao carregar D:/workspace/github/QGIS/ms-windows/osgeo4w/build-qgis-test-x86_64/output/plugins/RelWithDebInfo/grassprovider7.dll (Razão: Cannot load library D:\workspace\github\QGIS\ms-windows\osgeo4w\build-qgis-test-x86_64\output\plugins\RelWithDebInfo\grassprovider7.dll: Não foi possível encontrar o módulo especificado.)
2020-03-03T17:33:59     WARNING    Falha ao carregar D:/workspace/github/QGIS/ms-windows/osgeo4w/build-qgis-test-x86_64/output/plugins/RelWithDebInfo/grassrasterprovider7.dll (Razão: Cannot load library D:\workspace\github\QGIS\ms-windows\osgeo4w\build-qgis-test-x86_64\output\plugins\RelWithDebInfo\grassrasterprovider7.dll: Não foi possível encontrar o módulo especificado.)
2020-03-03T17:33:59     WARNING    Falha ao carregar D:/workspace/github/QGIS/ms-windows/osgeo4w/build-qgis-test-x86_64/output/plugins/RelWithDebInfo/qgisgrass7.dll (Razão: Cannot load library D:\workspace\github\QGIS\ms-windows\osgeo4w\build-qgis-test-x86_64\output\plugins\RelWithDebInfo\qgisgrass7.dll: Não foi possível encontrar o módulo especificado.)

2020-03-03T17:33:59     WARNING    Erro Python : Impossível carregar complemento 'MetaSearch' Devido a um erro ao chamar o método Class Factory(). Consulte o registro de mensagens (Erro Python) para mais detalhes.
2020-03-03T17:33:59     WARNING    Complemento processing : O complemento será desabilitado porque ele fechou o QGIS durante seu último início. Por favor, reporte um erro e reabilite o complemento quando o problema estiver resolvido.
2020-03-03T17:33:59     CRITICAL    Qt : QString::arg: 9 argument(s) missing in O estado do aplicativo: 
             QGIS_PREFIX_PATH env var: ??% 1 
             Prefixo: ??% 2 
             Caminho do Complemento: ??% 3 
             Caminho de Dados Pacote: ?% 4 
             Ativo Theme Name: ?% 5 
             Caminho Tema ativo: ?% 6 
             Tema Padr�o Caminho: ?% 7 
             SVG caminhos de pesquisa: ?% 8 
             Usu�rio DB Path: ?% 9 
             Auth DB Path: ?% 10
</code></pre><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">I used <a href="http://htmlpreview.github.io/?https://raw.github.com/qgis/QGIS/master/doc/INSTALL.html" rel="nofollow" style="box-sizing:border-box;background-color:initial;color:rgb(3,102,214);text-decoration-line:none">these</a> instructions. And also looked <a href="https://github.com/qgis/QGIS/blob/master/ms-windows/osgeo4w/package-nightly.cmd" style="box-sizing:border-box;background-color:initial;color:rgb(3,102,214);text-decoration-line:none">here</a>. But no luck.</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">Now I'm trying different oracle parameters when creating the vs solution.</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">I don't have Oracle Client installed at my machine. But if you go to their <a href="https://www.oracle.com/database/technologies/instant-client/winx64-64-downloads.html" rel="nofollow" style="box-sizing:border-box;background-color:initial;color:rgb(3,102,214);text-decoration-line:none">website</a>, you can see they now provide the OCI dlls without any installation at all.</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">At my last attempt, I download the latest version and tried to generate the visual studio solution with the following parameters in <em style="box-sizing:border-box">msvc-env.bat</em>:</p><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.9px;margin-top:0px;margin-bottom:16px;padding:16px;overflow:auto;line-height:1.45;background-color:rgb(246,248,250);border-radius:3px;color:rgb(36,41,46)"><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.9px;padding:0px;margin:0px;background:initial;border-radius:3px;word-break:normal;border:0px;display:inline;overflow:visible;line-height:inherit">path %PATH%;D:\Ferramentas\oracle_instant_client\instantclient_19_5
set OCI_INCLUDEDIR=D:\Ferramentas\oracle_instant_client\instantclient_19_5
set OCI_INCDIR=D:\Ferramentas\oracle_instant_client\instantclient_19_5
set OCI_LIBDIR=D:\Ferramentas\oracle_instant_client\instantclient_19_5
set ORACLE_HOME=D:\Ferramentas\oracle_instant_client\instantclient_19_5
set ORACLE_INCLUDEDIR=D:\Ferramentas\oracle_instant_client\instantclient_19_5
set ORACLE_LIBDIR=D:\Ferramentas\oracle_instant_client\instantclient_19_5
</code></pre><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">Also in <em style="box-sizing:border-box">qgis\CMakeList.txt</em> I did this edit:</p><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.9px;margin-top:0px;margin-bottom:16px;padding:16px;overflow:auto;line-height:1.45;background-color:rgb(246,248,250);border-radius:3px;color:rgb(36,41,46)"><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.9px;padding:0px;margin:0px;background:initial;border-radius:3px;word-break:normal;border:0px;display:inline;overflow:visible;line-height:inherit">IF(WITH_ORACLE)
    SET(HAVE_ORACLE TRUE)
    SET(ORACLE_INCLUDEDIR ${ORACLE_INCLUDEDIR} CACHE STRING "Path to OCI headers")
    SET(ORACLE_LIBDIR ${ORACLE_LIBDIR} CACHE STRING "Path to OCI libraries")
  ENDIF(WITH_ORACLE)
</code></pre><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">To be able to compile and run the program in visual studio, I had to copy all qt5 dlls, proj_7_1.dll and gdal301.dll to the output diretocry.</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">I also noticed that <code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.9px;padding:0.2em 0.4em;margin:0px;background-color:rgba(27,31,35,0.05);border-radius:3px">\OSGeo4W\apps\Qt5\plugins\sqldrivers</code> does not have the OCI driver.</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">Anyway, can someone point me exactly what I have to do to build qgis in windows with oracle support? I need to fix <a href="https://github.com/qgis/QGIS/issues/24539" style="box-sizing:border-box;background-color:initial;color:rgb(3,102,214);text-decoration-line:none">this issue</a></p><p style="box-sizing:border-box;margin-top:0px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px;margin-bottom:0px">Thanks</p></div>