WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: raspberry pi unable to install pygame  (Read 6388 times)

Offline Ripley

  • Newbie
  • *
  • Posts: 17
Re: raspberry pi unable to install pygame
« Reply #15 on: June 21, 2022, 04:10:29 PM »
Sorry for the delay in a response, life got busy.

I just attempted another run on making the SDL2_Mixer extension, I tried installing the opusfile-dev but found that there is no files avaiable under that name in "Apps downloader" , so i tried installing libopus-dev and libopus instead (assuming that they might suffice as an alternative), then I applied the complier flags (which I finally managed to get right) and a WARNING came up 'unable to find opusfile library...' I came this far so I attempted the code "find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \;" but nothing seemed to happen, perhaps my processor is slow and I had to wait longer? I then tried to 'make'. Which raised an error of 'no Make file', or something along that line. I presume the Opusfile is required.

Is there a way to get this working without getting Opusfile from source?

Offline Ripley

  • Newbie
  • *
  • Posts: 17
Re: raspberry pi unable to install pygame
« Reply #16 on: June 21, 2022, 05:51:40 PM »
Just attempted to create SDL2_tff-2.0.15 extension (which is different extension from above) but ran into this error during configure
Code: (bash) [Select]
Checking wheather build enviroment is sane... configure: error: newly created file is older than distributed files! Check your system clock
any suggestions on how to proceed or fix error?

« Last Edit: June 21, 2022, 05:58:23 PM by Ripley »

Offline tacpilot

  • Newbie
  • *
  • Posts: 30
Re: raspberry pi unable to install pygame
« Reply #17 on: June 21, 2022, 06:19:11 PM »
maybe your bios battery is dead ??
  • reboot your system into bios .. make sure your date/time is correct..
  • reset the time if its wrong..
  • if it needed resetting, power off system then boot back into bios
  • if time is wrong again, then you likely need a new battery.
setting up the system to use NTP is good to keep all systems
inline and eliminate issues with clock drift.

NOTE: failing motherboards can have issue keeping time. I have 2 machines at work
that fail to keep date time even with new batteries .. is a  PITA because they require
system cycle every 24 hours and the evironment they are in requires a 2 hour boot time  :o
Never limit your creativity by the imagination of others.

Offline Ripley

  • Newbie
  • *
  • Posts: 17
Re: raspberry pi unable to install pygame
« Reply #18 on: June 21, 2022, 08:22:29 PM »
Im pretty sure the Raspberry Pi zero doesn't have a bios battery, I could be wrong though.

but your comment tacpilot, reminded me of something, an option in the "control panel" app, 'date and time'.
I was able to change the date from 1970 to the current date. This fixed the error I was getting.

I now have an error after/during running 'make'.

Code: (bash) [Select]
/usr/local/bin/grep: /usr/local/lib/libglib-2.0.21: No such file or directory
/usr/local/bin/sed: can't read /usr/local/lib/libglib-2.0.1a: No such file or dierectory
libtool: link: '/usr/local/lib/libglib-2.0.1a' is not a valid libtool archive
make: ***[Makefile:517: libSDL2_tff.1a] Error 1

I see that 'libglib' is missing, I'm just curious if I need to download it from source or if there is a more easy fix?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11631
Re: raspberry pi unable to install pygame
« Reply #19 on: June 22, 2022, 12:37:54 AM »
Hi Ripley
Im pretty sure the Raspberry Pi zero doesn't have a bios battery, I could be wrong though. ...
You are correct. Pi does not have a BIOS.

/usr/local/lib/libglib-2.0.la  was last available in  glib2-dev.tcz  from  TC10:
http://tinycorelinux.net/10.x/armv7/tcz/glib2-dev.tcz.list

Offline tacpilot

  • Newbie
  • *
  • Posts: 30
Re: raspberry pi unable to install pygame
« Reply #20 on: June 22, 2022, 12:52:39 AM »
My bad .. I made the assumption you were compiling code
on your desktop for use on pi..   :-X
Never limit your creativity by the imagination of others.

Offline Ripley

  • Newbie
  • *
  • Posts: 17
Re: raspberry pi unable to install pygame
« Reply #21 on: June 22, 2022, 01:06:25 AM »
Hey Rich,
/usr/local/lib/libglib-2.0.la  was last available in  glib2-dev.tcz  from  TC10:
http://tinycorelinux.net/10.x/armv7/tcz/glib2-dev.tcz.list
is there a way to aquire the glib extenstion/documentation directly from an older version of TC without the need to compile/make?
« Last Edit: June 22, 2022, 01:19:09 AM by Ripley »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: raspberry pi unable to install pygame
« Reply #22 on: June 22, 2022, 04:22:47 AM »
Somewhat counterintuitively, if you delete all of the *.la files in /usr/lib and /usr/local/lib and then re-run the ./configure script, things will work.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: raspberry pi unable to install pygame
« Reply #23 on: June 22, 2022, 04:49:51 AM »
Is there a way to get this working without getting Opusfile from source?

opusfile extensions posted