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

After installing the library trying to add in the cmakelists.txt for a project got error configuring incomplete error #633

Open
dappchandu opened this issue Feb 16, 2024 · 3 comments
Labels

Comments

@dappchandu
Copy link

vSomeip Version

3.4.10

Boost Version

1.71

Environment

Ubuntu 20.04.6

Describe the bug

cmake -S . -B "./build/debug" -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain/linux_native_x86_64.cmake
CMake Error at CMakeLists.txt:32 (target_link_libraries):
Cannot specify link libraries for target "fota_template" which is not built
by this project.

-- Configuring incomplete, errors occurred!
See also "/home/chandrakala/Desktop/FOTA_PROJECT_TEMPLATE/build/debug/CMakeFiles/CMakeOutput.log".
make: *** [Makefile:65: all] Error 1

Reproduction Steps

After downloading vsomeip 3.4.10 , run mkdir build , cd build , cmake .. , make , sudo make install.
Got the library in my system and while trying to add in the project using the
set(VSOMEIP3_DIR /home/chandrakala/install_folder/lib/cmake/vsomeip3)

Find vsomeip package

find_package(vsomeip3 REQUIRED)

Your existing code here ...

target_link_libraries(fota_template vsomeip3)

Expected behaviour

No response

Logs and Screenshots

No response

@dappchandu dappchandu added the bug label Feb 16, 2024
@reymor
Copy link
Contributor

reymor commented Feb 19, 2024

Hello, I do not think that this bug is related with vsomeip

I think that the error is self-explanatory, you are trying to link a library against a target which is not built

Could you please, show full detail of you CMakeLists.txt ?

I think that there is something wrong in your CMakeLists.txt

@dappchandu
Copy link
Author

disable in source build

set(CMAKE_DISABLE_SOURCE_CHANGES OFF) if it is set to OFF then i'm able to install it .
If it is set to ON i'm unable to install the library.
I want to set it on if i'm not using the vsomeip library how can i made it .

@goncaloalmeida
Copy link
Contributor

@dappchandu could you please explain why you think this is a vsomeip issue?
Thank you

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

No branches or pull requests

3 participants