You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have compiled a sfml application with the sfml package in the x11-repo. It should open a 200x200 px window displaying a green circle.
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}
I have problems running the application. I set up an VNC-Server, set DISPLAY=:0, but when trying to run the application ./sfml-app I get the error: Error of failed request: BadMatch(invalid parameter attributes)
Major opcode of failed request: 1 (X_CreateWindow)
Serial number of failed request: 14
Current serial number in output stream: 16
The text was updated successfully, but these errors were encountered:
I have the exact same issue, even when the code is just
**#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window;
}**
, i get this error: X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 1 (X_CreateWindow) Serial number of failed request: 14 Current serial number in output stream: 16
If i comment out the "sf::RenderWindow window;" it works fine, so the problem is that it cant create a window.
I have compiled a sfml application with the sfml package in the x11-repo. It should open a 200x200 px window displaying a green circle.
I have problems running the application. I set up an VNC-Server, set DISPLAY=:0, but when trying to run the application
./sfml-app
I get the error:Error of failed request: BadMatch(invalid parameter attributes)
Major opcode of failed request: 1 (X_CreateWindow)
Serial number of failed request: 14
Current serial number in output stream: 16
The text was updated successfully, but these errors were encountered: