Results 1 to 6 of 6

Thread: OCI w/ VS 2003 woes...

  1. #1
    Join Date
    Feb 2007
    Posts
    34
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default OCI w/ VS 2003 woes...

    Hi! I'm trying to get OCI working under Windows. I have a commercial license, and this stuff just works under Linux. In Windows, the OCI plugin is not recognized.

    I'm building my app with Visual Studio 2003. I Installed the appropriate Qt-4.2.0 and built the plugin using VS2003. The DLLs are in the same directory as all the others and the Oracle oci.dll is in my path too.

    Just what sort of dead chicken do I need to wave over my keyboard to make this work?

    Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: OCI w/ VS 2003 woes...

    Where did you place the plugin? In sqldrivers subdirectory?

    Qt might not want to load a plugin that has a different build key and this might happen when you compile the plugin with one compiler and Qt with other one. Also try Dependency Walker too see if there aren't any DLLs missing.

  3. #3
    Join Date
    Feb 2007
    Posts
    34
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: OCI w/ VS 2003 woes...

    Dependency walker showed it found everything once I placed the DLL in with the qt dlls (I have a directory for the application and the QT runtime dlls).

    I copied oll of the plugin directories into the same directory that the app is in. I foudn that didn't make a difference. It is getting the sql drivers (QSQLITE, QPSQL etc) from the 4.2.0 plugin directory (where everything was when I installed the prebuilt Qt distribution) I have the qsqloci.dll file in there.

    I had to build qsqloci.dll, I used the same version of VS as what the qt distribution I installed. VS-2003.

    BTW, the dependency walker is pretty spiff!

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: OCI w/ VS 2003 woes...

    Quote Originally Posted by croftj View Post
    I had to build qsqloci.dll, I used the same version of VS as what the qt distribution I installed. VS-2003.
    If all DLLs are in correct places, then problem *might* be in the build key and this would mean that you will have to recompile Qt. Since you have a commercial licence, you can ask Trolltech support --- they should know the correct solution.

  5. #5
    Join Date
    Feb 2007
    Posts
    34
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: OCI w/ VS 2003 woes...

    Thankyou! I will do this.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: OCI w/ VS 2003 woes...

    Maybe you forgot to flush the plugin cache after compiling the plugin?

Similar Threads

  1. MySql Stored Procedures Woes
    By stevey in forum Qt Programming
    Replies: 9
    Last Post: 19th October 2006, 12:58
  2. QGridLayout woes
    By para in forum Newbie
    Replies: 3
    Last Post: 16th October 2006, 22:41
  3. link error for visual studio.net 2003
    By berlin in forum Newbie
    Replies: 9
    Last Post: 29th September 2006, 16:06
  4. Plugin woes
    By stevey in forum Qt Programming
    Replies: 8
    Last Post: 24th July 2006, 01:30
  5. Visual Studio 2003 and .vcproj files
    By mbjerkne in forum General Discussion
    Replies: 2
    Last Post: 1st February 2006, 00:51

Bookmarks

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.