Compilation error when building FB 2.0 plugin: Could not found file *.firewyrmhost_chrome.template and *.firewyrmhost_mozilla.template

41 views
Skip to first unread message

Thai Nguyen

unread,
Apr 6, 2017, 1:50:53 AM4/6/17
to firebreath-dev
Hi all.

I am trying to port a FB 1.7 plugin to the new 2.0 version. Since the project structure has been changed, I had to use the python script fbgen.py to generate new project folder and then add the old code. The plugin is just simply be able to call WIN_32 API to start another process and terminate that as well, so no drawing or anything fancy. We used boost::thread before on 1.7 but on this, I had to change to std::thread to make it work. So far, everything was good until I tried to compile the project. It would fail when building the wix installation file. I used the one that was generated from the python script and noticed that it added 2 lines after the script generation:
<File Id="Manifest_template_chrome" Source="$(var.BINSRC)\com.[pluginId].firewyrmhost_chrome.template" Name="com.[pluginId].firewyrmhost_chrome.json" />
<File Id="Manifest_template_mozilla" Source="$(var.BINSRC)\com.[pluginId].firewyrmhost_mozilla.template" Name="com.[pluginId].firewyrmhost_mozilla.json" />
where [pluginId] is the identifier that I put in during the script execution. The compilation error is:
Error LGHT0103 The system cannot find the file project/Release\com.[pluginId].firewyrmhost_chrome.template'.

So did I miss anything that could cause this and prevent me to build the plugin? My steps are as followed: Run fbgen.py -> Typed in info for the plugins -> Modify the code in the project -> Run prep2015 for the project to generate VS solution -> Open it with VS and build it.

Also, I have 2 more questions. First, is 2.0 version stable enough for use in production code? Second, I am having a weird issue that only happening on IE for the old plugin: As I mentioned early, the plugin has a function to start up another program and another function to terminate that. It works properly on FF, but on IE 11, when calling the termination function, by sending WM_DESTROY or WM_CLOSE using SendMessage to a window program, the other program would not be terminated properly as it is still running, despite the SendMessage returns 0 that indicates a success call. Debug showed the plugin ran the code just fine, but it could not terminate the other program properly on IE.

Thanks.

Richard Bateman

unread,
Apr 6, 2017, 11:45:27 AM4/6/17
to FireBreath Dev Group
Hi Thai,

I thought we'd fixed that in the 2.0 branch but I guess the fix
somehow didn't get into the fbgen file.

For those two files it should be looking in `$(var.TPLSRC)`, not
`$(var.BINSRC)`. Fix that and you should be good.

I have pushed the fix to the repo now as well.

Richard
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "firebreath-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to firebreath-de...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages