Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: cmake error  (Read 1670 times)

0 Members and 1 Guest are viewing this topic.

gir201

  • Newbie
  • *
  • Posts: 1
    • View Profile
cmake error
« on: February 08, 2015, 10:15:25 pm »
I'm new to ubuntu and I try to cmake the SFML 2.2  files. I got all the libs I need, but when I make SFML I get this error

In file included from /home/eddie/SFML/src/SFML/Window/Unix/WindowImplX11.cpp:34:0:
/usr/include/xcb/xcb_icccm.h:395:64: error: expected ‘,’ or ‘...’ before ‘class’
/usr/include/xcb/xcb_icccm.h:403:56: error: expected ‘,’ or ‘...’ before ‘class’
make[2]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/Unix/WindowImplX11.cpp.o] Error 1
make[1]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/all] Error 2
make: *** [all] Error 2

I thought the libxcb-iccm needed to be updated, but it wasn't that. So I came here hoping you all can help me.


wetnightmares

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • Email
Re: cmake error
« Reply #1 on: February 24, 2015, 07:24:59 pm »
This might not be a suggested practice, but my fix was to change both those lines in xcb_icccm.h from *class to *something_else.

class seems to be protected.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
AW: cmake error
« Reply #2 on: February 24, 2015, 09:03:38 pm »
You might want to provide the code of that header or at least the code around the line from the error.
What version of compiler do you have installed?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

zmertens

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Re: cmake error
« Reply #3 on: February 24, 2015, 09:24:37 pm »
Did you install the libxcb-iccm-dev libraries? I remember that I ran into a CMake issue building the latest SFML 2.2 (on Ubuntu 14.04) and I needed to get the dev version of the libraries and that fixed it. I think I used the libraries from here.
The truth will set you free but first it will piss you off.