- Видео 28
- Просмотров 11 047
Atqa Munzir
Добавлен 1 июн 2019
Setup C++ OpenGL in VSCode (Windows)
Step:
- Download VSCode (code.visualstudio.com/download)
- Download MSYS2 (www.msys2.org/)
- Generate and Download Glad (glad.dav1d.de/)
- Install VSCode
- Install MSYS2
- Put Glad on MSYS2
- Edit Environment Variables for MSYS2
- Configure VSCode
- Download Extension
- Add ExecutorMap
- Add IncludePath
- Testing (cs.lmu.edu/~ray/notes/openglexamples/)
MSYS2 command:
pacman -Syu
pacman -S mingw-w64-x86_64-toolchain
pacman -S mingw-w64-x86_64-glew
pacman -S mingw-w64-x86_64-glfw
pacman -S mingw-w64-x86_64-freeglut
VSCODE Extension
- C/C++
- Code Runner
VSCODE Configuration
**Executor Map
"code-runner.executorMap": {
"cpp": "cd $dir && g++ $env:MSYS2/mingw64/include/glad/glad.c (Get-ChildItem -Path . -Filter *....
- Download VSCode (code.visualstudio.com/download)
- Download MSYS2 (www.msys2.org/)
- Generate and Download Glad (glad.dav1d.de/)
- Install VSCode
- Install MSYS2
- Put Glad on MSYS2
- Edit Environment Variables for MSYS2
- Configure VSCode
- Download Extension
- Add ExecutorMap
- Add IncludePath
- Testing (cs.lmu.edu/~ray/notes/openglexamples/)
MSYS2 command:
pacman -Syu
pacman -S mingw-w64-x86_64-toolchain
pacman -S mingw-w64-x86_64-glew
pacman -S mingw-w64-x86_64-glfw
pacman -S mingw-w64-x86_64-freeglut
VSCODE Extension
- C/C++
- Code Runner
VSCODE Configuration
**Executor Map
"code-runner.executorMap": {
"cpp": "cd $dir && g++ $env:MSYS2/mingw64/include/glad/glad.c (Get-ChildItem -Path . -Filter *....
Просмотров: 6 187
Видео
Project 1: Flappy Bird
Просмотров 16Год назад
0:02 Game Start 0:16 Clear difference in vertical and horizontal gap between pipes 0:40 Gold Medal 0:50 Pause and resume game testing
Grafkom Sem 3 Tugas 2
Просмотров 632 года назад
settings.json { "code-runner.executorMap": { "cpp": "cd $dir && g $fileName -o $fileNameWithoutExt -lfreeglut -lglew32 -lopengl32 -lglfw3 -lglu32 -Lfolder && $dir$fileNameWithoutExt" }, "files.associations": { "*.css": "css", "ostream": "cpp" } } Bresenham's Line ruclips.net/video/RGB-wlatStc/видео.html DDA Line ruclips.net/video/W5P8GlaEOSI/видео.html
Setup Github buat Ngumpul Tugas dan Kolaborasi Kelompok
Просмотров 352 года назад
Setup Github buat Ngumpul Tugas dan Kolaborasi Kelompok
Setup OpenGL di VSCode [Deprecated]
Просмотров 2,8 тыс.2 года назад
it's deprecated, check out the new video: ruclips.net/video/GaMTjQouBcM/видео.htmlsi=eMK5lHwe5dIMOQ6b
Pemograman II : Double Linked List
Просмотров 342 года назад
Single Linked List ruclips.net/video/mo61giENi0Y/видео.html
Cara Mendapatkan Unity Student buat Mahasiswa Aktif
Просмотров 7912 года назад
Cara Mendapatkan Unity Student buat Mahasiswa Aktif
Basis Data : Praktikum 1
Просмотров 682 года назад
MYSQL Installer for Windows cdn.mysql.com//Downloads/MySQLInstaller/mysql-installer-community-8.0.28.0.msi
Flashlight Cover by Pipi, Gilbert, Rivan
Просмотров 422 года назад
Flashlight - Jessie J When tomorrow comes I'll be on my own Feeling frightened of The things that I don't know When tomorrow comes Tomorrow comes Tomorrow comes And though the road is long I look up to the sky And in the dark I found, I lost hope that I won't fly And I sing along, I sing along And I sing along I got all I need when I got you and I I look around me, and see a sweet life I'm stuc...
Game Yang Bikin Kamu Begadang Semalaman | Slither.io
Просмотров 523 года назад
Game Yang Bikin Kamu Begadang Semalaman | Slither.io
Pemograman I : Penjelasan Good Ranking Dll
Просмотров 673 года назад
Pemograman I : Penjelasan Good Ranking Dll
Pemograman I : Ringkasan Coding Praktikum 13 FPB KPK dengan Array dan Function
Просмотров 323 года назад
Pemograman I : Ringkasan Coding Praktikum 13 FPB KPK dengan Array dan Function
Pemograman I : Penjelasan Tugas Praktikum 14
Просмотров 343 года назад
Pemograman I : Penjelasan Tugas Praktikum 14
Pemograman I : Penjelasan Tugas Praktikum 12
Просмотров 553 года назад
Pemograman I : Penjelasan Tugas Praktikum 12
Pemograman I : Penjelasan Do While dan Function Tugas Praktikum 11
Просмотров 233 года назад
Pemograman I : Penjelasan Do While dan Function Tugas Praktikum 11
Pemograman I : Pembahasan Tugas Praktikum 7
Просмотров 413 года назад
Pemograman I : Pembahasan Tugas Praktikum 7
Pemograman I : Pembahasan Code Bangun Datar Tugas Praktikum 6
Просмотров 343 года назад
Pemograman I : Pembahasan Code Bangun Datar Tugas Praktikum 6
Pemograman I : Pembahasan Pseudocode E Commerece Tugas Praktikum 5
Просмотров 633 года назад
Pemograman I : Pembahasan Pseudocode E Commerece Tugas Praktikum 5
Pemograman I : Penjelasan FOR LOOP dengan Flowchart, Pseucode, Code, dan Tabel Pembuktian (Part 2)
Просмотров 603 года назад
Pemograman I : Penjelasan FOR LOOP dengan Flowchart, Pseucode, Code, dan Tabel Pembuktian (Part 2)
Pemograman I : Penjelasan FOR LOOP dengan Flowchart, Pseucode, Code, dan Tabel Pembuktian (Part 1)
Просмотров 1383 года назад
Pemograman I : Penjelasan FOR LOOP dengan Flowchart, Pseucode, Code, dan Tabel Pembuktian (Part 1)
Thank You
Great Great thanks for helping me to do it Note for friends here : don't forget to restart VS code to detect the path thanks
a mi desde vscode no me queria correr pero ejecutando el comando desde el terminal de MYS2 donde instale todo si se ejecuta el archivo main.exe
thank you. out of all videos i have tried, this is the only one that helped me the most.
glad it helped
bg tambahin soil bang untuk texture
bang bikin cara untuk nambah lib soil bag untuk texture, ditunggu
its showing no such file or directory glad.h :( plss help i m being mad at this from 2-3 days pls help its not showing include error but showing no such file or directory glad.h :( i tried a lot but :(
hello mine is showing fatal error: glad/glad.h: No such file or directory #include <glad/glad.h> please help
Tuve un inconveniente porque igual me salía error en #include <GL/glut.h>, pero lo solucioné así: Archivo -> Preferencias -> Configuración, y en la barra de búsqueda escribir includepath. En las opciones donde pueda agregar una ruta insertar la ruta raíz que contiene a GL/glut.h, en mi caso era C:\msys64\mingw64\include\**
mantap mas work
holy shit you're a god
Thank you for a helpful video! However, I get the errors: fatal error: glad/glad.h: No such file or directory #include <glad/glad.h> ^~~~~~~~~~~~~ compilation terminated. error: 'gl' does not name a type gl Can you help me fix these errors?
make sure you copy the generated glad to the directory as in video
I encountered the error, 'GL/glut.h: No such file or directory #include <GL/glut.h>'. To resolve it, I checked if the directories were correct on my computer. In my case, I had to replace one directory with 'C:\msys64\mingw64\bin'. Check where the mingw\bin is located on your computer and add it to the PATH.
thanks for the more detailed hint 😃
can you please tell me the steps to solve this same error i got confused what to do please help :)
PS C:\Users\acer\testing> cd "c:\Users\acer\testing\" ; if ($?) { g++ $env:MSYS2/mingw64/include/glad/glad.c (Get-ChildItem -Path . -Filter *.cpp -Recurse).FullName -o main -lopengl32 -lfreeglut -lglu32 -lglew32 -lglfw3 -lgdi32 -lmingw32 } ; if ($?) { ./main } cc1plus.exe: fatal error: C:\msys64/mingw64/include/glad/glad.c: No such file or directory compilation terminated. PS C:\Users\acer\testing> How to solve this probloem? i try to change directory of glad to follow it but i still error...
hello i wanted to tell you that i wanted to run a c code but it's not running and errors are coming up, but c++ code are running fine. i hope you can do something about it.
hello, can you reach me out through my discord, kom.u or you can try to add this code below in settings > code-runner.executorMap ``` "c": "cd $dir && gcc $env:MSYS2/mingw64/include/glad/glad.c (Get-ChildItem -Path . -Filter *.c -Recurse).FullName -o main -lopengl32 -lfreeglut -lglu32 -lglew32 -lglfw3 -lgdi32 -lmingw32 && ./main" ```
it works but sometimes doesn't
make sure to start in the file that has the entry function (main) *if you have multiple files
@@atqamz i want to thank you , i have been trying to install it for about a week , after seeing so many youtube videos , only yours worked for me , so m so grateful that you made such a detailed video with steps , now i can finally learn opengl, please suggest me some good online source eg(youtube or any site ) to learn opengl , as i have to make y final year project using opengl , i have been thinking of making a 3d classroom
@@gurinderkaur6817 sorry for late reply, glad it help you. for learning videos, you can try this playlist: ruclips.net/p/PLlrATfBNZ98foTJPJ_Ev03o2oq3-GGOS2&si=GWVKx7k3tTTtFDIo
@@atqamz please elaborate this a bit more, i am trying to run the code but all of the files are running simultaneously showing No such file directory error. please help
Thank You Bro ,it works
You're welcome!
I also got same error
yes, make sure toolchain, freeglut, etc are installed properly
still showing same error@@atqamz
@@ANJUKUMARI-x2b can you reach me from discord, @kom.u I'll try to help you 😄
Kak mau nanya, kok saya enggak muncul yah kak hasil compiler nya?. terus kalau saya run code sudah bisa kebaca terminal tapi enggak muncul hasil compilernya, kalau pakai run c/c++ file malah gak bisa "The preLauchTask 'C/C++: gcc.exe build active file' terminated with exit code -1.
hmm sepertinya tutorial ini udah deprecated utk versi skrg, akan kuperbarui videonya, terimakasih laporannya
@@atqamz baik kak, soalnya saya sudah ngikutin langkah² nya dari awal sampai akhir tetap masih gak bisa, terus sama sudah coba langkah² yang lain di RUclips juga sama masalahnya tetap gak bisa.
@@NoNameAnime-m7q kalau kamu butuh cepat, bisa hubungi aku lgsg melalui Instagram/Discord yah Instagram: @atqamz Discord: kom.u
ini video terbarunya yah: ruclips.net/video/GaMTjQouBcM/видео.htmlsi=rrSCWcAnbbrvj5G2
ive followed all the steps but i keep getting the cannot open source file "GL/glut.h" error message ;__;
sorry, i just reviewed again the tutorial, seems like it's not worked on newer version. I'll remake the video soon, thank you
hey, i just remake the video, check this out: ruclips.net/video/GaMTjQouBcM/видео.htmlsi=rrSCWcAnbbrvj5G2
(Ini komen tanpa konteks)
how to get task.jason and main.cpp file?
you need to create new file named main.cpp, and run the code it'll make task.json automatically
Ini pake windows ?
iya bang
cara munculin tasknya gmn ya
@@atqamz udh gan makasih
@@febyanadjie sori baru bales lg bang wkwk, menurut abang udah jelas ga videonya? kalah kurang jelas aku coba buat ulang
Jelas cuma karena mungkin versi terbaru vscode dllnya jd beda2 dikit
Even though I can only speak english, this video was still amazing! This fixed all of my problems and now Im able to move forward :D thank you so much @Ataq Munzir
Glad it helped! feel free to contact me if you need more detail instructions :D
Manteb Bang , mamak ku pasti bangga
Nicee
samgat membangtu ngab atko
syip mantap, share like comment
Semangat assafa
bang jelasin no 2 dong, kok saya coba error ga muncul 1
yg mana ne kan ada 2
25:22 bedanya = 0 sama == 0 apa?
kalau dijawab saya subscribe
= untuk inisiasi, == untuk comparison cth : x = 0 (Inisiasi variabel x menjadi 0) x == 0 (Apakah variabel x isinya 0?)
@@atqamz ok thanks
iya om jangan marah-marah :>
Terima kasih sensei Atqa 🙏🏼
TERIMA KASIH MBAK
saya tandai kamu
mantappp
terimakasih bang
😱😱🗿🗿
Semoga Membantu