[Podofo-users] cmake error of podofo

2018-05-16 Thread 唐克坦
Hi All,

I encountered a cmake error when cmaking podofo. Checking CMakeError.log, I
found the last error message is
/usr/bin/ld: cannot find -lpthreads


It's very strange, as I do have pthread (also I'm confused by pthread vs
pthreads) installed. Can someone help me on this? Thanks a lot!

I have installed before compiling podofo:
- freetype-2.9 from source
- zlib1g-dev, libpng-dev from apt-get

Best,
Ketan
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users


Re: [Podofo-users] build error

2018-05-16 Thread zyx
On Tue, 2018-05-15 at 12:02 +0200, M. Froese wrote:
> cmake -G "Visual Studio 15 2017" .\src 
> -DCMAKE_INCLUDE_PATH="%FTDIR%\include;%JPEGDIR%\include;%JPEGDIR%;%ZL
> IBDIR%\include"
> 
> the command output shows:
> 
> C:\ecworks_mep\podofo-0.9.6-rc1>build.cmd

Hi,
I usually create a 'build' or '_build' directory in the checkout, cd
into it and then run cmake as this:

   $ cmake -G "xxx" ..

thus in your case you've the checkout at 
   C:\ecworks_mep\podofo-0.9.6-rc1
create the directory
   C:\ecworks_mep\podofo-0.9.6-rc1\_build
then:
   cd C:\ecworks_mep\podofo-0.9.6-rc1\_build
   cmake -G "xxx" ..
which tells cmake where the main CMakeLists.txt file is.

Note that there is an issue with the version on the Windows, the "-rc1" 
is not a number, as reported here [1], thus you might need to change
the version in the main CMakeLists.txt slightly.

Bye,
zyx

[1] https://sourceforge.net/p/podofo/mailman/message/36288545/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users