Closed naushadck closed 11 months ago
The following steps did not create the .dll file.
md build cd build cmake .. cmake --build .
The following steps worked for me.
But while use this in the test/production environment, it is asking for the dependent dll files (org.sw.demo.jpeg.dll. org.sw.demo.giff.dll, org.sw.demo.tiff.dll etc...)
Any idea how can we build the .dll library included with dependent dlls.
I got the solution from issue #375
Following steps worked for me
mkdir build && cd build cmake -DBUILD_SHARED_LIBS=1 -DSW_BUILD_SHARED_LIBS=0 .. cmake --build . --config release
Thanks to egorpugin
@egorpugin
Hi Egor,
I am looking at the README.html. In the section (3) Using cmake, starting at line 291, it says the default is to build shared libraries, and there is no discussion of dlls. Also no mention of DSW_BUILD_SHARED_LIBS.
Can you please add the relevant information from this issue?
Dan
Hi,
I've added the following comment there.
* To make a dynamic library (default) and STATIC (or builtin) dependencies:
cmake .. -DSW_BUILD_SHARED_LIBS=0
make
Thanks Egor. Closing because the issue is resolved.
Hello,
Building Leptonica in Windows 10 using cmake/Visual Studio 2022
Unable to build the same project in to .dll file.
Leptonica.lib is generated. How can i generate Leptonica.dll . Any special steps to be followed ?. Appreciate your help.