Results 1 to 19 of 19

Thread: odbc/connection problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Posts
    33
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: odbc/connection problem

    Quote Originally Posted by jacek View Post
    OK, let me put it in another way: If you copy your application to C:\xxx then you have to place qsqlodbc4.dll in c:\xxx\sqldrivers directory.
    thanks!! i dont really understand it when you first post this reply... now i understand, and it works...

    Quote Originally Posted by jacek View Post
    If it compiles, then it's OK. You can add -qt-sql-odbc switch to get rid of the plugin.
    i will try this one now.. in cmd qt\...>configure <command> (right??)

    thanks again...

  2. #2
    Join Date
    Jan 2008
    Posts
    33
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: odbc/connection problem

    my app still require's the .dlls files even if i execute the -static in config??

    maybe my steps in making my program static are wrong can you please help me...

    my steps are:

    in cmd

    1. c:\qt\4.3.2>configure -static -release -no-exceptions

    2. c:\qt\4.3.2>mingw32-make sub-src

    3. c:\qt\4.3.2>configure -saveconfig

    is their something im missing?

    when i run this i think im just rerunning the configure.exe (i first run this for my libraries after the installation then now rerun it for -static -release)

    plz give me some guide to do this right...

  3. #3
    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: odbc/connection problem

    Quote Originally Posted by triperzz View Post
    my app still require's the .dlls files even if i execute the -static in config??
    Which ones? How do you compile your application?

  4. #4
    Join Date
    Jan 2008
    Posts
    33
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: odbc/connection problem

    Quote Originally Posted by jacek View Post
    Which ones?
    same .dlls and now with the Gui4.dll.

    Quote Originally Posted by jacek View Post
    How do you compile your application?
    i just compile it in QDevelop..
    i dont no if thats right?i compile it after i run the configure -static in cmd... i dont know how to -static my proj... plz help me how..

  5. #5
    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: odbc/connection problem

    Quote Originally Posted by triperzz View Post
    same .dlls and now with the Gui4.dll.
    Do you have Qt installed in more than one place?

    Quote Originally Posted by triperzz View Post
    i just compile it in QDevelop..
    i dont no if thats right?
    Make sure QDevelop is using qmake from the static Qt build.

  6. #6
    Join Date
    Jan 2008
    Posts
    33
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: odbc/connection problem

    Quote Originally Posted by jacek View Post
    Do you have Qt installed in more than one place?
    none, i just install qt and mingw.. plus I just save my project in desktop.

    Quote Originally Posted by jacek View Post
    Make sure QDevelop is using qmake from the static Qt build
    how?

  7. #7
    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: odbc/connection problem

    Quote Originally Posted by triperzz View Post
    how?
    I don't use QDevelop, but there should be some dialog that allows you to configure paths to all of the tools you need to compile your application. Since you have just one installation of Qt, the paths should be OK.

    What files do you have in c:\qt\4.3.2\lib folder? How big are the .a files?

  8. #8
    Join Date
    Jan 2008
    Posts
    33
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: odbc/connection problem

    Quote Originally Posted by jacek View Post
    What files do you have in c:\qt\4.3.2\lib folder? How big are the .a files?
    in my c:qt\4.3.2\lib have .a files, some are 1mb - less the biggest is 9 mb for ui...


    how can i make my app static? step by step plz i think im missing something...

  9. #9
    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: odbc/connection problem

    Quote Originally Posted by triperzz View Post
    in my c:qt\4.3.2\lib have .a files, some are 1mb - less the biggest is 9 mb for ui...
    So it seems that you have the right libraries.

    Have you tried rebuilding your project from scratch?

  10. #10
    Join Date
    Jan 2008
    Posts
    33
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: odbc/connection problem

    Quote Originally Posted by jacek View Post
    So it seems that you have the right libraries.

    Have you tried rebuilding your project from scratch?
    yes but its the same...

    im gonna try to reconfigure the qt in cmd

    and try to right this: c:/./..>configure -static -release -qt-sql-odbc -saveconfig

    and after long loading and reading......

    c:/././..> mingw32-make

    hope this work!..
    Last edited by triperzz; 22nd January 2008 at 13:40.

  11. #11
    Join Date
    Jan 2008
    Posts
    33
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Cool Re: odbc/connection problem

    i try the codes above...

    and at last it works...

    my app is now static even with sql..

Similar Threads

  1. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 10:35
  2. [QMYSQL] connection problem
    By chaos_theory in forum Installation and Deployment
    Replies: 5
    Last Post: 2nd July 2007, 09:52
  3. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 12:45
  4. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 21:36
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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
  •  
Qt is a trademark of The Qt Company.