Results 1 to 1 of 1

Thread: Problem building the OCI Plugin on Windows

  1. #1
    Join Date
    Jan 2011
    Qt products

    Thumbs up Problem building the OCI Plugin on Windows

    I did the mistake to copy the commands in a batch file and adjust it. Now after running the commands manually line by line, I obtained several file not found errors. Going to the mentioned directories step by step and calling qmake with the absolute path everything worked out

    Kind regards,

    Old question:

    I'm using Qt4.7.1 on windows and Visual Studio 2010. Today I tried to build the OCI Plugin as described in den manual, calling it from a Visual Studio 2010 command window, starting in the qt root directory:

    set INCLUDE=%INCLUDE%;c:\oracle\oci\include
    set LIB=%LIB%;c:\oracle\oci\lib\msvc
    cd %QTDIR%\src\plugins\sqldrivers\oci

    In the file I'm using QOCIDriver, I added the line
    #include "QtSql/QOCIDriver" and tried to construct an object of this type by calling
    new QOCIDriver().

    However, when building the projectin VS2010, I get a lot of linker errors like
    error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall QOCIDriver::QOCIDriver(class QObject *)" (__imp_??0QOCIDriver@@QAE@PAVQObject@@@Z)" in Funktion ""public: static class QSqlDatabase __cdecl Database:atabaseFactory::getDatabase(class QString,class QString)" (?getDatabase@DatabaseFactory@Database@@SA?AVQSqlD atabase@@VQString@@0@Z)".

    Searching for the reason, I looked up Makefile.Debug and found out that there should be a qsqloci4d.dll after processing. But it wasn't created at all.

    I'll be thankful for any help,
    Last edited by Harald Klingel; 18th January 2011 at 17:29. Reason: My own error

Similar Threads

  1. Yet another problem with qt static build on windows
    By Green in forum Qt Programming
    Replies: 1
    Last Post: 4th July 2010, 18:26
  2. Problem with Qt 4.5.1 and Windows 7 RC (Build 7100)
    By Paladin12 in forum Installation and Deployment
    Replies: 0
    Last Post: 13th May 2009, 09:58
  3. Custom Plugin problem to build
    By brevleq in forum Qt Programming
    Replies: 10
    Last Post: 21st December 2008, 17:41
  4. Problem to build poppler under Windows
    By Lykurg in forum Installation and Deployment
    Replies: 0
    Last Post: 12th November 2008, 17:35
  5. Qt 4.3.1 Windows Svg plugin problem
    By tzioboro in forum Installation and Deployment
    Replies: 7
    Last Post: 14th September 2007, 10:37


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.