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

Cannot generate a safe runtime #135

Open
renhaofan opened this issue Apr 5, 2019 · 0 comments
Open

Cannot generate a safe runtime #135

renhaofan opened this issue Apr 5, 2019 · 0 comments

Comments

@renhaofan
Copy link

renhaofan commented Apr 5, 2019

When run cmake :
`-- CUDA found: TRUE
-- libfreenect2 found: TRUE
-- librealsense found: FALSE
-- libpng found: TRUE
-- Configuring done
CMake Warning at CMakeLists.txt:96 (add_executable):
Cannot generate a safe runtime search path for target FastFusion because
files in some directories may conflict with libraries in implicit
directories:

runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly.

-- Generating done
when I runlocate libz.so.1`, there are many libz.so in different folders:

/lib/i386-linux-gnu/libz.so.1
/lib/i386-linux-gnu/libz.so.1.2.8
/lib/x86_64-linux-gnu/libz.so.1
/lib/x86_64-linux-gnu/libz.so.1.2.8
/opt/anaconda3/envs/sensordata/lib/libz.so
/opt/anaconda3/envs/sensordata/lib/libz.so.1
/opt/anaconda3/envs/sensordata/lib/libz.so.1.2.11
/snap/core/6405/lib/x86_64-linux-gnu/libz.so.1
/snap/core/6405/lib/x86_64-linux-gnu/libz.so.1.2.8
/snap/core/6531/lib/x86_64-linux-gnu/libz.so.1
/snap/core/6531/lib/x86_64-linux-gnu/libz.so.1.2.8
/snap/core/6673/lib/x86_64-linux-gnu/libz.so.1
/snap/core/6673/lib/x86_64-linux-gnu/libz.so.1.2.8
/snap/vscode/89/lib/x86_64-linux-gnu/libz.so.1
/snap/vscode/89/lib/x86_64-linux-gnu/libz.so.1.2.8
/usr/lib/libz.so
/usr/lib/libz.so.1
/usr/lib/libz.so.1.2.9
/usr/lib/x86_64-linux-gnu/libz.so
/usr/local/lib/libz.so
/usr/local/lib/libz.so.1
/usr/local/lib/libz.so.1.2.11
/usr/local/lib/libz.so.1.2.8
/usr/local/lib/libz.so.1.2.9

I think the why there is conflict with libraries in implicit. I have tried to add some items in /usr/share/cmake-3.5/Modules/FindZLIB.cmake
set(CMAKE_EXE_LINKER_FLAGS /usr/local/lib/)
set(ZLIB_INCLUDE_DIRS /usr/local/include)
set(ZLIB_LIBRARIES -L/usr/local/lib)

but useless, any suggestions?

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

1 participant