-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upgrade to raylib 4.5 #102
Comments
Yes, but I don't know when. Why don't you try it with Raylib 4.5 now? It might work already. |
seems to work but as usual raylib has made braindead API changes so examples and stuff wont work. |
I've updated the code and some of the examples. Seems to work. Can't do a release to pypi because Github Actions isn't working. |
OK done. |
Thanks, ogoudron@Mac-M1 ~ % pip3 install raylib ogoudron@Mac-M1 dev % python3 test.py |
Sort of. GitHub Actions don't have Arm64 runners so I can't build binary packages for M1 Mac. (In the past I got it working by cross compiling on the x64 runner but that suddenly stopped working). So there's no binary wheels. However it should still work by compiling from source and it should do that automatically when you try to install on M1 Mac. Do you have Raylib itself installed and working? |
I have tested on Debian 11 X86_64 and Windows 10 X86_64 and it works. |
I have understood my mistake (confusing raylib-4.5.0.0 with the raylib library). |
Yeah it's probably failing to build because you didn't have raylib installed. But it should show an error in that case during the build step, I don't know why it didn't. |
It seems that if you do |
On macOS M1 i have the same error than before. I have compiled and installed Raylib following your instructions in "Have Pip build from source".
Then the pip install part (following our instruction in "Have Pip build from source") :
And finally the error when running the QuickStart example :
I have no idea what is happening. |
I have compiled binary wheels for M1 macs using cirrus ci. They are attached in this zip file. Please install the appropriate one and let me know if it works. I'll put them on pypi if it does. |
Can you tell me where ? |
Download the file I posted above. Assuming you are on Macos 13 the the file you want is raylib-4.5.0.0-cp311-cp311-macosx_13_0_arm64.whl. So unzip that file, and then: |
It works :-) |
Tell me when it will be done because i will test it on a fresh new Mac mini M2. |
I have put them on pypi now. |
It works on the first try on a fresh macOS M2. Thanks for your help again. |
I have done some tests on RPI400 and theses are what i suppose to have understood :
So, i suppose i am wrong with the way to force CMAKE to use "GRAPHICS_API_OPENGL_21". |
raylib's cmake build is buggy and they've never cared about fixing it. i did fix it couple of times for them in the past but then they would break it again so i gave up. so it might be you're requesting the right thing and it's just not doing it. |
try |
could also try |
Following your advise, i was able to successfully compile Raylib with CMAKE and my test C program works now. When i try to install the Python binding following your instructions in "Have Pip build from source" i have the same error than before (with macOS and RPI400).
Trying the same command with sudo take more time (seems to do more things) but fail with the same error when trying to run the Python test program. |
It's using a cached version of the wheel rather than creating a new one, try:
That should either work, or give you an error saying why it doesn't work. If it doesn't work and doesn't say why then we'll have to do a manual build. |
Thanks, it works. |
will do. would be nice if we could build Pi wheels and put them on pypi. |
I am just starting learning Python and i don't know how theses things works. |
Hello,
Do you plan to upgrade to raylib 4.5 ?
Thanks, Olivier.
The text was updated successfully, but these errors were encountered: