-
Notifications
You must be signed in to change notification settings - Fork 3
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
Use Kaitai Struct #1
Comments
|
Thankfully devkitPro provides somewhat useful cmake definitions which we could use, but it often mixes the building system's definitions with those provided by devkitPPC. We'd have to take a look at where things are causing interfering and go from there, I'm not certain upstream definitions are complete enough to cross compile with :/ |
I was able to fully integrate kaitai_struct_cpp_stl_runtime with little modification as of 40adb33. However, libiconv spews out quite a curious error later into building. This is reproducible with both 1.16 and 1.15.
An offending line within our local /* Test whether a given signal is contained in a signal set. */
# if @HAVE_POSIX_SIGNALBLOCKING@
/* This function is defined as a macro on Mac OS X. */
# if defined __cplusplus && defined GNULIB_NAMESPACE
# undef sigismember
# endif
# else
_GL_FUNCDECL_SYS (sigismember, int, (const sigset_t *set, int sig)
_GL_ARG_NONNULL ((1)));
# endif
_GL_CXXALIAS_SYS (sigismember, int, (const sigset_t *set, int sig));
_GL_CXXALIASWARN (sigismember); in which The comment regarding macOS provides insight regarding what's going on here - the
We can simply remedy this by
which is a cheap hack at best, but a working hack nonetheless. The majority of iconv-related issues are due to iconv(8), not the library itself. Who would've guessed? |
Shortly after resolving this, I ran into easily thousands of other utility related issues. |
Integrated as of dc758b9. |
yay |
It's been discussed to use a kaitai struct for modifying, as this would presumably greatly assist with string manipulation and other design concerns going forward. However, building kaitai_struct_cpp_stl_runtime has proven to be a project of its own. It currently utilizes CMake which devkitPro chokes on, and other endianness + iconv concerns have arisen.
But it'd be nice. :)
Attached is a sample
pd.dat
ksy within a spoiler tag because GitHub apparently does not support the.ksy
extension.pd.dat
The text was updated successfully, but these errors were encountered: