Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

question about mozilla-nss.pc

2 views
Skip to first unread message

victor

unread,
Jan 6, 2009, 9:03:41 PM1/6/09
to
This is content of mozilla-nss.pc
-->
prefix=/usr/local
sdkdir=/usr/local/lib/xulrunner-devel-1.9.2a1pre
includedir=/usr/local/include/xulrunner-1.9.2a1pre

Name: NSS
Description: Mozilla Network Security Services
Version: 1.9.2a1pre
Requires: mozilla-nspr >= 4.7.4
Libs: -L${sdkdir}/lib -lnss3 -lnssutil3 -lsmime3 -lssl3 -lsoftokn3
Cflags: -I${includedir}/stable

What puzzled me is that "llnss3 -lnssutil3 -lsmime3 -lssl3 -lsoftokn3"
only exist in /usr/local/lib/xulrunner-1.9.2a1pre instead of ${sdkdir}/
lib,and there are nss-related static libs in ${sdkdir}/lib like
libnss.a libnssutil.a.
So if i want to build xul app, i must copy nss files to ${sdkdir}/
lib,or change .pc files.It's weird to do that,could somebody explain
it.

victor

unread,
Jan 6, 2009, 9:35:26 PM1/6/09
to
and what difference between .so files in xulrunner-devel-1.9.2a1pre/
lib and xulrunner-1.9.2a1pre

Sergey Yanovich

unread,
Jan 7, 2009, 2:38:50 AM1/7/09
to
On 2009-01-07 04:03 +0200, victor wrote:
> So if i want to build xul app, ...

If you are serious about using binary XPCOM components, you may think
about using Mozilla build system [1] to build them.

Required compile/link flags (which also include library dependencies and
their locations) change without warning. You'll be trying to hit a
moving target, if you use a custom Makefile, or even automake-based
build system.

1.
http://developer.mozilla.org/en/docs/Creating_XULRunner_Apps_with_the_Mozilla_Build_System

--
Sergey Yanovich

0 new messages