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

No "common/fw/target.h" file? #6377

Closed
dongxuanlb opened this issue May 11, 2020 · 5 comments
Closed

No "common/fw/target.h" file? #6377

dongxuanlb opened this issue May 11, 2020 · 5 comments
Labels

Comments

@dongxuanlb
Copy link

dongxuanlb commented May 11, 2020

Env:
Mac,10.15.4

Version:
HEAD detached at v2.34.1

Build command:
dongxuan@dongxuan-2 build % cmake .. -DBUILD_EXAMPLES=true -DBUILD_WITH_OPENMP=false -DHWM_OVER_XU=false

Output:
-- Internet connection identified
-- Info: REALSENSE_VERSION_STRING=2.34.1
-- Setting Unix configurations
-- using RS2_USE_LIBUVC_BACKEND
-- GLFW 3.3 not found; using internal version
-- Using Cocoa for window creation
-- Could NOT find apriltag (missing: APRILTAG_INC APRILTAG_LIB)
-- Unable to find apriltag library, skipping pose-apriltag example
-- Building with TM2
-- Configuring done
CMake Warning (dev):
Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake
--help-policy CMP0042" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

MACOSX_RPATH is not specified for the following targets:

realsense2-gl

This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /Users/dongxuan/workspace/librealsense/build

Problem:
/Users/dongxuan/workspace/librealsense/src/tm2/tm-info.cpp:13:10: fatal error: 'common/fw/target.h' file not found
#include "common/fw/target.h"

@MartyG-RealSense
Copy link
Collaborator

Could you try building librealsense in Release mode by including the flag -DCMAKE_BUILD_TYPE=Release in your CMake build statement, please?

@dongxuanlb
Copy link
Author

Hi
I already know where the problem is, because this file was downloaded and decompressed by “http://realsense-hw-public.s3.amazonaws.com/Releases/TM2/FW/target/0.2.0.951/target-0.2.0.951.mvcmd”

The problem is that even if I add -DWith_build_TM2=fale to the cmake command, it will still include this file.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented May 12, 2020

May I confirm please that you expressed the BUILD_WITH_TM2 instruction like this:

-DBUILD_WITH_TM2=false

Edit: I was reminded of another case from a week ago where the same error with "common/fw/target.h" was occurring. The solution in that particular case was also to use -DBUILD_WITH_TM2=false

#6346

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

@whubaichuan
Copy link

@dongxuanlb Hi, how do you solve this problem?

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