|« Installing a Quantel ISA Manager with DummyServers for test development||Mastering the Quantel IDL »|
Compiling the Quantel’s quentin.idlMay 11th, 2012
In order to drive the Quantel Broadcast system you need to compile the CORBA Interface Definition Language (IDL) file into a language of your choice. There are many CORBA IDL compilers out there: JacORB (Java), OmniORB (Python), TOA (C++), IIOP.NET (.NET) and there’s a more complete list on the Object Management Group’s web site.
- ZonePortal - main driver module, metadata, searching, space allocation, copying media, organising running orders, registering listeners.
- ThumbnailListener - generate thumbnails from video media.
- StateChangeListener - receive callback notifications on status changes.
- Server - control of playout and ingest storage servers.
- Port - object representing a video port.
- PortListener - callbacks relating to Port status changes.
This article just covers compiling the IDL into your language of choice: coding fun comes later! Due to the amount of IDL implementations there are this will have to be a cut down guide limited to the languages I deal with. I’ll start with JacORB for Java. I might do Python if there’s time.
- Go to the JacORB web site’s download page.
- At the time of writing this article the latest version was 3.0rc1.
- We are not interested in compiling JacORB from source so download the Binary version.
- Use 7-zip to uncompress it, so now we have a folder called
- Place the
Quentin.idlin the top level folder
- There isn’t an installer as such because the package assumes that you have downloaded the source code and are compiling from scratch. So to avoid downloading and installing all sorts of supplementary requirements we are just going to frig the file we need to make it work.
D:\blog\jacorb-3.0rc1\bin\idl.batand change the classpath:
- Almost there! Now we need to open a command window and go to the
D:\blogfolder where the
jacorb-3.0rc1\bin\idl.bat -all -genEnhanced -d src -i2jpackage Quentin:com.quantel.quentin Quentin.idl
- This will compile the IDL into the target language, creating a folder called
srcin the current directory which contains all the
com.quantel.quentinpackage source code.
- Now we have the source, we can compile.
- The Java compiler, is frankly a pain in a arse, so if anyone knows a better way of doing this then please leave a comment.
dir /s/b src\**.java > src.txt
javac -d bin -cp “jacorb-3.0rc1\lib\jacorb.jar” -sourcepath src -g @src.txt
- Finally we need to package all that compiled code into a Java Archive (Jar) for easier access.
jar -cf quentin.jar -C bin .
- This will produce a file called
quentin.jarin your current folder (
That’s it! We will use the quentin.jar in combination with the jacorb.jar to create our application to drive the Quantel Broadcast system.
Next lesson - obtaining the IOR and connecting to the ZonePortal.