On Thu, 19 Jan 2012 17:25:44 -0600
"Timothy Pearson" <kb9vqf(a)pearsoncomputing.net> wrote:
Beat you to
the punch. :)
I might not be a crack developer, but I can troubleshoot with some
of the best. ;)
I know. :-)
You might not believe the cause of this entire
problem. Are you
ready for this?
Setting the $CPLUS_INCLUDE_PATH in the build environment prevents
pkg-config from running properly. The moment I commented out that
export command in my master script, the TQT_INCLUDE_DIRS internal
variable began populating automatically.
Okay, for the record: Woo-hoo!
Now, why does the $CPLUS_INCLUDE_PATH environment variable, or the
contents thereof, affect how pkg-config runs?
Second, should I be setting that environment variable?
Here is my normal setting for that variable:
CPLUS_INCLUDE_PATH: /usr/include/tqt:/usr/lib/qt3/include:/usr/include
Those locations are legitimate.
I set $CMAKE_INCLUDE_PATH to the same, but I did not start setting
that variable until recently. That is, this TQT_INCLUDE_DIRS
problem existed long before I started setting the
$CMAKE_INCLUDE_PATH variable. The $CPLUS_INCLUDE_PATH is the cause.
Ideas?
Darrell
Don't set CPLUS_INCLUDE_PATH?
Seriously, I'm not sure why you set that variable. I never heard of
it before, and usually the safest way to get includes added to the
compiler flags is via CXXFLAGS and CFLAGS.
I think he sets it because the Slackware
official Qt3 build scripts we
(I and Darrell) based ours on installs a profile script
in /etc/profile.d that sets CPLUS_INCLUDE_PATH. I don't know why
Slackware sets this variable but it has done it since at least 2003 and
still does today (in the Qt4 package).
If you have a specific reason for setting CPLUS_INCLUDE_PATH then
that is different.
Tim
---------------------------------------------------------------------
To unsubscribe, e-mail:
trinity-devel-unsubscribe(a)lists.pearsoncomputing.net For additional
commands, e-mail: trinity-devel-help(a)lists.pearsoncomputing.net Read
list messsages on the Web archive:
http://trinity-devel.pearsoncomputing.net/ Please remember not to
top-post:
http://trinity.pearsoncomputing.net/mailing_lists/#top-posting