[CMake] compiling hiphop-php with CMake failed, where is the parameter: EXTRA_LIBS ?

Eric Noulard eric.noulard at gmail.com
Tue Aug 10 02:37:37 EDT 2010


2010/8/10 a qi <free4machine at gmail.com>:
> HI, ALL
>
> hiphop-php needs cmake to compile,  but I got this error  when  running  make :

May the right place to ask for that would be the  HipHop PHP Mailing list?
http://groups.google.com/group/hiphop-php-dev/?pli=1

----------------------------------------------------------
>
> And  I google "undefined reference to `libiconv_open'",  all the
> answer is    " add   '-liconv'   to   EXTRA_LIBS=...      or
> LDFLAGS=... "  ,  But I can not find  anything about  "EXTRA_LIBS
> or   LDFLAGS"  :
>
>         the follow  command got  nothing.
>         [root at sys-test-02 hiphop-php]# find . -type f -exec grep
> -Hni  --col "EXTRA_LIBS" {} \;

Because may be this is not the way to do it with CMake.

Now if you look into:

hiphop-php/CMake/HPHPFindLibs.cmake

you'll see that the iconv libs is searched with FIND_LIBRARY (ICONV_LIB iconv)
[only  if on MacOS] then later used for in the custom hphp_link target.

All this is really some specific choice of HipHop PHP developers,
and does not seems CMake specific.

You should ask HipHop PHP developers first.

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list