I just did a test and the output from cmake for the librairies (and thus
for pkg_config) is the same in Linux and MINGW. Looks like in Linux, g++
automatically finds libraries that need to be linked but not MINGW.

I'll do more tests to find out why


On Thu, Dec 19, 2013 at 8:42 AM, Lu Wang <notifications@github.com> wrote:

> In CMakeLists.txt:
>
> > @@ -130,6 +130,10 @@ else()
> >      set(PDF2HTMLEX_LIBS ${PDF2HTMLEX_LIBS} ${PYTHON_LIBRARIES})
> >  endif()
> >
> > +# Add additional dependencies
> > +if(MINGW)
> > +set(PDF2HTMLEX_LIBS ${PDF2HTMLEX_LIBS} intl iconv gettextlib gettextpo gutils png jpeg openjpeg glib-2.0.dll z xml2 tiff gio-2.0.dll ltdl plibc.dll gunicode)
>
> No I don't see them.
> … <#1430b17f41a57580_>
> On Thu, Dec 19, 2013 at 9:40 PM, marcsanfacon <notifications@github.com>wrote:
> In CMakeLists.txt: > @@ -130,6 +130,10 @@ else() > set(PDF2HTMLEX_LIBS
> ${PDF2HTMLEX_LIBS} ${PYTHON_LIBRARIES}) > endif() > > +# Add additional
> dependencies > +if(MINGW) > +set(PDF2HTMLEX_LIBS ${PDF2HTMLEX_LIBS} intl
> iconv gettextlib gettextpo gutils png jpeg openjpeg glib-2.0.dll z xml2
> tiff gio-2.0.dll ltdl plibc.dll gunicode) I removed the complete lines from
> the file. I checked in the repo a minute ago and did not see the lines. You
> still see them?
> https://github.com/marcsanfacon/pdf2htmlEX/blob/master/CMakeLists.txt …
> <#1430b167475cd1ac_> On Thu, Dec 19, 2013 at 8:37 AM, Lu Wang <
> notifications@github.com> wrote: In CMakeLists.txt: > @@ -130,6 +130,10
> @@ else() > set(PDF2HTMLEX_LIBS ${PDF2HTMLEX_LIBS} ${PYTHON_LIBRARIES}) >
> endif() > > +# Add additional dependencies > +if(MINGW) >
> +set(PDF2HTMLEX_LIBS ${PDF2HTMLEX_LIBS} intl iconv gettextlib gettextpo
> gutils png jpeg openjpeg glib-2.0.dll z xml2 tiff gio-2.0.dll ltdl
> plibc.dll gunicode) By 'like this', I actually meant 'removing all of
> them', since you mentioned that it didn't link. And adding all of them
> might not link either if some of disabled by the user. Hoping that we can
> find a solution. — Reply to this email directly or view it on GitHub<
> https://github.com/coolwanglu/pdf2htmlEX/pull/254/files#r8468906> . —
> Reply to this email directly or view it on GitHub<
> https://github.com/coolwanglu/pdf2htmlEX/pull/254/files#r8469008> .
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/coolwanglu/pdf2htmlEX/pull/254/files#r8469052>
> .
>