1. Why are you building CMake? Are you not able to use the binaries? Install all the dependencies first using this command provided with PySide [1].
i have also set my QT_MOC_EXECUTABLE path to my qmake 2. You should probably be setting your QT_QMAKE_EXECUTABLE variable to the qmake executable when configuring with CMake. What is currently stored in this variable when you run ccmake inside your build directory? [1] https://github.com/PySide/BuildScripts/blob/master/dependencies.fedora.sh On Fri, May 24, 2013 at 1:04 AM, Gargi Das <gargi....@hotmail.com> wrote: > Hello christopher , > > Thanks for your reply, but i was not able to understand that completely :( > > Do you mean i should export -DQT_QMAKE_EXECUTABLE:PATH=/qmake/ which > building CMake ?? or something else !! > > Regards, > Gargi > > ------------------------------ > Date: Fri, 24 May 2013 00:54:04 -0400 > Subject: Re: [CMake] CMake unable to detect Qt > From: christopher.mull...@kitware.com > To: gargi....@hotmail.com > CC: cmake@cmake.org > > > Try setting your qmake variable to qmake instead: cmake > -DQT_QMAKE_EXECUTABLE:PATH=/path/to/qmake > -DQT_MOC_EXECUTABLE:PATH=/path/to/moc > On May 24, 2013 12:36 AM, "Gargi Das" <gargi....@hotmail.com> wrote: > > > > Hello All, > > > > I am kind of noob to CMake and this is my first question so i hope you > all will not go hard on me :) . > > > > I am trying to build pyside and for that i need to build CMake for RHEL > 5 machine, i follow the procedure mentioned in Readme.txt which is very > straight forward. > > > > First i run the command: > > ./bootstrap --prefix=some path > > > > this operation generates lots of .o files but at the end gives me a > following message: > > loading initial cache file > /user/username/Desktop/pyside/cmake-2.8.11/Bootstrap.cmk/InitialCacheFlags.cmake > > -- Could NOT find Qt4 (missing: QT_MOC_EXECUTABLE QT_RCC_EXECUTABLE > QT_UIC_EXECUTABLE QT_INCLUDE_DIR) (found version "4.7.1") > > -- Configuring done > > -- Generating done > > -- Build files have been written to: > /user/username/Desktop/pyside/cmake-2.8.11 > > > > i have also set my QT_MOC_EXECUTABLE path to my qmake. so first > questions why bootstrap is not able to find qmake . > > > > Second after this i can run make and make install which installs CMake > to the directory but when pyside tries to use that with cmake -g command i > always get: > > unable to execute cmake: No such file or directory > > > > Any clues on that why that should happen ?? > > > > Regards, > > Gargi > > > > > > > > > > -- > > > > 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 > -- Christopher Mullins R&D Engineer Kitware Inc., 919.869.8871
-- 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