[Qgis-developer] [Max OSX] Final build error (?) using cmake on 0.8 branch

Tim Sutton tim at linfiniti.com
Sat Feb 17 05:27:00 EST 2007


Hi

Ive still been trying to finish getting 0.8 branch to compile under
Mac. As a recap, I am stuck with an openpty error.


/Users/tim/dev/cpp/qgis0.8/src/plugins/grass/qgsgrassshell.cpp: In
constructor 'QgsGrassShell::QgsGrassShell(QgsGrassTools*, QWidget*,
const char*)':
/Users/tim/dev/cpp/qgis0.8/src/plugins/grass/qgsgrassshell.cpp:115:
error: 'openpty' was not declared in this scope
make[2]: *** [src/plugins/grass/CMakeFiles/grassplugin.dir/qgsgrassshell.o]
Error 1
make[1]: *** [src/plugins/grass/CMakeFiles/grassplugin.dir/all] Error 2
make: *** [all] Error 2


The FindGRASS I am using in the branch is exactly the same as the one
in trunk. Both trunk place the following line in CMakeCache.txt:

640 //Have function openpty
641 HAVE_OPENPTY:INTERNAL=1

A diff between qgsgrassshell.cpp in trunk and the 0.8 branch shows
only this minor difference:

tims-computer:~/dev/cpp/qgis0.8/build tim$ diff
../src/plugins/grass/qgsgrassshell.cpp
/Users/tim/dev/cpp/qgis/src/plugins/grass/qgsgrassshell.cpp
26a27,28
> #include "qgsapplication.h"
>
691c693
<               img = mAppDir +
"/share/qgis/themes/default/grass/grass_module_warning.png";
---
>               img = QgsApplication::pkgDataPath() + "/themes/default/grass/grass_module_warning.png";
697c699
<               img = mAppDir +
"/share/qgis/themes/default/grass/grass_module_error.png";
---
>               img = QgsApplication::pkgDataPath() + "/themes/default/grass/grass_module_error.png";

Finally both CMakeList.txt 's in the plugins/grass folders have:

ADD_DEFINITIONS(-DHAVE_OPENPTY=${HAVE_OPENPTY})

Do you have any idea how I can resolve this? My apologies if you
already told me and I missed the answer!

Regards



-- 
-- 
Tim Sutton

Visit http://qgis.org for a great Open Source GIS
Home Page: http://linfiniti.com
Skype: timlinux
MSN: tim_bdworld at msn.com
Yahoo: tim_bdworld at yahoo.com
Jabber: timlinux
Irc: timlinux on #qgis at freenode.net



More information about the Qgis-developer mailing list