[kde-edu]: KStars fails to build, related to libnova
Albert Astals Cid
aacid at kde.org
Mon Nov 26 23:42:04 CET 2007
A Dilluns 26 Novembre 2007, Jasem Mutlaq va escriure:
> On Monday 26 November 2007 11:03:33 pm Jason Harris wrote:
> > ln_get_date_from_tm
>
> The problem seems to be that the ln_get_date_from_tm function was added to
> a later version of libnova. We had thought that it was added to 0.12. In
> any case, we need to add a check for the version of this library to the
> cmake script. Is there an easy way to do that? From what I've seen in
> other scripts, we should just write a small test program that uses the
> function in question...
>
> Jasem is working on resolving this.
>
> -------------------------------------------------
>
> Well, there isn't a good way to do that. VERSION, for libnova, is defined
> in a source file. At any rate, I tried to write a test script to see if it
> would compile the following, but it always fails. I'll try this again
> tomorrow, it's 1:05 AM now, and I was up since 4 AM yesterday!!
>
> set(CMAKE_REQUIRED_INCLUDES ${NOVA_INCLUDE_DIR})
> set(CMAKE_REQUIRED_LIBRARIES ${NOVA_LIBRARIES})
>
> check_cxx_source_compiles("#include <libnova.h>
> int main() { ln_get_date_from_tm(NULL, NULL); return 0; }"
> NOVA_FUNCTION_COMPILE)
>
This should more or less work, it's similar to what we do on poppler find
module[1]
Albert
[1]
http://websvn.kde.org/trunk/KDE/kdegraphics/cmake/modules/FindPoppler.cmake?view=markup
> ZzZeZz,
> Jasem
> _______________________________________________
> kde-edu mailing list
> kde-edu at mail.kde.org
> https://mail.kde.org/mailman/listinfo/kde-edu
More information about the kde-edu
mailing list