[Insight-users] optimized.lib on MS VS 2003 .NET

David Cole david.cole at kitware.com
Tue Mar 6 14:10:17 EST 2007


Well..... when I grep on my ITK source tree, the only likely candidate
for optimized looks like it comes from this file:
Utilities/vxl/config/cmake/Modules/NewCMake/FindwxWidgets.cmake

Do you have any WX widgets installations? Are the library variables
for it set reasonably when you look at the cmake gui (or
CMakeCache.txt)?

I'm not trying to be difficult either... just trying to get you closer
to the solution. Since I don't have your source tree in front of me, I
can't tell you where the "optimized" is coming from.

Hope this is helpful, at least.
David


On 3/6/07, Mike Jackson <imikejackson at gmail.com> wrote:
> I am not trying to be difficult here.. but just where do I find "grep"
> on windows XP SP2 running MS VS 2003 .Net?
>
> If I was back on my OS X box I could do that for you.
>
> Also, I am using ITK 2.8.1 as I was having some trouble with ITK 3.0
> Also using CMake 2.4.3
>
> If upgrading will solve these issues just let me know and I will take
> the plunge and start upgrading everything.
>
> Again.. not trying to be difficult.
> Mike Jackson
>
> On 3/6/07, David Cole <david.cole at kitware.com> wrote:
> > There is no lib called "optimized" so we need to figure out where it's
> > coming from to tell you how to fix it. If we can identify the missing
> > CMake variable then that's the one you need to set.
> >
> > The grep results of "grep -rn optimized *" in your source tree will
> > give us the next clue.
> >
> >
> > On 3/6/07, Mike Jackson <imikejackson at gmail.com> wrote:
> > > Ok Great.. so how do I fix this? Do i need to fill out something in CMake?
> > >
> > > mike
> > >
> > > On 3/6/07, David Cole <david.cole at kitware.com> wrote:
> > > > CMake uses "debug" and "optimized" as special keywords for library
> > > > specification when there are separate debug and optimized libs for a
> > > > given library...
> > > >
> > > > grep the source tree for "optimized" and I bet you will find something
> > > > that looks like this:
> > > >  ...... debug ${var_debug_lib} optimized ${var_optimized_lib} .......
> > > > where var_optimized_lib is an inadvertently empty CMake variable.
> > > >
> > > > HTH,
> > > > David
> > > >
> > > >
> > > > On 3/6/07, Mike Jackson <imikejackson at gmail.com> wrote:
> > > > > I am trying to compile up a release version of my code. I used CMake
> > > > > to generate the VS2003 project and when the linker tries to link, the
> > > > > linker cannot find "optimized.lib"
> > > > >    I have searched my system and the file is nowhere to be found. I am
> > > > > a bit new to VS2003 (usually on a Unix machine) so any insight into
> > > > > this would be great.
> > > > >    I thought I installed the full MS VS 2003 .Net product but could I
> > > > > have missed something?
> > > > >
> > > > > Thanks
> > > > > --
> > > > > Mike Jackson
> > > > > imikejackson _at_ gee-mail dot com
> > > > > _______________________________________________
> > > > > Insight-users mailing list
> > > > > Insight-users at itk.org
> > > > > http://www.itk.org/mailman/listinfo/insight-users
> > > > >
> > > >
> > >
> > >
> > > --
> > > Mike Jackson
> > > imikejackson _at_ gee-mail dot com
> > >
> >
>
>
> --
> Mike Jackson
> imikejackson _at_ gee-mail dot com
>


More information about the Insight-users mailing list