← Back to team overview

yade-dev team mailing list archive

Re: [Branch ~yade-pkg/yade/git-trunk] Rev 3705: Explicitly link ZLIB-library

 

Hi Anton,

I cloned yade from the scratch, but when running cmake, following error
ocure:

CMake Error at
/home/honzik/programs/cmake-2.8.10.2-Linux-i386/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97
(message):
  Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
Call Stack (most recent call first):

/home/honzik/programs/cmake-2.8.10.2-Linux-i386/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:291
(_FPHSA_FAILURE_MESSAGE)

/home/honzik/programs/cmake-2.8.10.2-Linux-i386/share/cmake-2.8/Modules/FindBZip2.cmake:47
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:81 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!

I am using ubuntu 12.04 and have bzip2 package insatlled with apt-get
install.. Do you know where the problem could be?
Thanks
Jan




2013/10/9 <noreply@xxxxxxxxxxxxx>

> ------------------------------------------------------------
> revno: 3705
> committer: Anton Gladky <gladky.anton@xxxxxxxxx>
> timestamp: Wed 2013-10-09 07:37:48 +0200
> message:
>   Explicitly link ZLIB-library
>
>   See https://answers.launchpad.net/yade/+question/237009
> modified:
>   CMakeLists.txt
>
>
> --
> lp:yade
> https://code.launchpad.net/~yade-pkg/yade/git-trunk
>
> Your team Yade developers is subscribed to branch lp:yade.
> To unsubscribe from this branch go to
> https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
>
> === modified file 'CMakeLists.txt'
> --- CMakeLists.txt      2013-10-08 11:28:19 +0000
> +++ CMakeLists.txt      2013-10-09 05:37:48 +0000
> @@ -79,6 +79,7 @@
>    INCLUDE_DIRECTORIES(${LOKI_INCLUDE_DIR})
>  FIND_PACKAGE(Eigen3 REQUIRED)
>  FIND_PACKAGE(BZip2 REQUIRED)
> +FIND_PACKAGE(ZLIB REQUIRED)
>  #===========================================================
>
>  SET(DEFAULT ON CACHE INTERNAL "Default value for enabled by default
> options")
> @@ -104,7 +105,8 @@
>  ENDIF(EIGEN3_FOUND)
>  #===========================================================
>  INCLUDE_DIRECTORIES(${BZIP2_INCLUDE_DIR})
> -SET(LINKLIBS  "${LINKLIBS};${BZIP2_LIBRARIES};")
> +INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIRS})
> +SET(LINKLIBS  "${LINKLIBS};${BZIP2_LIBRARIES};${ZLIB_LIBRARIES};")
>  #===========================================================
>  IF(ENABLE_VTK)
>    FIND_PACKAGE(VTK COMPONENTS Common)
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev
> Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References