$ make
"/usr/local/lib/ats2-postiats-0.3.13"/bin/patscc -I"/usr/local/lib/ats2-postiats-0.3.13" -I"/usr/local/lib/ats2-postiats-0.3.13"/ccomp/runtime -D_GNU_SOURCE -I/usr/include/SDL2 -D_REENTRANT -o test00 test00.dats -L"/usr/local/lib/ats2-postiats-0.3.13"/ccomp/atslib/lib -latslib -lSDL2
test00_dats.c:82:10: fatal error: SDL2/CATS/SDL.cats: No such file or directory
#include "SDL2/CATS/SDL.cats"
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:41: test00] Error 1
Thanks in advance.
/*
/usr/local/lib/ats2-postiats-0.3.13/contrib/SDL2/SATS/SDL.sats: 899(line=29, offs=1) -- 941(line=33, offs=3)
*/
//
#include "SDL2/CATS/SDL.cats"--
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lang-user...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at https://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/be4dd68f-82f5-4292-8b62-762a69bfcf9a%40googlegroups.com.
I just realized now that the file referenced in the comment is the SATS file and that I had misread it, but it should hold that, if it can find the SATS file, which is simply in a different subdirectory of contrib/SDL2, it should be able to find the CATS file, unless I am mistaken about how this is supposed to be set up.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAFh2Mmrdax0v18is7_9KVWeWa7wyG3X_k7NmU_3FhjOzKvnd0Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAKO6%3DqiaTnM1KgXLrrftZPQFL5f94T%2BpTcOvQdgSigLA-xq5mg%40mail.gmail.com.
Manually including the contrib folder with a -I flag seems to have worked (other than the SDL_GetVersion function causing an undefined reference error), but I'm still confused as to why it didn't just work. The documentation basically states that the way I had it set up is a valid way to set up the contrib folder, whereas having to manually include the contrib folder says the opposite.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAFh2Mmr-Rxj6N8t%3D0QANDUdXA_qmRhWPV-NrfhpdgHdn4Kt8fA%40mail.gmail.com.
$ pkg-config sdl2 --cflags
-I/usr/include/SDL2 -D_REENTRANT
/usr/local/lib/ats2-postiats-0.3.13/contrib/SDL2/test/test01.dats: 311(line=25, offs=18) -- 331(line=25, offs=38)
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAKO6%3DqgS9enS4qti_q%3D6KzHjJk41HWo0gC-UReaAXuyQgQxXOA%40mail.gmail.com.
$ pkg-config sdl2 --cflags
-I/usr/include/SDL2 -D_REENTRANTAs a side-note, I passed the $PATSCONTRIB -I flag to the make command and it built test00 and test01, but test02 failed and test01 will not run, instead throwing an error on the first use of assertloc./usr/local/lib/ats2-postiats-0.3.13/contrib/SDL2/test/test01.dats: 311(line=25, offs=18) -- 331(line=25, offs=38)
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAFh2MmoqoLDY8Dt%3Dq9pitNCCYzCXerSi5vWXOPcm6zdrr7yQmw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAKO6%3DqgxqCfS2JDTPfJqN0ZVA%2BRHR-D%3DQ8%2Bq830zL8wnsoXwpA%40mail.gmail.com.
SDL2 does work in Cygwin. It even has its own environment-specific SDL DLL. Additionally, I tried running it outside of Cygwin, using the required DLLs, and it failed on startup.I added the -I flag to test02 in the makefile and it is also erroring on the first use of assertloc.However, test00 returns the SDL version as expected.According to GitHub, the SDL2 wrapper hasn't been updated in five years. Is it possible that it (or the examples) just doesn't work properly anymore?
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAFh2MmqJP1Z7Om6H6yX-DduVhw_uvGaCOV%2B%2BXP_kBuckhJGBVg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAKO6%3DqiXLOE4cp8qCXR%2B6-%3DG_4wLJszUzJSz3URqGZ7By0DtSQ%40mail.gmail.com.
Alright, to test it out, I tried building Lazy Foo's fourth SDL tutorial. It does not work, though that may be in part due to the fact that Cygwin applications apparently expect that an X11 server will be available. So I tested it in MSYS2's MinGW64 shell with the same compilation flags (adjusted for differences in library locations); it works.
Furthermore, I've discovered that, according to the SDL installation page ( https://wiki.libsdl.org/Installation ), Cygwin is no longer supported. Even if it did work, the reliance on an X11 server is fairly frustrating. Disappointing results overall. I'll have to see how I want to proceed. Ultimately, it would be nice if it compiled in MSYS2's MinGW64 shell, but alas.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAFh2MmoJG4cXfvMmPD5jXPuB63fez5Ftp-%2B%3DoazZR3vyusrfhg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAKO6%3Dqje%2B5p8PFzyFkwuKoJ%3DD9bPMTrrfrS6shOk6fwDh4TDDA%40mail.gmail.com.
Yeah, I had intended on creating some graphical apps. Or, at the very least, I like that option to be open to me. I'd also like to be able to stay on Windows, ideally, as that's where the rest of my development environment is at the moment.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lan...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at https://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/be4dd68f-82f5-4292-8b62-762a69bfcf9a%40googlegroups.com.
----Matt Chelen
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lan...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at https://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAFh2Mmrdax0v18is7_9KVWeWa7wyG3X_k7NmU_3FhjOzKvnd0Q%40mail.gmail.com.
--Cheers,
Artyom Shalkhakov
--
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lan...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at https://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAKO6%3DqiaTnM1KgXLrrftZPQFL5f94T%2BpTcOvQdgSigLA-xq5mg%40mail.gmail.com.
----Matt Chelen
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lan...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at https://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAFh2Mmr-Rxj6N8t%3D0QANDUdXA_qmRhWPV-NrfhpdgHdn4Kt8fA%40mail.gmail.com.
--Cheers,
Artyom Shalkhakov
--
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lan...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at https://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAKO6%3DqgS9enS4qti_q%3D6KzHjJk41HWo0gC-UReaAXuyQgQxXOA%40mail.gmail.com.
----Matt Chelen
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lan...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at https://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAFh2MmoqoLDY8Dt%3Dq9pitNCCYzCXerSi5vWXOPcm6zdrr7yQmw%40mail.gmail.com.
--Cheers,
Artyom Shalkhakov
--
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lan...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at https://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAKO6%3DqgxqCfS2JDTPfJqN0ZVA%2BRHR-D%3DQ8%2Bq830zL8wnsoXwpA%40mail.gmail.com.
----Matt Chelen
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lan...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at https://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAFh2MmqJP1Z7Om6H6yX-DduVhw_uvGaCOV%2B%2BXP_kBuckhJGBVg%40mail.gmail.com.
--Cheers,
Artyom Shalkhakov
--
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lan...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at https://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAKO6%3DqiXLOE4cp8qCXR%2B6-%3DG_4wLJszUzJSz3URqGZ7By0DtSQ%40mail.gmail.com.
----Matt Chelen
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lan...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at https://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAFh2MmoJG4cXfvMmPD5jXPuB63fez5Ftp-%2B%3DoazZR3vyusrfhg%40mail.gmail.com.
--Cheers,
Artyom Shalkhakov
--
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lan...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at https://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAKO6%3Dqje%2B5p8PFzyFkwuKoJ%3DD9bPMTrrfrS6shOk6fwDh4TDDA%40mail.gmail.com.
--Matt Chelen
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lang-user...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at https://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/4b8e46e5-5fbd-4e2a-b4e3-d5390faa5977%40googlegroups.com.
I'd definitely be interested in such a project, but I don't know that I have the requisite knowledge to actually be of any help. I could certainly try (I've always been a "learn as you go" sort of person), but I feel fair warning that I may not be able to do much is in order.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/4b8e46e5-5fbd-4e2a-b4e3-d5390faa5977%40googlegroups.com.
--Matt Chelen