-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenGL3 Example code not running | Linux x64 #3507
Comments
Did you try just running |
Sorry for the inconvenience, I was testing inside virtualbox ( My main or host OS is windows10 with I explored both files Here is the O/P of Terminal O/P:
Same problem... So, I guess its hardware limitation (VirtualBox), I will final update once I test it on actual O.S as dual boot. Thank you for your support. |
Hi,
I just found out about this awesome library from you tube, and i wanted to give it a try to check whether it fulfills my requirements.
So i downloaded this imgui c++ library with
git clone
command and placed the folder on the desktop.Then first i thing i did was to read official and unofficial documentation for installation and integration purpose.
It took me 2 days to simply just run the example, and trying all of them one by one finally SDL2 + OpenGL2 (example_sdl_opengl2) ran successfully.
What i did is simply copy and past the command from readme file and that's it.
But SDL + OpenGL3 (example_sdl_opengl3) example does not work.
As stated above i also copy pasted command from readme.
Original:
c++
sdl2-config --cflags-I .. -I ../.. -I ../libs/gl3w main.cpp ../imgui_impl_sdl.cpp ../imgui_impl_opengl3.cpp ../../imgui*.cpp ../libs/gl3w/GL/gl3w.c
sdl2-config --libs-lGL -ldl
command i ran:
sudo g++
sdl2-config --cflags-I .. -I ../.. -I ../libs/gl3w main.cpp ../imgui_impl_sdl.cpp ../imgui_impl_opengl3.cpp ../../imgui*.cpp ../libs/gl3w/GL/gl3w.c
sdl2-config --libs-lGL -ldl
I found out that each of that examples required proper dependency and Os environment setup in order to run.
So i install all related libs as per my understanding.
Here is the list of
libs installed in my system
debian10 x64:At first it gave me lots of errors as follows:
But this was resolved by simply adding one command:
-lGLEW
in capital letters , in small letter it won't work!!!
So new command look like:
$ sudo g++
sdl2-config --cflags-I .. -I ../.. -I ../libs/gl3w main.cpp ../imgui_impl_sdl.cpp ../imgui_impl_opengl3.cpp ../../imgui*.cpp ../libs/gl3w/GL/gl3w.c
sdl2-config --libs-lGL -ldl -lGLEW
Now output file was generated sucessfully!
./a.out
but in output it just flashes the screen and closes with one error as stated below:
i know there is some silly mistake i done as non CS guy, probably some linking mechanism which i dont understand, but consider me i can copy past command and run the program then later on i twick origional code untill it fulfills my requirements.
It would be great if outbox running code support for LINUX will be given, so i can use this in my realtime machinevision applications. Like: sample code with VSCode IDE or other which simply just run if i follow certain steps.
Thank You,
The text was updated successfully, but these errors were encountered: