[Qt-interest] Fwd: error while compiling a customized project
ami guru
dosto.walla at gmail.com
Tue Dec 2 10:33:34 CET 2008
Hello Paul,
Thanks it worked.
Now i have another issue.
The header files created inside the utils are not found by the main
function.
Giving the error of "No such file or directory"
Any hint?
There is another thing that i did not understand
*******************************************************'
The contents of a variable can be read by prepending the variable name with
$$. This can be used to assign the contents of one variable to another:
TEMP_SOURCES = $$SOURCES
*********************************************************
Where and how the value of SOURCES is defined?
Regards
Sajjad
---------- Forwarded message ----------
From: Paul Floyd <paulf at free.fr>
Date: Mon, Dec 1, 2008 at 3:42 PM
Subject: Re: [Qt-interest] error while compiling a customized project
To: qt-interest at trolltech.com
Quoting ami guru <dosto.walla at gmail.com>:
> Hello forum,
>
> I have two directories "utils" and "dataobjects" under the following
> directory with each of having their own
> project files.
>
> /home/sajjad/DesignPaternQtWay/libs
>
> These path is defined in the environment variable in the Ubunutu System
The
> LD_LIBRARY_PATH is defined as well.
LD_LIBRARY_PATH affects the runtime linker search path, but not the link
editor
search path. I recommend that you not use it unless you can possibly avoid
it.
> while compiling i am having the following error:
>
> ***********************'
> /usr/bin/ld: cannot find -lutils
> collect2: ld returned 1 exit status
> make[1]: *** [libdataobjects.so.1.0.0] Error 1
> make[1]: Leaving directory
> `/home/sajjad/QT/DesignPatternQtWay/libs/dataobjects'
> make: *** [sub-dataobjects-make_default] Error 2
>
> **********************
> It is saying that it is not finding the libutil.so
The message mentions -lutils, which would be libutuls.so
> The path has been set to /home/sajjad/DesignPaternQtWay/libs but is not
> looking into that
PATH is not used for the link editor search path either, only for executable
files.
You need to put -L link editor option before the -l option, and it should
work.
A+
Paul
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081202/7a65a864/attachment.html
More information about the Qt-interest-old
mailing list