Welcome, Guest. Please login or register.

Author Topic: Installing older versions of things in Linux  (Read 3308 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Installing older versions of things in Linux
« Reply #29 from previous page: February 24, 2009, 09:09:54 PM »
Ugh, it's whinging about a missing header for ffmpeg now. Installing ffmpeg doesn't help, and there's no such package as ffmpeg-dev. I give up!
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline Speelgoedmannetje

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 9656
    • Show only replies by Speelgoedmannetje
Re: Installing older versions of things in Linux
« Reply #30 on: February 24, 2009, 10:06:29 PM »
just look for the source of ffmpeg
decoding sources should be the least of your worries.
If you have a kernel and a GUI up and running, with sound and graphic drivers working, there's very little chance of failing.
Can't you just get a dependancy hierarchy list? Saves you alot hassle of this missing that etc.
And the canary said: \'chirp\'
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Installing older versions of things in Linux
« Reply #31 on: March 28, 2009, 04:13:12 PM »
Well I decided to get my arse in gear and write my own slideshow app to precisely meet my needs. I'm using SDL, and have got the app to the point where it can scan a directory, randomly select an image, scale it to the correct resolution, centre it and display it, then start again.

I'm having a problem where after a while the app quits with either "Segmentation fault" or "Killed". I changed the app to display the images always in the same order and got it to log to the console which files it has displayed. Each time I ran it, it always died on the same file. I then deleted five images which were displayed before the one where it died, and the next time it got five images further on. So it seems to be that after it has displayed a certain number of files it can't carry on.

I'm guessing therefore that this is a memory problem. My main loop basically loads the image to an SDL_Surface, uses SDL_gfx's rotozoomSurface() to scale the image, clears the screen, applies the surface to the screen, flips, then waits a few seconds before looping. Do I need to free the surface before looping?
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Installing older versions of things in Linux
« Reply #32 on: March 28, 2009, 04:43:49 PM »
Ok, I added SDL_FreeSurface(background) to the top of the loop just before it loads the next image and it seems to be fixed now. It has continued way past the point at which it died before, so hopefully it's ok now :-D
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Installing older versions of things in Linux
« Reply #33 on: March 28, 2009, 06:55:30 PM »
Looks like I spoke too soon - it just segfaulted again :-x
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Installing older versions of things in Linux
« Reply #34 on: March 29, 2009, 06:05:55 PM »
Develop your App in Xcode, and use GDB to bug hunt... once it works... then compile it for Linux :-)

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Installing older versions of things in Linux
« Reply #35 on: March 29, 2009, 06:20:46 PM »
I tried to set up SDL in Xcode once and it was a disaster. Anyway, too late: I fixed it :-)
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10