Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8602431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:05:02+00:00 2026-06-12T02:05:02+00:00

Is there anyone who succeed to include libjpeg in some compiler? I tried everything:

  • 0

Is there anyone who succeed to include libjpeg in some compiler? I tried everything: Dev C++, VS10, CodeBlocks, copy the headers and the lib by hand, add with the linker but nothing. Right now I am really confisued as there is not an official guide on how to compile it in any compiler. I would be really happy if someone could provide a tutorial on how the library can be compiled in any compiler.
Thank you in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T02:05:04+00:00Added an answer on June 12, 2026 at 2:05 am

    Here is how I’ve built libjpeg using MinGW on Windows :

    1. Get MinGW with MSYS

    I’ve got a copy from http://sourceforge.net/projects/mingw/.
    Quoting from http://www.mingw.org :

    MSYS is a collection of GNU utilities such as bash, make, gawk and grep to allow building of applications and programs which depend on traditionally UNIX tools to be present.

    We will need it to run the configure script that comes with libjpeg sources.

    2. Get libjpeg sources

    From http://www.ijg.org/, take the Unix format package (the Windows one won’t work with this procedure). I took the jpeg_8d version.

    3. Prepare a building directory

    I’ve made a temporary directory named tmp in D:\, but you could choose whatever suits your needs. The thing that matters is the name of paths in MSYS. As it brings some * Unixity * to Windows, paths cannot be used in their original form.
    In a nutshell:

    C:\path\to\file becomes /c/path/to/file in MSYS land, an so
    D:\tmp becomes /d/tmp.

    Decompress the libjpeg sources in D:\tmp, so you have a jpeg-8d directory in there.

    Create a jpeg-build directory inside D:\tmp, it will hold the built library.

    Now everything is ready for the build.

    4. ./configure, make, make install

    That is the mantra of building in Unix land. An option should be added to redirect the install process to D:\tmp\jpeg-build.

    Run the following commands in an MSYS shell (also named MinGW shell in Windows start menu):

    cd /d/tmp/jpeg-8d
    ./configure --prefix=/d/tmp/jpeg-build
    make
    make install
    

    As an additional step, you can run make test for safety.

    These commands will build both static and shared versions of libjpeg.

    5. Take the goods, delete the temporaries

    If everything runs fine, you can delete the D:\tmp\jpeg-8d directory, but keep the jpeg-build one. It contains:

    • an include directory, containing libjpeg headers. You can move them to your compiler’s headers directory.
    • a lib directory, with .a file to pass to the linker. You can move them to your compiler’s library directory.
    • a bin directory, holding the libjpeg shared library libjpeg-8.dll and jpeg tools.
    • a share directory, containing man pages for the jpeg tools.

    You can now build your program and link it against libjpeg by indicating the right include and library paths.

    You can find many details about the libjpeg building and installation process in install.txt inside the source package.

    I hope this will be useful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there anyone who has already tried to use the Microsoft Bing translator web
Is there anyone who has done some integration with securetrading using stapi? I currently
Is there anyone who uses GitHub with MD for MonoTouch? I set-up everything as
Is there anyone who have encountered Processing Dirty Regions error in MyEclipse? Actually everytime
Is there anyone who knows this? I have been trying this for the last
Is there anyone who knows how to destroy a javascript (jquery) function? I'm using
Is there anyone out there who knows if it's possible to use common web
Anyone out there who knows what are the differences between BasicRenderEngine and LazyRenderEngine?
Anyone who's tried to study mathematics using online resources will have come across these
is there anyone who have experienced problems using the latests jQuery version with one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.