From: Alan W. I. <ir...@be...> - 2012-02-12 18:28:28
|
On 2012-02-12 18:26+0530 Atri wrote: > On Sat, 2012-02-11 at 14:57 -0800, Alan W. Irwin wrote: >> Wherever there is a reference to Lua 5.1 put in additional 5.2 choices >> first. >> >> That is: >> >> PATH_SUFFIXES include/lua51 include/lua5.1 include/lua include >> >> ==> >> >> PATH_SUFFIXES include/lua52 include/lua5.2 include/lua51 include/lua5.1 include/lua include >> >> >> NAMES lua51 lua5.1 lua-5.1 lua >> >> ==> >> >> NAMES lua52 lua5.2 lua-5.2 lua51 lua5.1 lua-5.1 lua [...] > I tried to do that following your suggestions. So I now bundled up > FindLua51.cmake in the plplot source directory and tried to do a build > after the suggested modifications [...] > However the build still fails with the following messages:- > > =============================== > CMake Error at cmake/modules/FindLua51.cmake:69 (INCLUDE): > include could not find load file: > > /home/abuild/rpmbuild/BUILD/plplot-5.9.9/cmake/modules/FindPackageHandleStandardArgs.cmake > Call Stack (most recent call first): > cmake/modules/lua.cmake:63 (find_package) > cmake/modules/plplot.cmake:475 (include) > CMakeLists.txt:91 (include) > > > -- Found Lua51: /usr/lib64/liblua.so;/usr/lib64/libm.so > -- LUA_VERSION = 5.2 > -- WARNING: Lua executable found but version not consistent with > library. Disabling Lua bindings > =============================== > Sorry, I completely missed one additional change in my directions. Make the following change as well: INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) ==> INCLUDE(FindPackageHandleStandardArgs) Note, the second form must have ".cmake" dropped as indicated. The first form looks only in cmake/modules for FindPackageHandleStandardArgs.cmake, and since it is not there you got the above error message. The second form looks in cmake/modules first, but if not there looks in the system location for FindPackageHandleStandardArgs.cmake (which is what we want in this case). Hope that additional change allows our build system to find lua5.2, but if not, I would be happy to help some more. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |