Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make not working out of the box #296

Open
vinayakyadav2709 opened this issue Jan 7, 2024 · 2 comments
Open

make not working out of the box #296

vinayakyadav2709 opened this issue Jan 7, 2024 · 2 comments

Comments

@vinayakyadav2709
Copy link

I have a
Linux Mint 21.2 x86_64 system
after cloning and make command throwing this error

falcon_pc_s@Falcon-pc:~/Projects/pro_serial/serial$ make
cd build && cmake -DCMAKE_INSTALL_PREFIX=/tmp/usr/local ..
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CATKIN_DEVEL_PREFIX: /home/falcon_pc_s/Projects/pro_serial/serial/build/devel
-- Using CMAKE_PREFIX_PATH:
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.10.12", minimum required is "3")
-- Using PYTHON_EXECUTABLE: /usr/bin/python3
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/falcon_pc_s/Projects/pro_serial/serial/build/test_results
-- GTest is not available. Please install libgtest-dev to enable tests involving GTest.
-- GMock is not available. Please install libgmock-dev to enable tests involving GMock.
-- nosetests not found, Python tests can not be run (try installing package 'python3-nose')
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- catkin 0.8.10
-- BUILD_SHARED_LIBS is on
CMake Warning at /usr/share/catkin/cmake/test/gtest.cmake:159 (message):
skipping gtest 'serial-test' in project 'serial' because gtest was not
found
Call Stack (most recent call first):
/usr/share/catkin/cmake/test/gtest.cmake:89 (_catkin_add_executable_with_google_test)
/usr/share/catkin/cmake/test/gtest.cmake:37 (_catkin_add_g

@ccajas
Copy link

ccajas commented Sep 25, 2024

Your pasted message seems to have cut off. If you also are getting this error:

CMake Error at tests/CMakeLists.txt:3 (target_link_libraries):

And you don't need to build a test, I found that commenting out this line in the root CMakeLists.txt can be a workaround for the build to work:

add_subdirectory(tests)

Right after if(CATKIN_ENABLE_TESTING).

@asdat3
Copy link

asdat3 commented Sep 27, 2024

can someone provide the built lib? :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants