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

Author Topic: Failed to compile SFML on my raspberry pi.  (Read 11458 times)

0 Members and 1 Guest are viewing this topic.

Lolilolight

  • Hero Member
  • *****
  • Posts: 1232
    • View Profile
Failed to compile SFML on my raspberry pi.
« on: May 21, 2014, 04:20:20 pm »
Hi, I tried to compile SFML on a raspberry pi but I get this error :

Code: [Select]

[ 17%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.cpp.o
In file included from /home/pi/Development/SFML-master/src/SFML/Window/GlContext.cpp:70:0:
/home/pi/Development/SFML-master/src/SFML/Window/EglContext.hpp:163:12: error: ‘XVisualInfo’ does not name a type
     static XVisualInfo selectBestVisual(::Display* display, unsigned int bitsPerPixel, const ContextSettings& settings);
            ^
src/SFML/Window/CMakeFiles/sfml-window.dir/build.make:80: recipe for target 'src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.cpp.o' failed
make[2]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.cpp.o] Error 1
CMakeFiles/Makefile2:155: recipe for target 'src/SFML/Window/CMakeFiles/sfml-window.dir/all' failed
make[1]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all]

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Failed to compile SFML on my raspberry pi.
« Reply #1 on: May 21, 2014, 04:26:43 pm »
Are you serious? :o

But you can read, right? Because there's written more than "wrong forum section"!

So?

You know as being part of this community for quite a bit now, it's really sad that you apparently can't apply to the official rules.
You post in the General Discussion section instead of the Help section. You don't provide any kind of information on your system. You don't provide any kind of information on what you've tried. You don't provide information on what you did and how you got that error message.

And the worst part, I doubt you've spend any amount of time investigating how you could fix the issue.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Failed to compile SFML on my raspberry pi.
« Reply #2 on: May 21, 2014, 04:30:47 pm »
@Lolilolight: I find this really offensive. You never really read others' answers... How do you want to get any help if you don't pay a little respect to the time others take to help you? I really hope it's the last time..
SFML / OS X developer

Lolilolight

  • Hero Member
  • *****
  • Posts: 1232
    • View Profile
Re: Failed to compile SFML on my raspberry pi.
« Reply #3 on: May 21, 2014, 05:14:15 pm »
Don't worry I'll stop this anyway.

There is always a compilation error or an execution error and it's been 3 days already that I try to run an sfml appi on my pi.

Here it seems that libavg is missing and the package isn't avalaible on the rasbian repo.

I tried to get the archive but it fails to extract...

I think I'll simply stop this because it make me sick.




select_this

  • Full Member
  • ***
  • Posts: 130
  • Current mood: just ate a pinecone
    • View Profile
    • darrenferrie.com
Re: Failed to compile SFML on my raspberry pi.
« Reply #4 on: May 21, 2014, 05:22:53 pm »
I've just extracted the archive from https://www.libavg.de/site/projects/libavg/wiki/RPI just fine on Ubuntu. I'm assuming that the Raspberry Pi can handle tarballs correctly, so I don't know why it would fail to extract. If you had a specific error message when you attempted it then it'd be easier to find out what's going on.
Follow me on Twitter, why don'tcha? @select_this

Lolilolight

  • Hero Member
  • *****
  • Posts: 1232
    • View Profile
Re: Failed to compile SFML on my raspberry pi.
« Reply #5 on: May 21, 2014, 05:29:33 pm »
It was a problem with a software, I 've just extracted it from the command line.

But know it seems that I've to compile it. (Pfiu)

Because SFML still doesn't compile. And it seems that the XVisualInfo class is into this library.

select_this

  • Full Member
  • ***
  • Posts: 130
  • Current mood: just ate a pinecone
    • View Profile
    • darrenferrie.com
Re: Failed to compile SFML on my raspberry pi.
« Reply #6 on: May 21, 2014, 05:31:59 pm »
Again, post a specific error message and we might be able to help you. Just telling us 'it doesn't work' gives us nothing to work with to help you resolve the issues you're encountering.

You seem to be really reluctant to give us the information we need to be useful to you.
Follow me on Twitter, why don'tcha? @select_this

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Failed to compile SFML on my raspberry pi.
« Reply #7 on: May 21, 2014, 07:03:58 pm »
XVisualInfo is a Xlib type. I have no idea who told you it was part of libavg.
Laurent Gomila - SFML developer

Lolilolight

  • Hero Member
  • *****
  • Posts: 1232
    • View Profile
Re: Failed to compile SFML on my raspberry pi.
« Reply #8 on: May 21, 2014, 08:00:47 pm »
I've installed libx11-dev, so, I don't understand why it doesn't found the XVisualInfo class, I had already an include error in the /opt/vcos/include/interface/vcos for the pthread library..., and now, I've another one.

Lolilolight

  • Hero Member
  • *****
  • Posts: 1232
    • View Profile
Re: Failed to compile SFML on my raspberry pi.
« Reply #9 on: May 21, 2014, 08:36:38 pm »
And, is it normal to have this line in the source file ???

::Display* display
 

:: Without a namespace or a class name at the left.

Geheim

  • Full Member
  • ***
  • Posts: 201
    • View Profile
    • Email
Failing to succeed does not mean failing to progress!

Lolilolight

  • Hero Member
  • *****
  • Posts: 1232
    • View Profile
Re: Failed to compile SFML on my raspberry pi.
« Reply #11 on: May 21, 2014, 08:55:45 pm »
Ok then, it's probably a wrong include..., or, a missing include.

Lolilolight

  • Hero Member
  • *****
  • Posts: 1232
    • View Profile
Re: Failed to compile SFML on my raspberry pi.
« Reply #12 on: May 21, 2014, 09:53:13 pm »
You have forgotten to include <X11/Xutil.h> in the EGLContext.h file, I've included this and it compile now. :)

Lolilolight

  • Hero Member
  • *****
  • Posts: 1232
    • View Profile
Re: Failed to compile SFML on my raspberry pi.
« Reply #13 on: May 21, 2014, 10:09:13 pm »
Mmm there are still errors in the repo it seems. :/

Now it tells me that GL_FUNC_ADD is not declared.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Failed to compile SFML on my raspberry pi.
« Reply #14 on: May 21, 2014, 10:59:32 pm »
Quote
Now it tells me that GL_FUNC_ADD is not declared.
It's being fixed. Please look at what happens in the repo / General forum when you have issues with the latest master.
Laurent Gomila - SFML developer

 

anything