You know what, I spent last full night in order to understand what you are saying and trying to compile it, but still some confusion and I couldn't. Let me write step by step procedure of building FLTK using original jpeg library which I have build successfully.
1). I open the fltk.sln project in Visual Studio 2010. There are 76 projects i think so. 2). right click on the fltk project and select Properties and go C/C++ => Genral => Additional Include Directories. I changed the original path of jpeg lib that is (..\..\jpeg;) to the original jpeg path (c:\jpeg). 3). I do same with the fltkjpeg project. Here is some confusion, do I need to change the jpeg path of every 76 projects, is it necessary ? or changes in fltkjpeg and fltk projects are enough ? 4). Ok now you said that "locate the places where the library paths are set, and remove the references to the fltkjpeg lib and replace that with a reference to the "real" jpeg lib you just built instead." Reference means that where the static library will be saved after build, am i right? So, I need to change the reference of jpeg lib in the fltkjpeg project only, and I can find that reference in Properties => Librarian => General => Output File => I change from (..\..\lib\$(ProjectName).lib) to (c:\release\jpeg.lib). There is another reference I need to change that is Properties => Configuration Properties => Output Diretory and => Target. So, now original library has set, now start building. I do the same with the OpenCV. Are you agree, what I have written or something wrong in it ? I have one confusion here, if I build fltk project it generate one static jpeg.lib, right? and when I build OpenCV it will also generate one static jpeg.lib ? and third one is Original jpeg.lib, so three libs build from the same include files. Now which one I need to use after building all these libs, which lib I need to add in my application project ? thanks. > On 31 Dec 2012, at 05:04, Furqan wrote: > > > Oh sorry to mention, I don't know anything about linux/unix, I am = > using windows in which Visual Studio 2010 is the compiling source. > >=20 > > Yes, I recall that you are a Windows/IDE user; though I guess Greg maybe = > thought you were not using an IDE. > His comments assume you are working at the shell (though are not, per = > se, *nix specific, any reasonable shell, even Msys on Windows, would be = > the same.) > > > Anyway, it sounds like you maybe need to spend a little time getting to = > grips with the way that the VS IDE works, and with the basics of linking = > in libraries and so forth, as none of what I suggested is particularly = > obscure or tricky. > > I'll try and outline what needs to be done in a bit more detail though, = > in case my previous suggestion was unclear - it makes perfect sense to = > me, but then of course, I wrote it, so I'd hope I understood what I was = > trying to say...! > > > So, here are the steps: > > - Build a "clean" version of libjpeg on your system, from the "official" = > libjpeg sources. Take a note of where you have built that on your = > system. > > - Open up the fltk project, and in the IDE settings, locate the lines = > that set the include paths; find the lines that point to=20 > > ...whatever.../fltk-1.3/jpeg > > and change those to point at /wherever/you/installed/the/real/jpeg = > instead. > > Then locate the places where the library paths are set, and remove the = > references to the fltkjpeg lib and replace that with a reference to the = > "real" jpeg lib you just built instead. > > Then clean and build fltk, and it *should* build using the "system" jpeg = > lib rather than the "built in" one. > > - Do the equivalent changes to OpenCV, and rebuild. > > > Now, when you build your project, all the jpeg dependencies should = > resolve to the "system" jpeg lib, not to any of the built-in jpeg libs, = > and everything ought to Just Work. > > > Right. I need to be elsewhere: I'll just wish everyone "Bliadhna mhath = > =F9r" and go... > --=20 > Ian > > _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

