Closed Napoleongl closed 4 years ago
My SDL.h is at the same location than yours. Your version of the SLD is up-to-date according to apt-get
. It should work. Try to restart your computer first.
Nope, didnt work.Even
apt remove libsdl-dev --purge
apt autoremove
reboot
apt install libsdl-dev
didnt work. Also cloned repo, and copied tie entire SDL-folder from usr/include to both the root of the package and /src and then tried to compile, same error. Also copied only the SDL.h - file to /src and tried to compile. no luck... Any hints on where R looks for header files when it tries to compile?
On Linux R searches for libraries on their regular place i.e. /usr/include/
or any other relevant places. In your case we can see that it looks in /home/guslun/anaconda3/envs/renv/include
and other paths pretty similar. I don't know what is anaconda
but if you are working in a kind of container or whatever this is your responsibility to know how it works.
Anaconda is a package and virtual environment manager that among other things simplifies reproducible research. And apparently it makes certain things harder than they should as well! Copying SGL and GL-libraries into the above include-path solved som problems and then others arose, but they should be solvable if I get Anaconda to look for things in the right places. So this issue can be closed or if you prefer that I submit my solution whenever I get one just for completeness!
You can post your solution. It may help other users of anaconda.
Hi,
This is a great package, thanks so much for writing it. Scales beautifully
For what it's worth, I got it to work with anaconda using these packages (you can use conda not mamba but mamba is great)
mamba install -c conda-forge sdl freeglut libglu
mamba install -c conda-forge mesalib
mamba install -c conda-forge mesa-libgl-devel-cos7-x86_64
The last one is the only strange one, and there are a lot of similar sounding package names on anaconda which all might work, I chose this one instead of cos6
since it seemed newer
Hi!
I'm running into the following error when attempting install:
Both prereq libraries have been installed however, albeit with a warning for SDL that a newer verion is used as far as I understand the issue.
Is there a way of getting the installation to find SDL.h so I can use the package properly?