Hi all,
after a long time spent on resolving weird bugs even in simple SDL code I would like to ask you, how to build SDL from source code.
I downloaded source code and just
Code:
./configure & make & make install
it. If ./configure reproduced an error, I compiled external libraries.
Even with this process, I can not get a fine running SDL programm. First of all, mp3 files are not playable at all. Eh, they are playable, but without an output. Just silence… Next, IMG_Load() can not load JPEG and PNG files (bmp files are working fine). With PNG, it just crashed down with segmentation failed, with JPG, programm outpusts: JPEG loading error.
Ad PNG: I tried to link libpng to programm. Without segmentation failed it outputted an error message, like that:
Code:
libpng warning: Application was compiled with png.h from libpng-1.6.2
libpng warning: Application is running with png.c from libpng-1.2.49
libpng error: Incompatible libpng version in application and library
Couldn’t allocate memory for PNG file or incompatible PNG dll
My last chance is that I missed something very important while building. Could you please give me a full list of SDL, SDL_mixer, SDL_image and SDL_ttf dependencies (with versions) and the info how to build (get) them?
Thank you for you time------------------------
I’m SDL newbie
Then reconfigure And make. This should solve the issue.
– Aggelos Kolaitis
– The SDL Utility library [http://bitbucket.org/sdlu/sdlu]On 21 ??? 2013, at 3:09 ?.?., “lorin” wrote:
Hi all,
after a long time spent on resolving weird bugs even in simple SDL code I would like to ask you, how to build SDL from source code.
I downloaded source code and just
Code:
./configure & make & make install
it. If ./configure reproduced an error, I compiled external libraries.
Even with this process, I can not get a fine running SDL programm. First of all, mp3 files are not playable at all. Eh, they are playable, but without an output. Just silence… Next, IMG_Load() can not load JPEG and PNG files (bmp files are working fine). With PNG, it just crashed down with segmentation failed, with JPG, programm outpusts: JPEG loading error.
Ad PNG: I tried to link libpng to programm. Without segmentation failed it outputted an error message, like that:
Code:
libpng warning: Application was compiled with png.h from libpng-1.6.2
libpng warning: Application is running with png.c from libpng-1.2.49
libpng error: Incompatible libpng version in application and library
Couldn’t allocate memory for PNG file or incompatible PNG dll
My last chance is that I missed something very important while building. Could you please give me a full list of SDL, SDL_mixer, SDL_image and SDL_ttf dependencies (with versions) and the info how to build (get) them?
Hi all,
after a long time spent on resolving weird bugs even in simple SDL code I
would like to ask you, how to build SDL from source code.
I downloaded source code and just
Code:
./configure & make & make install
it. If ./configure reproduced an error, I compiled external libraries.
Even with this process, I can not get a fine running SDL programm. First
of all, mp3 files are not playable at all. Eh, they are playable, but
without an output. Just silence… Next, IMG_Load() can not load JPEG and
PNG files (bmp files are working fine). With PNG, it just crashed down
with segmentation failed, with JPG, programm outpusts: JPEG loading
error.
Ad PNG: I tried to link libpng to programm. Without segmentation failed it
outputted an error message, like that:
Code:
libpng warning: Application was compiled with png.h from libpng-1.6.2
libpng warning: Application is running with png.c from libpng-1.2.49
libpng error: Incompatible libpng version in application and library
Couldn’t allocate memory for PNG file or incompatible PNG dll
My last chance is that I missed something very important while building.
Could you please give me a full list of SDL, SDL_mixer, SDL_image and
SDL_ttf dependencies (with versions) and the info how to build (get)
them?
This is output of apt-get. I tried to translate Czech messages into English:
Code:
apt-get build-dep libsdl2-dev libsdl2-image-dev
tu seznamy bal?ko
Hotovo (Read packages list, done)
Vytv?Y? se strom z?vislost? ( Creating dependency tree )
tu stavov? informace
Hotovo ( Read state information… done)
E: Do sources.list mus?te zadat ?zdrojov?? URI ( E: You have to add “source” URI to sources.list )
It seems that it does not know from where it should download dependencies.
I tried to reinstall libsdl2, libsdl2_mixer and libsdl2_image and I got weird message after dpkg-buildpackage:
Code:
dpkg-shlibdeps: error: no dependency information found for /usr/local/lib/libsmpeg2-2.0.so.0
libsmpeg was not installed as a Debian package ( only ./configure & make & make install) and I gues thats it why it does not have dependencies.
Could you point me to solution of this problem?------------------------
I’m SDL newbie
This is output of apt-get. I tried to translate Czech messages into English:
Code:
apt-get build-dep libsdl2-dev libsdl2-image-dev
tu seznamy bal?ko
Hotovo (Read packages list, done)
Vytv?Y? se strom z?vislost? ( Creating dependency tree )
tu stavov? informace
Hotovo ( Read state information… done)
E: Do sources.list mus?te zadat ?zdrojov?? URI ( E: You have to add “source” URI to sources.list )
It seems that it does not know from where it should download dependencies.
I tried to reinstall libsdl2, libsdl2_mixer and libsdl2_image and I got weird message after dpkg-buildpackage:
Code:
dpkg-shlibdeps: error: no dependency information found for /usr/local/lib/libsmpeg2-2.0.so.0
libsmpeg was not installed as a Debian package ( only ./configure & make & make install) and I gues thats it why it does not have dependencies.
Could you point me to solution of this problem?
For the first problem: Look in the file “/etc/apt/sources.list”, and make sure that for each “deb http…” line there has a corresponding “deb-src http…”. It’s quite possible that the “deb-src” lines are already in the file, but are commented out (starting with a “#”). If so, just uncomment them. Once you have the sources added, “sudo apt-get update”, then try the “sudo apt-get build-dep…” again.
For the second problem - having that manually installed library in the system is trouble, since as you’ve discovered it interferes with dpkg’s ability to handle the dependencies for you. Is there a reason that you manually installed it, rather than just using the package manager’s version? Do you know where it was installed to? You may need to remove it, install the standard libsmpeg package, get your SDL issues sorted out, and then maybe reinstall that libsmpeg version in order to get things working correctly.
This is output of apt-get. I tried to translate Czech messages into English:
Code:
apt-get build-dep libsdl2-dev libsdl2-image-dev
tu seznamy bal?ko
Hotovo (Read packages list, done)
Vytv?Y? se strom z?vislost? ( Creating dependency tree )
tu stavov? informace
Hotovo ( Read state information… done)
E: Do sources.list mus?te zadat ?zdrojov?? URI ( E: You have to add “source” URI to sources.list )
It seems that it does not know from where it should download dependencies.
I tried to reinstall libsdl2, libsdl2_mixer and libsdl2_image and I got weird message after dpkg-buildpackage:
Code:
dpkg-shlibdeps: error: no dependency information found for /usr/local/lib/libsmpeg2-2.0.so.0
libsmpeg was not installed as a Debian package ( only ./configure & make & make install) and I gues thats it why it does not have dependencies.
Could you point me to solution of this problem?
For the first problem: Look in the file “/etc/apt/sources.list”, and make sure that for each “deb http…” line there has a corresponding “deb-src http…”. It’s quite possible that the “deb-src” lines are already in the file, but are commented out (starting with a “#”). If so, just uncomment them. Once you have the sources added, “sudo apt-get update”, then try the “sudo apt-get build-dep…” again.
For the second problem - having that manually installed library in the system is trouble, since as you’ve discovered it interferes with dpkg’s ability to handle the dependencies for you. Is there a reason that you manually installed it, rather than just using the package manager’s version? Do you know where it was installed to? You may need to remove it, install the standard libsmpeg package, get your SDL issues sorted out, and then maybe reinstall that libsmpeg version in order to get things working correctly.
I hate replying to myself - what the heck is wrong with the “Preview” feature of the forums???
Okay, I misunderstood your first problem - you don’t need the “deb-src” for those packages, you need the “deb” for them. Exactly which Linux dsitro and version are you using? If Ubuntu, I don’t believe that SDL2 is available until the “Saucy” (13.10) version.
If you’re using an older Ubuntu (or any other Debian based distro), try “sudo apt-get build-dep libsdl1.2 sdl-image1.2” instead - this will hopefully get all the needed dependencies (at least it did on my Ubuntu Precise install).
This is output of apt-get. I tried to translate Czech messages into
English:
Code:
apt-get build-dep libsdl2-dev libsdl2-image-dev
?tu seznamy bal?k?.. Hotovo (Read packages list, done)
Vytv??? se strom z?vislost? ( Creating dependency tree )
?tu stavov? informace… Hotovo ( Read state information… done)
E: Do sources.list mus?te zadat “zdrojov?” URI ( E: You have to add
"source" URI to sources.list )
It seems that it does not know from where it should download dependencies.
I tried to reinstall libsdl2, libsdl2_mixer and libsdl2_image and I got
weird message after dpkg-buildpackage:
Code:
dpkg-shlibdeps: error: no dependency information found for
/usr/local/lib/libsmpeg2-2.0.so.0
libsmpeg was not installed as a Debian package ( only ./configure & make &
make install) and I gues thats it why it does not have dependencies.
Could you point me to solution of this problem?
For the first problem: Look in the file “/etc/apt/sources.list”, and make
sure that for each “deb http…” line there has a corresponding “deb-src
http…”. It’s quite possible that the “deb-src” lines are already in the
file, but are commented out (starting with a “#”). If so, just uncomment
them. Once you have the sources added, “sudo apt-get update”, then try the
"sudo apt-get build-dep…" again.
For the second problem - having that manually installed library in the
system is trouble, since as you’ve discovered it interferes with dpkg’s
ability to handle the dependencies for you. Is there a reason that you
manually installed it, rather than just using the package manager’s
version? Do you know where it was installed to? You may need to remove
it, install the standard libsmpeg package, get your SDL issues sorted out,
and then maybe reinstall that libsmpeg version in order to get things
working correctly.
I hate replying to myself - what the heck is wrong with the "Preview"
feature of the forums???
Okay, I misunderstood your first problem - you don’t need the "deb-src"
for those packages, you need the “deb” for them. Exactly which Linux dsitro
and version are you using? If Ubuntu, I don’t believe that SDL2 is
available until the “Saucy” (13.10) version.
If you’re using an older Ubuntu (or any other Debian based distro), try
"sudo apt-get build-dep libsdl1.2 sdl-image1.2" instead - this will
hopefully get all the needed dependencies (at least it did on my Ubuntu
Precise install).
Okay, I misunderstood your first problem - you don’t need the “deb-src” for those packages, you need the “deb” for them. Exactly which Linux dsitro and version are you using? If Ubuntu, I don’t believe that SDL2 is available until the “Saucy” (13.10) version.
I am using Debian Wheezy (7). SDL2 nor SMPEG2 are not available in stable repo. That is why I tried to compile SMPEG2 from source code given to SDL2.
If you’re using an older Ubuntu (or any other Debian based distro), try “sudo apt-get build-dep libsdl1.2 sdl-image1.2” instead - this will hopefully get all the needed dependencies (at least it did on my Ubuntu Precise install).
I will try that, but I think that SDL2 has different dependencies than SDL1.2.
Well, one may also look inside README-linux.txt, where all the required depencies are listed.
Gonna check it out tomorrow.------------------------
I’m SDL newbie
I tried to install SDL2 package from repositories into Ubuntu 13.10. Everything except playing MP3 files works fine… The same problem is in Debian. I added sid repositories with SDL2 and installed them from there.
Every try to play an MP3 file using SDL2_mixer ends with no sound output - silence or kind of strange error: