The process is not completed, so I need some help fomr the community members. Please, fell free to collaborate:
2. Build it:
You should see a "Hello, World!" somewhere among other debug stuff output.
3. To generate the g++ compiler:
make cxxtest
4. Add the gcc and g++ to the PATH=<path_to_nestedvm>/upstream/install/bin:$PATH
B) Compile SWFTools by using the Nestedvm compiler.
--------------------------------------------------------------------------------
I would say that something like this should work:
but I got stuck with the zlib 3rd party library. I also built zlib by using the Nestedvm, but I'm unable to get it work together with SWFTools
(Well, I've not much idea nor C/C++ neither compilers)
C) (I never tried this). Invoke SWFTools from the Java class. I read how:
----------------------------------------------------------------------------------------------------------------------------------------------
1. Build the java version of pdf2swf tools from the mips version.
java -classpath <path_to_nestedvm>\build\;<path_to_nestedvm>\upstream\build\classgen\build\ org.ibex.nestedvm.Compiler -o
lessConstants -outfile org/swftools/PDF2SWF.class org.swftools.PDF2SWF <path to pdf2swf.mips>
2. Invoke
PDF2SWF.class from Java
=============================================
import org.sfwtools.PDF2SWF;
public class Test {
public static void main(String[] args) {
String[3] params = new String[3];
params[0] = "-T9";
params[1] = "/home/pablo/foo.pdf";
params[2] = "-o /home/panlo/foo.swf";
PDF2SWF converter = new PDF2SWF();
converter.run(params);
}
}
=============================================
Many thanks!
Pablo