Comments (3)
This is the error I get after install luasocket
# lua get_externals.lua
lua: get_externals.lua:8: module 'ex' not found:
no field package.preload['ex']
no file '/usr/local/share/lua/5.4/ex.lua'
no file '/usr/local/share/lua/5.4/ex/init.lua'
no file '/usr/local/lib/lua/5.4/ex.lua'
no file '/usr/local/lib/lua/5.4/ex/init.lua'
no file './ex.lua'
no file './ex/init.lua'
no file '/usr/local/lib/lua/5.4/ex.so'
no file '/usr/local/lib/lua/5.4/loadall.so'
no file './ex.so'
stack traceback:
[C]: in function 'require'
get_externals.lua:8: in main chunk
[C]: in ?
from gltut.
The glsdk directory is included in the git repository. You'll have a much easier time with cloning the repo to build the framework than with downloading the outdated release zip archive. You won't need to invoke Lua to get any external repos.
This is how I would do it from scratch on Fedora Linux:
sudo dnf install @Development-tools premake gcc-c++ libXi-devel freeglut-devel
Then clone the repo and enter the glsdk directory. Emit premake4 gmake
and once that's done make -j4 config=release
. This will get the framework code built. If you want to do all the premakes and builds for every individual tutorial afterwards, since they are built individually and separate from the glsdk framework code, you can try this in bash from the gltut directory:
dirs=(Tut*)
for dir in "${dirs[@]}"; do pushd . && cd "$dir" && premake4 gmake && make -j4 config=release && popd; done
You can alternatively build the tutorials with config=debug
for when you play with the source and need to troubleshoot your bugs.
from gltut.
Another observation: The version of freeglut included in the glsdk directory is extremely old. On my desktop with proprietary nvidia drivers it's been no problem, but on my laptop with Intel drivers it causes trouble on the last few tutorials. The GL window cannot be created and it immediately crashes out.
This is where having a system-installed freeglut was handy. I haven't yet spent time to figure out how to do this for the entire repository (requires modifying glsdk/links.lua), but basically changing the make definition to link the system freeglut instead of the one in glsdk solved the crashing problem.
from gltut.
Related Issues (20)
- Error building the document pdf HOT 3
- The glsdk directory is missing HOT 2
- Chapter 5, couldn't grasp the paragraph
- The latest release version, glsdk... HOT 3
- Definition of Vector multiplication is vague HOT 2
- Release file is missing \glsdk\ folder as well as gloadD.lib HOT 5
- Error on building HOT 7
- Error on generating the PDF on linux
- Error running Tut07 WorldScene HOT 2
- MacOS build error - glsdk HOT 2
- Build error on WSL2 (Ubuntu) HOT 1
- Build Issue On ArchLinux - Config.h: No such file or directory HOT 2
- Provide a prebuilt PDF book in the releases
- Tutorial 05 shader filename problem HOT 2
- Issue with Documents/Basics/VectorNegation.svg HOT 1
- missing config.h results in a failed compilation HOT 1
- freeglut (./Tut18BumpySquare): ERROR: Internal error <FBConfig with necessary capabilities not found> in function fgOpenWindow HOT 2
- Arch Linux Copying Website Fixes
- Could NOT find OpenGL error on WSL 2 HOT 1
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 gltut.