Comments (6)
Thank you.
I must upgrade my Linux test VM to 16.04 !
Regards
Chris
from c-pcb.
Also I had to call glewExperimental and glewInit in view.cpp to make it work. It seems to be sth related to my glew version (Ubuntu 16.04, GLEW version 1.13.0, OpenGL version 3.0 Mesa 11.2.0 is supported)
glfwSetKeyCallback(window, key_callback);
glfwSetInputMode(window, GLFW_STICKY_KEYS, 1);
//PATCH STARTS HERE
//just after creating context and before using OpenGL
//http://stackoverflow.com/questions/8302625/segmentation-fault-at-glgenvertexarrays-1-vao
glewExperimental = GL_TRUE;
glewInit();
//PATCH ENDS HERE
//set gl settings
glGetError();
glClearColor(0.0, 0.0, 0.0, 0.0);
from c-pcb.
I've been thinking of porting over to use SDL2 rather than glfw3. I'm using that, SDL2, for other projects, and I think that would open the door to an easy Windows version of the PCB solver.
Chris
from c-pcb.
Just as issalig commented on Feb 9, 2017, my compile failed on Linux version 4.14.34-1-MANJARO
I also had to add a a link to libglew.
clang++ -O2 --std=c++14 pkg-config --cflags glfw3 view.cpp mymath.cpp -oview pkg-config --static --libs glfw3 glew
from c-pcb.
I got things to build on an Ubuntu VM after installing the libglew-dev and libglfw3-dev packages. And yes on that platforms it does SEGFAULT. So somthing to look at.
I wonder how others have managed to run it on Linux. I've never tried before myself as this was a Mac OSX project initially.
However, this makes me think I need to switch over to useing SDL rather than glfw3 as I'm not happy with glw3 even on the Mac platform.
Chris
from c-pcb.
Adding the:
glewExperimental = GL_TRUE;
glewInit();
Does make it work.
I still think I'll switch over to SDL.
Chris
from c-pcb.
Related Issues (13)
- about extern function of mymath.cpp error HOT 3
- c_pcb_dsn : segmentation fault with Kicad v6 exported specctra dsn files
- Segement Fault in c_pcb_View:main() 326:glGenVertexArrays() HOT 2
- Potential lifetime issue with net(s) HOT 2
- Unmatched \" quote defined key word STRING_QUOTE. May has potentially parsing error.s.
- integration to QautoRouter HOT 2
- Thread 1 "view" received signal SIGSEGV, Segmentation fault. HOT 7
- Clarify Input and Output Formats HOT 6
- Kudos - not an issue - works well in pcb-rnd integration HOT 6
- does router Algorithm has reference paper? HOT 2
- Can anyone help to compile exe for Windows? HOT 1
- How to Determine Via Locations? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from c-pcb.