Results 1 to 4 of 4

Thread: where and How to add occi libraries in qt 4.8 for windows operating system

  1. #1
    Join Date
    Feb 2012
    Posts
    44
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Post where and How to add occi libraries in qt 4.8 for windows operating system

    I don't have QOCI Drivers loaded in Qt 4.8 SDk so want to write manually occi functionality, but don't know how to add libraries please help me..

    some how i managed upto some level like adding parameters to LIBS and INCLUDE in .pro file i.e

    LIBS += -Bdynamic -lm -I "D:/Oracle/product/10.1.0/Db_1/OCI/lib"
    INCLUDEPATH += D:/Oracle/product/10.1.0/Db_1/OCI/include

    Here after adding the above args. and compiling, now i am getting undefined reference errors like

    debug/CDBHandler.o:D:\DBConnection\ConnectMAP-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug/../ConnectMAP/CDBHandler.cpp:33: undefined reference to `oracle::occi::Environment::createEnvironment(orac le::occi::Environment::Mode, void*, void* (*)(void*, unsigned int), void* (*)(void*, void*, unsigned int), void (*)(void*, void*))'
    debug/CDBHandler.o:D:\DBConnection\ConnectMAP-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug/../ConnectMAP/CDBHandler.cpp:48: undefined reference to `oracle::occi::SQLException::SQLException(oracle:: occi::SQLException const&)'
    debug/CDBHandler.o:D:\DBConnection\ConnectMAP-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug/../ConnectMAP/CDBHandler.cpp:50: undefined reference to `oracle::occi::SQLException::getErrorCode() const'
    Last edited by narlapavan; 13th December 2013 at 06:24.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,734
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: where and How to add occi libraries in qt 4.8 for windows operating system

    Your LIBS variable is broken
    qmake Project Files: Declaring Other Libraries

  3. #3
    Join Date
    Feb 2012
    Posts
    44
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: where and How to add occi libraries in qt 4.8 for windows operating system

    i tried same code in another system having oracle 10g i am getting same errors..

    i am sharing my .pro file

    QT += core gui

    TARGET = ConnectMAP
    TEMPLATE = app


    SOURCES += main.cpp\
    cdbconnect.cpp \
    CDBHandler.cpp

    HEADERS += cdbconnect.h \
    CDBHandler.h

    FORMS += cdbconnect.ui

    LIBS += -Bdynamic -lm -L"D:/Oracle/product/10.1.0/Db_1/OCI/lib" -L"D:/Oracle/product/10.1.0/Db_1/BIN" -L "D:/Oracle/" -loci

    INCLUDEPATH += -I "D:/Oracle/product/10.1.0/Db_1/OCI/include" \
    -I "D:/Oracle/product/10.1.0/Db_1/RDBMS/public" \
    -I "D:/Oracle/product/10.1.0/Db_1/OCI/lib"

    please correct me if anything found wrong in .pro file

  4. #4
    Join Date
    Feb 2012
    Posts
    44
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: where and How to add occi libraries in qt 4.8 for windows operating system

    Quote Originally Posted by ChrisW67 View Post
    i tried same code in another system having oracle 10g i am getting same errors..

    i am sharing my .pro file

    QT += core gui

    TARGET = ConnectMAP
    TEMPLATE = app


    SOURCES += main.cpp\
    cdbconnect.cpp \
    CDBHandler.cpp

    HEADERS += cdbconnect.h \
    CDBHandler.h

    FORMS += cdbconnect.ui

    LIBS += -Bdynamic -lm -L"D:/Oracle/product/10.1.0/Db_1/OCI/lib" -L"D:/Oracle/product/10.1.0/Db_1/BIN" -L "D:/Oracle/" -loci

    INCLUDEPATH += -I "D:/Oracle/product/10.1.0/Db_1/OCI/include" \
    -I "D:/Oracle/product/10.1.0/Db_1/RDBMS/public" \
    -I "D:/Oracle/product/10.1.0/Db_1/OCI/lib"

    please correct me if anything found wrong in .pro file

Similar Threads

  1. Replies: 8
    Last Post: 21st March 2011, 12:40
  2. Locating a driver on the operating system
    By schall_l in forum Qt Programming
    Replies: 2
    Last Post: 15th July 2008, 09:19
  3. QMainWindow in AIX operating system
    By Vani in forum Qt Programming
    Replies: 3
    Last Post: 14th June 2008, 19:50
  4. change operating system theme.
    By rajeshs in forum Qt Programming
    Replies: 2
    Last Post: 20th March 2008, 04:02
  5. How to know the operating system?
    By Dark_Tower in forum Newbie
    Replies: 4
    Last Post: 4th May 2006, 20:41

Tags for this Thread

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.