Andreas Pakulat-2 wrote > > Hi, > > Relocating Qt requires either patching the qmake binary or installing > a qt.conf file to help qmake find the libs in the new position. The > absolute include/lib dirs are hardcoded into qmake when its being > built. See http://doc.qt.nokia.com/4.7/qt-conf.html for the > file-format > > -> *First off, I really appreciate you looking at my build errors. > > Patching the qmake binary? I reinstalled the 4.8.2 binary, why is this not > enough? Of course, I will write a qt-conf file I am unable to correct my > building environment.* > >> FindQt4 now actually finds 4.8.2 as opposed to 4.8.0, however >> some flags like QT_USE_FILE and QT_QTGUI_LIBRARY seem to still point at >> 4.8.0 prompting some linker issues during the build. > > Does that mean you didn't move Qt this time? > > -> *Well, I have both Qt versions withing the same directory (C:/Qt/4.8.0 > as well as C:/Qt/4.8.2), and while qmake seems to be configured properly > for 4.8.2, I feel like it is the flags I mentioned earlier that point at > 4.8.0, however, I could be mistaken. I figured this out > * >> http://cmake.3232098.n2.nabble.com/file/n7581165/8Mj17.png >> >> Just for reference, the CMakeLists is found http://pastie.org/4466367 >> here >> if need be. > > Did you start with a clean cache? The screenshot suggests you're > trying to mix debug and release Qt libraries, thats a very bad idea > anyways (QtOpenGLdd and QtGui4 are mentioned). So maybe things are > still not picked up as you think they are? The cache-file should have > more information. > > And you should get rid of LINK_DIRECTORIES, thats not a good idea and > almost always the wrong fix to whatever linking problems you have. > CMake find-modules are supposed to setup the absolute path to > libraries in the variables they 'export', which can be used with > target_link_libraries directly. Same goes for the 'link_libraries' > call for MacOSX I'd say. > > Andreas > > *I did start with a clean cache. I see what is happening with the > debug/release libraries, but do you know what might have caused this? > There is nothing in the CMakeLists file that seems like it may be causing > it. Could it be a way the other libraries are built (VTK ?) > > I will avoid using LINK_DIRECTORIES and optimize the CMakeLists file, will > post back if there is progress. * > -- > > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake >
-- View this message in context: http://cmake.3232098.n2.nabble.com/CMake-is-unable-to-find-QtCore-tp7581149p7581176.html Sent from the CMake mailing list archive at Nabble.com. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
