What is the UUID package that it requires? Is it this package?Why does the ANTLR runtime use UUID? Is this just a build time dependency?
--
You received this message because you are subscribed to a topic in the Google Groups "antlr-discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/antlr-discussion/8mgirwEo5c0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to antlr-discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/antlr-discussion/968A3047-CE4E-48E4-A729-4BAF40AEA9A5%40googlemail.com.
Cmake did not find uuid on my Linux machine.The required header file '#include <uuid/uuid.h>' belongs to the 'libuuid' library(https://linux.die.net/man/3/libuuid) and on my machine the library has this name:>> ldconfig -p | grep libuuidlibuuid.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libuuid.so.1libuuid.so.1 (libc6) => /lib/i386-linux-gnu/libuuid.so.1So, I replaced the lines in:find_package(PkgConfig REQUIRED)pkg_check_modules(UUID REQUIRED uuid)withfind_library(UUID_LIBRARY libuuid.so.1)and:target_link_libraries(antlr4_static ${UUID_LIBRARIES})target_link_libraries(antlr4_shared ${UUID_LIBRARIES})in with:target_link_libraries(antlr4_static ${UUID_LIBRARY})target_link_libraries(antlr4_shared ${UUID_LIBRARY})to build the runtime from the source files.I couldn't figure out a way to get the cmake command:pkg_check_modules(UUID REQUIRED uuid)working on my machine.Does this look correct to you?
What's interesting here is whether this is a specific issue of your box or a general problem with the cmake file(s)?
--- My guess is that there is some cmake configuration missing in the github project that is causing this issue. But I might be wrong.
I came across this link that suggests using find_library instead of find_package for finding libuuid with cmake as well. So, I will be using this for now.
Regards,
Karthik
--
You received this message because you are subscribed to the Google Groups "antlr-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/antlr-discussion/80CE8A55-6C0C-48B7-B9D8-FA39A474AC32%40googlemail.com.