-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Cmake on Linux: Process finished with exit code 139 (interrupted by signal 11: SIGSEGV) #1092
Comments
I don't because this isn't how everyone have their project configured. Compiling the library is designed so that just compiling the .cpp files would work. You can copy them in your project along with your other sources files, or you can give yourself extra work by creating extra "cmake" or "project" files as you see fit, you are free to do so. I would assume that compiling .cpp files should be a trivial action with any build system including cmake. Compiling the samples is harder because they have dependencies, but the makefile provided in examples/ should work under OSX. It's not totally satisfactory but unfortunately maintaining portable functional examples for various backends in 2017 is harder than maintaining the library itself. As you pointed out this question has nothing to do with imgui or my work, if you are using morizotter's cmake file please discuss it with that person. I can't possibly be helping you to convert a Makefile into a cmakefile as I don't know neither cmake neither osx and I need to focus on imgui whenever possible. |
Feel free to post solution here for reference if you have one, although I am guessing that if you search for such cmakefile on the internet you'd find some. I'm just pointing out that it isn't something I can help with myself and it isn't really the place to ask. |
If you get a crashing executable you should use a debugger to find out what's crashing, to obtain and provide more information about the crash. |
The problem doesn't appear to be related to imgui but related to whatever mumbo-jumbo you have built with that project file, perhaps related to dynamic library bindings.
|
@QuantScientist : with some minor changes, everything seems to work on Linux too. I have attached a diff under .txt format to the issue you mentionned ( morizotter/imgui-opengl-glfw-glew-cmake-demo#3 ). First OpenGL 4 is not common under Linuxes boxes, and limit to OpenGL 3.3 or 3.2 fixed the first issue. Secondly, some environment variables must be set in order to use glew without an instant crash. HTH |
i had some variables which they were not initialized yet then i got "Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)" error |
Hi,
Yes, I do know you do not advocate the use of Cmake, but this is how all my projects are configured and its easy for cross compiling.
I have been trying to use this Cmake based demo project: morizotter/imgui-opengl-glfw-glew-cmake-demo#3
(I know you did not write this, of course)
It works great on OSX. out of the box, but not on Ubunto. After hours of playing with teh Cmake file and I still get "(interrupted by signal 11: SIGSEGV)" when the it runs,
Any help would be geratly appreciated,
Best,
The text was updated successfully, but these errors were encountered: