2019-04-22 11:40:32 -0600 | received badge | ● Notable Question (source) |
2019-04-22 11:40:32 -0600 | received badge | ● Popular Question (source) |
2018-09-28 18:32:30 -0600 | received badge | ● Famous Question (source) |
2018-04-05 04:23:43 -0600 | received badge | ● Notable Question (source) |
2018-01-18 08:35:02 -0600 | received badge | ● Popular Question (source) |
2017-06-07 06:45:10 -0600 | asked a question | Which camera should I use for my application? Hi, I would like to get advice from experienced users. Which camera would you prefer for object/person tracking tasks in OpenCV? Probably I'll get a USB webcam but even though I would like to get advice about other cameras besides USBs. Or which specs should I check when buying? |
2017-05-29 04:19:48 -0600 | received badge | ● Enthusiast |
2017-05-28 05:46:34 -0600 | received badge | ● Scholar (source) |
2017-05-28 05:43:19 -0600 | received badge | ● Self-Learner (source) |
2017-05-28 05:40:39 -0600 | commented question | Build Application with Static Libraries Problem solved after a few steps. Thank you all
First, read the steps that I wrote in my question post. They're actually completely correct, just reset the CMake cache and reload the project in case of you're facing any issue. I had already done that before but the problem had not solved. The trick is, try it out again and again. After rebuilding the application with statically linked libraries, if you're working with a video file like me, you'll probably face a new issue. Your application can't open the video file on another computer.
In your OpenCV build directory, there is a file named as opencv_ffmpegXXX.dll (310 in my case), put it in the same directory with your EXE. |
2017-05-28 05:39:17 -0600 | commented question | Build Application with Static Libraries Unfortunately, I can't. "New users must wait 2 days". I'm writing here as the comment. You can write as the answer, if would you like. I'll mark as solution |
2017-05-28 05:19:57 -0600 | commented question | Build Application with Static Libraries Ok solved, related to the codec. Put the opencv_ffmpeg310.dll with the same directory with your EXE on the new machine. I'm writing the solution as the answer. |
2017-05-28 05:11:59 -0600 | commented question | Build Application with Static Libraries @berak I reset the CMake cache and reloaded the project after adding the new message command, after a long waiting, IDE has indexed the files and libraries again. EXE size increased to 9.5MB now. Tried it on my virtual machine which does not have OpenCV installed, EXE is working but I'm having another problem. Even though I put the video.mp4 file to correct directory (C:\OpenCV\video.mp4), EXE can't find the file |
2017-05-28 04:32:49 -0600 | commented question | Build Application with Static Libraries @berak I have changed the environment variable, %OpenCV_DIR% is pointing to correct directory. How can I check OpenCV_LIBS ? |
2017-05-28 04:29:25 -0600 | commented question | Build Application with Static Libraries There is a Linker option for Static linking in Visual Studio, so you don't need to make any change on CMake. My IDE is using MinGW and CMake, I need to solve this with MinGW or CMake parameters |
2017-05-28 04:01:09 -0600 | commented question | Build Application with Static Libraries I don't need all libraries, my application is just a simple application. AFAIK, Visual Studio does not use CMake, so it's a little bit different. I edited the post with app code and CMake, you can look again |
2017-05-27 14:37:24 -0600 | received badge | ● Organizer (source) |
2017-05-27 13:50:41 -0600 | asked a question | Build Application with Static Libraries Hi all, I'm trying to statically link my C++ (CMake) application to run on another computer which does not have OpenCV installed. So far,
target_link_libraries(HoGPeopleDetector ${OpenCV_LIBS} "-static") Then rebuilt the application, EXE size increased to 1.6 MB from 200 KB. So I guess linking process was successful. The application works well when I run it within my IDE. However, when I try to run it from the EXE file, it still expects DLL files. (libopencv_core310.dll and maybe more) IDE: CLion 2017.1.2 OpenCV: 3.1 Program Code: CMake: |
2016-11-19 13:39:35 -0600 | received badge | ● Student (source) |
2016-11-19 13:36:37 -0600 | commented question | undefined reference to `cv::imread I finally solved my problem. I'm using MinGW 5.3 on my IDE. But CMake is using MinGW 4.9 as default, if you select "Use default native compilers". So you should select "specify native compilers" and give the path of MinGW that using with your IDE. And then you should run "mingw32-make.exe" from the same MinGW again. - I could not write as answer, therefore I'm writing as comment |
2016-11-19 08:07:13 -0600 | commented question | undefined reference to `cv::imread Ok I'm already doing same things with you wrote. I don't understand what I'm doing wrong. I will try with also mingw64 I would write the result |
2016-11-19 05:42:14 -0600 | commented question | undefined reference to `cv::imread Which folder should I give? There are 2 folders. (sources and build) |
2016-11-19 05:08:13 -0600 | commented question | undefined reference to `cv::imread Yes I tried it, already my IDE doing that with "Reset CMake Cache and Reload" option. I'm giving "sources" folder of OpenCV to CMake-GUI |
2016-11-18 14:29:19 -0600 | commented question | undefined reference to `cv::imread Actually I gave the "sources" folder (extracted by OpenCV installer) to CMake-GUI. As far as I know sources folder is the same with github. And as build folder, I gave a empty folder ("mingw-build" in my case) After the "mingw32-make" command, generated DLLs and some exe files in "bin" folder. We already need these DLLs as far as I know, am I wrong? I added the "bin" folder to system path. But I can't compile the project still. |
2016-11-18 14:14:07 -0600 | commented question | undefined reference to `cv::imread OK I replaced screenshots. I will try your response now then I would write the result |
2016-11-18 14:12:09 -0600 | received badge | ● Editor (source) |
2016-11-18 13:54:26 -0600 | asked a question | undefined reference to `cv::imread Hi, I'm using CLion as IDE and trying to link OpenCV. But I'm having problem even with a very simple app. I prepared OpenCV binaries with these steps.
My CPP Code: My CMakeLists.txt And when I try to build, I'm getting the following messages. |