sb6code | Source code for OpenGL SupeBible 6th Edition examples | 3D Printing library
kandi X-RAY | sb6code Summary
kandi X-RAY | sb6code Summary
Source code for OpenGL SupeBible 6th Edition examples
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of sb6code
sb6code Key Features
sb6code Examples and Code Snippets
Community Discussions
Trending Discussions on sb6code
QUESTION
I'm trying to sun OpenGL SuperBible 6th edition example code for the first time on my Manjaro (arch) system.
I followed the HOWTOBUILD.txt, installed mesa and glfw (glfw-wayland, not sure if there is a difference) via pacman. Tried to run the first time unsuccessfuly, then changed an error in the CMakeList.txt as described in here https://stackoverflow.com/a/24474361/9197461
it got rid of the undefined reference to 'glfwInit'
error, but all other undefined errors stayed. Can anyone help me compile this without errors?
code example: https://github.com/openglsuperbible/sb6code
full error when I try to run make
:
ANSWER
Answered 2020-Apr-20 at 02:01I downloaded the source code and tried the steps you've done and not surpringsingly, received the same error message.
And it seems that the source code uses GLFW2 instead of GLFW3.
glfwOpenWindowHint
is renamed to glfwWindowHint
in GLFW3
See: glfwOpenWindowHint not declared in this scope GLFW3 & GLEW
You could try installing GLFW2 and run it again. Since GLFW2 is available in Ubuntu Xenial, remember to configure sources.list
accordingly.
EDIT:
I could not manage to install libglfw2
from Ubuntu Xenial repository. And manually installed dpkg
from official website.
download
.deb
file from https://launchpad.net/ubuntu/xenial/+package/libglfw-devgo to the folder
.deb
is installed in and runsudo dpkg -i [name of libglfw2].deb
Run
find . -name "libglfw*"
in/usr/lib
to find the path to the library. (there can be multiplelibglfw.so
as you already downloadedGLFW3
so be careful)Create a symbolic link for the dynamic library just installed by running the following command:
sudo ln -s /usr/lib/[path to file]/[filename] /usr/lib/[path to file]/libglfw2.so
Edit
sb6code/CMakeFiles/tunnel.dir/link.txt
as follows-lglfw
to-lglfw2
Run
make
If you have already installed libglfw3
but could not manage to run cmake ..
, this could be because your libglfw3.so
is stored as libglfw.so
.
In that case, you can create a symbolic link to it:
sudo ln -s /usr/lib/[path to file]/[libglfw name].so /usr/lib/[path to file]/libglfw3.so
Save and run cmake ..
again inside build
.
If it fails because of linker, make sure you have all the dependencies:
QUESTION
I'm having problems compiling the example code provided with the OpenGL Superbible, 6th ed. I'm using Ubuntu 19.04 and CMake 3.13.4. I have all the necessary dependencies. CMake executes with no problems ("cmake ."), but when I enter the make command it fails.
I'm under the impression it has to do with GLFW but I don't know how to change CMake for it to work.
Here's a link to the example code. https://github.com/openglsuperbible/sb6code
I've already fixed the issue in line 13 of the CMakeLists.txt file but its still not compiling.
From:
...ANSWER
Answered 2019-Apr-23 at 08:05I have changed the code and the cmake file to work with GLFW3. Now the project compiles and runs. I uploaded it to github here: https://github.com/mlioz/sb6code_fixed
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sb6code
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page