Compiling raylib to statc, dll Implicit and dll Explicit (MinGW-w64) #2492
Replies: 10 comments 12 replies
-
Update: I was attempting to compile "raygui-3.1\examples\controls_test_suite\controls_test_suite.c" using "raylib-4.0.0_win32_mingw-w64.zip" linker: lib/libraylib.a So we have multiple incompatible raygui.h ? And I will have to write a wrapper, or change the source depending if I am using raylib raygui.h, or raygui raygui.h ? Update 2: I tried including Windows.h (for timeapi.h) but then got more conflicts... Is it just me not setting the includes and linker properly, or is raylib (pre-built bins) internal raygui.h incomparable with anything from the raygui-3.1 including the examples (ツ) |
Beta Was this translation helpful? Give feedback.
-
Hi @Axle-Ozz-i-sofT,
No. Adding
No, styles are loaded by the user at runtime, should be added to user project.
Same answer as before, styles are added to the user project as separate modules.
The |
Beta Was this translation helpful? Give feedback.
-
Update 3: I changed the #includes in controls_test_suite.c to point to the paths of raylib.h and raygui.h I have had a look at : I am not sure why it is not defining timeBeginPeriod() ? :/ I did original compile this example using NP++ with your "w64devkit" from the install version and it worked fine, so not sure what I am missing? |
Beta Was this translation helpful? Give feedback.
-
Hi Ray In the raylib.h ~line 2306 I am getting a compiler warning for the use of a binary literal. As this is C++14 and not C99 std can I change this to hex to keep to the standard and suppress the warning... |
Beta Was this translation helpful? Give feedback.
-
Update: This appears to be working well with the examples and changing the styles and fonts, so I think I am on the right pathway :) https://sites.google.com/view/axlestudent-ict/tafe/raylib-raygui-tests |
Beta Was this translation helpful? Give feedback.
-
@Axle-Ozz-i-sofT So, is it working as expected right now? Please note that you can access raylib Discord to ask about raylib building and configuration, there is a special channel for that and a big community always ready to help. |
Beta Was this translation helpful? Give feedback.
-
please I need help to compile raygui with mingw |
Beta Was this translation helpful? Give feedback.
-
Thank you for the help but it's ok, I've already find a solution on how I
can compile it! But now, please I need a reference on how to begin with
since there's no doc for it. Please, looking forward for a pleasant reply
from you
…On Tue, Apr 2, 2024, 3:04 AM Axle ***@***.***> wrote:
Hi miguelnkono <https://github.com/miguelnkono>
The raylib team may have a better response for your question.
I am a little out of touch with the current raylib raygui builds but can
attempt to assist.
Can you offer a little more information as to your difficulty compiling
raygui?
Regards
Axle
—
Reply to this email directly, view it on GitHub
<#2492 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BDOX7RBKCQ7JRR5HPFVQAQ3Y3IG2NAVCNFSM5XDR73EKU5DIOJSWCZC7NNSXTOKENFZWG5LTONUW63SDN5WW2ZLOOQ5TQOJXHAZTCNY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Awesome, thanks for the info! It'll check it out
…On Tue, Apr 2, 2024, 5:35 AM Axle ***@***.***> wrote:
P.S.S.
I do have a book and guide on compiling raylib/raygui as well as setting
it up in Dev-C++ and Code::Blocks on Windows and Ubuntu and compiling the
examples but it is still in draft and not yet released.
The guide is also based upon an older version of GCC using sjlj instead of
the more current x64 seh error handling.
Being draft the book still needs a little more included as well as some
examples of the more recent GCC & raylib builds.
If you have specific question or issues on getting the project working in
your IDE don't be afraid to ask as it can be a little confusing working out
the build options, compiler flags, and the linker includes.
It's very OS and IDE specific, so be sure to include OS, IDE, Compiler
version (ie.GCCv9.xx) and the MinGW build chain (ie. TDM GCC9.2.0 sjlj or
gcc version 13.2.0 (MinGW-W64 x86_64-msvcrt-posix-seh, built by Brecht
Sanders, r5)) when asking question so we can narrow down suggestions :)
Best regards
Axle
—
Reply to this email directly, view it on GitHub
<#2492 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BDOX7REZZ3UL7EWLTPTMU7TY3IYQVAVCNFSM5XDR73EKU5DIOJSWCZC7NNSXTOKENFZWG5LTONUW63SDN5WW2ZLOOQ5TQOJXHEYDQMY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hello, please I want to know if Raylib provide a way for accessing the file
system of the computer because I am building an audio player with it but
I'm stuck on this point.
Please could you help me with this?
Thank you.
|
Beta Was this translation helpful? Give feedback.
-
Hi Ray
I have had several days of looking at all raylib howtos and build options that I could find, including all the FAQs I could find here, so if I have missed a solution I hope you can forgive me :)
I am attempting to build the static and dll versions of the library. Building the static version seams OK, but I can't find the switch for building the dll version.
What I am attempting to achieve:
I have to be able to offer to other students a straight forward way of including raylib + additional modules such as raygui on both Windows and Ubuntu, as well as explain the set up and use of the library with C, FreeBASIC and Python3. I assume Py being a script interpreter will be using a dll version behind the bindings, so I need to be able to offer a simple and transportable copy/method of raylib as well as the required resources in both static and dll, and explain the use of static and dll versions.
I just want to focus on the Windows C requirements at the moment. I am working with Embarcadero's current version Dev-C++ with the TDM-GCC 9.2.0 release. I do not use Linux subsystems, MSYS2 or Cygwin etc and don't set a system path for GCC Bin as I have a few alternative GCC/MinGW installs. I can set a TEMP Path environment to GCC from a .cmd file if I need to run a make file.
My questions:
(I have the raylib-4.0.0_win32_mingw-w64.zip pre-compiled as well and will ask a question on that at the end)
Ultimately I am just attempting to work out what minimum package is required to be place into the project source directory or into the Mingw includes/lib directories. and weather to just use the "raylib-4.0.0_win32_mingw-w64.zip" without any other requirements.
Sorry if I sound confusing with the above. if you need me to clarify my questions just ask and I will attempt to do better :)
Axle
Beta Was this translation helpful? Give feedback.
All reactions