Sam Lin於 2013年4月23日星期二UTC+8下午9時49分07秒寫道: > Hi, > > > > I downloaded the Gecko-sdk here. > > > > https://developer.mozilla.org/en-US/docs/Creating_XPCOM_Components/Setting_up_the_Gecko_SDK > > > > I hope this is okay for me to test my xpcom since it is another sdk named > XULRunner. > > > > I dont find any xpidl executable file in XULRunner sdk but I found it in this > sdk. However, it is obvious some differences between these two. > > > > However, going through the tutorial(How to build an XPCOM component in > Javascript) provided by Mozilla, when I tried to compile the Typelib, the > error occurred as the following: > > > > ~/Mozilla_x86/gecko-sdk/bin$ sudo ./xpidl -m typelib -w -v -I ../idl -e > HelloWorld.xpt HelloWorld.idl > > > > ./xpidl: error while loading shared libraries: libIDL-2.so.0: cannot open > shared object file: No such file or directory > > > > I tried to figure out the problem but this still confuses me. > > > > Two questions here: > > > > 1. How can I fix the problem addressed above? > > > > 2. Can I use Gecko-sdk instead of XULRunner-sdk if I just want to take > advantage of xpidl? > > > > > > thanks in advance.
To answer my questions myself, 1. You can replace xpidl by using pyxpidl instead. This works well and does exactly the same thing as xpidl. 2. It seems no reason to use Gecko-sdk(at least, I dont see one.). find two files named header.py and typelib.py in XULRunner-sdk. These two files can generate needed files for running xpcom. _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
