configuration for my .pro (and collect2: ld returned 1 exit status)
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:
Code:
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:
Code:
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)
Re: configuration for my .pro (and collect2: ld returned 1 exit status)
maybe :
LIBS + = -L/usr/local/qwt-6.0.2-svn/lib
it seems a problem of link
Re: configuration for my .pro (and collect2: ld returned 1 exit status)
Are you guys deliberately inserting extraneous spaces into your [code][/code] 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):
Code:
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.
Re: configuration for my .pro (and collect2: ld returned 1 exit status)
thank for your help
Quote:
Originally Posted by
nosleduc
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
Quote:
Originally Posted by
ChrisW67
Are you guys deliberately inserting extraneous spaces into your [code][/code] blocks or is the forum doing that for you?
it's the forum which insert spaces
Quote:
Originally Posted by
ChrisW67
Just like on Windows, the LIBS variable specifies search paths for libraries (-L) and the names of the required libraries (-l):
Code:
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
Re: configuration for my .pro (and collect2: ld returned 1 exit status)
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?
Re: configuration for my .pro (and collect2: ld returned 1 exit status)
Quote:
Originally Posted by
21did21
it's the forum which insert spaces
No, it's not:
Code:
DEPENDPATH += /home/first name/myproject
Re: configuration for my .pro (and collect2: ld returned 1 exit status)
When you have installed Qwt properly this line does all what you need.
Uwe
Re: configuration for my .pro (and collect2: ld returned 1 exit status)
ok thanks, i will try to re-install
see you later