Re: [CMake] CMake is unable to find QtCore!

2012-08-13 Thread Toronto Andrew
Haha spot on mate. I did so. To rectify, I reinstalled VTK and CMake, fixed the PATH var and the QTDIR. 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.

Re: [CMake] CMake is unable to find QtCore!

2012-08-13 Thread Toronto Andrew
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

[CMake] CMake is unable to find QtCore!

2012-08-12 Thread Toronto Andrew
I get the following errors when trying to build my Qt project: CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindQt4.cmake:595 (MESSAGE): Could NOT find QtCore. Check And I need to manually point the CMake gui in the direction of qmake.exe; additionally, I receive

Re: [CMake] CMake is unable to find QtCore!

2012-08-12 Thread Toronto Andrew
Yes to both John, I did point the CMake gui to the position of the qmake.exe within the bin, and it does come with whatever DLLs the source comes with. I am using Qt 4.8.0 and the latest CMake gui for Windows (x86). Some other things to get out of the way: QTDIR is set to C:/Qt/4.8.0/bin, and

Re: [CMake] CMake does not find an header file, and ignores the classes found in several other header files.

2012-08-05 Thread Toronto Andrew
Roike! I finally got it to run with a bit of manual linker error fixing! I`ve one more question though: CMake Warning at CMakeLists.txt:51 (ADD_EXECUTABLE): Cannot generate a safe linker search path for target CppSampleQt01 because there is a cycle in the constraint graph: dir 0 is

Re: [CMake] CMake does not find an header file, and ignores the classes found in several other header files.

2012-08-04 Thread Toronto Andrew
Hello, thank you for looking at my CMake issues! I really appreciate it :) I fixed the major issue you mentioned (Moving INCLUDE_DIRECTORIES above ADD_EXECUTABLE), however this did not seem to fix anything. I still got the errors I was receiving prior to that change, and I used absolute paths

[CMake] CMake does not find an header file, and ignores the classes found in several other header files.

2012-08-03 Thread Toronto Andrew
The following is my CMakeLists file: PROJECT(CppSampleQt01) FIND_PACKAGE(Qt4 REQUIRED) FIND_LIBRARY(SIMPLONLIB lv.simplon lib) FIND_LIBRARY(SIMPLONIMGPROC lv.simplon.imgproc lib) SET(CppSampleQt01_SOURCES include/lv.simplon.class.cpp camera.cpp main.cpp mainwindow.cpp osdep.cpp paint.cpp)

[CMake] Why are my static libs not being read?

2012-07-31 Thread Toronto Andrew
The qt libraries are included in the target link flag (this project uses qt of course), however the two lib files that exist in the lib folder in the same directory are either not recognized. They draw up linker issues in the compiler, even though I can tell through the cmake gui that it does find

Re: [CMake] Why are my static libs not being read?

2012-07-31 Thread Toronto Andrew
Include it using the flags? Like so: TARGET_LINK_LIBRARIES(CppSampleQt01 ${QT_LIBRARIES} SIMPLONLIB SIMPLONIMGPROC) ? Because when I did this, the libs were not found either. -- View this message in context:

Re: [CMake] Why are my static libs not being read?

2012-07-31 Thread Toronto Andrew
Thank you John, this did work. I get the idea now, thank you. I have another concern though, that I hope I can be helped with though it's doesn't fall under the original problem. So I am using a project within my project: http://i.imgur.com/bqqnp.png, and I found a custom