How can I compile the freetype-pl in the Ubuntu?

77 views
Skip to first unread message

尹泉

unread,
Jul 17, 2013, 9:37:16 PM7/17/13
to freet...@googlegroups.com
Dear All 
     I download the freetype-pl's code and compile in Ubuntu 12.04. But the compile is fail.
      

     I run cmake . then:

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found OpenGL: /usr/lib/libGL.so 
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
  Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-2.8/Modules/FindFreetype.cmake:83 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:67 (FIND_PACKAGE)
I don't know what I lack? Please help me check. Thanks a lot

Nicolas Rougier

unread,
Jul 18, 2013, 3:19:35 AM7/18/13
to freet...@googlegroups.com

You need to install the Freetype library.

Nicolas

--
You received this message because you are subscribed to the Google Groups "freetype-gl" group.
To unsubscribe from this group and stop receiving emails from it, send an email to freetype-gl...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

尹泉

unread,
Jul 18, 2013, 10:30:01 PM7/18/13
to freet...@googlegroups.com
Thanks, I already compiled for freetype when install FreeType library.
But I meet other problem:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GLUT_INCLUDE_DIR (ADVANCED)
   
Do you know what is this error?  Thanks a lot.

Quan

在 2013年7月18日星期四UTC+8下午3时19分35秒,Nicolas Rougier写道:

Nicolas Rougier

unread,
Jul 19, 2013, 4:21:21 AM7/19/13
to freet...@googlegroups.com

You must have the OpenGL and GLUT libraries installed as well. Did you check they're installed on your system ?

Nicolas
Reply all
Reply to author
Forward
0 new messages