-
Notifications
You must be signed in to change notification settings - Fork 768
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
CMAKE ERROR at wrap/CMakeLists.txt:29 (target_link_libraries):The "debug" argument must be followed by a library. #120
Comments
Please try the latest develop and check if there is a similar problem. Also, please including steps for reproduction. |
Hi thanks for the reply.
I already tried it with this version: https://github.com/borglab/gtsam.git
And I still face the same issue.
Sorry what do you mean by the steps for reproduction.
Thanks for your help
…________________________________
From: Fan Jiang <notifications@github.com>
Sent: Monday, September 23, 2019 10:19 AM
To: borglab/gtsam <gtsam@noreply.github.com>
Cc: Matta, Yukti <yukti.matta@hitachi-automotive.us>; Author <author@noreply.github.com>
Subject: Re: [borglab/gtsam] CMAKE ERROR at wrap/CMakeLists.txt:29 (target_link_libraries):The "debug" argument must be followed by a library. (#120)
Please try the latest develop and check if there is a similar problem. Also, please including steps for reproduction.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://clicktime.symantec.com/3PnnJyzMAYQ1wcudmpvfqSq7Vc?u=https%3A%2F%2Fgithub.com%2Fborglab%2Fgtsam%2Fissues%2F120%3Femail_source%3Dnotifications%26email_token%3DAJCYO24BGJCLLZSCN2KYY5TQLDF6VA5CNFSM4IY2GRB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7LAOEY%23issuecomment-534120211>, or mute the thread<https://clicktime.symantec.com/3EqjEUV4DETDhPhDsaJAr8q7Vc?u=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJCYO2ZYXPZF2IM73CIKRI3QLDF6VANCNFSM4IY2GRBQ>.
|
All the command line inputs and outputs. You are absolutely welcome :) |
Please see below the command line inputs and outputs: adas@adas-Latitude-E5550:/usr/local/gtsam-develop$ cd build -- Configuring incomplete, errors occurred! I don't know if this helps but when I try to changing the GTSAM_BUILD_WRAP flag to OFF in the gtsam-develop/CMakeLists.txt file, the above errors shifts from wrap/CMakeLists.txt to gtsam/CMakeLists.txt (though the error remains the same.) |
|
|
@yuktimatta12 Are you sure? I searched for |
Yes you're right. However if just type "cmake .." without sudo, I get 'permission denied' errors (as you can see below) adas@adas-Latitude-E5550:/usr/local/gtsam-develop/build$ cmake ..
Call Stack (most recent call first): CMake Error: Could not open file for write in copy operation /usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CMakeSystem.cmake.tmp CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file): CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file): CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file): CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file): CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file): CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file): CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file): CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file): CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file): CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file): CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:862 (file):
Call Stack (most recent call first): CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:862 (file):
Call Stack (most recent call first): -- The CXX compiler identification is unknown CMake Error: Could not find cmake module file: /usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CMakeCXXCompiler.cmake CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file): CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file): CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file): CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file): CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file): CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file): CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file): CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file): CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file): CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:862 (file):
Call Stack (most recent call first): CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:862 (file):
Call Stack (most recent call first): -- The C compiler identification is unknown CMake Error: Could not find cmake module file: /usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CMakeCCompiler.cmake
Call Stack (most recent call first): CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeTestCXXCompiler.cmake:37 (try_compile):
try_compile() works only for enabled languages. Currently these are:
See project() command to enable other languages. -- Check for working CXX compiler: /usr/bin/c++ -- broken
Call Stack (most recent call first): CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeTestCXXCompiler.cmake:53 (message):
is not able to compile a simple test program. It fails with the following output: CMake will not be able to correctly generate this project. -- Configuring incomplete, errors occurred! |
Please refer to general docs for CMake and Linux operations. This is not a bug of GTSAM. Note that you should not put source code in usr/local |
Do you have any idea what the cmake error might be due to if not GTSAM? |
Privilege problems. Please refer to general documentations. |
add6075e8 Merge pull request #121 from borglab/feature/constructor-templates 42d4145bb update instantiate_ctors to handle constructor level templates 455ce6169 update test fixtures 3c37fc2a0 update wrapper test fixtures ffdad925d update interface_parser to pass the tests bf7416213 add interface_parser test for templated constructor 9fe05d0c9 Merge pull request #120 from borglab/feature/templated-namespace 7622e6432 typo fix 88779c5e6 update instantiator to handle templates in the namespace 0ee86f9a3 add test for templated type in namespace git-subtree-dir: wrap git-subtree-split: add6075e8ec0e28d5f47d0a2ecab00deaa9a3da7
On trying to build version 4.0.0 found here: https://bitbucket.org/gtborg/gtsam/get/357e739127de.zip
I face the following issue:
CMAKE ERROR at wrap/CMakeLists.txt:29 (target_link_libraries):The "debug" argument must be followed by a library.
Below is what I see on the terminal window:
The CXX compiler identification is GNU 5.4.0
-- The C compiler identification is GNU 5.4.0
-- 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
-- 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
-- GTSAM_SOURCE_ROOT_DIR: [/home/guhao/Documents/gtsam]
Boost 1.43 found.
Found Boost components:
serialization;system;filesystem;thread;program_options;date_time;timer;chrono;regex
-- GTSAM_BOOST_LIBRARIES: optimized;debug
-- Found TBB: /usr/include (found version "4.4") found components: tbb tbbmalloc
-- Could NOT find MKL (missing: MKL_INCLUDE_DIR MKL_LIBRARIES)
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: -fopenmp
CMake Warning (dev) at wrap/CMakeLists.txt:29 (target_link_libraries):
Link library type specifier "optimized" is followed by specifier "debug"
instead of a library name. The first specifier will be ignored.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at wrap/CMakeLists.txt:29 (target_link_libraries):
The "debug" argument must be followed by a library.
-- Configuring incomplete, errors occurred!
See also "/home/guhao/Documents/gtsam/build/CMakeFiles/CMakeOutput.log".
See also "/home/guhao/Documents/gtsam/build/CMakeFiles/CMakeError.log".
Any idea what could be going on?
I did try turning the GTSAM_BUILD_WRAP flag to off in the CMakeLists.txt file but the above error merely persists.
The text was updated successfully, but these errors were encountered: