LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-11-2017, 07:11 AM   #1
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Rep: Reputation: 138Reputation: 138
Alternative to Install Libsdl1.2-dev with less dependencies


Hello,

I try to install libsdl 1.2 dev with a minimum install.

Herewith the result with --no-install-recommends:

Code:
# apt-get install libsdl1.2-dev  --no-install-recommends
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Die folgenden zusätzlichen Pakete werden installiert:
  libasound2-dev libavahi-client-dev libavahi-common-dev libcaca-dev libdbus-1-dev
  libdirectfb-dev libdirectfb-extra libdrm-dev libelfg0 libgl1-mesa-dev libglib2.0-bin
  libglib2.0-dev libglu1-mesa-dev libjpeg-dev libjpeg62-turbo-dev libpcre3-dev libpcrecpp0
  libpulse-dev libpulse-mainloop-glib0 libslang2-dev libx11-xcb-dev libxcb-dri2-0-dev
  libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0 libxcb-randr0-dev
  libxcb-render0-dev libxcb-sync-dev libxcb-xfixes0-dev libxdamage-dev libxfixes-dev
  libxshmfence-dev libxxf86vm-dev mesa-common-dev x11proto-damage-dev x11proto-dri2-dev
  x11proto-fixes-dev x11proto-gl-dev x11proto-xf86vidmode-dev
Vorgeschlagene Pakete:
  libasound2-doc libglib2.0-doc
Would you know an alternative package that would have a lighter dependency footprint?

Maybe someone has some time to make a better DEB for the stable.

Thank you and best regards,
Pat'
 
Old 01-11-2017, 10:58 AM   #2
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,463

Rep: Reputation: 299Reputation: 299Reputation: 299
Not using -dev packages?
-dev packages are supposed to include everything needed for the resulting binary (did you mean src-deb packages?).

While I'm not really sure what you're trying to accomplish (guessing it's either something embedded or just a very minimal desktop/laptop UI live/install image without the X-server, pulse-audio, ...), if you wish to use a stripped/smaller sdl1.2 binary you will have to strip some functionality.
If your platform is really that small in storage (must be something very small), do the building (will take even more space than your package dependencies) on a more powerful system and only install the resulting binaries.

Either grab the sources from Debian (src-deb, recommended) or directly from upstream.
Next just compile it (the full binary, not the -dev package) excluding whatever you don't want.
Example:
Quote:
../configure --disable-pulseaudio --disable-esd --disable-video-mir --disable-video-wayland --disable-video-x11 --disable-video-opengl [...]

Last edited by jens; 01-11-2017 at 12:04 PM.
 
Old 01-13-2017, 10:40 AM   #3
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Original Poster
Rep: Reputation: 138Reputation: 138
Quote:
Originally Posted by jens View Post
Not using -dev packages?
-dev packages are supposed to include everything needed for the resulting binary (did you mean src-deb packages?).

While I'm not really sure what you're trying to accomplish (guessing it's either something embedded or just a very minimal desktop/laptop UI live/install image without the X-server, pulse-audio, ...), if you wish to use a stripped/smaller sdl1.2 binary you will have to strip some functionality.
If your platform is really that small in storage (must be something very small), do the building (will take even more space than your package dependencies) on a more powerful system and only install the resulting binaries.

Either grab the sources from Debian (src-deb, recommended) or directly from upstream.
Next just compile it (the full binary, not the -dev package) excluding whatever you don't want.
Example:

Let's say I would be glad to use gcc on a simple SDL programm, without installing the WHOLE thing or too much...

For instance:
Code:
#include <SDL/SDL.h>

int main(int argc, char *argv[]) {
    int gogogo = 1;
    SDL_Event event;

    SDL_Init(SDL_INIT_EVERYTHING);
    SDL_WM_SetCaption("Hello World! :D", NULL);
    SDL_SetVideoMode(800, 600, 32, SDL_HWSURFACE);
    while (gogogo) {
        SDL_WaitEvent(&event);
        if (event.type == SDL_QUIT)
            gogogo = 0;
    }
    SDL_Quit();
    return 0;
}

// $ gcc main.c -c ; gcc main.o -o go -lSDL ; ./go
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Snort installation (libmysqlclient-dev libmysqlclient dependencies)? Amerika Ubuntu 1 08-15-2012 07:58 PM
pseudo terminals: /dev/ptmx <-> /dev/pts/ vs. /dev/ptyp <-> /dev/ttyp rtspitz Linux - Software 2 12-02-2011 02:07 PM
RHEL4U5 install changes /dev/sda to /dev/sdb bhoch Red Hat 8 12-05-2007 06:33 AM
Install lilo on external drive (/dev/sda), then boot as INTERNAL (/dev/hda)? slackware-elf Slackware 3 08-18-2007 04:51 PM
lib6c-dev unmet dependencies fatman Debian 0 03-06-2005 12:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration