Bug#875452: libcsfml-dev: impossible to use libsfml since libcsfml header is in /usr/include/SFML

NathV nathanbarro100 at gmail.com
Mon Sep 11 13:49:23 UTC 2017


Package: libcsfml-dev
Version: 2.3-3+b1
Severity: important

Dear Maintainer, I was trying to compile an SFML project.

        > g++ -c main.cpp
        > g++ main.o -o test  -lsfml-graphics -lsfml-window -lsfml-system

        main.o: In function `main':
        main.cpp:(.text+0xc8): undefined reference to
`sf::CircleShape::CircleShape(float, unsigned int)'
        collect2: error: ld returned 1 exit status

Then i've uninstalled libcsfml, and it was working. I think the problem come
from the fact that in /usr/include/SFML there is both libcsfml and libsfml
header.

        > ls /usr/include/SFML
        Audio      Config.hpp    Main.hpp     OpenGL.h    System.hpp
        Audio.h    Graphics      Network      OpenGL.hpp  Window
        Audio.hpp  Graphics.h    Network.h    System      Window.h
        Config.h   Graphics.hpp  Network.hpp  System.h    Window.hpp
        > sudo apt-get remove "libcsfml*"
        > ls /usr/include/SFML
        Audio       Graphics      Network      System      Window.hpp
        Audio.hpp   Graphics.hpp  Network.hpp  System.hpp
        Config.hpp  Main.hpp      OpenGL.hpp   Window

more details here: https://en.sfml-dev.org/forums/index.php?topic=22492.0




-- System Information:
Debian Release: 9.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libcsfml-dev depends on:
pn  libcsfml-audio2.3              <none>
pn  libcsfml-graphics2.3           <none>
pn  libcsfml-network2.3            <none>
pn  libcsfml-system2.3             <none>
pn  libcsfml-window2.3             <none>
ii  libgl1-mesa-dev [libgl-dev]    13.0.6-1+b2
ii  libglu1-mesa-dev [libglu-dev]  9.0.0-2.1

libcsfml-dev recommends no packages.

Versions of packages libcsfml-dev suggests:
pn  libcsfml-doc  <none>



More information about the Pkg-games-devel mailing list