How to install OpenCV 3.0.0 and 2.4?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I know that a lot of questions have been posted regarding the installation of OpenCV, but right now I need to install both OpenCV 2.4 along with OpenCV 3.0.0



Since there are a lot of research codes available online and the authors of these say that our code is not compatible with OpenCV 3.0.0, I am wondering how can I install both versions of OpenCV.



Even before the installation instructions, can somebody please tell me how to remove all the existing versions of OpenCV from my PC. I want to do a clean installation of OpenCV, with appropriate setting of all the environment variables.



Thanks in Advance.










share|improve this question































    0















    I know that a lot of questions have been posted regarding the installation of OpenCV, but right now I need to install both OpenCV 2.4 along with OpenCV 3.0.0



    Since there are a lot of research codes available online and the authors of these say that our code is not compatible with OpenCV 3.0.0, I am wondering how can I install both versions of OpenCV.



    Even before the installation instructions, can somebody please tell me how to remove all the existing versions of OpenCV from my PC. I want to do a clean installation of OpenCV, with appropriate setting of all the environment variables.



    Thanks in Advance.










    share|improve this question



























      0












      0








      0








      I know that a lot of questions have been posted regarding the installation of OpenCV, but right now I need to install both OpenCV 2.4 along with OpenCV 3.0.0



      Since there are a lot of research codes available online and the authors of these say that our code is not compatible with OpenCV 3.0.0, I am wondering how can I install both versions of OpenCV.



      Even before the installation instructions, can somebody please tell me how to remove all the existing versions of OpenCV from my PC. I want to do a clean installation of OpenCV, with appropriate setting of all the environment variables.



      Thanks in Advance.










      share|improve this question
















      I know that a lot of questions have been posted regarding the installation of OpenCV, but right now I need to install both OpenCV 2.4 along with OpenCV 3.0.0



      Since there are a lot of research codes available online and the authors of these say that our code is not compatible with OpenCV 3.0.0, I am wondering how can I install both versions of OpenCV.



      Even before the installation instructions, can somebody please tell me how to remove all the existing versions of OpenCV from my PC. I want to do a clean installation of OpenCV, with appropriate setting of all the environment variables.



      Thanks in Advance.







      14.04 software-installation opencv






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 15 '15 at 4:47







      Guru Swaroop

















      asked Sep 15 '15 at 4:41









      Guru SwaroopGuru Swaroop

      2223616




      2223616






















          3 Answers
          3






          active

          oldest

          votes


















          0














          Run command: sudo apt-get remove opencv.



          This will uninstall the opencv and then delete the opencv folder from home, that's it.






          share|improve this answer

































            0














            Only gives you one at a time;
            You can compile both versions, and keep the compiled code in the build folders. When you want to use a specific version, run sudo make -j 4 install in that build folder.






            share|improve this answer































              0














              To uninstall OpenCV, you have 2 options depending on how you installed it:




              1. If you installed it with apt-get, run: sudo apt-get remove opencv.

              2. If you compiled it by your own, I think it was something like (sudo) make uninstall in the directory where you did make and make install (usually build/).


              Both will uninstall OpenCV (in the later case it will still leave you the local folder you used to compile it, so you can re-compile or re-install it at any moment).



              To install both OpenCV versions. I dumb trick I did was to prepare 2 OpenCV compilation folders (one for each version). And then a bash script program that performs make uninstall on one folder and make install on the other one. It should take it ~15 seconds to switch the OpenCV version on this way, since both version will be already locally compiled.






              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%2f674272%2fhow-to-install-opencv-3-0-0-and-2-4%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                3 Answers
                3






                active

                oldest

                votes








                3 Answers
                3






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                0














                Run command: sudo apt-get remove opencv.



                This will uninstall the opencv and then delete the opencv folder from home, that's it.






                share|improve this answer






























                  0














                  Run command: sudo apt-get remove opencv.



                  This will uninstall the opencv and then delete the opencv folder from home, that's it.






                  share|improve this answer




























                    0












                    0








                    0







                    Run command: sudo apt-get remove opencv.



                    This will uninstall the opencv and then delete the opencv folder from home, that's it.






                    share|improve this answer















                    Run command: sudo apt-get remove opencv.



                    This will uninstall the opencv and then delete the opencv folder from home, that's it.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Feb 23 '16 at 11:51









                    d a i s y

                    3,40782444




                    3,40782444










                    answered Feb 23 '16 at 11:32









                    Abhishek RajAbhishek Raj

                    315




                    315

























                        0














                        Only gives you one at a time;
                        You can compile both versions, and keep the compiled code in the build folders. When you want to use a specific version, run sudo make -j 4 install in that build folder.






                        share|improve this answer




























                          0














                          Only gives you one at a time;
                          You can compile both versions, and keep the compiled code in the build folders. When you want to use a specific version, run sudo make -j 4 install in that build folder.






                          share|improve this answer


























                            0












                            0








                            0







                            Only gives you one at a time;
                            You can compile both versions, and keep the compiled code in the build folders. When you want to use a specific version, run sudo make -j 4 install in that build folder.






                            share|improve this answer













                            Only gives you one at a time;
                            You can compile both versions, and keep the compiled code in the build folders. When you want to use a specific version, run sudo make -j 4 install in that build folder.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Feb 25 '16 at 18:20









                            WillCWillC

                            75889




                            75889























                                0














                                To uninstall OpenCV, you have 2 options depending on how you installed it:




                                1. If you installed it with apt-get, run: sudo apt-get remove opencv.

                                2. If you compiled it by your own, I think it was something like (sudo) make uninstall in the directory where you did make and make install (usually build/).


                                Both will uninstall OpenCV (in the later case it will still leave you the local folder you used to compile it, so you can re-compile or re-install it at any moment).



                                To install both OpenCV versions. I dumb trick I did was to prepare 2 OpenCV compilation folders (one for each version). And then a bash script program that performs make uninstall on one folder and make install on the other one. It should take it ~15 seconds to switch the OpenCV version on this way, since both version will be already locally compiled.






                                share|improve this answer




























                                  0














                                  To uninstall OpenCV, you have 2 options depending on how you installed it:




                                  1. If you installed it with apt-get, run: sudo apt-get remove opencv.

                                  2. If you compiled it by your own, I think it was something like (sudo) make uninstall in the directory where you did make and make install (usually build/).


                                  Both will uninstall OpenCV (in the later case it will still leave you the local folder you used to compile it, so you can re-compile or re-install it at any moment).



                                  To install both OpenCV versions. I dumb trick I did was to prepare 2 OpenCV compilation folders (one for each version). And then a bash script program that performs make uninstall on one folder and make install on the other one. It should take it ~15 seconds to switch the OpenCV version on this way, since both version will be already locally compiled.






                                  share|improve this answer


























                                    0












                                    0








                                    0







                                    To uninstall OpenCV, you have 2 options depending on how you installed it:




                                    1. If you installed it with apt-get, run: sudo apt-get remove opencv.

                                    2. If you compiled it by your own, I think it was something like (sudo) make uninstall in the directory where you did make and make install (usually build/).


                                    Both will uninstall OpenCV (in the later case it will still leave you the local folder you used to compile it, so you can re-compile or re-install it at any moment).



                                    To install both OpenCV versions. I dumb trick I did was to prepare 2 OpenCV compilation folders (one for each version). And then a bash script program that performs make uninstall on one folder and make install on the other one. It should take it ~15 seconds to switch the OpenCV version on this way, since both version will be already locally compiled.






                                    share|improve this answer













                                    To uninstall OpenCV, you have 2 options depending on how you installed it:




                                    1. If you installed it with apt-get, run: sudo apt-get remove opencv.

                                    2. If you compiled it by your own, I think it was something like (sudo) make uninstall in the directory where you did make and make install (usually build/).


                                    Both will uninstall OpenCV (in the later case it will still leave you the local folder you used to compile it, so you can re-compile or re-install it at any moment).



                                    To install both OpenCV versions. I dumb trick I did was to prepare 2 OpenCV compilation folders (one for each version). And then a bash script program that performs make uninstall on one folder and make install on the other one. It should take it ~15 seconds to switch the OpenCV version on this way, since both version will be already locally compiled.







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Jan 3 '17 at 21:24









                                    Gines HidalgoGines Hidalgo

                                    1012




                                    1012






























                                        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%2f674272%2fhow-to-install-opencv-3-0-0-and-2-4%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

                                        Questions related to Moebius Transform of Characteristic Function of the Primes

                                        List of scandals in India

                                        Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?