View Full Version : connection database error: collect2: ld returned 1 exit status
edukasi
31st March 2014, 09:34
Hi All....
Please Help Me....
I was to traying connection MySQL database using Qt Creator 1.3.1, but i have the error message like this :
error: collect2: ld returned 1 exit status
I not understand for that message.
10207
10208
10209
10210
10211
Thanks
Note : My OS is Ubuntu 10.04
anda_skoa
31st March 2014, 09:51
You'll need to post the full error message.
The linker (ld) complained about something, usually a missing library.
Cheers,
_
edukasi
1st April 2014, 07:59
10216
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
anda_skoa
1st April 2014, 08:40
Click on the "Compile Output" tab to get the full error message.
Cheers,
_
edukasi
2nd April 2014, 05:38
When I open the "Compile output" tab, I have this messages
make: Entering directory `/home/user/Documents/sqlite/Sqlite_DB'
g++ -o Sqlite_DB main.o login.o moc_login.o -L/usr/lib -L/usr/X11R6/lib -lQtWebKit -lphonon -lQtMultimedia -lQtDBus -lQtTest -lQtScript -lQtScriptTools -lQtSvg -lQt3Support -lQtSql -lQtXmlPatterns -lQtXml -lQtOpenGL -lQtGui -lQtNetwork -lQtCore -lGLU -lGL -lpthread
/usr/bin/ld: cannot find -lphonon
collect2: ld returned 1 exit status
make: *** [Sqlite_DB] Error 1
make: Leaving directory `/home/sabix/Documents/sqlite/Sqlite_DB'
Exited with code 2.
Error while building project Sqlite_DB
When executing build step 'Make'
10225
And I open the Synaptic Package Manager for looking "phonon", I have this
10226
Thanks for All
Added after 18 minutes:
Thank You For All...
I has connected to my database...
10228
ChrisW67
2nd April 2014, 07:20
If your program does not require phonon then don't tell Qt to link it as your PRO file does now. Most of these:
QT += network opengl sql script scripttools svg webkit xml xmlpatterns phonon multimedia qt3support testlib dbus
are not needed for your program, only:
QT += sql
edukasi
2nd April 2014, 09:57
Ok..
I has deleted phonon.
Now, My program can connect to database.
Thank You All...
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.