Comments (8)
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.
How do you build FreeImage?
If you have Visual Studio, please build using FreeImage.vs2022.sln, FreeImage.vs2019.sln, etc.
from freeimage.
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.
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.
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.
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.
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.
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)
- Files support .xcf? HOT 2
- Doesn't compile with C++17 and higher because of auto_ptr HOT 1
- Fix for building FreeImage on MacOS 12 HOT 1
- DDS Image viewer is very weird HOT 4
- Not building on Archlinux HOT 2
- [macOS] Build error: `PluginBMP.cpp: error: 'bpp' was not declared in this scope` HOT 4
- FreeImage stops to build with MSVC when enabling C++20 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freeimage.