mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Package proposal


From: Mark Brand
Subject: Re: [Mingw-cross-env-list] Package proposal
Date: Tue, 01 Nov 2011 11:51:39 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Firefox/7.0.1 SeaMonkey/2.4.1

Zeev Pekar wrote:
I noticed some linking problems already in VTK/Examples/GUI/Qt. The
generated makefiles are missing the -llcms dependency for -lmng, and
-ljpeg is missing for -ltiff. Also saw a missing -lbz2 somewhere.
Hi Mark,

I try to cross-compile a project that uses VTK and I do have problems
with linking. Does it have something to do with what you have mentioned?

Zeev



   CXXLD  focus.exe
/home/zeev/focus/cross-compile/mingw-cross-env-2.21/usr/i686-pc-mingw32/lib/vtk-5.8/libvtkRendering.a(vtkProperty.cxx.obj):vtkProperty.cxx:(.text+0x10b):
 undefined reference to `vtksys::SystemToolsManager::~SystemToolsManager()'
/home/zeev/focus/cross-compile/mingw-cross-env-2.21/usr/i686-pc-mingw32/lib/vtk-5.8/libvtkRendering.a(vtkProperty.cxx.obj):vtkProperty.cxx:(.text+0x4408):
 undefined reference to `vtksys::SystemTools::GetFilenameLastExtension(std::basic_string<char, 
std::char_traits<char>, std::allocator<char>  >  const&)'
<snip>

See the undefined references in vtk library ibvtkRendering.a. This library depends on another vtk library which needs to be in the link command since we are linking statically. What you need to do is figure out why your application's makefile doesn't link to the needed libraries.

If you do "make VERBOSE=1" you should see the link command behind "CXXLD focus.exe". Try manually adding the missing -l arguments to this command.

The next job is to make this happen automatically. One possibility is that your application's build configuration has a problem. Are you using cmake? Another is that the cmake files from vtk are missing something.

Please share your results!

Mark




reply via email to

[Prev in Thread] Current Thread [Next in Thread]