CMake project configures fine on command line, fails in CLion
So one day after resetting my CMake cache and reloading the project I got this error:
Error:Configuration Debug
Cannot copy files to $HOME/.CLion2016.2/system/cmake/generated/FOO-f8d556c5/f8d556c5/Debug: $HOME/.CLion2016.2/system/cmake/generated/FOO-f8d556c5/f8d556c5/__default__/third_party/libpng16/libpng.so (No such file or directory)
Error:Configuration Release
Cannot copy files to $HOME/.CLion2016.2/system/cmake/generated/FOO-f8d556c5/f8d556c5/Release: $HOME/.CLion2016.2/system/cmake/generated/FOO-f8d556c5/f8d556c5/__default__/third_party/libpng16/libpng.so (No such file or directory)
Error:Configuration RelWithDebInfo
Cannot copy files to $HOME/.CLion2016.2/system/cmake/generated/FOO-f8d556c5/f8d556c5/RelWithDebInfo: $HOME/.CLion2016.2/system/cmake/generated/FOO-f8d556c5/f8d556c5/__default__/third_party/libpng16/libpng.so (No such file or directory)
Error:Configuration MinSizeRel
Cannot copy files to $HOME/.CLion2016.2/system/cmake/generated/FOO-f8d556c5/f8d556c5/MinSizeRel: $HOME/.CLion2016.2/system/cmake/generated/FOO-f8d556c5/f8d556c5/__default__/third_party/libpng16/libpng.so (No such file or directory)
I originally thought it was do to a change in my project so I sync'd to older versions and tried to build but they had the error, too. I tried *lots* of stuff and then the error magically went away. It happened again after resetting my cache and again magically went away. Then I reset my cache again to try to figure out which of my syncs or rebuilds fixed the problem but the problem persists.
FYI
$HOME/.CLion2016.2/system/cmake/generated/FOO-f8d556c5/f8d556c5/__default__/third_party/libpng16/libpng.so is a symbolic link
lrwxrwxrwx 1 vharron eng 11 Nov 2 12:08 libpng.so -> libpng16.so
libpng16.so doesn't exist
Why are you copying this file? I think you need to just mirror the symlink if you really need to copy it.
请先登录再写评论。
It's important to note that I have no problem configuring and building the CMake project outside of CLion, even using your cmake command parameters from the log.
Hi! Could you please try using CLion 2016.3 EAP. Will the problem occur there?