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

Author Topic: Linux Mint 10 OpenGL.hpp and glu.h not found  (Read 1875 times)

0 Members and 1 Guest are viewing this topic.

reDo

  • Full Member
  • ***
  • Posts: 104
    • View Profile
Linux Mint 10 OpenGL.hpp and glu.h not found
« on: January 18, 2011, 09:03:41 pm »
When I try to compile this code
Code: [Select]
#include <SFML/System.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <iostream>

int main()
{
     // Create the main rendering window
    sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Graphics");

    // Start game loop
    while (App.IsOpened())
    {
        // Process events
        sf::Event Event;
        while (App.GetEvent(Event))
        {
            // Close window : exit
            if (Event.Type == sf::Event::Closed)
                App.Close();

            // A key has been pressed
            if (Event.Type == sf::Event::KeyPressed)
            {
                // Escape key : exit
                if (Event.Key.Code == sf::Key::Escape)
                    App.Close();

                // F1 key : capture a screenshot
                if (Event.Key.Code == sf::Key::F1)
                {
                    sf::Image Screen = App.Capture();
                    Screen.SaveToFile("screenshot.jpg");
                }
            }
        }

        // Clear the screen with red color
        App.Clear();

        // Display window contents on screen
        App.Display();
    }


    return 0;
}

I got this message

How can I compile it please?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Linux Mint 10 OpenGL.hpp and glu.h not found
« Reply #1 on: January 18, 2011, 11:04:07 pm »
You probably have to install the package containing the GLU development files.
Laurent Gomila - SFML developer

reDo

  • Full Member
  • ***
  • Posts: 104
    • View Profile
Linux Mint 10 OpenGL.hpp and glu.h not found
« Reply #2 on: January 19, 2011, 02:53:15 pm »
Thanks, it works

 

anything