-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[build] Examples should build without the project being installed #452
Comments
Is CMake an option? You could build the Line 40 in d1ef686
|
Sorry, don't understand this issue, you mean adding FreeBSD in release folder? |
No. Currently examples fail when raylib isn't installed. |
Is it not the expected behaviour? I mean, raylib examples require the library to be installed to be compiled. Excuse me if I'm missing the point... |
What I meant is that examples should build as part of the project using the locally built library. |
Ok, I see, thanks for the clarification. |
I'm working on updates to the install target in src/Makefile that help with this situation. I'm on Linux but I suspect it could be useful with FreeBSD as well. Basically, it's the addition of RAYLIB_INSTALL_PATH and RAYLIB_H_INSTALL_PATH into the Makefiles to expose some control to the user at install time and copying all the the headers, not just raylib.h, to your local include directory. This lets one build and run the examples, etc against the library we just built. Currently, this isn't fully configured for Linux in src/ or examples/Makefile. From a beginner's point of view, it's not obvious that the examples are running against the stuff in release/ etc or even that it matters . For example, if one runs |
Maybe take at look at #464 and see if it could be tweaked for FreeBSD. |
@yurivict , #480 is more progressive. It solves:
on Linux. FreeBSD should be easy to integrate. It would take some time but if someone is familiar with the details... @yurivict, if you have an opportunity to examine these changes, please report. Thank you! |
Just closing this issue. Please, feel free to reopen it if still not correct. |
Currently, it doesn't find the header and the library.
I tried to create a FreeBSD port option that would have built and installed examples, but with the current setup this is impossible.
The text was updated successfully, but these errors were encountered: