Wireshark mailing list archives
Re: Lua linkage with CMake
From: Evan Huus <eapache () gmail com>
Date: Fri, 24 Aug 2012 22:43:48 -0400
On Fri, Aug 24, 2012 at 6:52 PM, Tony Trinh <tony19 () gmail com> wrote:
It's possible that ${wireshark-src}/cmake/modules/FindLUA.cmake is not properly detecting Lua 5.2 on your system. Check the path defined by LUA_LIBRARY (and check LUA_INCLUDE_DIR while you're at it), using these commands: $ cd ${wireshark-src} $ cmake -LA | grep LUA The output should look something like this: ENABLE_LUA:BOOL=ON LUA_INCLUDE_DIR:PATH=/Users/tony/src/lua-5.2.1/src/build/include LUA_LIBRARIES:STRING=/Users/tony/src/lua-5.2.1/src/build/lib/liblua.a LUA_LIBRARY:FILEPATH=/Users/tony/src/lua-5.2.1/src/build/lib/liblua.a You can either fix the detection script, or manually edit your path variables (I use `ccmake`): Enter the CMake configuration with: $ ccmake . Press 't' to toggle "Advanced mode" (to show the advanced variables) Verify (and edit) LUA_INCLUDE_DIR, LUA_LIBRARIES, and LUA_LIBRARY. For the library paths, enter the full path to liblua.a for Lua 5.2.
Thanks a bunch, that was exactly what I needed to do - the include path was pointing to 5.1 for some reason, while the link paths were correctly pointing to 5.2. Everything works now. Evan ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Lua linkage with CMake Evan Huus (Aug 24)
- Re: Lua linkage with CMake Tony Trinh (Aug 24)
- Re: Lua linkage with CMake Evan Huus (Aug 24)
- Re: Lua linkage with CMake Evan Huus (Aug 25)
- Re: Lua linkage with CMake Joerg Mayer (Aug 25)
- Re: Lua linkage with CMake Evan Huus (Aug 24)
- Re: Lua linkage with CMake Tony Trinh (Aug 24)
- Re: Lua linkage with CMake Joerg Mayer (Aug 25)