Comments (4)
If you un-inline the pkg-config
call, then the script will stop there on error (due to the set -e
), which at least saves you the unnecessary errors from the compiler:
PKGFLAGS=`pkg-config --cflags $PKGS`
$CC $CFLAGS $PKGFLAGS -o ded $SRC $LIBS `pkg-config --libs $PKGS`
This is better because the in-line version will be empty if ANY of the packages are missing, potentially resulting in misleading errors from the compiler, e.g complaining about SDL2 includes missing even though they're correctly installed.
It's a minor thing obviously as the project wouldn't build anyway. Something to beware of if you copy this approach.
from ded.
sudo apt-get install libsdl2-dev sudo apt-get install libglew-dev
To be complete:
sudo apt install libsdl2-dev libglew-dev libfreetype-dev
If you get an error like "Package 'opengl', required by 'glu', not found", install libopengl-dev
manually.
This is because the package dependencies for libglu1-mesa-dev
were missing libopengl-dev
, which provides opengl.pc
on debian/ubuntu/linux mint. This was an issue on my Linux Mint 21.1 installation.
from ded.
It is not error. It is invitation to perform maintenance on a copy of Linux using script messages as assistance.
from ded.
sudo apt-get install libsdl2-dev
sudo apt-get install libglew-dev
from ded.
Related Issues (20)
- ERROR: could not load glyph of a character with code 32 HOT 2
- Rainbow effect HOT 2
- Misspelling
- ./build_msvc.bat is not working HOT 2
- Can't go to the previous folder, in the file browser HOT 1
- GL issues on macOS 11.7.2 HOT 8
- Updated DED crashed on Ubuntu 22 HOT 5
- build.sh using CRLF line terminators HOT 4
- `da_move` could lead to undesired side effects HOT 1
- Could not load glyph of a character with code 32 HOT 1
- // TODO: URL Detection. maybe LOL
- Execution Error: HOT 1
- dollar signs are rendered... interestingly... HOT 3
- How fix src/free_glyph.c:9:60: error: ‘FT_RENDER_MODE_SDF’ undeclared (first use in this function); did you mean ‘FT_RENDER_MODE_MAX’? HOT 4
- Failed to compile simple_color.frag on mac OS Ventura 13.2.1 HOT 1
- file_size() gives crazy big values back HOT 7
- ERROR: Could not initialize GLEW! HOT 16
- [RESOLVED with PR #42]#error: "TODO: type_of_file() is not implemented for Windows" HOT 1
- setup_dependencies.bat lacking dependencies / build_msys2_mingw64.sh fails to build
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 ded.