Great video. Been trying since the morning to find instructions that actually worked. This is the only one that worked as promised. Used to work with C++ and OpenCV on Linux and Windows. Only recently started on MacOS so it is taking time to get the same things working.
i dont do too much cpp anymore, likely the same process (download some file, make a cpp folder, write a make file that includes tensorflow, build, compile)
Thanks a lot. As you said it is not available at other places. I am beginner to cpp, not to coding though. One question that can't we generate object files directly without going through this make and all procedure.
You're welcome, I'm glad my tutorial was helpful to you! To answer your question, it is possible to generate object files directly without using a Makefile. However, using a Makefile provides a structured and automated way to compile and link your code, which can save you a lot of time and effort, especially as your project grows in complexity. In addition, Makefiles allow you to easily specify dependencies between files and only re-compile the necessary files when changes are made, which can be a big time-saver. That being said, if you prefer to generate object files manually, you can do so using a command like this `g++ -c main.cpp -o main.o` This will compile the main.cpp file and generate the main.o object file. You would then need to repeat this command for each source file in your project and link them together using another command. I hope this helps! Let me know if you have any other questions or concerns.
You could try that. Absolute reference means the entire path whereas relative can go from the cmd directory into sub directories. for example abs reference: C:/User/files/main.cpp. if you are in the files directory in the terminal you can use relative path /main.cpp. i get errors like this in python all the time haha
@@elliotarledge On last scene you have the same error. The red underline of the include statement. My program compiles with Make but VS Code tells me, that the open CV header isn’t found
@@m.4074 the point is too compile and run with cmake. If I were I'd just make sure all the necessary dependencies are installed and your env variables are correct. Those are the only errors I've gotten with cmake (I'm not super experiences with c/c++)
This solution works for me: 1) updated c_cpp_properties.json file by adding "configurationProvider": "ms-vscode.cmake-tools"; 2) ran CMake: Configure command.
Woo hoo!! 🎉 For future viewers, the tutorial code is the first link in the description, and you've got to bring your own mp4
Concise and easy to understand. I salute you, big bro. Keep up the good work.
Great video. Been trying since the morning to find instructions that actually worked. This is the only one that worked as promised.
Used to work with C++ and OpenCV on Linux and Windows. Only recently started on MacOS so it is taking time to get the same things working.
Many thanks! This save my day!
Really helpful. Thanks E!
Works with Mac M1 Perfect! have been searching for this a lot!
thank you
I was trying From last 2 months
Holy shit there is a video on this. Thanks so much
Helped a lottt..thankyou!
Clear and easy to follow. Thanks !!!
great video, thanks so much
This is helpful, thanks!
unfortunately it did not solve my problems on MacBook Pro
A billion like bro. First video to work for me. Could you do tensorflow cpp for mac also? thanks
i dont do too much cpp anymore, likely the same process (download some file, make a cpp folder, write a make file that includes tensorflow, build, compile)
thanks!!
Perfecttttttttttt
Thanks a lot. As you said it is not available at other places. I am beginner to cpp, not to coding though. One question that can't we generate object files directly without going through this make and all procedure.
You're welcome, I'm glad my tutorial was helpful to you!
To answer your question, it is possible to generate object files directly without using a Makefile. However, using a Makefile provides a structured and automated way to compile and link your code, which can save you a lot of time and effort, especially as your project grows in complexity.
In addition, Makefiles allow you to easily specify dependencies between files and only re-compile the necessary files when changes are made, which can be a big time-saver.
That being said, if you prefer to generate object files manually, you can do so using a command like this `g++ -c main.cpp -o main.o`
This will compile the main.cpp file and generate the main.o object file. You would then need to repeat this command for each source file in your project and link them together using another command.
I hope this helps! Let me know if you have any other questions or concerns.
hey its giving an zsh: command not found: cmake
Wouldn't know maybe look at stackoverflow or use gpt4
1 Vote up. Make video on how to download opencv using brew also compiling and running on terminal without linking issues! But overall well done!
I just typed 'brew install opencv' in the terminal and it has worked for me. I also installed cmake utility in the similar way.
@@unev ooo ok. Seems like I may have tinkered a bit too much with my mac. Thanks tho 🙏
When using the command "cmake .." it appears "zsh: command not found: cmake". ¿Why is that happening?
first, make sure cmake is installed with `cmake -version` you could plug your errors into stackoverflow or ChatGPT and get a reasonable answer.
@@elliotarledge I fixed that and finished this tutorial. I liked it. Thanks for the help!
@@Sir_Horus_ow Im getting the same error how did you fix it
hey..I'm facing the same issue...could you tell how did you fix it?
I got a "Error: Could not open video file" is this the error referred to about the absolute reference? If so, how would I make it one? Thanks!
You could try that. Absolute reference means the entire path whereas relative can go from the cmd directory into sub directories. for example abs reference: C:/User/files/main.cpp. if you are in the files directory in the terminal you can use relative path /main.cpp. i get errors like this in python all the time haha
@@elliotarledge I'm lost....so do change the file's path?
How do I get rid of the include error?
I'm not sure without more context, can you provide the error you are receiving and the timestamp in which it happened in the video for you? Thanks.
@@elliotarledge
On last scene you have the same error. The red underline of the include statement. My program compiles with Make but VS Code tells me, that the open CV header isn’t found
@@m.4074 the point is too compile and run with cmake. If I were I'd just make sure all the necessary dependencies are installed and your env variables are correct. Those are the only errors I've gotten with cmake (I'm not super experiences with c/c++)
@@elliotarledge ok thanks!
This solution works for me: 1) updated c_cpp_properties.json file by adding "configurationProvider": "ms-vscode.cmake-tools"; 2) ran CMake: Configure command.