How to create an IDL? If you want to install gecko-sdk in Hongqi 7, why is there no XPIDL?

Source: Internet
Author: User
How to create an IDL? If you want to install gecko-sdk in Hongqi 7, why is there no XPIDL? -- Linux general technology-Linux technology and application information. For details, refer to the following section. Xpidl
Content table

1. Compile xpidl
2. Use IDL
3. Resources
4. original document information

Xpidl is a tool used to generate information about the XPCOM interface based on the description file of the XPIDL interface. It will automatically generate:

* C ++ header file (. h), which contains a complete declaration of the C ++ interface with annotations.
* Java interface file (. java)
* The XPConnect typelib file (. xpt) defines the runtime type information of the dynamic calling of the XPCOM object through XPConnect.
* HTML format document (.html)

Compile xpidl

The implementation of xpidl is based on the libIDL compiler in the Gnome project. the glib library that the libIDL compiler depends on also comes from the gnome project. the Mozilla IDL compiler is a part of Mozilla's entire compilation process. We use it to generate the header file of the XPCOM component. for details about how to obtain libIDL and glib, see Build Documentation.

Unix: If you only want to compile xpidl itself, you only need to compile a few directories. after obtaining the mozilla source code, run 'configure '. Then, compile the following command in the dist/bin directory to translate xpidl:

Make-C config
Make-C nsprpub
Make-C xpcom/typelib

Use IDL

The xpidl build page describes how to add an IDL file to the compilation process of Mozilla. XPIDL can also be executed in the form of command lines on Unix and Windows:

Usage:./xpidl-m mode [-w] [-v] [-t version number]
[-I path] [-o basename |-e filename. ext] filename. idl
-A emit annotations to typelib
-W turn on warnings (recommended)
-V verbose mode (NYI)
-T create a typelib of a specific version number
-I add entry to start of include path for ''# include" nsIThing. idl"
-O use basename (e.g. ''/tmp/nsIThing) for output
-E use explicit output filename
-M specify output mode:
Header Generate C ++ header (. h)
Typelib Generate XPConnect typelib (. xpt)
Doc Generate HTML documentation (.html)
Java Generate Java interface (. java)
As mentioned above, how can I install this IDL in my system? Otherwise, the gecko sdk cannot be loaded. I just want to install an mplayer plugin, so I have encountered so many installation requests, the head is dead,
Why can't I proceed to the next step?
My installation is as follows:
[Root @ localhost home] # cd mplayerplug-in-3.55
[Root @ localhost mplayerplug-in-3.55] #./configure -- with-gecko-sdk =/home/gecko-sdk
Checking for g ++... g ++
Checking for C ++ compiler default output file name... a. out
Checking whether the C ++ compiler works... yes
Checking whether we are cross compiling... no
Checking for suffix of executables...
Checking for suffix of object files... o
Checking whether we are using the gnu c ++ compiler... yes
Checking whether g ++ accepts-g... yes
Checking for gcc... gcc
Checking whether we are using the gnu c compiler... yes
Checking whether gcc accepts-g... yes
Checking for gcc option to accept ISO c89... none needed
Checking for a BSD-compatible install.../usr/bin/install-c
Checking for gawk... gawk
Checking whether make sets $ (MAKE)... yes
Using new (v1.7 +) gecko-sdk
Checking for IDL... no
Configure: error: xpidl compiler not found

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.