View Full Version : getting errors ,while executing time
yuvaraj.yadav
16th April 2009, 10:04
Hi
I am getting error while executing the Qt application on mac
error: collect2: ld returned 1 exit status
I don't why it is giving lik this , and i am new to Qt...
In my project , i haved used the pjsip .
I added the pjproject folder to my project folder
In make file , i included the INCLUDEPATH and LIBS
Please suggest me to clear this errors...
Here i added my make file code
TEMPLATE = app
TARGET = QjSimple
QT += core \
gui \
xml \
network
HEADERS += buddy.h \
PjCallback.h \
accountdialog.h \
debugdialog.h \
addbuddydialog.h \
imwidget.h \
qjsimple.h
SOURCES += buddy.cpp \
PjCallback.cpp \
accountdialog.cpp \
debugdialog.cpp \
addbuddydialog.cpp \
imwidget.cpp \
main.cpp \
qjsimple.cpp
FORMS += accountdialog.ui \
debugdialog.ui \
addbuddydialog.ui \
imwidget.ui \
qjsimple.ui
RESOURCES += icons.qrc
#win32-g++:RC_FILE = appicon.rc
INCLUDEPATH += ../pjproject-1.1/pjlib/include \
../pjproject-1.1/pjlib-util/include \
../pjproject-1.1/pjnath/include \
../pjproject-1.1/pjmedia/include \
../pjproject-1.1/pjsip/include
LIBS += ../pjproject-1.1/pjlib/lib \
../pjproject-1.1/pjlib-util/lib \
../pjproject-1.1/pjnath/lib \
../pjproject-1.1/pjmedia/lib \
../pjproject-1.1/pjsip/lib \
../pjproject-1.1/third_party/lib
wysota
16th April 2009, 10:33
What is the first error message you get? Your LIBS variable seems invalid - it should contain "-L" and "-l" entries (based on the contents I'd say these should all be -L entries and you're missing -l entries for the actual libraries that are to be linked).
yuvaraj.yadav
16th April 2009, 10:44
thanks for your reply ......
I did according to you ....
Stll i am getting same errors
lyuts
16th April 2009, 11:31
Show us complete output.
yuvaraj.yadav
16th April 2009, 12:45
Hi
I am getting only one error....
That is
:-1: error: collect2: ld returned 1 exit status
Already i have posted my make file ......
To answer my problem ,here i give the soure code link
http://ipcom.at
In there download the Qjsimple source code .......
I too downloaded there only . IN make file ,i changed the includepath, and libs according to my application
please suggest me to solve this issue..
Thanks
Yuvaraj R
wysota
17th April 2009, 09:20
Already i have posted my make file ......
I already told you it's incorrect and suggested how to correct it. Post the fixed contents and the first error message you get. The one you posted is the last one not the first one.
yuvaraj.yadav
17th April 2009, 14:38
Hi i have done ,whatever you told ,i included the include path and libs
Here i have mentioned in code , whatever i have changed in make file
TEMPLATE = app
TARGET = QjSimple
QT += core \
gui \
xml \
network
HEADERS += buddy.h \
PjCallback.h \
accountdialog.h \
debugdialog.h \
addbuddydialog.h \
imwidget.h \
qjsimple.h
SOURCES += buddy.cpp \
PjCallback.cpp \
accountdialog.cpp \
debugdialog.cpp \
addbuddydialog.cpp \
imwidget.cpp \
main.cpp \
qjsimple.cpp
FORMS += accountdialog.ui \
debugdialog.ui \
addbuddydialog.ui \
imwidget.ui \
qjsimple.ui
RESOURCES += icons.qrc
#win32-g++:RC_FILE = appicon.rc
INCLUDEPATH += ../pjproject-1.1/pjlib/include \
../pjproject-1.1/pjlib-util/include \
../pjproject-1.1/pjnath/include \
../pjproject-1.1/pjmedia/include \
../pjproject-1.1/pjsip/include
LIBS += -L ../pjproject-1.1/pjlib/lib \
-L ../pjproject-1.1/pjlib-util/lib \
-L../pjproject-1.1/pjnath/lib \
-L../pjproject-1.1/pjmedia/lib \
-L../pjproject-1.1/pjsip/lib \
-L../pjproject-1.1/third_party/lib
LIBS += -llibpj-i386-apple-darwin9.6.0.a
LIBS += -llibpjlib-until-i386-apple-darwin9.6.0.a
LIBS += -llibpjmedia-i386-apple-darwin9.6.0.a
LIBS += -llibpjmedia-i386-apple-darwin9.6.0.a
LIBS += -llibpjsip-i386-apple-darwin9.6.0.a
I am getting error like " collect2: ld returned 1 exit status"
please help me
Thanks
Yuvaraj R
wysota
17th April 2009, 17:10
Can you compress and post (using an attachment) a complete compilation log?
faldzip
17th April 2009, 18:41
Dude, if you are using Qt Creator then show us everything what you get in Compile output window (Alt+4). If not, then just open console, get into the project directory and type:
qmake
and then (if you are using MinGw):
mingw32-make
or
make
on linux.
Then just show us all the output which you can see on the screen. I think there are more lines of text then just "collect2: ld returned 1 exit status", am I right? ;>
yuvaraj.yadav
18th April 2009, 05:21
hi
Here i have attached my compile log details in document
wysota
18th April 2009, 21:58
Next time please attach a text file, not an open office document.
Here are your errors:
/bin/sh: -c: line 0: unexpected EOF while looking for matching ``'
/bin/sh: -c: line 1: syntax error: unexpected end of file
There is a stray reverse apostrophe after "-llibpjsip-simple-i386-apple-darwin9.6.0.a" in the compilation line. If you delete it, there is a chance the compilation will complete successfully.
yuvaraj.yadav
20th April 2009, 05:40
Hi
Thanks for your reply...
I couldn't able to find that path
bin/sh: -c: line 0: unexpected EOF while looking for matching ``'
/bin/sh: -c: line 1: syntax error: unexpected end of file
how can i clear this errors.
Thanks
Yuvaraj R
wysota
23rd April 2009, 20:04
I don't really know what to answer you. Your project file contains a reverse apostrophe which shouldn't be there. Remove it. Use the find tool from any text editor if you can't spot it yourself.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.