Compiling raylib with tcc (Tiny C Compiler), emmintrin.h not found #2994
GroundhogGrafix
started this conversation in
General
Replies: 1 comment 7 replies
-
The correct solution to this is not to copy a header for the intrinsics (that doesn't make them work), but instead to define MSF_GIF_NO_SSE2. Maybe there are further problems - I think TCC hasn't been tested in a while. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
PROBLEM:
I am attempting to compile raylib using tcc but I'm encountering the following error:
D:/raylib-4.5.0/src/external/msf_gif.h:249: error: include file 'emmintrin.h' not found
ATTEMPTED SOLUTION:
I copied 'emmintrin.h' from my MinGW64 installation to tcc's include directory. This caused another 'not found' file error for 'xmmintrin.h'. After copying xmmintrin.h in to tcc's include folder, I had the same error with the file 'mmintrin.h'. Now all 3 files have been copied in, I receive this error: 'tcc/include/mmintrin.h:66: error: implicit declaration of function '__builtin_ia32_emms''.
POTENTIAL ISSUES:
Once I get raylib compiled with tcc, what known issues are there? I have read that there may be audio problems.
MY SETUP:
tcc version: 0.9.27
OS: Windows 11 x64
CONCLUSION:
Since MinGW's headers are not right for this solution and if there are audio problems like I have read about online. What about compiling a dll shared library using MinGW gcc and importing the dll in to a tcc def file using the compiler flag -impdef?
Beta Was this translation helpful? Give feedback.
All reactions