ComputerNerd / Retro-Graphics-Toolkit

Retro Graphics Toolkit is a free software program that allows graphics to be created for a wide variety of platforms (geared primarily towards retro video game consoles). Retro Graphics Toolkit also provides amazing interoperability between different platforms making cross platform developing faster and easier.
Other
134 stars 9 forks source link

endian.h not found on macosx #10

Closed v4ld3r5 closed 5 years ago

v4ld3r5 commented 6 years ago

Hi, When compiling in macosx high sierra I got:

In file included from project.cpp:17:
./includes.h:25:10: fatal error: 'endian.h' file not found
#include <endian.h>
         ^~~~~~~~~~
1 error generated.
make: *** [Makefile:22: project.o] Error 1

This is solved by doing:

diff --git a/includes.h b/includes.h
index 875ae59..f26c8ab 100644
--- a/includes.h
+++ b/includes.h
@@ -22,7 +22,7 @@
 #include <inttypes.h>
 #include <cmath>
 #ifndef _WIN32
-#include <endian.h>
+#include <machine/endian.h>
 #endif
 #include <FL/Fl.H>
 #include <FL/Fl_Shared_Image.H>

Best regards,

ComputerNerd commented 5 years ago

In includes.h I now have

#ifdef __APPLE__
#include <machine/endian.h>
#else
#include <endian.h>
#endif

Can you please try rebuilding and tell me if you still get the same error or not.

ComputerNerd commented 5 years ago

Retro Graphics Toolkit no longer uses endian.h. As noted my closing comment for #9 Boost now handles endian conversions.