Linking error when trying to compile on a shared drive
I am trying to compile OpenCV library on a shared drive on my system. I was able to configure and generate makefiles successfully by using these settings, but when i try to compile I get the following error:
Linking CXX shared library ../../lib/libopencv_core.so
CMake Error: cmake_symlink_library: System Error: Operation not permitted
CMake Error: cmake_symlink_library: System Error: Operation not permitted
make[2]: *** [lib/libopencv_core.so.2.4.3] Error 1
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make: *** [all] Error 2
Please help to resolve.
I think it may be an issue with the mount flags.
mount compiling opencv cmake
add a comment |
I am trying to compile OpenCV library on a shared drive on my system. I was able to configure and generate makefiles successfully by using these settings, but when i try to compile I get the following error:
Linking CXX shared library ../../lib/libopencv_core.so
CMake Error: cmake_symlink_library: System Error: Operation not permitted
CMake Error: cmake_symlink_library: System Error: Operation not permitted
make[2]: *** [lib/libopencv_core.so.2.4.3] Error 1
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make: *** [all] Error 2
Please help to resolve.
I think it may be an issue with the mount flags.
mount compiling opencv cmake
add a comment |
I am trying to compile OpenCV library on a shared drive on my system. I was able to configure and generate makefiles successfully by using these settings, but when i try to compile I get the following error:
Linking CXX shared library ../../lib/libopencv_core.so
CMake Error: cmake_symlink_library: System Error: Operation not permitted
CMake Error: cmake_symlink_library: System Error: Operation not permitted
make[2]: *** [lib/libopencv_core.so.2.4.3] Error 1
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make: *** [all] Error 2
Please help to resolve.
I think it may be an issue with the mount flags.
mount compiling opencv cmake
I am trying to compile OpenCV library on a shared drive on my system. I was able to configure and generate makefiles successfully by using these settings, but when i try to compile I get the following error:
Linking CXX shared library ../../lib/libopencv_core.so
CMake Error: cmake_symlink_library: System Error: Operation not permitted
CMake Error: cmake_symlink_library: System Error: Operation not permitted
make[2]: *** [lib/libopencv_core.so.2.4.3] Error 1
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make: *** [all] Error 2
Please help to resolve.
I think it may be an issue with the mount flags.
mount compiling opencv cmake
mount compiling opencv cmake
edited Apr 13 '17 at 12:23
Community♦
1
1
asked Jan 3 '13 at 16:17
bubblebubble
2091513
2091513
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
This happens, because vfat
type filesystems don't support symlinks. Mount flags won't change this situation.
I'm not familiar with CMake, but I suppose you are using some kind of rule in your makefile that is telling CMake to make a symbolic link to lib/libopencv_core.so.2.4.3
, which fails.
will it be possible if I ntfs system ? I need a file system which is compatible with windows also.
– bubble
Jan 4 '13 at 9:43
Well, try to mount yourntfs
drive, then create a file inside and then execute the following command in your terminal:ln -s /path-to-ntfs-drive/name-of-file /path-to-ntfs-drive/symlink-name
. If this works without an error, then I suppose you will be able to run CMake onntfs
drive. If you get an error, then verify that your drive is mounted viantfs-3g
driver (mount
will say thattype
isfuseblk
).
– bender
Jan 4 '13 at 12:27
add a comment |
I ran into the same problem, because I was running on a virtual box instantiation of ubuntu (guest), but running in a shared folder to my mac (host).
Because symlinks are different on the mac, cmake failed. Moving the build directory to a ubuntu only folder (not shared with the mac) solved the problem.
Moral of the story- don't build in shared folders that cross platforms.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f235700%2flinking-error-when-trying-to-compile-on-a-shared-drive%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
This happens, because vfat
type filesystems don't support symlinks. Mount flags won't change this situation.
I'm not familiar with CMake, but I suppose you are using some kind of rule in your makefile that is telling CMake to make a symbolic link to lib/libopencv_core.so.2.4.3
, which fails.
will it be possible if I ntfs system ? I need a file system which is compatible with windows also.
– bubble
Jan 4 '13 at 9:43
Well, try to mount yourntfs
drive, then create a file inside and then execute the following command in your terminal:ln -s /path-to-ntfs-drive/name-of-file /path-to-ntfs-drive/symlink-name
. If this works without an error, then I suppose you will be able to run CMake onntfs
drive. If you get an error, then verify that your drive is mounted viantfs-3g
driver (mount
will say thattype
isfuseblk
).
– bender
Jan 4 '13 at 12:27
add a comment |
This happens, because vfat
type filesystems don't support symlinks. Mount flags won't change this situation.
I'm not familiar with CMake, but I suppose you are using some kind of rule in your makefile that is telling CMake to make a symbolic link to lib/libopencv_core.so.2.4.3
, which fails.
will it be possible if I ntfs system ? I need a file system which is compatible with windows also.
– bubble
Jan 4 '13 at 9:43
Well, try to mount yourntfs
drive, then create a file inside and then execute the following command in your terminal:ln -s /path-to-ntfs-drive/name-of-file /path-to-ntfs-drive/symlink-name
. If this works without an error, then I suppose you will be able to run CMake onntfs
drive. If you get an error, then verify that your drive is mounted viantfs-3g
driver (mount
will say thattype
isfuseblk
).
– bender
Jan 4 '13 at 12:27
add a comment |
This happens, because vfat
type filesystems don't support symlinks. Mount flags won't change this situation.
I'm not familiar with CMake, but I suppose you are using some kind of rule in your makefile that is telling CMake to make a symbolic link to lib/libopencv_core.so.2.4.3
, which fails.
This happens, because vfat
type filesystems don't support symlinks. Mount flags won't change this situation.
I'm not familiar with CMake, but I suppose you are using some kind of rule in your makefile that is telling CMake to make a symbolic link to lib/libopencv_core.so.2.4.3
, which fails.
edited Jan 3 '13 at 19:20
answered Jan 3 '13 at 19:10
benderbender
1,5611223
1,5611223
will it be possible if I ntfs system ? I need a file system which is compatible with windows also.
– bubble
Jan 4 '13 at 9:43
Well, try to mount yourntfs
drive, then create a file inside and then execute the following command in your terminal:ln -s /path-to-ntfs-drive/name-of-file /path-to-ntfs-drive/symlink-name
. If this works without an error, then I suppose you will be able to run CMake onntfs
drive. If you get an error, then verify that your drive is mounted viantfs-3g
driver (mount
will say thattype
isfuseblk
).
– bender
Jan 4 '13 at 12:27
add a comment |
will it be possible if I ntfs system ? I need a file system which is compatible with windows also.
– bubble
Jan 4 '13 at 9:43
Well, try to mount yourntfs
drive, then create a file inside and then execute the following command in your terminal:ln -s /path-to-ntfs-drive/name-of-file /path-to-ntfs-drive/symlink-name
. If this works without an error, then I suppose you will be able to run CMake onntfs
drive. If you get an error, then verify that your drive is mounted viantfs-3g
driver (mount
will say thattype
isfuseblk
).
– bender
Jan 4 '13 at 12:27
will it be possible if I ntfs system ? I need a file system which is compatible with windows also.
– bubble
Jan 4 '13 at 9:43
will it be possible if I ntfs system ? I need a file system which is compatible with windows also.
– bubble
Jan 4 '13 at 9:43
Well, try to mount your
ntfs
drive, then create a file inside and then execute the following command in your terminal: ln -s /path-to-ntfs-drive/name-of-file /path-to-ntfs-drive/symlink-name
. If this works without an error, then I suppose you will be able to run CMake on ntfs
drive. If you get an error, then verify that your drive is mounted via ntfs-3g
driver (mount
will say that type
is fuseblk
).– bender
Jan 4 '13 at 12:27
Well, try to mount your
ntfs
drive, then create a file inside and then execute the following command in your terminal: ln -s /path-to-ntfs-drive/name-of-file /path-to-ntfs-drive/symlink-name
. If this works without an error, then I suppose you will be able to run CMake on ntfs
drive. If you get an error, then verify that your drive is mounted via ntfs-3g
driver (mount
will say that type
is fuseblk
).– bender
Jan 4 '13 at 12:27
add a comment |
I ran into the same problem, because I was running on a virtual box instantiation of ubuntu (guest), but running in a shared folder to my mac (host).
Because symlinks are different on the mac, cmake failed. Moving the build directory to a ubuntu only folder (not shared with the mac) solved the problem.
Moral of the story- don't build in shared folders that cross platforms.
add a comment |
I ran into the same problem, because I was running on a virtual box instantiation of ubuntu (guest), but running in a shared folder to my mac (host).
Because symlinks are different on the mac, cmake failed. Moving the build directory to a ubuntu only folder (not shared with the mac) solved the problem.
Moral of the story- don't build in shared folders that cross platforms.
add a comment |
I ran into the same problem, because I was running on a virtual box instantiation of ubuntu (guest), but running in a shared folder to my mac (host).
Because symlinks are different on the mac, cmake failed. Moving the build directory to a ubuntu only folder (not shared with the mac) solved the problem.
Moral of the story- don't build in shared folders that cross platforms.
I ran into the same problem, because I was running on a virtual box instantiation of ubuntu (guest), but running in a shared folder to my mac (host).
Because symlinks are different on the mac, cmake failed. Moving the build directory to a ubuntu only folder (not shared with the mac) solved the problem.
Moral of the story- don't build in shared folders that cross platforms.
answered Jan 14 '15 at 16:46
arinmorfarinmorf
1213
1213
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f235700%2flinking-error-when-trying-to-compile-on-a-shared-drive%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown