Giter VIP home page Giter VIP logo

Comments (4)

eloj avatar eloj commented on September 28, 2024 1

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.

eloj avatar eloj commented on September 28, 2024 1
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.

BillKek avatar BillKek commented on September 28, 2024

It is not error. It is invitation to perform maintenance on a copy of Linux using script messages as assistance.

from ded.

satvik007 avatar satvik007 commented on September 28, 2024
sudo apt-get install libsdl2-dev
sudo apt-get install libglew-dev

from ded.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.