Git Product home page Git Product logo

Comments (8)

sdottaka avatar sdottaka commented on August 12, 2024 1

Maybe you installed jpeg62.dll using vcpkg or something like that?
If so, you may be able to build successfully by disabling vcpkg in the project properties window such as libjpeg.

from freeimage.

sdottaka avatar sdottaka commented on August 12, 2024

How do you build FreeImage?
If you have Visual Studio, please build using FreeImage.vs2022.sln, FreeImage.vs2019.sln, etc.

from freeimage.

A-G-U-P-T-A avatar A-G-U-P-T-A commented on August 12, 2024

Hi I used VS 2022 FreeImage.vs2022.sln used the mentioned method. The message I am mentioning happens on it from the master branch. The FreeImage module is selected (by default) and I am trying to build it.

from freeimage.

AdmiralPellaeon avatar AdmiralPellaeon commented on August 12, 2024

I downloaded the current master version of the repo. I opened the VS2022 sln and built 'FreeImage' and 'FreeImageLib' with VS 17.8.3, debug and release in 64bit. No problems at all. Perhaps a broken file in your download? or some weird configurations in VS?

from freeimage.

A-G-U-P-T-A avatar A-G-U-P-T-A commented on August 12, 2024

I tried again taking a fresh clone from github and selecting 2022 and building it the 5 errors and a lot of warnings is still persistent.
Severity Code Description Project File Line Suppression State
Error LNK2005 jpeg_simple_progression already defined in jpeg.lib(jpeg62.dll) FreeImage D:\CleanDirectory\freeimage\LibJPEG.lib(jcparam.obj) 1
Error LNK2005 jpeg_set_defaults already defined in jpeg.lib(jpeg62.dll) FreeImage D:\CleanDirectory\freeimage\LibJPEG.lib(jcparam.obj) 1
Error LNK2005 jpeg_set_quality already defined in jpeg.lib(jpeg62.dll) FreeImage D:\CleanDirectory\freeimage\LibJPEG.lib(jcparam.obj) 1
Error LNK2005 jpeg_destroy already defined in jpeg.lib(jpeg62.dll) FreeImage D:\CleanDirectory\freeimage\LibJPEG.lib(jcomapi.obj) 1
Error LNK1169 one or more multiply defined symbols found FreeImage D:\CleanDirectory\freeimage\x64\Release\FreeImage.dll 1

Unsure why this is happening. Worked once on my system however started failing in consecutive builds. Now I am not a C++ expert so maybe unable to pinpoint this but this is a persistent problem post the first build. My system is 64 bit as well. I re-verified if that was the case.

EDIT:- Build works with x86 selected both release and debug is working...

from freeimage.

AdmiralPellaeon avatar AdmiralPellaeon commented on August 12, 2024

Did you try to delete the folder with all temporary intermediate compiling data, so that VS is really doing a fresh new build? Sometimes this helps.

from freeimage.

A-G-U-P-T-A avatar A-G-U-P-T-A commented on August 12, 2024

Uh not sure what is happening but I think I will stop my effort here. These 5 errors are recurring. x86 build works seamlessly but x64 somehow is failing every time. My use-case is covered since it will be cross compatible hopefully. So I don't mind the x86 build.

from freeimage.

A-G-U-P-T-A avatar A-G-U-P-T-A commented on August 12, 2024

Omg yes that was causing the conflict. I just deleted the local packages and it created the thing. Thanks a lot.

from freeimage.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.