Could not find LibFds
dino-chiio opened this issue · 7 comments
Hello everyone! I am installing IPFIXCOL2 and I have just installed libfds successfully. But when I use cmake in ipfixcol2 repository, it shows an error! Please help me resolve this problem! Thanks for all!
Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find LibFds (missing: FDS_LIBRARY FDS_INCLUDE_DIR) (Required is
at least version "0.2.0")
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
CMakeModules/FindLibFds.cmake:40 (find_package_handle_standard_args)
src/CMakeLists.txt:12 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/dino/ipfixcol2/build/CMakeFiles/CMakeOutput.log".
Hi,
Before I can help you, I need to know few more things:
- What OS do you have?
- Did you follow the installation steps?
- Do you use master or devel branch?
Lukas
- I use Ubuntu 18.04 LTS OS
- Firstly, I installed libfds by following this repo: https://github.com/CESNET/libfds/ ==> Successfully
Then, I cloned collector repo and build but it throws errors! - I use master branch! I also tried with devel branch the same error was!
Hmm....
if you installed the library properly, you should see the following:
- header files: /usr/include/libfds/ (few *.h files)
- binary files: /usr/lib/x86_64-linux-gnu/libfds.so.0
Can you verify that you have these files installed? I use GitHub Actions (CI) and there are no issue with installing the collector and the library on Ubuntu 18.04.
When I built libfds, terminal showed successful notification.
I have just checked those files! But it was not url like: /usr/include/libfds/ or /usr/lib/x86_64-linux-gnu/libfds.so.0.
~/libfds/build$ cmake .. cmake .. -DCMAKE_INSTALL_PREFIX=/usr
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_SUPPORT_GNU11
-- Performing Test COMPILER_SUPPORT_GNU11 - Success
-- Performing Test COMPILER_SUPPORT_GNUXX11
-- Performing Test COMPILER_SUPPORT_GNUXX11 - Success
-- Setting build type to 'Release' as none was specified.
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.4")
-- Found LibLz4: /usr/lib/x86_64-linux-gnu/liblz4.so (found version "1.7.1")
-- Found LibZstd: /usr/lib/x86_64-linux-gnu/libzstd.so (found version "1.3.3")
-- Maintainer contact for packages:
--
libfds version...: 0.2.0
Install prefix...: /usr
Build type.......: RELEASE
C Compiler.......: GNU 7.5.0
C Flags..........: -fvisibility=hidden -std=gnu11 -O2 -DNDEBUG
C++ Compiler.....: GNU 7.5.0
C++ Flags........: -fvisibility=hidden -std=gnu++11 -O2 -DNDEBUG
Doxygen..........:
-- Configuring done
-- Generating done
-- Build files have been written to: /root/libfds/build
~~~~~~~~~~~~~~MAKE~~~~~~~~~~~~~~~~~~~
~/libfds/build$ make
Scanning dependencies of target file_obj
[ 3%] Building CXX object src/file/CMakeFiles/file_obj.dir/Block_content.cpp.o
[ 6%] Building CXX object src/file/CMakeFiles/file_obj.dir/Block_data_reader.cpp.o
[ 10%] Building CXX object src/file/CMakeFiles/file_obj.dir/Block_data_writer.cpp.o
[ 13%] Building CXX object src/file/CMakeFiles/file_obj.dir/Block_session.cpp.o
[ 16%] Building CXX object src/file/CMakeFiles/file_obj.dir/Block_templates.cpp.o
[ 20%] Building CXX object src/file/CMakeFiles/file_obj.dir/file.cpp.o
[ 23%] Building CXX object src/file/CMakeFiles/file_obj.dir/Io_request.cpp.o
[ 26%] Building CXX object src/file/CMakeFiles/file_obj.dir/Io_sync.cpp.o
[ 30%] Building CXX object src/file/CMakeFiles/file_obj.dir/Io_async.cpp.o
[ 33%] Building CXX object src/file/CMakeFiles/file_obj.dir/File_base.cpp.o
[ 36%] Building CXX object src/file/CMakeFiles/file_obj.dir/File_exception.cpp.o
[ 40%] Building CXX object src/file/CMakeFiles/file_obj.dir/File_reader.cpp.o
[ 43%] Building CXX object src/file/CMakeFiles/file_obj.dir/File_writer.cpp.o
[ 43%] Built target file_obj
Scanning dependencies of target xml_parser_obj
[ 46%] Building CXX object src/xml_parser/CMakeFiles/xml_parser_obj.dir/xml_parser.cpp.o
[ 46%] Built target xml_parser_obj
Scanning dependencies of target iemgr_obj
[ 50%] Building CXX object src/iemgr/CMakeFiles/iemgr_obj.dir/iemgr_common.cpp.o
[ 53%] Building CXX object src/iemgr/CMakeFiles/iemgr_obj.dir/iemgr_element.cpp.o
[ 56%] Building CXX object src/iemgr/CMakeFiles/iemgr_obj.dir/iemgr_scope.cpp.o
[ 60%] Building CXX object src/iemgr/CMakeFiles/iemgr_obj.dir/iemgr.cpp.o
[ 60%] Built target iemgr_obj
Scanning dependencies of target template_mgr_obj
[ 63%] Building C object src/template_mgr/CMakeFiles/template_mgr_obj.dir/garbage.c.o
[ 66%] Building C object src/template_mgr/CMakeFiles/template_mgr_obj.dir/snapshot.c.o
[ 70%] Building C object src/template_mgr/CMakeFiles/template_mgr_obj.dir/template.c.o
[ 73%] Building C object src/template_mgr/CMakeFiles/template_mgr_obj.dir/template_manager.c.o
[ 73%] Built target template_mgr_obj
Scanning dependencies of target drec_obj
[ 76%] Building C object src/drec/CMakeFiles/drec_obj.dir/iterator.c.o
[ 76%] Built target drec_obj
Scanning dependencies of target converters_obj
[ 80%] Building C object src/converters/CMakeFiles/converters_obj.dir/converters.c.o
[ 83%] Building C object src/converters/CMakeFiles/converters_obj.dir/json.c.o
[ 86%] Building C object src/converters/CMakeFiles/converters_obj.dir/protocols.c.o
[ 86%] Built target converters_obj
Scanning dependencies of target parsers_obj
[ 90%] Building C object src/parsers/CMakeFiles/parsers_obj.dir/ipfix_parser.c.o
[ 93%] Building C object src/parsers/CMakeFiles/parsers_obj.dir/list_parser.c.o
[ 93%] Built target parsers_obj
Scanning dependencies of target fds
[ 96%] Building C object src/CMakeFiles/fds.dir/api.c.o
[100%] Linking CXX shared library libfds.so
[100%] Built target fds
Did you run make install
after the library build (i.e. make
)? Can you provide its output?
Thanks for all support! I have just installed this collector.
I forgot that had must use sudo privileges in system when ran make install
It's ok. You're welcome.