-
Notifications
You must be signed in to change notification settings - Fork 4
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
Compile errors and more on raygui #17
Comments
Phew... It was close ! |
|
Double pragma generation was fixed. |
Great, thanks! Also an update on raygui. I found a way to link it statically on "as needed" basis which means that we don't need to compile it as a shared library, just need the copy of source file when compiling the executable. Here is implementation: https://github.com/greenfork/nimraylib_now/blob/master/src/nimraylib_now/raygui.nim#L5. One downside though is that we can't use |
Fixed those pesky function name aliasing. Oh well. |
Oh, btw: can you do me a favor and compile |
Do you mean you want a Linux version of it? On Linux shared libraries have |
So are me. Back in 3.0 times and before, there was pretty consistent On other hand: nevermind. Your version works. |
As I understand, this is the "conventional" naming for Windows libraries. Considering that you build the latest version from master, changing the name might be the "right" thing to do. Regarding linking to
Currently our wrappers differ in these points:
I understand that my version might seem better in some aspects and it is in fact what I wanted to do, create a "better raylib-forever", I don't want to be a dick about it. I use |
No, I was talking about your version of |
Okay, I might have misunderstood you there :) |
FYI, on Linux, I had to pass Full command I used: I hope this helps someone else. Maybe it should be in the docs? Edit: I also had to rename it from |
Hi, there are a couple of errors trying to compile just generated files on linux:
Also, not a problem but
{.pragma: RLAPI, cdecl, discardable, dynlib: "libraylib" & LEXT.}
is generated twice on lines 75-76 inraylib.nim
.UPDATE: when compiling example from
examples/texture/image_processing.nim
, this chunk of code inraylib.nim
does not workit needs to be located below type definitions and be rewritten to forward all arguments, like this:
It was a bit hard for me to compile raygui library as a dynamic library with no previous experience of doing so, maybe it is helpful to at least leave some notes on how to do this. Here is what I did on linux, probably not ideal:
After that example from
examples/original/basic.nim
compiles with:The text was updated successfully, but these errors were encountered: