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;
}
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
add a comment |
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
add a comment |
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
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
14.04 software-installation opencv
edited Sep 15 '15 at 4:47
Guru Swaroop
asked Sep 15 '15 at 4:41
Guru SwaroopGuru Swaroop
2223616
2223616
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
Run command: sudo apt-get remove opencv.
This will uninstall the opencv and then delete the opencv folder from home, that's it.
add a comment |
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.
add a comment |
To uninstall OpenCV, you have 2 options depending on how you installed it:
- If you installed it with apt-get, run:
sudo apt-get remove opencv.
- If you compiled it by your own, I think it was something like
(sudo) make uninstallin the directory where you didmakeandmake install(usuallybuild/).
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.
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%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
Run command: sudo apt-get remove opencv.
This will uninstall the opencv and then delete the opencv folder from home, that's it.
add a comment |
Run command: sudo apt-get remove opencv.
This will uninstall the opencv and then delete the opencv folder from home, that's it.
add a comment |
Run command: sudo apt-get remove opencv.
This will uninstall the opencv and then delete the opencv folder from home, that's it.
Run command: sudo apt-get remove opencv.
This will uninstall the opencv and then delete the opencv folder from home, that's it.
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
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Feb 25 '16 at 18:20
WillCWillC
75889
75889
add a comment |
add a comment |
To uninstall OpenCV, you have 2 options depending on how you installed it:
- If you installed it with apt-get, run:
sudo apt-get remove opencv.
- If you compiled it by your own, I think it was something like
(sudo) make uninstallin the directory where you didmakeandmake install(usuallybuild/).
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.
add a comment |
To uninstall OpenCV, you have 2 options depending on how you installed it:
- If you installed it with apt-get, run:
sudo apt-get remove opencv.
- If you compiled it by your own, I think it was something like
(sudo) make uninstallin the directory where you didmakeandmake install(usuallybuild/).
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.
add a comment |
To uninstall OpenCV, you have 2 options depending on how you installed it:
- If you installed it with apt-get, run:
sudo apt-get remove opencv.
- If you compiled it by your own, I think it was something like
(sudo) make uninstallin the directory where you didmakeandmake install(usuallybuild/).
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.
To uninstall OpenCV, you have 2 options depending on how you installed it:
- If you installed it with apt-get, run:
sudo apt-get remove opencv.
- If you compiled it by your own, I think it was something like
(sudo) make uninstallin the directory where you didmakeandmake install(usuallybuild/).
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.
answered Jan 3 '17 at 21:24
Gines HidalgoGines Hidalgo
1012
1012
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%2f674272%2fhow-to-install-opencv-3-0-0-and-2-4%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