Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8621631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:51:45+00:00 2026-06-12T06:51:45+00:00

I am working on writing an XPCOM component. I have my idl file, it

  • 0

I am working on writing an XPCOM component. I have my idl file, it is very simple, containing only the following:

#include "nsISupports.idl"

[scriptable, uuid(4ead-ba5c-49c9-beb2=64209c7699a)]
interface nsIPageSummary : nsISupports
{
    boolean saveSummary(in nsIDOMDocument document,
                        out unsigned long numLinks,
                        out unsigned long numImages);
};

I downloaded the xulrunner sdk and am trying to generate my headers via the following command, from the directory containing the above file (nsIPageSummary.idl):

~/xulrunner-sdk/sdk/bin/header.py –cachedir=~/xulrunner-sdk/idl/ -o nsIPageSummary.h nsIPageSummary.idl

When this runs, I get the following message:

$ ~/xulrunner-sdk/sdk/bin/header.py --cachedir=~/xulrunner-sdk/idl -o nsIPageSummary.h nsIPageSummary.idl 
Traceback (most recent call last):
  File "~/xulrunner/xulrunner-sdk/sdk/bin/header.py", line 497, in <module>
    idl.resolve(options.incdirs, p)
  File "~/xulrunner/xulrunner-sdk/sdk/bin/xpidl.py", line 285, in resolve
    p.resolve(self)
  File "~/xulrunner-sdk/sdk/bin/xpidl.py", line 255, in resolve
    raise IDLError("File '%s' not found" % self.filename, self.location)
xpidl.IDLError: error: File 'nsISupports.idl' not found, nsIPageSummary.idl line 1:0
#include "nsISupports.idl"

I have verified that the files exist in the above folder. I am using the MDN link (https://developer.mozilla.org/en-US/docs/XPIDL/pyxpidl) as a guide but it isn’t helping much. How do I use these tools?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:51:47+00:00Added an answer on June 12, 2026 at 6:51 am

    You should define ~/xulrunner-sdk/idl/ as your include path:

    ~/xulrunner-sdk/sdk/bin/header.py -I ~/xulrunner-sdk/idl/ ...
    

    The cache directory on the other hand should really be some temporary directory as the documentation suggests.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on writing a very simple client/server application as an excuse to start
So lately I have been working on writing a simple compiler to better understand
I am working on writing a file reader, and the idea is to have
I am working on writing the data into Excel sheet in c#. I have
I am working on writing a simple python application for linux (maemo). However I
I'm working on writing a simple Prolog interpreter in Java. How can I find
I'm working on writing to a file one user input on a textField. So
I'm new to PL/SQL and I'm working on writing a bulk insert. I have
Working on writing a custom property Handler for our custom file type in windows
I'm working on writing a drop-down menu with jQuery and I have a question.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.