Results 1 to 7 of 7

Thread: connection database error: collect2: ld returned 1 exit status

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: connection database error: collect2: ld returned 1 exit status

    You'll need to post the full error message.

    The linker (ld) complained about something, usually a missing library.

    Cheers,
    _

  2. #2
    Join Date
    Mar 2014
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: connection database error: collect2: ld returned 1 exit status

    Screenshot.jpg

    that is a screenshot of my program.

    I have installed
    - mysql-server-5
    - mysql-server-core-5
    - libqt4-sql-sqlite3
    - libqt4-sql
    - mysql-client-5
    - mysql-client-core-5
    - libqt4-sql-mysql
    - libmysqlclient-dev
    - g++
    o make
    o libglib2.0-dev
    o libSM-dev
    o libxrender-dev
    o libfontconfig1-dev
    o libxext-dev
    o libfreetype6-dev
    o libx11-dev
    o libxcursor-dev
    o libxfixes-dev
    o libxft-dev
    o libxi-dev
    o libxrandr-dev
    Last edited by edukasi; 1st April 2014 at 09:04.

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: connection database error: collect2: ld returned 1 exit status

    Click on the "Compile Output" tab to get the full error message.

    Cheers,
    _

Similar Threads

  1. error: collect2: ld returned 1 exit status
    By Splatify in forum Newbie
    Replies: 2
    Last Post: 13th February 2011, 19:09
  2. Replies: 7
    Last Post: 11th February 2011, 00:35
  3. error: collect2: ld returned 1 exit status
    By srohit24 in forum Qt Programming
    Replies: 3
    Last Post: 1st December 2009, 07:32
  4. error: collect2: ld returned 1 exit status
    By nataly in forum Qt Programming
    Replies: 4
    Last Post: 13th October 2009, 14:39
  5. collect2: ld returned 1 exit status error
    By gmsk19 in forum Qt Tools
    Replies: 11
    Last Post: 25th July 2009, 03:05

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