PDA

View Full Version : Collect2:Id Returned 1 exit status



c_srikanth1984
2nd April 2009, 11:13
I am getting this error "Collect2:Id Returned 1 exit status" when i build an application, i even tried to build example progrm but got the same error-"Collect2:Id Returned 1 exit status". I am using Qt SDK
Plz help me.
srikanth

talk2amulya
2nd April 2009, 11:47
could you post the errors before this?

c_srikanth1984
2nd April 2009, 11:57
This is the only error it is showing.
Even for the example project the only single line error.

talk2amulya
2nd April 2009, 12:06
ok..without the whole error log, its just like shooting in the dark..my guess would be applications you are trying to build are already running..kill them and build again..this has happened to many users earlier and might be in your case too..

c_srikanth1984
3rd April 2009, 08:00
Actually I am using Qt SDK 4.5, where i do my programming in Qt Creator, In Build Issues I am Getting

"Collect2:Id Returned 1 exit status"

and in Compile Output

/opt/qtsdk-2009.01/qt/lib/libQtGui.so:Undefined reference to 'FcFreeTypeQuearyFace'
make[1]: leaving directory'/root/part1'
Collect2:Id Returned 1 exit status
This is what i got in compile output.

faldzip
3rd April 2009, 09:43
do you have freetype and fontconfig libs installed?
Try (ubuntu, kubuntu):


sudo apt-get install libfreetype6
sudo apt-get install libfreetype6-dev
sudo apt-get install fontconfig
sudo apt-get install libfontconfig1
sudo apt-get install libfontconfig1-dev

c_srikanth1984
6th April 2009, 06:10
I am very new to Qt I dont know How check these libs r there or not.
I am Using
Operating System: Linux Enterprise Server 5.1
Qt Version: Qt SDK 4.5
ODE : Qt Creator

I downloaded the Open Source Qt SD from Qt Software site.
Where i got a bin file.
I have installed it in /opt folder
plz help me, have i followed the correct installation procedure

talk2amulya
6th April 2009, 09:08
just go to the linux terminal and implement the commands mentioned by faldzip

Crispylx
13th February 2010, 16:23
I too am very new to Qt. I'm getting the same error but am on a mac. Would anyone know how to find the freetype and fontconfig libs for Mac? Thank you

been_1990
14th February 2010, 05:58
Have you tried to clean/rebuild your application?Did the error show when you compiled it for the first time? Maybe if you backtrack your steps you can find out what is causing the error.