Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outdated MinGW external libraries #42

Closed
PMudra opened this issue May 10, 2011 · 1 comment
Closed

Outdated MinGW external libraries #42

PMudra opened this issue May 10, 2011 · 1 comment
Assignees
Labels
Milestone

Comments

@PMudra
Copy link

PMudra commented May 10, 2011

The "extlibs/libs-mingw/libjpeg.a" does not fit to the "extlibs/headers/jpeg/jpeglib.h" header file.

Versions:

  • libjpeg.a - 62
  • jpeglib.h - 80

The error can be reproduced with this code. It occurs when this is compiled with mingw but also could occur when using other compilers (it really depends on the compiler you create SFML with, I think)

#include <SFML/Graphics.hpp>

int main ()
{
    sf::RenderWindow App(sf::VideoMode(800, 600, 32), "Screenshot");
    App.SetFramerateLimit(30);

    while (App.IsOpened())
    {
        // Event
        sf::Event Event;
        while(App.PollEvent(Event))
        {
            if (Event.Type == sf::Event::Closed)
                App.Close();

            if (Event.Type == sf::Event::KeyReleased && Event.Key.Code == sf::Key::Space)
            {
                sf::Image Screenshot;
                Screenshot.CopyScreen(App);
                Screenshot.SaveToFile("test.jpg");
            }
        }

        // Render
        App.Clear(sf::Color(0, 0, 0, 255));
        App.Display();
    }
    return 0;
}

Error Message printed when releasing space:

Wrong JPEG library version: library is 62, caller expects 80

Should be fixed by updating the libjpeg.a file.

@LaurentGomila
Copy link
Member

Yes I know, I updated the headers and VC++ libraries of all external libs, but forgot to do the same with MinGW libs.

Thanks for reminding me.

Reminder for me: precompiled MinGW libraries can be found here (both 32 and 64 bits versions).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants