Skip to content
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

<SDL2/SDL.h> and other header files missing #7

Closed
jared-nelsen opened this issue Sep 3, 2019 · 5 comments
Closed

<SDL2/SDL.h> and other header files missing #7

jared-nelsen opened this issue Sep 3, 2019 · 5 comments

Comments

@jared-nelsen
Copy link

When I cloned the source code and followed the instructions to build using VSCode (found here: https://github.com/littlevgl/lv_platformio) I found that these header files are missing:

  • <SDL2/SDL.h>
  • indev/mouse.h
  • indev/mousewheel.h
  • indev/keyboard.h
@embeddedt
Copy link
Member

Are you on Windows or Linux?

@jared-nelsen
Copy link
Author

I am on Windows 64 bit. I've followed the instructions to install SDL2 from this page: https://docs.littlevgl.com/en/html/get-started/pc-simulator.html#install-sdl-2

After looking at things further, it seems my installation of MinGW is a little different than what the above link. I went to this page: http://mingw-w64.org/doku.php/download
and downloaded the MingW-W64-builds selection from sourceforge. It installed MinGW to C:\Program Files (x86) which is different than the documentation instructions say: they say it should be: C:/MinGW/…/x86_64-w64-mingw32. Then I followed the instructions to copy the files from the download of the development files found here: https://www.libsdl.org/download-2.0.php . I am not sure that my MinGQ install is the problem, though. Would the copying of the SDL2 files be different for VSCode than Eclipse?

@puzrin
Copy link
Collaborator

puzrin commented Sep 3, 2019

I use linux, no ideas how to install sdl2 for win.

About indev - i had a very strange bug with different paths behaviour in windows/linux speedcontrols/ac_sc_grinder#2, but not sure if it applies to this case. It really worth fix sdl2 path first.

@embeddedt
Copy link
Member

@Chronic788 On Windows it's usually easiest to use the Visual Studio or CodeBlocks projects instead. They don't depend on an external library like SDL and thus are easier to set up.

@jared-nelsen
Copy link
Author

I've resolved my problem by switching to Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants