openglsuperbible / sb7code

Source code and supporting material for the 7th Edition of OpenGL SuperBible
727 stars 251 forks source link

Cannot compile in Ubuntu 17.10 #31

Open bricke opened 6 years ago

bricke commented 6 years ago

the cmake command executes correctly, the make returns an error:

/usr/bin/ld: cannot find -lglfw3 /usr/bin/ld: cannot find -lXinerama /usr/bin/ld: cannot find -lXi /usr/bin/ld: cannot find -lXcursor collect2: error: ld returned 1 exit status CMakeFiles/wrapmodes.dir/build.make:95: recipe for target '../bin/wrapmodes' failed make[2]: *** [../bin/wrapmodes] Error 1 CMakeFiles/Makefile2:131: recipe for target 'CMakeFiles/wrapmodes.dir/all' failed make[1]: *** [CMakeFiles/wrapmodes.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

I tried both on Wayland and x11, none works, same issue, I do have glfw3 and glfw3-dev

Hints?

bricke commented 6 years ago

Fixed installing missing dependencies and with this: #13

bclinthall commented 6 years ago

Why is this issue closed? Pull request #13 isn't merged in yet. I was having the same problem.

bricke commented 6 years ago

Sorry for my english, i meant that i don’t have this issue anymore so i closed my issue as i believe it was on my side

mattgruenke commented 6 years ago

It shouldn't have been closed, but the point is basically moot as @grahamsellers has abandoned this project without appointing any other maintainers.

Our best bet is probably for someone to make a fork that only has the fixes merged in. We could then mention it on the wiki.

bricke commented 6 years ago

What do you mean by abandoning? Are they working on a new book?

mattgruenke commented 6 years ago

I mean nobody is merging these fixes. A new (unpublished) book doesn't help any of us still reading the current edition or trying to use these examples.

mattgruenke commented 6 years ago

Anyway, I've added the wiki page I mentioned (as well as some others):

https://github.com/openglsuperbible/sb7code/wiki/Notable-Forks

My fork has the fixes, but I'm also porting the examples from the book's SB7 library to OGLplus. So, I'll leave it for someone else to make a pure fork + fixes.