sdl1.2 development libraries installing issue.


Forum: Apt-get
Topic: sdl1.2 development libraries installing issue.
started by: Zucca

Posted by Zucca on Nov. 03 2006,15:41
DSL uses debian oldstable dist.
Anyone had success installing libsdl1.2-dev from oldstable?
I got errors with *-dev packages:
Quote
$ sudo apt-get update && sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev
Hit < http://ftp.us.debian.org > oldstable/main Packages
Hit < http://ftp.us.debian.org > oldstable/main Release
Hit < http://ftp.us.debian.org > oldstable/non-free Packages
Hit < http://ftp.us.debian.org > oldstable/non-free Release
Hit < http://ftp.us.debian.org > oldstable/contrib Packages
Hit < http://ftp.us.debian.org > oldstable/contrib Release
Reading Package Lists... Done
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libsdl-image1.2-dev: Depends: libc6-dev but it is not going to be installed
                      Depends: libjpeg62-dev but it is not going to be installed
                      Depends: libpng2-dev but it is not going to be installed
                      Depends: libtiff3g-dev but it is not going to be installed
                      Depends: zlib1g-dev but it is not going to be installed
 libsdl-mixer1.2-dev: Depends: libc6-dev but it is not going to be installed
                      Depends: xlibs-dev but it is not going to be installed
                      Depends: libogg-dev but it is not going to be installed
                      Depends: libvorbis-dev but it is not going to be installed
 libsdl1.2-dev: Depends: xlibs-dev but it is not going to be installed
E: Broken packages


Any solution?

If I install those packages from sarge it works fine but then there will be other broken packages in the system.
If I remember correctly X won't start. :p

Posted by Zucca on Nov. 03 2006,15:54
Hmmm. I wonder if...`sudo apt-get update && sudo apt-get -f upgrade && sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev` ...could work.
Posted by WDef on Nov. 03 2006,16:38
A few days ago I compiled the current version of libsdl - it and its headers will be in the new mplayer+friends uci I'm currently making, along with updated versions of most of your other deps. If you're compiling you could point the build at that with eg LDFLAGS and CPPFLAGS.  It'll be a week or so probably.

If you get desperate I could make you an extension (or for that matter a deb package with checkinstall.dsl) which will install.

However some of your dependencies there can be safely switched off with --ignore-depends=xxx  (best) or bypassed with --force-all or --unpack (worst) Eg if (?) my memory serves me correctly libpng2 iand libjpeg64 are on the system and their headers are in Clacker's new gccs - I might be mistaken.

If I may ask - what are you trying to build?

Posted by Zucca on Nov. 03 2006,17:03
To be able to compile a game named Daimonin, those dev libs are needed.

< http://www.daimonin.net >

Posted by Zucca on Nov. 03 2006,18:49
Reading < http://www.die.net/doc/linux/man/man8/apt-get.8.html > I thought that --ignore-missing might be the solution?

EDIT: Once tried: not working.
And there's no such option as --force-all. ;\

Posted by mikshaw on Nov. 03 2006,22:41
The sdl-libs.dsl extension includes the sdl 1.2 headers
< http://distro.ibiblio.org/pub....timedia >

Posted by Zucca on Nov. 04 2006,11:21
And I was searching those libs from 'system' catogory. :angry:

Anyway. Thanks. This helped a LOT. :D

Posted by Zucca on Nov. 04 2006,11:34
But but... It seems that the sdl-libs.dsl package does not include all the required libs. :(
Quote
gcc -g -O2 -D__LINUX -I/usr/include/SDL -D_REENTRANT  -I./include -c client.c
In file included from include/wrapper.h:20,
                from include/include.h:57,
                from client.c:42:
include/cflinux.h:65:23: SDL_image.h: No such file or directory
In file included from client.c:42:
include/include.h:59:23: SDL_mixer.h: No such file or directory
In file included from include/include.h:74,
                from client.c:42:
include/sound.h:167: error: parse error before "Mix_Chunk"
include/sound.h:167: warning: no semicolon at end of struct or union
include/sound.h:170: error: parse error before '}' token
include/sound.h:170: warning: data definition has no type or storage class
include/sound.h:174: error: parse error before "Mix_Music"
include/sound.h:174: warning: no semicolon at end of struct or union
include/sound.h:179: error: parse error before '}' token
include/sound.h:179: warning: data definition has no type or storage class
include/sound.h:181: error: parse error before "Sounds"
include/sound.h:181: warning: data definition has no type or storage class
include/sound.h:183: error: parse error before "music"
include/sound.h:183: warning: data definition has no type or storage class
include/sound.h:184: error: parse error before "music_new"
include/sound.h:184: warning: data definition has no type or storage class
include/sound.h:181: warning: array `Sounds' assumed to have one element
make[1]: *** [client.o] Error 1

Posted by mikshaw on Nov. 04 2006,14:28
ahh.
Well, to be picky about it, sdl_image and sdl_mixer are separate from the sdl base.  Even if you had been successful in installing the deb package of SDL you'd still need to get the other two as well.

Have you considered downloading the deb packages and extracting the contents? It would allow you to ignore "dependencies".

Posted by Zucca on Nov. 04 2006,15:08
I'll try that. =)

What I want to is to find most simple way to provide tools to compile Daimonin.

Posted by Zucca on Nov. 06 2006,07:57
Is there anywhere sdl-dev, sdl_image-dev and sdl_mixer-dev sources available?
I could just compile those by myself...
If I only had read how to make MyDSL extensions... ;)

BTW. I checked with Synaptic why those dev libs couldn't be installed and the reason was (with sdl_image and sdl_mixer) that those libs conflict with versions 1.0 and 1.1 of the SAME libraries. Ok. I then I tried to remove those with apt-get and it said that there were no such libs. :p

Posted by mikshaw on Nov. 06 2006,15:01
dev and runtime are both found in the same source package.
< http://www.libsdl.org/download-1.2.php >
< http://www.libsdl.org/projects/SDL_image/ >
< http://www.libsdl.org/projects/SDL_mixer/ >

Posted by Zucca on Nov. 08 2006,08:07
I solved this problem by using Xubuntu Live CD and compiled Daimonin on it.

Then booted back to DSL, installed libsdl from MyDSL, installed libsdl_image and libsdl_mixer with apt-get.

Posted by WDef on Nov. 21 2006,14:59
I've been away - good you solved this.

You said there was no such option as --force-all

For the record I was referring to dpkg.  Apt-get is harder to get around if it doesn't want to install something.

See man dpkg

Code Sample

--force-things | --no-force-things | --refuse-things

   Force or refuse (no-force and refuse mean the same thing) to do some things. things is a comma separated list of things specified below. --force-help displays a message describing them. Things marked with (*) are forced by default.
<snip>
   all: Turns on(or off) all force options.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.