How to package game with plugins right way?

I’ve spent few hours trying to package my game right way. Unfortunately, I’ve met some strange issues with it.

How to package own plugins the right way? I have plugin with custom actor component, that added to blueprint actor on my map. I’ve tested two variants:

A. Plugin added to game project and turned on. It can be used in editor now and it works as it should without packagin. But despite I can see its content among packaged files, the desired component doesn’t work in packaged game.

Is it expected behaviour of plugins system?

B. Plugin was added into “PublicDependencies” of the game project. It works okay now while game is packaged in Development mode, but when I’m trying to build the game in Shipping mode I get:

MainFrameActions: Packaging (Windows): UnrealBuildTool: VaOceanShaders.cpp
MainFrameActions: Packaging (Windows): UnrealBuildTool: D:\WorkProjects\SeaCraft\Plugins\VaOcean\Source\VaOceanPlugin\Public\IVaOceanPlugin.h(12) : error C2143: syntax error : missing ';' before '<class-head>'
MainFrameActions: Packaging (Windows): UnrealBuildTool: D:\WorkProjects\SeaCraft\Plugins\VaOcean\Source\VaOceanPlugin\Public\IVaOceanPlugin.h(12) : error C2143: syntax error : missing ';' before '<class-head>'D:\WorkProjects\SeaCraft\Plugins\VaOcean\Source\VaOceanPlugin\Public\IVaOceanPlugin.h(
MainFrameActions: Packaging (Windows): 12) : error C2143: syntax error : missing ';' before '<class-head>'
MainFrameActions: Packaging (Windows): UnrealBuildTool: 
MainFrameActions: Packaging (Windows): UnrealBuildTool: D:\WorkProjects\SeaCraft\Plugins\VaOcean\Source\VaOceanPlugin\Public\IVaOceanPlugin.h(12) : error C2143: syntax error : missing ';' before '<class-head>'
MainFrameActions: Packaging (Windows): UnrealBuildTool: ShipVehicle.cpp

What can be a problem with it?

P.S. - Also I’ve found that content from plugin won’t work in packaged game. I know that this feature is not fully implemented yet, so JFYI.

Solved. It was ‘;’ missing after DECLARE_LOG_CATEGORY_EXTERN - it failed the shipping build.

i can problem of plugin VaOcean:

9588-sin+título.jpg

how solved this problem of VaOcean plugin for unreal engine 4.2 ?

also when i open the option of terrain blueprint, unrealengine crashed, closes, how to solve?