ComputeLibrary icon indicating copy to clipboard operation
ComputeLibrary copied to clipboard

Build Mobilenet as shared library

Open python292 opened this issue 7 years ago • 3 comments

Problem description: I want to build graph_mobilenetv2 as a shared library. So I have to make changes in Sconscript file. But I am not sure what changes I should do? Please help

python292 avatar Jan 02 '19 10:01 python292

Not exactly best practice, but you can see here where I use CMake to build an example.

The workflow there is explained in the minimum working example (MWE) README, but succinctly you could have ARMCL prebuilt, then build graph_mobilenetv2 using CMake, linking the ARMCL to it.

You can build shared libraries quite easily with CMake, see this Stack Overflow post if you haven't used that functionality before.

Maybe this will help, but I'm still finding my feet here too, so don't take what I say as gospel.

Wheest avatar Jan 02 '19 12:01 Wheest

As @Wheest suggested you don't need to alter the scons and I wouldn't suggest in doing so. You can create you own library, in other words copy the mobilenet_v2 code into a source and header file and build and link against ACL. Then you could use this anywhere else by linking against the newly created shared library.

Google has a lot of information on how do build a shared library. Hope this helps

GeorgeARM avatar Jan 08 '19 16:01 GeorgeARM

Closing for no activity, feel free to reopen otherwise

ManubARM avatar Jan 31 '19 17:01 ManubARM