Background: Macromedia have released a flashSDK which provides some C++ code and some binaries that allow you to convert Flash SWF files into HTML containing the text and links. I am making an XS wrapper using their C++ code so that you can easily do the conversion from within Perl with the plan of releasing it on CPAN.
Essentially the framework is very simple. They provide a Swf2HtmlConverterStdio class that has a ConvertSwf2Htm method which takes an input and output stream.
At the moment all I am trying to do is create/destroy the Class object. It all compiles fine on Linux with g++ but with cl.exe on Win32 it chokes on the line with a link error LNK2019: unresolved external symbol....
The XS I am using at the moment is stripped right down to just this:
#include "swf2html_stdio.h" #ifdef __cplusplus extern "C" { #endif #include "EXTERN.h" #include "perl.h" #include "XSUB.h" #ifdef __cplusplus } #endif MODULE = Flash PACKAGE = Flash Swf2HtmlConverterStdio * Swf2HtmlConverterStdio::new() void Swf2HtmlConverterStdio::DESTROY()
You can browse the code at: http://tachyon.perlmonk.org/Flash/ or download a tar.gz that contains the whole thing from http://tachyon.perlmonk.org/flash.tar.gz
The flashSDK is in ./inc along with its HTML README. The win32 issue is in WIN32_CHOKE.txt I don't do much C++ but assume it is something fairly simple that is not being included.
Any suggestions welcome.
cheers
tachyon
In reply to C++ and XS compile issues on Win32 by tachyon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |