PDA

View Full Version : configuration for my .pro (and collect2: ld returned 1 exit status)



21did21
5th September 2011, 19:17
hello all,

I am doing a project on windows and when I do a qmake and then I compile all works very well

=> I switched to Linux and it does not work at all (even the QMake), in fact I had to give in. Pro ​​addresses of bookstores I used to clear all the error messages:


INCLUDEPATH + = / usr/local/qwt-6.0.2-svn/include
LIBS + = / usr/local/qwt-6.0.2-svn/lib


=> Now an error message appears:
collect2: ld returned 1 exit status

=> I searched the net and I understand the need to put in the. Pro ​​this:


DEPENDPATH + = / home / first name / myproject


[b] I also do this but it did not change [/ b]

can you tell me how please?
- I'm sure my code works because I just retested at the time on windows
- This type of error message may appear when it was already in our program running but it is not my case (I restarted the PC and started the program (1 time) to be sure)

nosleduc
5th September 2011, 22:17
maybe :

LIBS + = -L/usr/local/qwt-6.0.2-svn/lib

it seems a problem of link

ChrisW67
6th September 2011, 01:33
Are you guys deliberately inserting extraneous spaces into your
blocks or is the forum doing that for you?

Just like on Windows, the LIBS variable specifies search paths for libraries (-L) and the names of the required libraries (-l):


win32 {
INCLUDEPATH += C:/qwt-6.0.2-svn/include
LIBS += -LC:/qwt-6.0.2-svn/lib -lqwt6
}
unix {
INCLUDEPATH += /usr/local/qwt-6.0.2-svn/include
LIBS += -L/usr/local/qwt-6.0.2-svn/lib -lqwt6
}

Only the paths change.

21did21
6th September 2011, 19:07
thank for your help

maybe :
LIBS + = -L/usr/local/qwt-6.0.2-svn/lib
it seems a problem of link
when i put this "-L" a lot of error appears


Are you guys deliberately inserting extraneous spaces into your
blocks or is the forum doing that for you?


it's the forum which insert spaces



Just like on Windows, the LIBS variable specifies search paths for libraries (-L) and the names of the required libraries (-l):


unix {
INCLUDEPATH += /usr/local/qwt-6.0.2-svn/include
LIBS += -L/usr/local/qwt-6.0.2-svn/lib -lqwt6
}

Only the paths change.

it don't works

ChrisW67
7th September 2011, 00:23
Excellent, so we have "a lot of error appears" and "it don't works" but absolutely no attempt to describe why or how it doesn't work.

What do you expect us to do to help?

wysota
7th September 2011, 22:47
it's the forum which insert spaces
No, it's not:

DEPENDPATH += /home/first name/myproject

Uwe
12th September 2011, 07:10
CONFIG += qwt

When you have installed Qwt properly this line does all what you need.

Uwe

21did21
12th September 2011, 13:43
ok thanks, i will try to re-install

see you later