Once again I misinterpreted a lot of what was written about the couldn't find Qt issue. The main parts are to ensure that Qt is completely installed, and to add this to the path.
PATH=$PATH:filepath/to/QtSDK/Desktop/Qt/4.8.1/gcc/bin
Once this is done, source it or restart your computer. Then you should be able to execute the commands correctly. For example to build XCode files you can use:
cmake -g XCode /filepath/to/src/
This should definitely allow things to work out on a mac. This location contains the correct bin, with the correct version of qmake, unlike the previous areas.
Showing posts with label Cmake. Show all posts
Showing posts with label Cmake. Show all posts
Tuesday, August 7, 2012
Computer Science-Qt Madde/PkgConfig
There has been an error I've been getting while calling Qt through cmake. It gives me the error Can't locate Madde/PkgConfig.pm in @INC. In order to help fix this issue, you have to make the pkg-config commands work under the mad environment. Thus in the ../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features folder you can find a file labeled link_pkgconfig.prf.
vi link_pkgconfig.prf
to open it
then edit it by adding the word mad before each instance of pkg-config like so.
mad pkg-config
I still don't know yet if this is necessary, but I've updated some help on building Qt http://ctluk.blogspot.com/2012/08/computer-science-qt-build-update.html
vi link_pkgconfig.prf
to open it
then edit it by adding the word mad before each instance of pkg-config like so.
mad pkg-config
I still don't know yet if this is necessary, but I've updated some help on building Qt http://ctluk.blogspot.com/2012/08/computer-science-qt-build-update.html
Monday, July 30, 2012
Computer Science-CMake
Cmake is a cross platform build process that is both os and compiler independent. The releases can be found here.
http://cmake.org/cmake/resources/software.html
As of release 2.8.2 and above, up until at least release 2.8.8 there is an error when you try to update your version of cmake. The installer does not remove the system links if they previously exist and so fails to complete the installation to the command line. In order to fix this issue you have to remove the system links manually by doing
cd /usr/bin/
and then
sudo rm ccmake
sudo rm cmake
sudo rm cmake-gui
sudo rm cmakexbuild
sudo rm cpack
sudo rm ctest
http://cmake.org/cmake/resources/software.html
As of release 2.8.2 and above, up until at least release 2.8.8 there is an error when you try to update your version of cmake. The installer does not remove the system links if they previously exist and so fails to complete the installation to the command line. In order to fix this issue you have to remove the system links manually by doing
cd /usr/bin/
and then
sudo rm ccmake
sudo rm cmake
sudo rm cmake-gui
sudo rm cmakexbuild
sudo rm cpack
sudo rm ctest
Once this is done you will be able to reinstall cmake successfully to update your version. In a future version they will most likely automate this issue.
Subscribe to:
Posts (Atom)