Results 1 to 5 of 5

Thread: Starting all over

  1. #1
    Join Date
    Jan 2012
    Location
    Argentina
    Posts
    167
    Thanks
    33
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Starting all over

    Hi everyone, long time no see...

    im having the same problems i had before trying to load the OCI driver...when doing mingw32-make as the documentation of Qt indicates, i get the following error:

    C:\QtSDK\QtSources\4.8.1\src\plugins\sqldrivers\oc i>mingw32-make
    mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory `C:/QtSDK/QtSources/4.8.1/src/plugins/sqldri
    vers/oci'
    g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
    DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -
    DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_H
    AVE_SSE2 -DQT_THREAD_SUPPORT -I"c:\QtSDK\Desktop\Qt\4.8.1\mingw\include\QtCor e"
    -I"c:\QtSDK\Desktop\Qt\4.8.1\mingw\include\QtSql " -I"c:\QtSDK\Desktop\Qt\4.8.1\m
    ingw\include" -I"c:\QtSDK\Desktop\Qt\4.8.1\mingw\include\ActiveQt " -I"debug" -I"
    c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\default" -o debug\main.o main.cpp
    In file included from main.cpp:44:
    ../../../sql/drivers/oci/qsql_oci.h:47:46: error: QtSql/private/qsqlcachedresult
    _p.h: No such file or directory
    In file included from main.cpp:44:
    ../../../sql/drivers/oci/qsql_oci.h:68: error: expected class-name before '{' to
    ken
    ../../../sql/drivers/oci/qsql_oci.h:80: error: 'ValueCache' has not been declare
    d
    mingw32-make[1]: *** [debug/main.o] Error 1
    mingw32-make[1]: Leaving directory `C:/QtSDK/QtSources/4.8.1/src/plugins/sqldriv
    ers/oci'
    mingw32-make: *** [debug] Error 2
    Apparently it seems that mingw cannot load this driver...because i tried doing the same with QODBC and it worked perfectly

    I need to use the Oracle database thats why i need to load the OCI driver

    Thanks in advance



    ///--------------------------------------------------------------------------------
    I followed the steps from this thread, but now the errors im getting are from Visual C++:

    Runtime library-

    this application has requested the Runtime to terminate it in an unusual way.


    Is this because i didnt build the driver? i just copied the files from my last project because i could get past the error posted before.
    Last edited by KillGabio; 16th January 2013 at 18:34.

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

    Default Re: Starting all over

    Where did you get the Qt sources? Why is QtSql/private/qsqlcachedresult_p.h missing and what else is?
    Have you tried fetching the Qt 4.8.1 sources separately and using those?

  3. #3
    Join Date
    Jan 2012
    Location
    Argentina
    Posts
    167
    Thanks
    33
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Starting all over

    I used this file to install everything: "QtSdk-online-win-x86-v1_2_1" (the link was posted on another thread by wyso)

    Actually everything from this SKD works fine except when i try to generate the files of QOCI.

    Apparently they are not for a MinGW compiler, as i read so far. I fount the files from the previous project and i pasted them as said in the thread I posted earlier so it worked.

    I found the file you ask but apparently not where it should be. What do you mean by fetching the sources separately?

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

    Default Re: Starting all over

    The error you have is because the Qt plugin code is not finding another part of the Qt library code: no direct relationship to the Oracle code/library. There are a number of bugs related to "missing" private headers in the Qt bug tracker (including this one in particular). You might get past this by amending the include line in qsql_oci.h to find the local copy of the file, or by temporarily placing a copy under "c:\QtSDK\Desktop\Qt\4.8.1\mingw\include" in the correct location.

    I cannot vouch for the headers of the OCI library and their compatibility with MingW. The OCI library has a C-language interface and should work fine with MinGW, but you need to get that far first.

  5. The following user says thank you to ChrisW67 for this useful post:

    KillGabio (17th January 2013)

  6. #5
    Join Date
    Jan 2012
    Location
    Argentina
    Posts
    167
    Thanks
    33
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Starting all over

    occivc10_11202_win32_readme.pdf

    I followed all the steps from that pdf, plus the ones from the documentation of QT (http://doc.qt.io/qt-4.8/http://doc.qt.digia.com/qt/sql-driver.html#qoci) I dont understand why i cannot run mingw32-make without errors.

Similar Threads

  1. 0xc0000005 when starting exe
    By dAnieL_dE in forum Qt Programming
    Replies: 2
    Last Post: 11th January 2012, 23:18
  2. Starting with QML
    By MTK358 in forum Newbie
    Replies: 5
    Last Post: 3rd October 2010, 13:36
  3. Questions before starting with Qt
    By MartinM in forum Newbie
    Replies: 6
    Last Post: 24th April 2010, 09:49
  4. Application starting slowly.
    By aj2903 in forum Qt Programming
    Replies: 3
    Last Post: 30th December 2008, 11:19
  5. Error starting Qt
    By shamik in forum Installation and Deployment
    Replies: 1
    Last Post: 18th April 2007, 12:30

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.