[Bug 1872023] [NEW] libsdl2-ttf-dev and libsdl2-dev headers not at the same place, causing compilation error

2020-04-10 Thread Samuel Hangouët
Public bug reported:

Since update to focal, libsdl2 and libsdl2-ttf headers have a different
location, causing a compilation error when trying to include
SDL2/SDL_ttf.h header :

$ sudo apt install libsdl2-ttf-dev libsdl2-dev
$ echo "#include " > main.c
$ gcc main.c
In file included from main.c:1:
/usr/include/SDL2/SDL_ttf.h:34:10: fatal error: SDL.h: Aucun fichier ou dossier 
de ce type
   34 | #include "SDL.h"
  |  ^~~
compilation terminated.

It seems that SDL_ttf.h header expects to be in the same place that SDL
ones, which is not the case :

$ dpkg -L libsdl2-ttf-dev
/.
/usr
/usr/include
/usr/include/SDL2
/usr/include/SDL2/SDL_ttf.h
...

$ dpkg -L libsdl2-dev
/.
/usr
/usr/bin
/usr/bin/sdl2-config
/usr/include
/usr/include/x86_64-linux-gnu
/usr/include/x86_64-linux-gnu/SDL2
/usr/include/x86_64-linux-gnu/SDL2/SDL.h
...

** Affects: libsdl2-ttf (Ubuntu)
 Importance: Undecided
 Status: New

** Summary changed:

- libsdl2-ttf-dev headers and libsdl2-dev headers not at the same place, 
causing compilation error
+ libsdl2-ttf-dev and libsdl2-dev headers not at the same place, causing 
compilation error

** Description changed:

- Since update focal, libsdl2 and libsdl2-ttf headers have a different
+ Since update to focal, libsdl2 and libsdl2-ttf headers have a different
  location, causing a compilation error when trying to include
  SDL2/SDL_ttf.h header :
  
  $ sudo apt install libsdl2-ttf-dev libsdl2-dev
  $ echo "#include " > main.c
- $ gcc main.c 
+ $ gcc main.c
  In file included from main.c:1:
  /usr/include/SDL2/SDL_ttf.h:34:10: fatal error: SDL.h: Aucun fichier ou 
dossier de ce type
-34 | #include "SDL.h"
-   |  ^~~
+    34 | #include "SDL.h"
+   |  ^~~
  compilation terminated.
  
  It seems that SDL_ttf.h header expects to be in the same place that SDL
  ones, which is not the case :
  
  $ dpkg -L libsdl2-ttf-dev
  /.
  /usr
  /usr/include
  /usr/include/SDL2
  /usr/include/SDL2/SDL_ttf.h
  ...
  
  $ dpkg -L libsdl2-dev
  /.
  /usr
  /usr/bin
  /usr/bin/sdl2-config
  /usr/include
  /usr/include/x86_64-linux-gnu
  /usr/include/x86_64-linux-gnu/SDL2
  /usr/include/x86_64-linux-gnu/SDL2/SDL.h
  ...

** Project changed: launchpad => libsdl

** Project changed: libsdl => libsdl2-ttf (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1872023

Title:
  libsdl2-ttf-dev and libsdl2-dev headers not at the same place, causing
  compilation error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libsdl2-ttf/+bug/1872023/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1872023] [NEW] libsdl2-ttf-dev and libsdl2-dev headers not at the same place, causing compilation error

2020-04-10 Thread Launchpad Bug Tracker
You have been subscribed to a public bug:

Since update to focal, libsdl2 and libsdl2-ttf headers have a different
location, causing a compilation error when trying to include
SDL2/SDL_ttf.h header :

$ sudo apt install libsdl2-ttf-dev libsdl2-dev
$ echo "#include " > main.c
$ gcc main.c
In file included from main.c:1:
/usr/include/SDL2/SDL_ttf.h:34:10: fatal error: SDL.h: Aucun fichier ou dossier 
de ce type
   34 | #include "SDL.h"
  |  ^~~
compilation terminated.

It seems that SDL_ttf.h header expects to be in the same place that SDL
ones, which is not the case :

$ dpkg -L libsdl2-ttf-dev
/.
/usr
/usr/include
/usr/include/SDL2
/usr/include/SDL2/SDL_ttf.h
...

$ dpkg -L libsdl2-dev
/.
/usr
/usr/bin
/usr/bin/sdl2-config
/usr/include
/usr/include/x86_64-linux-gnu
/usr/include/x86_64-linux-gnu/SDL2
/usr/include/x86_64-linux-gnu/SDL2/SDL.h
...

** Affects: libsdl2-ttf (Ubuntu)
 Importance: Undecided
 Status: New

-- 
libsdl2-ttf-dev and libsdl2-dev headers not at the same place, causing 
compilation error
https://bugs.launchpad.net/bugs/1872023
You received this bug notification because you are a member of Ubuntu Bugs, 
which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs