Tiny Core Base > Raspberry Pi

raspberry pi unable to install pygame

<< < (3/5) > >>

Juanito:
I had a look at this in x86_64 - the following might be useful to compile pygame on piCore:

http://tinycorelinux.net/13.x/x86_64/tcz/src/portmidi/
http://tinycorelinux.net/8.x/x86_64/tcz/src/sdl2_image/
http://tinycorelinux.net/10.x/x86_64/tcz/src/sdl2_mixer/
http://tinycorelinux.net/10.x/x86_64/tcz/src/sdl2_ttf/
http://tinycorelinux.net/13.x/x86_64/tcz/src/pygame/

Ripley:
I realized that SDL2 was not installed on my device. I installed that through the TC app installer and then ran 'pip install pygame'.

This time I was presented with the missing dependancies, the same polikuo meantioned


--- Quote from: polikuo on March 28, 2022, 11:47:18 AM ---
--- Code: ---SDL_ttf.h libSDL2_ttf.so
SDL_mixer.h libSDL2_mixer.so
portmidi.h libportmidi.so
porttime.h libporttime.so

--- End code ---

--- End quote ---

I then attempted to compile from source, using the links provided by Juanito. I am not proficient in this step and continue to run into blocks. For example, the portmidi install requires cmake and Java SDK to make the Make files, so I installed raspian and portmidi's required apps and attempted to create the Make files. - to no success.

I feel like I might be able to properly install the other dependancies... Though it seems they must be installed in a proper order as some folders or 'dependacies' are missing? I am honestly really confused about this whole subject, I have been following this fourm http://forum.tinycorelinux.net/index.php/topic,18682.msg114360.html#msg114360 to compile and create tcz extentions... but as I said, to no success.  I have attempted this process almost 15 times now?

If anyone could somehow make/compile the files for me or something to help me in this process, that would be great!

A reminder I am using a RPI Zero and a RPI 3 B+ (the files must be able to run on the Zero, which is a ARM6 I believe?)

Juanito:

--- Quote from: Ripley on April 06, 2022, 06:14:53 PM ---I then attempted to compile from source, using the links provided by Juanito. I am not proficient in this step and continue to run into blocks. For example, the portmidi install requires cmake and Java SDK to make the Make files, so I installed raspian and portmidi's required apps and attempted to create the Make files. - to no success.

--- End quote ---
Why would you install the raspian cmake when a cmake extension is available in the piCore repo? The java sdk is not required to build portmidi.


--- Quote ---but as I said, to no success.  I have attempted this process almost 15 times now?
--- End quote ---
Rather than stating "to no success", you could state what actually happened so that forum users can help you.

Ripley:

--- Quote from: Juanito on April 07, 2022, 01:09:08 AM ---Why would you install the raspian cmake when a cmake extension is available in the piCore repo? The java sdk is not required to build portmidi.

--- End quote ---
I am aware that there is a cmake for TC but portmidi LINUX_README meantioned that Java SDK was required to create the make files and as far as I was aware TC doesn't have java for my TC version, thus I attempted it on Raspian, but you say java is not required, so I'll take your word for it and try it out. Thanks


--- Quote from: Juanito on April 07, 2022, 01:09:08 AM ---Rather than stating "to no success", you could state what actually happened so that forum users can help you.

--- End quote ---
I do appologies for the vague 'to no success', you see the issue is that I'm not quite sure where I am going wrong and thus can't state anything. I'm going to take another stab at it and document my progression so I can give a more detailed "where I went wrong".

Though as of this moment I am not quite sure how to apply the correct compiler flags and that might be my problem

Juanito:
Taking this as an example: http://tinycorelinux.net/13.x/x86_64/tcz/src/portmidi/compile_portmidi

..the compiler flags for piCore would be passed like this:
--- Code: ---cmake -LAH -DCMAKE_C_FLAGS_RELEASE="-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe" -DCMAKE_CXX_FLAGS_RELEASE="-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe -fno-exceptions -fno-rtti  -DNDEBUG" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=TRUE -DCMAKE_INSTALL_LIBDIR=lib ../
--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version