SoftwareNetwork / sw

Software Manager. Build System, Build System Generator and Package Manager. C/C++ and other languages. Tools and libraries for Software Management.
https://software-network.org
Other
118 stars 24 forks source link

compile leptonica #44

Closed ghost closed 4 years ago

ghost commented 4 years ago

How to build static leptonica .lib which will no require other .libs or .dlls? If i build with sw build -static -platform Win32 then I got link errors after compiling in my project image

ghost commented 4 years ago

If I build with sw build -static -platform Win32 -win-mt then I got only this errors image

egorpugin commented 4 years ago

Try to add -static-dependencies.

ghost commented 4 years ago

Try to add -static-dependencies.

.lib does not build

egorpugin commented 4 years ago

How to build static leptonica .lib which will no require other .libs or .dlls?

Oh, I see. Seems you need something like this https://stackoverflow.com/questions/13492365/how-to-merge-two-windows-vc-static-library-into-one

There's no such function in sw yet.

egorpugin commented 4 years ago

And I'm not sure if any build system gives you ability to do this.

ghost commented 4 years ago

Okay. I included to my project all .libs which leptonica needs but i cannot find jp2kio

image

egorpugin commented 4 years ago

Did you check https://software-network.org/org.sw.demo.danbloomberg.leptonica/dependencies ?

ghost commented 4 years ago

Yes. Seems like its jp2kio.c from leptonica source code but i dont know how to include it to my project

egorpugin commented 4 years ago

What symbol is missing? You cut them.

egorpugin commented 4 years ago

opj is openjpeg library. https://software-network.org/org.sw.demo.uclouvain.openjpeg.openjp2

ghost commented 4 years ago

Yes, thanks!