I'm trying to compile the game on Ubuntu 10.04.

Currently stuck at linking CEGUI and UHC.
What I did for CEGUI:
cd ~/Development/jgge-read-only/Libraries/cegui_mk2/projects/premake
./premake --file cegui.lua --os linux --target gnu
make
Error:
/usr/bin/ld: cannot find -lfreetype_D
collect2: ld returned 1 exit status
make[1]: *** [../../../bin/libCEGUIBase_d.so] Error 1
make: *** [CEGUIBase] Error 2
For UHC:
cd ~/Development/jgge-read-only/Programming/UHC/build
cmake-gui ..
make
Error:
Linking CXX executable ../../out/UHC
/usr/bin/ld: cannot find -lCEGUIOgreRenderer_Static
collect2: ld returned 1 exit status
make[2]: *** [../out/UHC] Error 1
make[1]: *** [UHC/CMakeFiles/UHC.dir/all] Error 2
make: *** [all] Error 2
CMakeCache.txt:
# This is the CMakeCache file.
# For build in directory: ~/Development/jgge-read-only/Programming/UHC/build
# It was generated by CMake: /usr/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.
########################
# EXTERNAL cache entries
########################
//AES include directory
AES_INCLUDE:PATH=../../AES/include
//AES library directory
AES_LIB:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../AES/out
//Boost debug extension
BOOST_LIB_EXT_NAME_DEBUG:STRING=mt-gd
//Boost Release extension
BOOST_LIB_EXT_NAME_RELEASE:STRING=mt
//Boost prefix
BOOST_LIB_PREFIX_NAME:STRING=
//Boost Base Directory
BOOST_ROOT:PATH=../../../Libraries/boost-trunk
//Boost Stage Directory
BOOST_STAGE:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../../Libraries/boost-trunk/stage/lib
//Bullet Physics include directory
BULLET_BASE:PATH=../../../Libraries/bullet/src
//Bullet Physics Library Directory
BULLET_LIB:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../../Libraries/bullet/out
//Bzip2 include directory
BZ2LIB_INCLUDE:PATH=../../bzip2
//Bzip2 library directory
BZ2LIB_LIB:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../bzip2/out
//CEGUI Include Directory
CEGUI_INCLUDE:PATH=../../../Libraries/cegui_mk2/cegui/include
//CEGUI Library Directory
CEGUI_LIB:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../../Libraries/cegui_mk2/lib
//Cg include directory
CG_INCLUDE:PATH=../../../Libraries/cg/include
//Cg library directory
CG_LIB:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../../Libraries/Cg/lib
//Path to a program.
CMAKE_AR:FILEPATH=/usr/bin/ar
//Description: Choose the type of build, options are: None(CMAKE_CXX_FLAGS
// or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.
CMAKE_BUILD_TYPE:STRING=Release
//Enable/Disable color output during build.
CMAKE_COLOR_MAKEFILE:BOOL=ON
//CXX compiler.
CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++
//Flags used by the compiler during all build types.
CMAKE_CXX_FLAGS:STRING=
//Flags used by the compiler during debug builds.
CMAKE_CXX_FLAGS_DEBUG:STRING=-g
//Flags used by the compiler during release minsize builds.
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
//Flags used by the compiler during Release with Debug Info builds.
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g
//C compiler.
CMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc
//Flags used by the compiler during all build types.
CMAKE_C_FLAGS:STRING=
//Flags used by the compiler during debug builds.
CMAKE_C_FLAGS_DEBUG:STRING=-g
//Flags used by the compiler during release minsize builds.
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
//Flags used by the compiler during Release with Debug Info builds.
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g
//Flags used by the linker.
CMAKE_EXE_LINKER_FLAGS:STRING=
//Flags used by the linker during debug builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during release minsize builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during release builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during Release with Debug Info builds.
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=~/Development/jgge-read-only/Programming/UHC/out
//Path to a program.
CMAKE_LINKER:FILEPATH=/usr/bin/ld
//Path to a program.
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make
//Flags used by the linker during the creation of modules.
CMAKE_MODULE_LINKER_FLAGS:STRING=
//Flags used by the linker during debug builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during release minsize builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during release builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during Release with Debug Info builds.
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//Path to a program.
CMAKE_NM:FILEPATH=/usr/bin/nm
//Path to a program.
CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy
//Path to a program.
CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump
//Value Computed by CMake
CMAKE_PROJECT_NAME:STATIC=UHCProject
//Path to a program.
CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib
//Flags used by the linker during the creation of dll's.
CMAKE_SHARED_LINKER_FLAGS:STRING=
//Flags used by the linker during debug builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during release minsize builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during release builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during Release with Debug Info builds.
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=OFF
//Path to a program.
CMAKE_STRIP:FILEPATH=/usr/bin/strip
//If true, cmake will use relative paths in makefiles and projects.
CMAKE_USE_RELATIVE_PATHS:BOOL=OFF
//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make. This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=OFF
//Collision Handler Include Directory
COLLISION_HANDLER_INCLUDE:PATH=../../CollisionHandler/CollisionHandler/include
//Collision Handler Library Directory
COLLISION_HANDLER_LIB:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../CollisionHandler/out
//DebugAssist include directory
DEBUGASSIST_INCLUDE:PATH=../../DebugAssist/include
//DebugAssist library directory
DEBUGASSIST_LIB:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../DebugAssist/out
//Single output directory for building all executables.
EXECUTABLE_OUTPUT_PATH:PATH=~/Development/jgge-read-only/Programming/UHC/out
//Expat library directory
EXPAT_LIB:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../../Libraries/expat-2.0.1/win32/bin
//ffmpeg include directory
FFMPEG_INCLUDE:PATH=../../ffmpeg_noasm
//ffmpeg library directory
FFMPEG_LIB:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../ffmpeg_noasm
//Flite include directory
FLITE_INCLUDE:PATH=../../flite-1.3/include
//Flite library directory
FLITE_LIB:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../flite-1.3/out
//FreeALUT include directory
FREEALUT_INCLUDE:PATH=../../../Libraries/freealut-1.1.0-bin/include
//FreeALUT library directory
FREEALUT_LIB:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../../Libraries/freealut-1.1.0-bin/lib
//FreeImage library directory
FREEIMAGE_LIB:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../../Libraries/FreeImage/Dist
//Freetype library directory
FREETYPE_LIB:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../freetype-2.3.5/out
//JGGE base directory
JGGE_BASE:PATH=../../JGGE/JGGE
//JGGE library directory
JGGE_LIB:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../JGGE/out
//JGTL include Directory
JGTL_INCLUDE:PATH=../../JGTL/include
//Single output directory for building all libraries.
LIBRARY_OUTPUT_PATH:PATH=~/Development/jgge-read-only/Programming/UHC/out
//Ogre3d Include Directory
OGRE_INCLUDE:PATH=../../../Libraries/ogre/lib/include/OGRE
//Ogre3d Directory
OGRE_LIB:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../../Libraries/ogre/lib/lib
//OIS include directory
OIS_INCLUDE:PATH=../../../Libraries/ois/includes
//OIS Library directory
OIS_LIB:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../../Libraries/ois/lib64
//OpenAL include directory
OPENAL_INCLUDE:PATH=../../../Libraries/OpenAL_1.1_SDK/include
//OpenAL library directory
OPENAL_LIB:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../../Libraries/OpenAL_1.1_SDK/libs/Win32
//OSGAL include directory
OSGAL_INCLUDE:PATH=../../osgal-0.6.1/include
//OSGAL Library directory
OSGAL_LIB:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../osgal-0.6.1/out
//Pcre library directory
PCRE_LIB:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../../Libraries/pcre-7.9/out/lib
//RakNet include directory
RAKNET_INCLUDE:PATH=../../../Libraries/RakNet/Source
//RakNet library directory
RAKNET_LIB:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../../Libraries/RakNet/out
//Solar include directory
SOLAR_INCLUDE:PATH=../../Solar/include
//TinyXMLDLL include directory
TINYXMLDLL_INCLUDE:PATH=../../tinyxmldll/include
//TinyXMLDLL Debug Library Directory
TINYXMLDLL_LIB:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../tinyxmldll/out
//Value Computed by CMake
UHCProject_BINARY_DIR:STATIC=~/Development/jgge-read-only/Programming/UHC/build/UHC
//Value Computed by CMake
UHCProject_SOURCE_DIR:STATIC=~/Development/jgge-read-only/Programming/UHC/UHC
//Dependencies for target
UHC_pch_dephelp_LIB_DEPENDS:STATIC=
//zlib include Directory
ZLIB_INCLUDE:PATH=../../zlib
//zlib Library directory
ZLIB_LIB:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../zlib/out
//ZZip library directory
ZZIP_LIB:PATH=~/Development/jgge-read-only/Programming/UHC/UHC/../../zziplib-0.13.49/out
########################
# INTERNAL cache entries
########################
//ADVANCED property for variable: CMAKE_AR
CMAKE_AR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_BUILD_TOOL
CMAKE_BUILD_TOOL-ADVANCED:INTERNAL=1
//What is the target build tool cmake is generating for.
CMAKE_BUILD_TOOL:INTERNAL=/usr/bin/make
//This is the directory where this CMakeCache.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=~/Development/jgge-read-only/Programming/UHC/build
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=2
//Minor version of cmake used to create the current loaded cache
CMAKE_CACHE_MINOR_VERSION:INTERNAL=8
//Patch version of cmake used to create the current loaded cache
CMAKE_CACHE_PATCH_VERSION:INTERNAL=0
//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=/usr/bin/cmake
//Path to cpack program executable.
CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest
//ADVANCED property for variable: CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
CMAKE_CXX_COMPILER_WORKS:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_COMPILER
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
CMAKE_C_COMPILER_WORKS:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Result of TRY_COMPILE
CMAKE_DETERMINE_CXX_ABI_COMPILED:INTERNAL=TRUE
//Result of TRY_COMPILE
CMAKE_DETERMINE_C_ABI_COMPILED:INTERNAL=TRUE
//Path to cache edit program executable.
CMAKE_EDIT_COMMAND:INTERNAL=/usr/bin/cmake-gui
//Executable file format
CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Name of generator.
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
//Start directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=~/Development/jgge-read-only/Programming/UHC
//Install .so files without execute permission.
CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1
//ADVANCED property for variable: CMAKE_LINKER
CMAKE_LINKER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_NM
CMAKE_NM-ADVANCED:INTERNAL=1
//number of local generators
CMAKE_NUMBER_OF_LOCAL_GENERATORS:INTERNAL=2
//ADVANCED property for variable: CMAKE_OBJCOPY
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJDUMP
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RANLIB
CMAKE_RANLIB-ADVANCED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=/usr/share/cmake-2.8
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STRIP
CMAKE_STRIP-ADVANCED:INTERNAL=1
//Suppress Warnings that are meant for the author of the CMakeLists.txt
// files.
CMAKE_SUPPRESS_DEVELOPER_WARNINGS:INTERNAL=FALSE
//uname command
CMAKE_UNAME:INTERNAL=/bin/uname
//ADVANCED property for variable: CMAKE_USE_RELATIVE_PATHS
CMAKE_USE_RELATIVE_PATHS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
MYPROJ_RAN_ONCE:INTERNAL=1