Linking error when trying to compile on a shared drive












3















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.










share|improve this question





























    3















    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.










    share|improve this question



























      3












      3








      3








      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.










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 13 '17 at 12:23









      Community

      1




      1










      asked Jan 3 '13 at 16:17









      bubblebubble

      2091513




      2091513






















          2 Answers
          2






          active

          oldest

          votes


















          4














          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.






          share|improve this answer


























          • 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



















          1














          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.






          share|improve this answer























            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
            });


            }
            });














            draft saved

            draft discarded


















            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









            4














            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.






            share|improve this answer


























            • 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
















            4














            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.






            share|improve this answer


























            • 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














            4












            4








            4







            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.






            share|improve this answer















            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.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            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 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



















            • 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

















            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













            1














            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.






            share|improve this answer




























              1














              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.






              share|improve this answer


























                1












                1








                1







                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.






                share|improve this answer













                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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 14 '15 at 16:46









                arinmorfarinmorf

                1213




                1213






























                    draft saved

                    draft discarded




















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    How to change which sound is reproduced for terminal bell?

                    Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                    Can I use Tabulator js library in my java Spring + Thymeleaf project?