Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
On Aug 5, 2012, at 11:43 AM, Larry Shaffer wrote: > Hi John, > > On Sun, Aug 5, 2012 at 10:03 AM, John C. Tull wrote: >> On Aug 4, 2012, at 8:11 PM, Larry Shaffer wrote: >> >>> Note: Xcode.app now contains all dev directory structure, and you can >>> use xcrun to work with it, but I preferred to install the command line >>> tools. You will probably want to uninstall any previous XCode version >>> first. I used the .dmg installers downloaded from my Apple developer >>> account, instead of Mac App Store. Not sure if the command line tools >>> (115 MB dl) can be installed, and work, without installing Xcode.app >>> (1.8 GB dl), since I installed Xcode.app first. >> >> You can install the command line tools from the app store version of Xcode. >> Open Xcode, then open Preferences and click on the 'Downloads' section at >> the top. You will see Command Line Tools as an install option from there. > > Yes, I believe that was in the stackoverflow link I mentioned. I did > further tests to see if the CL Tools could be used independent from > Xcode.app (like it says on Apple's web site). However, there is no SDK > for 10.7 or 10.8 with the Tools, only embedded in Xcode.app (3.3 GB > installed on disk), and the Tools use those. > > I think Apple has really made a mess of things, by requiring Xcode.app > and moving all dev structure inside of the app bundle - probably all > in the name of 'convenience' for new devs. > > So, for now, the QGIS build notes for Mac should continue to recommend > full install of Xcode.app, IMHO. I agree, full Xcode install is required. I only wanted to point out that you can do an App Store install of Xcode, then install the command line tools from the preferences of the Xcode app. I think that is more streamlined than opening a Dev account, etc. Of course, if you're building qgis from source, you should be more advanced than the average user, so either way works fine. Cheers, John ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
Hi John, On Sun, Aug 5, 2012 at 10:03 AM, John C. Tull wrote: > On Aug 4, 2012, at 8:11 PM, Larry Shaffer wrote: > >> Note: Xcode.app now contains all dev directory structure, and you can >> use xcrun to work with it, but I preferred to install the command line >> tools. You will probably want to uninstall any previous XCode version >> first. I used the .dmg installers downloaded from my Apple developer >> account, instead of Mac App Store. Not sure if the command line tools >> (115 MB dl) can be installed, and work, without installing Xcode.app >> (1.8 GB dl), since I installed Xcode.app first. > > You can install the command line tools from the app store version of Xcode. > Open Xcode, then open Preferences and click on the 'Downloads' section at the > top. You will see Command Line Tools as an install option from there. Yes, I believe that was in the stackoverflow link I mentioned. I did further tests to see if the CL Tools could be used independent from Xcode.app (like it says on Apple's web site). However, there is no SDK for 10.7 or 10.8 with the Tools, only embedded in Xcode.app (3.3 GB installed on disk), and the Tools use those. I think Apple has really made a mess of things, by requiring Xcode.app and moving all dev structure inside of the app bundle - probably all in the name of 'convenience' for new devs. So, for now, the QGIS build notes for Mac should continue to recommend full install of Xcode.app, IMHO. Regards, Larry ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
On Aug 4, 2012, at 8:11 PM, Larry Shaffer wrote: > Note: Xcode.app now contains all dev directory structure, and you can > use xcrun to work with it, but I preferred to install the command line > tools. You will probably want to uninstall any previous XCode version > first. I used the .dmg installers downloaded from my Apple developer > account, instead of Mac App Store. Not sure if the command line tools > (115 MB dl) can be installed, and work, without installing Xcode.app > (1.8 GB dl), since I installed Xcode.app first. You can install the command line tools from the app store version of Xcode. Open Xcode, then open Preferences and click on the 'Downloads' section at the top. You will see Command Line Tools as an install option from there. Regards, John ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
You configured Qt to compile static libraries!? Your PyQt and QGIS binaries are going to be HUGE. There are many separate binary components and much of the static Qt libraries will be redunandantly linked in to each one. Even the Qt plugins will be large. You should really recompile Qt as OS X frameworks. If static libraries is the reason you compiled your own Qt from source, then you might as well install the prepackaged Qt binaries from Nokia and save yourself some grief trying to figure out all the changes needed in the QGIS install instructions. On Aug 4, 2012, at 11:45 PM, Noli Sicad wrote: > python2.7 configure.py -d /Library/Python/2.7/site-packages -b /usr/local/bin > > > Nolis-MacBook-Pro:PyQt-mac-gpl-4.9.4 nsicad$ python2.7 configure.py -d > /Library/Python/2.7/site-packages -b /usr/local/bin > Determining the layout of your Qt installation... > Error: Qt has been built as static libraries so either the -g or -k argument > should be used. > - William Kyngesburye http://www.kyngchaos.com/ Theory of the Universe There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened. -Hitchhiker's Guide to the Galaxy 2nd season intro ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
FastCGI makefile seems faulty. Not working. Here's the log. # Last login: Sun Aug 5 18:05:11 on ttys021 Nolis-MacBook-Pro:mod_fastcgi-2.4.6 nsicad$ make /usr/share/apr-1/build-1/libtool --silent --mode=compile /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc -I/usr/local/include-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apache2 -I. -I/usr/include/apr-1 -c mod_fastcgi.c && touch mod_fastcgi.slo env: /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc: No such file or directory make: *** [mod_fastcgi.slo] Error 1 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
This is better instruction for Installing FastCGI on Mountain Lion. http://mail.webdna.us/list/talk@webdna.u?cmd=user_listview_msg&domainid=-1&list=talk&msg_idx=9397&rss=true Larry, probably you can incorporate this in Building QGIS in Mac OS X. Thanks. Noli On 8/5/12, Noli Sicad wrote: > I think this most important part of using QtSDK for Mac OS X is > ~/.bash_profile file. > > Create this file and add your bin and lib. > > e.g. > > export PATH=$PATH:/Users/nsicad/QtSDK/Desktop/Qt/474/gcc/bin:$PATH > export > LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/Users/nsicad/QtSDK/Desktop/Qt/474/gcc/lib > > ### > > And editing the qglobal.h as mentioned by Larry. > > It works in my case. It is compiling PyQt now. > > > Noli > > > > On 8/5/12, Noli Sicad wrote: >> OK. >> >> Figure it out with -g >> >> python2.7 configure.py -d /Library/Python/2.7/site-packages -b >> /usr/local/bin -g >> >> GPL v3 >> >> Read the license (scroll down) >> >> Accept the license >> >> Yes >> >> make >> >> sudo make install >> >> >> >> I think this is important to include -g (as showed above). >> >> Noli >> >> On 8/5/12, Noli Sicad wrote: >>> Hi Larry, >>> >>> Now, this is the tricky part using my qmake for PyQt and QtSDK. >>> >>> I need help in this part. >>> >>> ### >>> >>> Based on the instruction (1) >>> >>> >>> python2.7 configure.py -d /Library/Python/2.7/site-packages -b >>> /usr/local/bin >>> >>> >>> Nolis-MacBook-Pro:PyQt-mac-gpl-4.9.4 nsicad$ python2.7 configure.py -d >>> /Library/Python/2.7/site-packages -b /usr/local/bin >>> Determining the layout of your Qt installation... >>> Error: Qt has been built as static libraries so either the -g or -k >>> argument >>> should be used. >>> >>> # >>> >>> Now using the path: >>> >>> python2.7 configure.py >>> --qmake=/Users/nsicad/QtSDK/Desktop/Qt/474/gcc/bin/qmake >>> >>> >>> Nolis-MacBook-Pro:PyQt-mac-gpl-4.9.4 nsicad$ python2.7 configure.py >>> --qmake=/Users/nsicad/QtSDK/Desktop/Qt/474/gcc/bin/qmake -d >>> /Library/Python/2.7/site-packages -b /usr/local/bin >>> Determining the layout of your Qt installation... >>> Error: Qt has been built as static libraries so either the -g or -k >>> argument >>> should be used. >>> Nolis-MacBook-Pro:PyQt-mac-gpl-4.9.4 nsicad$ >>> >>> >>> >>> Any ideas how to set this up properly (i.e. install PyQT with qmake)? >>> >>> >>> Noli >>> >>> >>> On 8/5/12, Noli Sicad wrote: Hi Larry, On 8/5/12, Larry Shaffer wrote: > Hi, > > Sorry to top post, but... I have not had any significant problems > following INSTALL to build master branch on Mt. Lion today. I have > just updated the Mac notes with some optional info on installing > ccache, and some cmake options for the external libspatialindex [0]. I > did not add any specific info about compiling on Mt. Lion to the > notes. Thanks for updating the documentation on Building QGIS for Mac OS X. More tweaks and a bit more details documentation the better. Now, here is proper logs for building SIP in accordance to the QGIS Mac OS X needs. I am overdriving my homebrew install of SIP. I am using the tarball of SIP (i.e. sip-4.13.3) after I fixed the c++ problem. # Last login: Sun Aug 5 12:51:29 on ttys010 Nolis-MacBook-Pro:sip-4.13.3 nsicad$ python2.7 configure.py -d /Library/Python/2.7/site-packages -b /usr/local/bin -e /usr/local/include -v /usr/local/share/sip This is SIP 4.13.3 for Python 2.7.2 on darwin. The SIP code generator will be installed in /usr/local/bin. The sip module will be installed in /Library/Python/2.7/site-packages. The sip.h header file will be installed in /usr/local/include. The default directory to install .sip files in is /usr/local/share/sip. The platform/compiler configuration is macx-g++. Creating siplib/sip.h... Creating siplib/siplib.c... Creating siplib/siplib.sbf... Creating sipconfig.py... Creating top level Makefile... Creating sip code generator Makefile... Creating sip module Makefile... Nolis-MacBook-Pro:sip-4.13.3 nsicad$ make c++ -headerpad_max_install_names -o sip main.o transform.o gencode.o extracts.o export.o heap.o parser.o lexer.o cc -c -pipe -fPIC -Os -w -DNDEBUG -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -o siplib.o siplib.c cc -c -pipe -fPIC -Os -w -DNDEBUG -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -o apiversions.o apiversions.c cc -c -pipe -fPIC -Os -w -DNDEBUG -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -o descriptors.o descriptors.c cc -c -pipe -fPIC -Os -w -DNDEBUG -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -o qtlib.o qtlib.c cc -c -pipe -fPIC -Os -w -DNDEBUG -I. -I/System/Library/Framework
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
I think this most important part of using QtSDK for Mac OS X is ~/.bash_profile file. Create this file and add your bin and lib. e.g. export PATH=$PATH:/Users/nsicad/QtSDK/Desktop/Qt/474/gcc/bin:$PATH export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/Users/nsicad/QtSDK/Desktop/Qt/474/gcc/lib ### And editing the qglobal.h as mentioned by Larry. It works in my case. It is compiling PyQt now. Noli On 8/5/12, Noli Sicad wrote: > OK. > > Figure it out with -g > > python2.7 configure.py -d /Library/Python/2.7/site-packages -b > /usr/local/bin -g > > GPL v3 > > Read the license (scroll down) > > Accept the license > > Yes > > make > > sudo make install > > > > I think this is important to include -g (as showed above). > > Noli > > On 8/5/12, Noli Sicad wrote: >> Hi Larry, >> >> Now, this is the tricky part using my qmake for PyQt and QtSDK. >> >> I need help in this part. >> >> ### >> >> Based on the instruction (1) >> >> >> python2.7 configure.py -d /Library/Python/2.7/site-packages -b >> /usr/local/bin >> >> >> Nolis-MacBook-Pro:PyQt-mac-gpl-4.9.4 nsicad$ python2.7 configure.py -d >> /Library/Python/2.7/site-packages -b /usr/local/bin >> Determining the layout of your Qt installation... >> Error: Qt has been built as static libraries so either the -g or -k >> argument >> should be used. >> >> # >> >> Now using the path: >> >> python2.7 configure.py >> --qmake=/Users/nsicad/QtSDK/Desktop/Qt/474/gcc/bin/qmake >> >> >> Nolis-MacBook-Pro:PyQt-mac-gpl-4.9.4 nsicad$ python2.7 configure.py >> --qmake=/Users/nsicad/QtSDK/Desktop/Qt/474/gcc/bin/qmake -d >> /Library/Python/2.7/site-packages -b /usr/local/bin >> Determining the layout of your Qt installation... >> Error: Qt has been built as static libraries so either the -g or -k >> argument >> should be used. >> Nolis-MacBook-Pro:PyQt-mac-gpl-4.9.4 nsicad$ >> >> >> >> Any ideas how to set this up properly (i.e. install PyQT with qmake)? >> >> >> Noli >> >> >> On 8/5/12, Noli Sicad wrote: >>> Hi Larry, >>> >>> On 8/5/12, Larry Shaffer wrote: Hi, Sorry to top post, but... I have not had any significant problems following INSTALL to build master branch on Mt. Lion today. I have just updated the Mac notes with some optional info on installing ccache, and some cmake options for the external libspatialindex [0]. I did not add any specific info about compiling on Mt. Lion to the notes. >>> >>> Thanks for updating the documentation on Building QGIS for Mac OS X. >>> >>> More tweaks and a bit more details documentation the better. >>> >>> Now, here is proper logs for building SIP in accordance to the QGIS >>> Mac OS X needs. I am overdriving my homebrew install of SIP. >>> >>> I am using the tarball of SIP (i.e. sip-4.13.3) after I fixed the c++ >>> problem. >>> >>> # >>> Last login: Sun Aug 5 12:51:29 on ttys010 >>> Nolis-MacBook-Pro:sip-4.13.3 nsicad$ python2.7 configure.py -d >>> /Library/Python/2.7/site-packages -b /usr/local/bin -e >>> /usr/local/include -v /usr/local/share/sip >>> This is SIP 4.13.3 for Python 2.7.2 on darwin. >>> The SIP code generator will be installed in /usr/local/bin. >>> The sip module will be installed in /Library/Python/2.7/site-packages. >>> The sip.h header file will be installed in /usr/local/include. >>> The default directory to install .sip files in is /usr/local/share/sip. >>> The platform/compiler configuration is macx-g++. >>> Creating siplib/sip.h... >>> Creating siplib/siplib.c... >>> Creating siplib/siplib.sbf... >>> Creating sipconfig.py... >>> Creating top level Makefile... >>> Creating sip code generator Makefile... >>> Creating sip module Makefile... >>> Nolis-MacBook-Pro:sip-4.13.3 nsicad$ make >>> c++ -headerpad_max_install_names -o sip main.o transform.o gencode.o >>> extracts.o export.o heap.o parser.o lexer.o >>> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >>> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >>> -o siplib.o siplib.c >>> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >>> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >>> -o apiversions.o apiversions.c >>> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >>> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >>> -o descriptors.o descriptors.c >>> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >>> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >>> -o qtlib.o qtlib.c >>> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >>> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >>> -o threads.o threads.c >>> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >>> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >>> -o objmap.o objmap.c >>> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >>> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >>> -o voidptr.o voidptr.c >>> c++ -c -pipe -fPIC -Os -w -DNDEBUG -I. >>> -I/System/Library/Frameworks/Python.fram
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
OK. Figure it out with -g python2.7 configure.py -d /Library/Python/2.7/site-packages -b /usr/local/bin -g GPL v3 Read the license (scroll down) Accept the license Yes make sudo make install I think this is important to include -g (as showed above). Noli On 8/5/12, Noli Sicad wrote: > Hi Larry, > > Now, this is the tricky part using my qmake for PyQt and QtSDK. > > I need help in this part. > > ### > > Based on the instruction (1) > > > python2.7 configure.py -d /Library/Python/2.7/site-packages -b > /usr/local/bin > > > Nolis-MacBook-Pro:PyQt-mac-gpl-4.9.4 nsicad$ python2.7 configure.py -d > /Library/Python/2.7/site-packages -b /usr/local/bin > Determining the layout of your Qt installation... > Error: Qt has been built as static libraries so either the -g or -k > argument > should be used. > > # > > Now using the path: > > python2.7 configure.py > --qmake=/Users/nsicad/QtSDK/Desktop/Qt/474/gcc/bin/qmake > > > Nolis-MacBook-Pro:PyQt-mac-gpl-4.9.4 nsicad$ python2.7 configure.py > --qmake=/Users/nsicad/QtSDK/Desktop/Qt/474/gcc/bin/qmake -d > /Library/Python/2.7/site-packages -b /usr/local/bin > Determining the layout of your Qt installation... > Error: Qt has been built as static libraries so either the -g or -k > argument > should be used. > Nolis-MacBook-Pro:PyQt-mac-gpl-4.9.4 nsicad$ > > > > Any ideas how to set this up properly (i.e. install PyQT with qmake)? > > > Noli > > > On 8/5/12, Noli Sicad wrote: >> Hi Larry, >> >> On 8/5/12, Larry Shaffer wrote: >>> Hi, >>> >>> Sorry to top post, but... I have not had any significant problems >>> following INSTALL to build master branch on Mt. Lion today. I have >>> just updated the Mac notes with some optional info on installing >>> ccache, and some cmake options for the external libspatialindex [0]. I >>> did not add any specific info about compiling on Mt. Lion to the >>> notes. >> >> Thanks for updating the documentation on Building QGIS for Mac OS X. >> >> More tweaks and a bit more details documentation the better. >> >> Now, here is proper logs for building SIP in accordance to the QGIS >> Mac OS X needs. I am overdriving my homebrew install of SIP. >> >> I am using the tarball of SIP (i.e. sip-4.13.3) after I fixed the c++ >> problem. >> >> # >> Last login: Sun Aug 5 12:51:29 on ttys010 >> Nolis-MacBook-Pro:sip-4.13.3 nsicad$ python2.7 configure.py -d >> /Library/Python/2.7/site-packages -b /usr/local/bin -e >> /usr/local/include -v /usr/local/share/sip >> This is SIP 4.13.3 for Python 2.7.2 on darwin. >> The SIP code generator will be installed in /usr/local/bin. >> The sip module will be installed in /Library/Python/2.7/site-packages. >> The sip.h header file will be installed in /usr/local/include. >> The default directory to install .sip files in is /usr/local/share/sip. >> The platform/compiler configuration is macx-g++. >> Creating siplib/sip.h... >> Creating siplib/siplib.c... >> Creating siplib/siplib.sbf... >> Creating sipconfig.py... >> Creating top level Makefile... >> Creating sip code generator Makefile... >> Creating sip module Makefile... >> Nolis-MacBook-Pro:sip-4.13.3 nsicad$ make >> c++ -headerpad_max_install_names -o sip main.o transform.o gencode.o >> extracts.o export.o heap.o parser.o lexer.o >> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >> -o siplib.o siplib.c >> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >> -o apiversions.o apiversions.c >> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >> -o descriptors.o descriptors.c >> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >> -o qtlib.o qtlib.c >> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >> -o threads.o threads.c >> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >> -o objmap.o objmap.c >> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >> -o voidptr.o voidptr.c >> c++ -c -pipe -fPIC -Os -w -DNDEBUG -I. >> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >> -o bool.o bool.cpp >> c++ -headerpad_max_install_names -bundle -undefined dynamic_lookup -o >> sip.so siplib.o apiversions.o descriptors.o qtlib.o threads.o objmap.o >> voidptr.o bool.o >> Nolis-MacBook-Pro:sip-4.13.3 nsicad$ sudo make install >> dyld: DYLD_ environment variables being ignored because main >> executable (/usr/bin/sudo) is setuid or setgid >> Password: >> Sorry, try again. >> Password: >> cp -f sip /usr/local/bin/sip >> cp -f sip.so /Library/Python/2.7/site-packages/sip.so >> cp -f /Users/nsicad/Downloads/sip-4.13.3/siplib/sip.
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
Hi Larry, Now, this is the tricky part using my qmake for PyQt and QtSDK. I need help in this part. ### Based on the instruction (1) python2.7 configure.py -d /Library/Python/2.7/site-packages -b /usr/local/bin Nolis-MacBook-Pro:PyQt-mac-gpl-4.9.4 nsicad$ python2.7 configure.py -d /Library/Python/2.7/site-packages -b /usr/local/bin Determining the layout of your Qt installation... Error: Qt has been built as static libraries so either the -g or -k argument should be used. # Now using the path: python2.7 configure.py --qmake=/Users/nsicad/QtSDK/Desktop/Qt/474/gcc/bin/qmake Nolis-MacBook-Pro:PyQt-mac-gpl-4.9.4 nsicad$ python2.7 configure.py --qmake=/Users/nsicad/QtSDK/Desktop/Qt/474/gcc/bin/qmake -d /Library/Python/2.7/site-packages -b /usr/local/bin Determining the layout of your Qt installation... Error: Qt has been built as static libraries so either the -g or -k argument should be used. Nolis-MacBook-Pro:PyQt-mac-gpl-4.9.4 nsicad$ Any ideas how to set this up properly (i.e. install PyQT with qmake)? Noli On 8/5/12, Noli Sicad wrote: > Hi Larry, > > On 8/5/12, Larry Shaffer wrote: >> Hi, >> >> Sorry to top post, but... I have not had any significant problems >> following INSTALL to build master branch on Mt. Lion today. I have >> just updated the Mac notes with some optional info on installing >> ccache, and some cmake options for the external libspatialindex [0]. I >> did not add any specific info about compiling on Mt. Lion to the >> notes. > > Thanks for updating the documentation on Building QGIS for Mac OS X. > > More tweaks and a bit more details documentation the better. > > Now, here is proper logs for building SIP in accordance to the QGIS > Mac OS X needs. I am overdriving my homebrew install of SIP. > > I am using the tarball of SIP (i.e. sip-4.13.3) after I fixed the c++ > problem. > > # > Last login: Sun Aug 5 12:51:29 on ttys010 > Nolis-MacBook-Pro:sip-4.13.3 nsicad$ python2.7 configure.py -d > /Library/Python/2.7/site-packages -b /usr/local/bin -e > /usr/local/include -v /usr/local/share/sip > This is SIP 4.13.3 for Python 2.7.2 on darwin. > The SIP code generator will be installed in /usr/local/bin. > The sip module will be installed in /Library/Python/2.7/site-packages. > The sip.h header file will be installed in /usr/local/include. > The default directory to install .sip files in is /usr/local/share/sip. > The platform/compiler configuration is macx-g++. > Creating siplib/sip.h... > Creating siplib/siplib.c... > Creating siplib/siplib.sbf... > Creating sipconfig.py... > Creating top level Makefile... > Creating sip code generator Makefile... > Creating sip module Makefile... > Nolis-MacBook-Pro:sip-4.13.3 nsicad$ make > c++ -headerpad_max_install_names -o sip main.o transform.o gencode.o > extracts.o export.o heap.o parser.o lexer.o > cc -c -pipe -fPIC -Os -w -DNDEBUG -I. > -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 > -o siplib.o siplib.c > cc -c -pipe -fPIC -Os -w -DNDEBUG -I. > -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 > -o apiversions.o apiversions.c > cc -c -pipe -fPIC -Os -w -DNDEBUG -I. > -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 > -o descriptors.o descriptors.c > cc -c -pipe -fPIC -Os -w -DNDEBUG -I. > -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 > -o qtlib.o qtlib.c > cc -c -pipe -fPIC -Os -w -DNDEBUG -I. > -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 > -o threads.o threads.c > cc -c -pipe -fPIC -Os -w -DNDEBUG -I. > -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 > -o objmap.o objmap.c > cc -c -pipe -fPIC -Os -w -DNDEBUG -I. > -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 > -o voidptr.o voidptr.c > c++ -c -pipe -fPIC -Os -w -DNDEBUG -I. > -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 > -o bool.o bool.cpp > c++ -headerpad_max_install_names -bundle -undefined dynamic_lookup -o > sip.so siplib.o apiversions.o descriptors.o qtlib.o threads.o objmap.o > voidptr.o bool.o > Nolis-MacBook-Pro:sip-4.13.3 nsicad$ sudo make install > dyld: DYLD_ environment variables being ignored because main > executable (/usr/bin/sudo) is setuid or setgid > Password: > Sorry, try again. > Password: > cp -f sip /usr/local/bin/sip > cp -f sip.so /Library/Python/2.7/site-packages/sip.so > cp -f /Users/nsicad/Downloads/sip-4.13.3/siplib/sip.h > /usr/local/include/sip.h > cp -f sipconfig.py /Library/Python/2.7/site-packages/sipconfig.py > cp -f /Users/nsicad/Downloads/sip-4.13.3/sipdistutils.py > /Library/Python/2.7/site-packages/sipdistutils.py > Nolis-MacBook-Pro:sip-4.13.3 nsicad$ > > ## > > As we can see the SIP installed properly for PyQt to use for QGIS. > > I just like to document this in the list so other Mac OS X (i.e. > Mountain Lion) users can use in the future including me :-
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
Hi Larry, On 8/5/12, Larry Shaffer wrote: > Hi, > > Sorry to top post, but... I have not had any significant problems > following INSTALL to build master branch on Mt. Lion today. I have > just updated the Mac notes with some optional info on installing > ccache, and some cmake options for the external libspatialindex [0]. I > did not add any specific info about compiling on Mt. Lion to the > notes. Thanks for updating the documentation on Building QGIS for Mac OS X. More tweaks and a bit more details documentation the better. Now, here is proper logs for building SIP in accordance to the QGIS Mac OS X needs. I am overdriving my homebrew install of SIP. I am using the tarball of SIP (i.e. sip-4.13.3) after I fixed the c++ problem. # Last login: Sun Aug 5 12:51:29 on ttys010 Nolis-MacBook-Pro:sip-4.13.3 nsicad$ python2.7 configure.py -d /Library/Python/2.7/site-packages -b /usr/local/bin -e /usr/local/include -v /usr/local/share/sip This is SIP 4.13.3 for Python 2.7.2 on darwin. The SIP code generator will be installed in /usr/local/bin. The sip module will be installed in /Library/Python/2.7/site-packages. The sip.h header file will be installed in /usr/local/include. The default directory to install .sip files in is /usr/local/share/sip. The platform/compiler configuration is macx-g++. Creating siplib/sip.h... Creating siplib/siplib.c... Creating siplib/siplib.sbf... Creating sipconfig.py... Creating top level Makefile... Creating sip code generator Makefile... Creating sip module Makefile... Nolis-MacBook-Pro:sip-4.13.3 nsicad$ make c++ -headerpad_max_install_names -o sip main.o transform.o gencode.o extracts.o export.o heap.o parser.o lexer.o cc -c -pipe -fPIC -Os -w -DNDEBUG -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -o siplib.o siplib.c cc -c -pipe -fPIC -Os -w -DNDEBUG -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -o apiversions.o apiversions.c cc -c -pipe -fPIC -Os -w -DNDEBUG -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -o descriptors.o descriptors.c cc -c -pipe -fPIC -Os -w -DNDEBUG -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -o qtlib.o qtlib.c cc -c -pipe -fPIC -Os -w -DNDEBUG -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -o threads.o threads.c cc -c -pipe -fPIC -Os -w -DNDEBUG -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -o objmap.o objmap.c cc -c -pipe -fPIC -Os -w -DNDEBUG -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -o voidptr.o voidptr.c c++ -c -pipe -fPIC -Os -w -DNDEBUG -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -o bool.o bool.cpp c++ -headerpad_max_install_names -bundle -undefined dynamic_lookup -o sip.so siplib.o apiversions.o descriptors.o qtlib.o threads.o objmap.o voidptr.o bool.o Nolis-MacBook-Pro:sip-4.13.3 nsicad$ sudo make install dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid Password: Sorry, try again. Password: cp -f sip /usr/local/bin/sip cp -f sip.so /Library/Python/2.7/site-packages/sip.so cp -f /Users/nsicad/Downloads/sip-4.13.3/siplib/sip.h /usr/local/include/sip.h cp -f sipconfig.py /Library/Python/2.7/site-packages/sipconfig.py cp -f /Users/nsicad/Downloads/sip-4.13.3/sipdistutils.py /Library/Python/2.7/site-packages/sipdistutils.py Nolis-MacBook-Pro:sip-4.13.3 nsicad$ ## As we can see the SIP installed properly for PyQt to use for QGIS. I just like to document this in the list so other Mac OS X (i.e. Mountain Lion) users can use in the future including me :-). Regards, Noli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
Hi, Sorry to top post, but... I have not had any significant problems following INSTALL to build master branch on Mt. Lion today. I have just updated the Mac notes with some optional info on installing ccache, and some cmake options for the external libspatialindex [0]. I did not add any specific info about compiling on Mt. Lion to the notes. Here is, in broad steps, what I did: * Updated fresh install Lion->Mt. Lion in Parallels virtual machine. * Used kyngchaos.com installers for required (and some optional) frameworks, etc. See below. * Installed QGIS-1.8.0-2.dmg to verify. Seems to work fine. * Installed XCode 4.4 and command line tools for 10.8 [1]. * Used Qt 4.8.2 open source binary libs, not SDK. * Installed or compiled all dependent and optional software noted in INSTALL, except Globe dependencies. * Edited /Library/Frameworks/QtCore.framework/Versions/4/Headers/qglobal.h to remove excessive warning notices of 'unsupported OS X version' during compile [2]. This should be fixed with next version of Qt. Note: Xcode.app now contains all dev directory structure, and you can use xcrun to work with it, but I preferred to install the command line tools. You will probably want to uninstall any previous XCode version first. I used the .dmg installers downloaded from my Apple developer account, instead of Mac App Store. Not sure if the command line tools (115 MB dl) can be installed, and work, without installing Xcode.app (1.8 GB dl), since I installed Xcode.app first. The only issues I ran into were errors in kyngchaos Python module installers [3]. The kyngchaos supporting installers for QGIS and PostgreSQL/PostGIS worked fine. This is what I installed (in order): GSL_Framework-1.15-2.dmg GDAL_Complete-1.9_2012-06-29.dmg GDAL-MrSID_Plugin-1.9.1-1.dmg GDAL-GeoPDF_Plugin-1.9.1-2.dmg GDAL-ECW_Plugin-1.9.0-1.dmg FreeType_Framework-2.4.9-1.dmg cairo_Framework-1.12.2-1.dmg SciPy-0.9.0-2.dmg GRASS-6.4.2-4-Snow.dmg QGIS-1.8.0-2.dmg PostgreSQL-9.1.4-1.dmg PostGIS-2.0.1-1.dmg Psycopg2-2.4.5-2.dmg [0] https://github.com/qgis/Quantum-GIS/commit/ddd3b27e8646b7f7981c5196c6d35ceeb10c5e5e#L0L1269 [1] http://stackoverflow.com/questions/9329243/xcode-4-4-command-line-tools [2] https://dl.dropbox.com/u/4058089/qgis/qglobal.h_remove%40line327.txt [3] https://dl.dropbox.com/u/4058089/qgis/py-mod-installer-errors.zip Regards, Larry On Sat, Aug 4, 2012 at 2:42 PM, John C. Tull wrote: > I think you must have something else going wrong on your system. Perhaps your > mixing too many different build systems. I use homebrew and it is fine for me > on Mountain Lion. I don't have any more specific information for you, but you > might see what 'brew doctor' tells you and take it to the homebrew mailing > lists/forum. > > Regards, > John > > On Aug 3, 2012, at 10:05 PM, Noli Sicad wrote: > >> SIP in not building Mountain Lion. >> >> I use homebrew as well, same problem. >> >> >> >> Nolis-MacBook-Pro:bin nsicad$ brew install sip >> ==> Downloading >> http://www.riverbankcomputing.co.uk/hg/sip/archive/4.13.3.tar.gz >> >> 100.0% >> ==> Patching >> patching file build.py >> Hunk #1 succeeded at 185 (offset 6 lines). >> Hunk #2 succeeded at 198 (offset 6 lines). >> patching file siputils.py >> Hunk #1 succeeded at 1485 (offset 51 lines). >> ==> python build.py prepare >> ==> python configure.py >> --destdir=/usr/local/Cellar/sip/4.13.3/lib/python2.7/sit >> ==> make install >> cc -c -Os -w -pipe -march=native -Qunused-arguments >> -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o main.o main.c >> cc -c -Os -w -pipe -march=native -Qunused-arguments >> -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o transform.o >> transform.c >> cc -c -Os -w -pipe -march=native -Qunused-arguments >> -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o gencode.o gencode.c >> cc -c -Os -w -pipe -march=native -Qunused-arguments >> -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o extracts.o extracts.c >> cc -c -Os -w -pipe -march=native -Qunused-arguments >> -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o export.o export.c >> cc -c -Os -w -pipe -march=native -Qunused-arguments >> -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o heap.o heap.c >> cc -c -Os -w -pipe -march=native -Qunused-arguments >> -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o parser.o parser.c >> cc -c -Os -w -pipe -march=native -Qunused-arguments >> -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o lexer.o lexer.c >> c++ -L/usr/local/lib -o sip main.o transform.o gencode.o extracts.o >> export.o heap.o parser.o lexer.o >> make[1]: c++: No such file or directory >> make[1]: *** [sip] Error 1 >> make: *** [install] Error 2 >> ==> Build Environment >> CPU: 8-core 64-bit dunno >> OS X: 10.8-x86_64 >> Xcode: 4.5 => /Applications/Xcode45-DP2.app/Contents/Developer >> X11: 2.7.2 @ /opt/X11 >> CC: /usr/bin/clang >> CXX: >> /Applications/Xcode45-DP2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolc
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
I fixed this error in Mountain Lion. deleted c++ in /usr/bin And did a symbolic link. sudo ln /usr/bin/g++ /usr/bin/c++ Here's log when I install sip. ## Nolis-MacBook-Pro:ForestryLP nsicad$ brew install sip dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid ==> Downloading http://www.riverbankcomputing.co.uk/hg/sip/archive/4.13.3.tar.gz Already downloaded: /Library/Caches/Homebrew/sip-4.13.3.tar.gz ==> Patching patching file build.py Hunk #1 succeeded at 185 (offset 6 lines). Hunk #2 succeeded at 198 (offset 6 lines). patching file siputils.py Hunk #1 succeeded at 1485 (offset 51 lines). ==> python build.py prepare ==> python configure.py --destdir=/usr/local/Cellar/sip/4.13.3/lib/python2.7/site-packages --bindir=/usr/local/Cellar/sip/4. ==> make install ==> Caveats For non-homebrew Python, you need to amend your PYTHONPATH like so: export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH ==> Summary Noli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
I need to know where "c++" is symbolic link. /usr/bin/c++ ( mine is broken) Can somebody tell me the results when you double click "c++" in your system, I am assuming that you install "Command Line Tools" or any dev tools in your Mac OS X. Noli On 8/5/12, Noli Sicad wrote: > Hi John, > > Try installing SIP. > > brew install sip > > Post result. > > Thanks. > > > Noli > > On Sunday, August 5, 2012, John C. Tull wrote: > >> I think you must have something else going wrong on your system. Perhaps >> your mixing too many different build systems. I use homebrew and it is >> fine >> for me on Mountain Lion. I don't have any more specific information for >> you, but you might see what 'brew doctor' tells you and take it to the >> homebrew mailing lists/forum. >> >> Regards, >> John >> >> On Aug 3, 2012, at 10:05 PM, Noli Sicad wrote: >> >> > SIP in not building Mountain Lion. >> > >> > I use homebrew as well, same problem. >> > >> > >> > >> > Nolis-MacBook-Pro:bin nsicad$ brew install sip >> > ==> Downloading >> http://www.riverbankcomputing.co.uk/hg/sip/archive/4.13.3.tar.gz >> > >> 100.0% >> > ==> Patching >> > patching file build.py >> > Hunk #1 succeeded at 185 (offset 6 lines). >> > Hunk #2 succeeded at 198 (offset 6 lines). >> > patching file siputils.py >> > Hunk #1 succeeded at 1485 (offset 51 lines). >> > ==> python build.py prepare >> > ==> python configure.py >> --destdir=/usr/local/Cellar/sip/4.13.3/lib/python2.7/sit >> > ==> make install >> > cc -c -Os -w -pipe -march=native -Qunused-arguments >> > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o main.o main.c >> > cc -c -Os -w -pipe -march=native -Qunused-arguments >> > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o transform.o >> > transform.c >> > cc -c -Os -w -pipe -march=native -Qunused-arguments >> > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o gencode.o gencode.c >> > cc -c -Os -w -pipe -march=native -Qunused-arguments >> > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o extracts.o extracts.c >> > cc -c -Os -w -pipe -march=native -Qunused-arguments >> > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o export.o export.c >> > cc -c -Os -w -pipe -march=native -Qunused-arguments >> > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o heap.o heap.c >> > cc -c -Os -w -pipe -march=native -Qunused-arguments >> > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o parser.o parser.c >> > cc -c -Os -w -pipe -march=native -Qunused-arguments >> > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o lexer.o lexer.c >> > c++ -L/usr/local/lib -o sip main.o transform.o gencode.o extracts.o >> > export.o heap.o parser.o lexer.o >> > make[1]: c++: No such file or directory >> > make[1]: *** [sip] Error 1 >> > make: *** [install] Error 2 >> > ==> Build Environment >> > CPU: 8-core 64-bit dunno >> > OS X: 10.8-x86_64 >> > Xcode: 4.5 => /Applications/Xcode45-DP2.app/Contents/Developer >> > X11: 2.7.2 @ /opt/X11 >> > CC: /usr/bin/clang >> > CXX: >> /Applications/Xcode45-DP2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ >> > => >> /Applications/Xcode45-DP2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang >> > LD: /usr/bin/clang >> > CFLAGS: -Os -w -pipe -march=native -Qunused-arguments >> -mmacosx-version-min=10.8 >> > CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments >> > -mmacosx-version-min=10.8 >> > CPPFLAGS: -isystem /usr/local/include >> > LDFLAGS: -L/usr/local/lib >> > MACOSX_DEPLOYMENT_TARGET: 10.8 >> > MAKEFLAGS: -j8 >> > Error: Failed executing: make install (sip.rb:41) >> > These existing issues may help you: >> >https://github.com/mxcl/homebrew/issues/12388 >> >https://github.com/mxcl/homebrew/issues/12491 >> > Otherwise, this may help you fix or report the issue: >> >https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist >> > >> > >> > On 8/4/12, Noli Sicad wrote: >> >> Any suggestion of the better SIP and PyQt version that works with >> >> QGIS? >> >> >> >> Which SIP and PyQt version that works with QGIS? >> >> >> >> Noli >> >> >> >> On 8/4/12, William Kyngesburye wrote: >> >>> That's a problem to ask on the PyQt list. >> >>> >> >>> On Aug 3, 2012, at 10:45 PM, Noli Sicad wrote: >> >>> >> Cmake no problem now. >> >> Nolis-MacBook-Pro:~ nsicad$ which cmake >> /usr/local/bin/cmake >> >> # >> >> Now, I got problem compiling SIP. >> >> > ___ >> > Qgis-developer mailing list >> > Qgis-developer@lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/qgis-developer >> >> > ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
Hi John, Try installing SIP. brew install sip Post result. Thanks. Noli On Sunday, August 5, 2012, John C. Tull wrote: > I think you must have something else going wrong on your system. Perhaps > your mixing too many different build systems. I use homebrew and it is fine > for me on Mountain Lion. I don't have any more specific information for > you, but you might see what 'brew doctor' tells you and take it to the > homebrew mailing lists/forum. > > Regards, > John > > On Aug 3, 2012, at 10:05 PM, Noli Sicad wrote: > > > SIP in not building Mountain Lion. > > > > I use homebrew as well, same problem. > > > > > > > > Nolis-MacBook-Pro:bin nsicad$ brew install sip > > ==> Downloading > http://www.riverbankcomputing.co.uk/hg/sip/archive/4.13.3.tar.gz > > > 100.0% > > ==> Patching > > patching file build.py > > Hunk #1 succeeded at 185 (offset 6 lines). > > Hunk #2 succeeded at 198 (offset 6 lines). > > patching file siputils.py > > Hunk #1 succeeded at 1485 (offset 51 lines). > > ==> python build.py prepare > > ==> python configure.py > --destdir=/usr/local/Cellar/sip/4.13.3/lib/python2.7/sit > > ==> make install > > cc -c -Os -w -pipe -march=native -Qunused-arguments > > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o main.o main.c > > cc -c -Os -w -pipe -march=native -Qunused-arguments > > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o transform.o > > transform.c > > cc -c -Os -w -pipe -march=native -Qunused-arguments > > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o gencode.o gencode.c > > cc -c -Os -w -pipe -march=native -Qunused-arguments > > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o extracts.o extracts.c > > cc -c -Os -w -pipe -march=native -Qunused-arguments > > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o export.o export.c > > cc -c -Os -w -pipe -march=native -Qunused-arguments > > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o heap.o heap.c > > cc -c -Os -w -pipe -march=native -Qunused-arguments > > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o parser.o parser.c > > cc -c -Os -w -pipe -march=native -Qunused-arguments > > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o lexer.o lexer.c > > c++ -L/usr/local/lib -o sip main.o transform.o gencode.o extracts.o > > export.o heap.o parser.o lexer.o > > make[1]: c++: No such file or directory > > make[1]: *** [sip] Error 1 > > make: *** [install] Error 2 > > ==> Build Environment > > CPU: 8-core 64-bit dunno > > OS X: 10.8-x86_64 > > Xcode: 4.5 => /Applications/Xcode45-DP2.app/Contents/Developer > > X11: 2.7.2 @ /opt/X11 > > CC: /usr/bin/clang > > CXX: > /Applications/Xcode45-DP2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ > > => > /Applications/Xcode45-DP2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang > > LD: /usr/bin/clang > > CFLAGS: -Os -w -pipe -march=native -Qunused-arguments > -mmacosx-version-min=10.8 > > CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments > > -mmacosx-version-min=10.8 > > CPPFLAGS: -isystem /usr/local/include > > LDFLAGS: -L/usr/local/lib > > MACOSX_DEPLOYMENT_TARGET: 10.8 > > MAKEFLAGS: -j8 > > Error: Failed executing: make install (sip.rb:41) > > These existing issues may help you: > >https://github.com/mxcl/homebrew/issues/12388 > >https://github.com/mxcl/homebrew/issues/12491 > > Otherwise, this may help you fix or report the issue: > >https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist > > > > > > On 8/4/12, Noli Sicad wrote: > >> Any suggestion of the better SIP and PyQt version that works with QGIS? > >> > >> Which SIP and PyQt version that works with QGIS? > >> > >> Noli > >> > >> On 8/4/12, William Kyngesburye wrote: > >>> That's a problem to ask on the PyQt list. > >>> > >>> On Aug 3, 2012, at 10:45 PM, Noli Sicad wrote: > >>> > Cmake no problem now. > > Nolis-MacBook-Pro:~ nsicad$ which cmake > /usr/local/bin/cmake > > # > > Now, I got problem compiling SIP. > > > ___ > > Qgis-developer mailing list > > Qgis-developer@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/qgis-developer > > ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
I think you must have something else going wrong on your system. Perhaps your mixing too many different build systems. I use homebrew and it is fine for me on Mountain Lion. I don't have any more specific information for you, but you might see what 'brew doctor' tells you and take it to the homebrew mailing lists/forum. Regards, John On Aug 3, 2012, at 10:05 PM, Noli Sicad wrote: > SIP in not building Mountain Lion. > > I use homebrew as well, same problem. > > > > Nolis-MacBook-Pro:bin nsicad$ brew install sip > ==> Downloading > http://www.riverbankcomputing.co.uk/hg/sip/archive/4.13.3.tar.gz > > 100.0% > ==> Patching > patching file build.py > Hunk #1 succeeded at 185 (offset 6 lines). > Hunk #2 succeeded at 198 (offset 6 lines). > patching file siputils.py > Hunk #1 succeeded at 1485 (offset 51 lines). > ==> python build.py prepare > ==> python configure.py > --destdir=/usr/local/Cellar/sip/4.13.3/lib/python2.7/sit > ==> make install > cc -c -Os -w -pipe -march=native -Qunused-arguments > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o main.o main.c > cc -c -Os -w -pipe -march=native -Qunused-arguments > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o transform.o > transform.c > cc -c -Os -w -pipe -march=native -Qunused-arguments > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o gencode.o gencode.c > cc -c -Os -w -pipe -march=native -Qunused-arguments > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o extracts.o extracts.c > cc -c -Os -w -pipe -march=native -Qunused-arguments > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o export.o export.c > cc -c -Os -w -pipe -march=native -Qunused-arguments > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o heap.o heap.c > cc -c -Os -w -pipe -march=native -Qunused-arguments > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o parser.o parser.c > cc -c -Os -w -pipe -march=native -Qunused-arguments > -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o lexer.o lexer.c > c++ -L/usr/local/lib -o sip main.o transform.o gencode.o extracts.o > export.o heap.o parser.o lexer.o > make[1]: c++: No such file or directory > make[1]: *** [sip] Error 1 > make: *** [install] Error 2 > ==> Build Environment > CPU: 8-core 64-bit dunno > OS X: 10.8-x86_64 > Xcode: 4.5 => /Applications/Xcode45-DP2.app/Contents/Developer > X11: 2.7.2 @ /opt/X11 > CC: /usr/bin/clang > CXX: > /Applications/Xcode45-DP2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ > => > /Applications/Xcode45-DP2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang > LD: /usr/bin/clang > CFLAGS: -Os -w -pipe -march=native -Qunused-arguments > -mmacosx-version-min=10.8 > CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments > -mmacosx-version-min=10.8 > CPPFLAGS: -isystem /usr/local/include > LDFLAGS: -L/usr/local/lib > MACOSX_DEPLOYMENT_TARGET: 10.8 > MAKEFLAGS: -j8 > Error: Failed executing: make install (sip.rb:41) > These existing issues may help you: >https://github.com/mxcl/homebrew/issues/12388 >https://github.com/mxcl/homebrew/issues/12491 > Otherwise, this may help you fix or report the issue: >https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist > > > On 8/4/12, Noli Sicad wrote: >> Any suggestion of the better SIP and PyQt version that works with QGIS? >> >> Which SIP and PyQt version that works with QGIS? >> >> Noli >> >> On 8/4/12, William Kyngesburye wrote: >>> That's a problem to ask on the PyQt list. >>> >>> On Aug 3, 2012, at 10:45 PM, Noli Sicad wrote: >>> Cmake no problem now. Nolis-MacBook-Pro:~ nsicad$ which cmake /usr/local/bin/cmake # Now, I got problem compiling SIP. ### Last login: Sat Aug 4 13:35:51 on ttys005 Nolis-MacBook-Pro:sip-4.13.4-snapshot-5775580258b3 nsicad$ python2.7 configure.py -d /Library/Python/2.7/site-packages -b /usr/local/bin -e /usr/local/include -v /usr/local/share/sip This is SIP 4.13.4-snapshot-5775580258b3 for Python 2.7.2 on darwin. The SIP code generator will be installed in /usr/local/bin. The sip module will be installed in /Library/Python/2.7/site-packages. The sip.h header file will be installed in /usr/local/include. The default directory to install .sip files in is /usr/local/share/sip. The platform/compiler configuration is macx-g++. Creating siplib/sip.h... Creating siplib/siplib.c... Creating siplib/siplib.sbf... Creating sipconfig.py... Creating top level Makefile... Creating sip code generator Makefile... Creating sip module Makefile... Nolis-MacBook-Pro:sip-4.13.4-snapshot-5775580258b3 nsicad$ make make[1]: Nothing to be done for `all'. cc -c -pipe -fPIC -Os -w -DNDEBUG -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -o siplib.o siplib.c cc -
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
I hope this isn't counter productive, but I've found the macports system to be a useful way of understanding the steps to compile on OSX. Essentially, a portfile in macports has the instructions for downloading the unix source code, has a set of patch files to the unix source/makefiles, and lists the other packages that are required as dependencies. It does take a little while to understand the macports system, but when it works compiling from source is as simple as "sudo port install qgis". I havent tried macports' qgis on mountain lion, so there may be issues. But if there are issues you could fix them in the portfile and contribute the fixes to the rest of us that way. -- John Abraham Sent from my iPhone, please excuse any typos. On 2012-08-03, at 6:55 PM, qgis-developer-requ...@lists.osgeo.org wrote: > Message: 5 > Date: Sat, 4 Aug 2012 10:55:57 +1000 > From: Noli Sicad > To: Larry Shaffer > Cc: qgis-developer ,William >Kyngesburye > Subject: Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion >i.e. 10.8) with QtSQL support > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > It seems that compiling in Linux (i.e. Ubuntu) as outlined by Tim > (below) is much easier to understand than the instruction in Mac OS X. > > https://help.ubuntu.com/community/BuildingQuantumGisPoint8FromSource > > Is the instruction above using qmake instead of cmake? > > Would it possible we can iron out this document i.e. building QGIS in > Mac OS X to make it easier for use to understand and compile QGIS in > Mac OS X? > > Thanks. > > Noli > ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
SIP in not building Mountain Lion. I use homebrew as well, same problem. Nolis-MacBook-Pro:bin nsicad$ brew install sip ==> Downloading http://www.riverbankcomputing.co.uk/hg/sip/archive/4.13.3.tar.gz 100.0% ==> Patching patching file build.py Hunk #1 succeeded at 185 (offset 6 lines). Hunk #2 succeeded at 198 (offset 6 lines). patching file siputils.py Hunk #1 succeeded at 1485 (offset 51 lines). ==> python build.py prepare ==> python configure.py --destdir=/usr/local/Cellar/sip/4.13.3/lib/python2.7/sit ==> make install cc -c -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o main.o main.c cc -c -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o transform.o transform.c cc -c -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o gencode.o gencode.c cc -c -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o extracts.o extracts.c cc -c -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o export.o export.c cc -c -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o heap.o heap.c cc -c -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o parser.o parser.c cc -c -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -Os -w -DNDEBUG -I. -o lexer.o lexer.c c++ -L/usr/local/lib -o sip main.o transform.o gencode.o extracts.o export.o heap.o parser.o lexer.o make[1]: c++: No such file or directory make[1]: *** [sip] Error 1 make: *** [install] Error 2 ==> Build Environment CPU: 8-core 64-bit dunno OS X: 10.8-x86_64 Xcode: 4.5 => /Applications/Xcode45-DP2.app/Contents/Developer X11: 2.7.2 @ /opt/X11 CC: /usr/bin/clang CXX: /Applications/Xcode45-DP2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ => /Applications/Xcode45-DP2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang LD: /usr/bin/clang CFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 CPPFLAGS: -isystem /usr/local/include LDFLAGS: -L/usr/local/lib MACOSX_DEPLOYMENT_TARGET: 10.8 MAKEFLAGS: -j8 Error: Failed executing: make install (sip.rb:41) These existing issues may help you: https://github.com/mxcl/homebrew/issues/12388 https://github.com/mxcl/homebrew/issues/12491 Otherwise, this may help you fix or report the issue: https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist On 8/4/12, Noli Sicad wrote: > Any suggestion of the better SIP and PyQt version that works with QGIS? > > Which SIP and PyQt version that works with QGIS? > > Noli > > On 8/4/12, William Kyngesburye wrote: >> That's a problem to ask on the PyQt list. >> >> On Aug 3, 2012, at 10:45 PM, Noli Sicad wrote: >> >>> Cmake no problem now. >>> >>> Nolis-MacBook-Pro:~ nsicad$ which cmake >>> /usr/local/bin/cmake >>> >>> # >>> >>> Now, I got problem compiling SIP. >>> >>> ### >>> >>> Last login: Sat Aug 4 13:35:51 on ttys005 >>> Nolis-MacBook-Pro:sip-4.13.4-snapshot-5775580258b3 nsicad$ python2.7 >>> configure.py -d /Library/Python/2.7/site-packages -b /usr/local/bin -e >>> /usr/local/include -v /usr/local/share/sip >>> This is SIP 4.13.4-snapshot-5775580258b3 for Python 2.7.2 on darwin. >>> The SIP code generator will be installed in /usr/local/bin. >>> The sip module will be installed in /Library/Python/2.7/site-packages. >>> The sip.h header file will be installed in /usr/local/include. >>> The default directory to install .sip files in is /usr/local/share/sip. >>> The platform/compiler configuration is macx-g++. >>> Creating siplib/sip.h... >>> Creating siplib/siplib.c... >>> Creating siplib/siplib.sbf... >>> Creating sipconfig.py... >>> Creating top level Makefile... >>> Creating sip code generator Makefile... >>> Creating sip module Makefile... >>> Nolis-MacBook-Pro:sip-4.13.4-snapshot-5775580258b3 nsicad$ make >>> make[1]: Nothing to be done for `all'. >>> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >>> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >>> -o siplib.o siplib.c >>> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >>> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >>> -o apiversions.o apiversions.c >>> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >>> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >>> -o descriptors.o descriptors.c >>> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >>> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >>> -o qtlib.o qtlib.c >>> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >>> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >>> -o threa
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
Any suggestion of the better SIP and PyQt version that works with QGIS? Which SIP and PyQt version that works with QGIS? Noli On 8/4/12, William Kyngesburye wrote: > That's a problem to ask on the PyQt list. > > On Aug 3, 2012, at 10:45 PM, Noli Sicad wrote: > >> Cmake no problem now. >> >> Nolis-MacBook-Pro:~ nsicad$ which cmake >> /usr/local/bin/cmake >> >> # >> >> Now, I got problem compiling SIP. >> >> ### >> >> Last login: Sat Aug 4 13:35:51 on ttys005 >> Nolis-MacBook-Pro:sip-4.13.4-snapshot-5775580258b3 nsicad$ python2.7 >> configure.py -d /Library/Python/2.7/site-packages -b /usr/local/bin -e >> /usr/local/include -v /usr/local/share/sip >> This is SIP 4.13.4-snapshot-5775580258b3 for Python 2.7.2 on darwin. >> The SIP code generator will be installed in /usr/local/bin. >> The sip module will be installed in /Library/Python/2.7/site-packages. >> The sip.h header file will be installed in /usr/local/include. >> The default directory to install .sip files in is /usr/local/share/sip. >> The platform/compiler configuration is macx-g++. >> Creating siplib/sip.h... >> Creating siplib/siplib.c... >> Creating siplib/siplib.sbf... >> Creating sipconfig.py... >> Creating top level Makefile... >> Creating sip code generator Makefile... >> Creating sip module Makefile... >> Nolis-MacBook-Pro:sip-4.13.4-snapshot-5775580258b3 nsicad$ make >> make[1]: Nothing to be done for `all'. >> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >> -o siplib.o siplib.c >> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >> -o apiversions.o apiversions.c >> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >> -o descriptors.o descriptors.c >> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >> -o qtlib.o qtlib.c >> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >> -o threads.o threads.c >> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >> -o objmap.o objmap.c >> cc -c -pipe -fPIC -Os -w -DNDEBUG -I. >> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >> -o voidptr.o voidptr.c >> c++ -c -pipe -fPIC -Os -w -DNDEBUG -I. >> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >> -o bool.o bool.cpp >> make[1]: c++: No such file or directory >> make[1]: *** [bool.o] Error 1 >> make: *** [all] Error 2 >> Nolis-MacBook-Pro:sip-4.13.4-snapshot-5775580258b3 nsicad$ >> >> ### >> >> >> Noli > > - > William Kyngesburye > http://www.kyngchaos.com/ > > "Those people who most want to rule people are, ipso-facto, those least > suited to do it." > > - A rule of the universe, from the HitchHiker's Guide to the Galaxy > > > ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
That's a problem to ask on the PyQt list. On Aug 3, 2012, at 10:45 PM, Noli Sicad wrote: > Cmake no problem now. > > Nolis-MacBook-Pro:~ nsicad$ which cmake > /usr/local/bin/cmake > > # > > Now, I got problem compiling SIP. > > ### > > Last login: Sat Aug 4 13:35:51 on ttys005 > Nolis-MacBook-Pro:sip-4.13.4-snapshot-5775580258b3 nsicad$ python2.7 > configure.py -d /Library/Python/2.7/site-packages -b /usr/local/bin -e > /usr/local/include -v /usr/local/share/sip > This is SIP 4.13.4-snapshot-5775580258b3 for Python 2.7.2 on darwin. > The SIP code generator will be installed in /usr/local/bin. > The sip module will be installed in /Library/Python/2.7/site-packages. > The sip.h header file will be installed in /usr/local/include. > The default directory to install .sip files in is /usr/local/share/sip. > The platform/compiler configuration is macx-g++. > Creating siplib/sip.h... > Creating siplib/siplib.c... > Creating siplib/siplib.sbf... > Creating sipconfig.py... > Creating top level Makefile... > Creating sip code generator Makefile... > Creating sip module Makefile... > Nolis-MacBook-Pro:sip-4.13.4-snapshot-5775580258b3 nsicad$ make > make[1]: Nothing to be done for `all'. > cc -c -pipe -fPIC -Os -w -DNDEBUG -I. > -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 > -o siplib.o siplib.c > cc -c -pipe -fPIC -Os -w -DNDEBUG -I. > -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 > -o apiversions.o apiversions.c > cc -c -pipe -fPIC -Os -w -DNDEBUG -I. > -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 > -o descriptors.o descriptors.c > cc -c -pipe -fPIC -Os -w -DNDEBUG -I. > -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 > -o qtlib.o qtlib.c > cc -c -pipe -fPIC -Os -w -DNDEBUG -I. > -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 > -o threads.o threads.c > cc -c -pipe -fPIC -Os -w -DNDEBUG -I. > -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 > -o objmap.o objmap.c > cc -c -pipe -fPIC -Os -w -DNDEBUG -I. > -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 > -o voidptr.o voidptr.c > c++ -c -pipe -fPIC -Os -w -DNDEBUG -I. > -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 > -o bool.o bool.cpp > make[1]: c++: No such file or directory > make[1]: *** [bool.o] Error 1 > make: *** [all] Error 2 > Nolis-MacBook-Pro:sip-4.13.4-snapshot-5775580258b3 nsicad$ > > ### > > > Noli - William Kyngesburye http://www.kyngchaos.com/ "Those people who most want to rule people are, ipso-facto, those least suited to do it." - A rule of the universe, from the HitchHiker's Guide to the Galaxy ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
Cmake no problem now. Nolis-MacBook-Pro:~ nsicad$ which cmake /usr/local/bin/cmake # Now, I got problem compiling SIP. ### Last login: Sat Aug 4 13:35:51 on ttys005 Nolis-MacBook-Pro:sip-4.13.4-snapshot-5775580258b3 nsicad$ python2.7 configure.py -d /Library/Python/2.7/site-packages -b /usr/local/bin -e /usr/local/include -v /usr/local/share/sip This is SIP 4.13.4-snapshot-5775580258b3 for Python 2.7.2 on darwin. The SIP code generator will be installed in /usr/local/bin. The sip module will be installed in /Library/Python/2.7/site-packages. The sip.h header file will be installed in /usr/local/include. The default directory to install .sip files in is /usr/local/share/sip. The platform/compiler configuration is macx-g++. Creating siplib/sip.h... Creating siplib/siplib.c... Creating siplib/siplib.sbf... Creating sipconfig.py... Creating top level Makefile... Creating sip code generator Makefile... Creating sip module Makefile... Nolis-MacBook-Pro:sip-4.13.4-snapshot-5775580258b3 nsicad$ make make[1]: Nothing to be done for `all'. cc -c -pipe -fPIC -Os -w -DNDEBUG -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -o siplib.o siplib.c cc -c -pipe -fPIC -Os -w -DNDEBUG -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -o apiversions.o apiversions.c cc -c -pipe -fPIC -Os -w -DNDEBUG -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -o descriptors.o descriptors.c cc -c -pipe -fPIC -Os -w -DNDEBUG -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -o qtlib.o qtlib.c cc -c -pipe -fPIC -Os -w -DNDEBUG -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -o threads.o threads.c cc -c -pipe -fPIC -Os -w -DNDEBUG -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -o objmap.o objmap.c cc -c -pipe -fPIC -Os -w -DNDEBUG -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -o voidptr.o voidptr.c c++ -c -pipe -fPIC -Os -w -DNDEBUG -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -o bool.o bool.cpp make[1]: c++: No such file or directory make[1]: *** [bool.o] Error 1 make: *** [all] Error 2 Nolis-MacBook-Pro:sip-4.13.4-snapshot-5775580258b3 nsicad$ ### Noli On 8/4/12, Larry Shaffer wrote: > Noli, > > On Fri, Aug 3, 2012 at 7:49 PM, Noli Sicad wrote: >> Hi Larry, >> >>> Yes CMake is necessary. qmake is used to query where Qt components are >>> installed. See results of: >>> >>> qmake -query >> >> I downloaded cmake-2.8.8-Darwin64-universal.dmg from >> >> http://www.cmake.org/cmake/resources/software.html >> >> and installed it. >> >> Command line is installed in /usr/bin <---(default install) >> >> The installer asked me where to install the command line (default is >> /usr/bin). >> >> I hope this OK. > > Yes, that's OK, but as a general rule, you want to avoid installing > non-essential software in /usr/bin; instead use /usr/local/ or /opt > for installs needing to be available to all users. When you install > software from source it usually has a 'prefix' of /usr/local that will > be used. For example, when installing cmake from source, I end up > with: > > [larrys]$ which cmake > /usr/local/bin/cmake > > Again, I'm available on #qgis channel on irc.freenode.net most of > today, if you want more help (nickname of 'dakcarto'). Step-by-step > questions, like you are asking, are better suited for that > communication platform. (Plus, you might get quicker answers :^) > > Larry > >> >> Thanks. >> >> Noli > ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
Noli, On Fri, Aug 3, 2012 at 7:49 PM, Noli Sicad wrote: > Hi Larry, > >> Yes CMake is necessary. qmake is used to query where Qt components are >> installed. See results of: >> >> qmake -query > > I downloaded cmake-2.8.8-Darwin64-universal.dmg from > > http://www.cmake.org/cmake/resources/software.html > > and installed it. > > Command line is installed in /usr/bin <---(default install) > > The installer asked me where to install the command line (default is > /usr/bin). > > I hope this OK. Yes, that's OK, but as a general rule, you want to avoid installing non-essential software in /usr/bin; instead use /usr/local/ or /opt for installs needing to be available to all users. When you install software from source it usually has a 'prefix' of /usr/local that will be used. For example, when installing cmake from source, I end up with: [larrys]$ which cmake /usr/local/bin/cmake Again, I'm available on #qgis channel on irc.freenode.net most of today, if you want more help (nickname of 'dakcarto'). Step-by-step questions, like you are asking, are better suited for that communication platform. (Plus, you might get quicker answers :^) Larry > > Thanks. > > Noli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
Read the instruction about CMake. Corrected the installation It is now in /usr/local/bin Noli On 8/4/12, Noli Sicad wrote: > Hi Larry, > >> Yes CMake is necessary. qmake is used to query where Qt components are >> installed. See results of: >> >> qmake -query > > I downloaded cmake-2.8.8-Darwin64-universal.dmg from > > http://www.cmake.org/cmake/resources/software.html > > and installed it. > > Command line is installed in /usr/bin <---(default install) > > The installer asked me where to install the command line (default is > /usr/bin). > > I hope this OK. > > Thanks. > > Noli > ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
Hi Larry, > Yes CMake is necessary. qmake is used to query where Qt components are > installed. See results of: > > qmake -query I downloaded cmake-2.8.8-Darwin64-universal.dmg from http://www.cmake.org/cmake/resources/software.html and installed it. Command line is installed in /usr/bin <---(default install) The installer asked me where to install the command line (default is /usr/bin). I hope this OK. Thanks. Noli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
Noli, On Fri, Aug 3, 2012 at 6:30 PM, Noli Sicad wrote: > Do we still need cmake for building QGIS Mac OS X when using QtSDK (i.e. > qmake)? > > This instruction below. Yes CMake is necessary. qmake is used to query where Qt components are installed. See results of: qmake -query CMake is the system used to aid in the cross-platform compiling of the C++ code QGIS is written in and uses the information provided by qmake during its configure process. qmake is not used for this purpose, like when compiling other Qt programs. Though, I'm not sure if qmake is used for anything else in the compiling process. If it doesn't say 'optional' in the INSTALL notes, it's not. INSTALL is up-to-date and accurate, excepting anything that might pop up during Mt. Lion testing. Also, INSTALL is the most up-to-date document, with other sources possibly helpful with problems encountered, i.e. use INSTALL as your guide. One thing that might be good to add to the Mac OS X INSTALL notes is optional install of ccache, currently only noted for Linux installs: 3.4. Setup ccache (Optional). It installs and works fine on Mac. Since it takes some time to compile QGIS, ccache offers a significant speedup on subsequent compiling, especially if you do not switch git branches. However, I recommend you get QGIS compiled first before adding optional ccache support. Larry > Copied from Building QGIS for Mac OSX (below) > > ### > 5.3. Install CMake for OSX > == > > Get the latest source release from here: > > http://www.cmake.org/cmake/resources/software.html > > Binary installers are available for OS X, but they are not recommended > (2.4 versions install in /usr instead of /usr/local, and 2.6+ versions are a > strange application). Instead, download the source. > NOTE: 2.8.5 is broken for detecting part of Qt. Fixed in 2.8.6. > Double-click the source tarball, then cd to the source folder and: > > ./bootstrap --docdir=/share/doc/CMake --mandir=/share/man > make > sudo make install > > ### > > Noli > > On 8/4/12, Larry Shaffer wrote: >> Noli, >> >> On Fri, Aug 3, 2012 at 5:02 PM, Noli Sicad wrote: >>> How can I incorporate qmake in my system? >>> >>> It seems that I can't use qmake in my terminal right now. >> >> This is because the place where qmake is installed with the SDK is not >> in your PATH environment variable. >> >> You will need to edit ~/.bash_profile (create if not there yet) and >> add the path to the 'bin' you noted to the PATH variable: >> >> export PATH=/path/to/sdk/bin:$PATH >> >> Then, log in to a new Terminal session (e.g. restart Terminal). qmake >> will be found and can be used in compiling. >> >> Read 'man bash' for more details on its config files. >> >> I will be available on #qgis channel on irc.freenode.net most of the >> day today, if you want more help (nickname of 'dakcarto'). >> >> Larry >> >> >>> See this logs. >>> >>> ## >>> >>> Last login: Sat Aug 4 08:56:51 on ttys004 >>> Nolis-MacBook-Pro:bin nsicad$ qmake --help >>> -bash: qmake: command not found >>> Nolis-MacBook-Pro:bin nsicad$ ls >>> Designer.appmoc qt3to4 >>> Linguist.apppixeltool.app qttracereplay.app >>> QMLViewer.app qcollectiongeneratorrcc >>> lconvertqdoc3 uic >>> lreleaseqhelpconverter.app uic3 >>> lupdate qhelpgenerator xmlpatterns >>> macdeployqt qmake xmlpatternsvalidator >>> Nolis-MacBook-Pro:bin nsicad$ qmake -help >>> -bash: qmake: command not found >>> Nolis-MacBook-Pro:bin nsicad$ qmake --help >>> -bash: qmake: command not found >>> Nolis-MacBook-Pro:bin nsicad$ >>> >>> >>> >>> Double clicking qmake works. >>> >>> Noli >>> >>> On 8/4/12, Noli Sicad wrote: It is stlll not clear to me what to do with QtSDK (i.e. Qt 4.7.4) and XCode 4.x with Command Line Tool for compiling QGIS in Mac OS X. Tim has this wiki - Building QGIS 0.8 with Qt4.x for Ubuntu. https://help.ubuntu.com/community/BuildingQuantumGisPoint8FromSource Can some lighten me how to use QtSDK 4.7.4 for Building QGIS in Mac OS X? Noli On 8/3/12, William Kyngesburye wrote: > As it says, "when using a system SDK". If you just compile for your > current > system, with no SDK options, you don't need to do this. > > I suppose this should be removed, since I was aiming for simple current > system builds in the instructions. > > On Aug 2, 2012, at 11:44 PM, Noli Sicad wrote: > >> My QtSDK for Mac OS X is installed in: >> >> /Users/nsicad/QtSDK/Desktop/Qt/474/gcc/ >> >> See screenshot attached. >> >> What i am going to do inorder that qt library, include, etc can be >> founded during compilation? >> >> This is copied (below) from Building QGIS for Mac OS ... >> >>
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
It seems that compiling in Linux (i.e. Ubuntu) as outlined by Tim (below) is much easier to understand than the instruction in Mac OS X. https://help.ubuntu.com/community/BuildingQuantumGisPoint8FromSource Is the instruction above using qmake instead of cmake? Would it possible we can iron out this document i.e. building QGIS in Mac OS X to make it easier for use to understand and compile QGIS in Mac OS X? Thanks. Noli On 8/4/12, Noli Sicad wrote: > Do we still need cmake for building QGIS Mac OS X when using QtSDK (i.e. > qmake)? > > This instruction below. > > Copied from Building QGIS for Mac OSX (below) > > ### > 5.3. Install CMake for OSX > == > > Get the latest source release from here: > > http://www.cmake.org/cmake/resources/software.html > > Binary installers are available for OS X, but they are not recommended > (2.4 versions install in /usr instead of /usr/local, and 2.6+ versions are > a > strange application). Instead, download the source. > NOTE: 2.8.5 is broken for detecting part of Qt. Fixed in 2.8.6. > Double-click the source tarball, then cd to the source folder and: > > ./bootstrap --docdir=/share/doc/CMake --mandir=/share/man > make > sudo make install > > ### > > Noli > > On 8/4/12, Larry Shaffer wrote: >> Noli, >> >> On Fri, Aug 3, 2012 at 5:02 PM, Noli Sicad wrote: >>> How can I incorporate qmake in my system? >>> >>> It seems that I can't use qmake in my terminal right now. >> >> This is because the place where qmake is installed with the SDK is not >> in your PATH environment variable. >> >> You will need to edit ~/.bash_profile (create if not there yet) and >> add the path to the 'bin' you noted to the PATH variable: >> >> export PATH=/path/to/sdk/bin:$PATH >> >> Then, log in to a new Terminal session (e.g. restart Terminal). qmake >> will be found and can be used in compiling. >> >> Read 'man bash' for more details on its config files. >> >> I will be available on #qgis channel on irc.freenode.net most of the >> day today, if you want more help (nickname of 'dakcarto'). >> >> Larry >> >> >>> See this logs. >>> >>> ## >>> >>> Last login: Sat Aug 4 08:56:51 on ttys004 >>> Nolis-MacBook-Pro:bin nsicad$ qmake --help >>> -bash: qmake: command not found >>> Nolis-MacBook-Pro:bin nsicad$ ls >>> Designer.appmoc qt3to4 >>> Linguist.apppixeltool.app qttracereplay.app >>> QMLViewer.app qcollectiongeneratorrcc >>> lconvertqdoc3 uic >>> lreleaseqhelpconverter.app uic3 >>> lupdate qhelpgenerator xmlpatterns >>> macdeployqt qmake xmlpatternsvalidator >>> Nolis-MacBook-Pro:bin nsicad$ qmake -help >>> -bash: qmake: command not found >>> Nolis-MacBook-Pro:bin nsicad$ qmake --help >>> -bash: qmake: command not found >>> Nolis-MacBook-Pro:bin nsicad$ >>> >>> >>> >>> Double clicking qmake works. >>> >>> Noli >>> >>> On 8/4/12, Noli Sicad wrote: It is stlll not clear to me what to do with QtSDK (i.e. Qt 4.7.4) and XCode 4.x with Command Line Tool for compiling QGIS in Mac OS X. Tim has this wiki - Building QGIS 0.8 with Qt4.x for Ubuntu. https://help.ubuntu.com/community/BuildingQuantumGisPoint8FromSource Can some lighten me how to use QtSDK 4.7.4 for Building QGIS in Mac OS X? Noli On 8/3/12, William Kyngesburye wrote: > As it says, "when using a system SDK". If you just compile for your > current > system, with no SDK options, you don't need to do this. > > I suppose this should be removed, since I was aiming for simple > current > system builds in the instructions. > > On Aug 2, 2012, at 11:44 PM, Noli Sicad wrote: > >> My QtSDK for Mac OS X is installed in: >> >> /Users/nsicad/QtSDK/Desktop/Qt/474/gcc/ >> >> See screenshot attached. >> >> What i am going to do inorder that qt library, include, etc can be >> founded during compilation? >> >> This is copied (below) from Building QGIS for Mac OS ... >> >> ## >> Leopard note: Qt includes a couple non-framework libraries in >> /usr/lib. >> When using a system SDK these libraries will not be found. To fix >> this >> problem, >> add symlinks to /usr/local: >> >> sudo ln -s /usr/lib/libQtUiTools.a /usr/local/lib/ >> sudo ln -s /usr/lib/libQtCLucene.dylib /usr/local/lib/ >> >> These should then be found automatically. Earlier systems >> may need some help by adding '-L/usr/local/lib' to >> CMAKE_SHARED_LINKER_FLAGS, >> CMAKE_MODULE_LINKER_FLAGS and CMAKE_EXE_LINKER_FLAGS in the cmake >> build. >> >> ## >> >> From the above statements what I am going to do with my QtSDK >> installation? What need to copy to /usr/lib or link? >
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
Do we still need cmake for building QGIS Mac OS X when using QtSDK (i.e. qmake)? This instruction below. Copied from Building QGIS for Mac OSX (below) ### 5.3. Install CMake for OSX == Get the latest source release from here: http://www.cmake.org/cmake/resources/software.html Binary installers are available for OS X, but they are not recommended (2.4 versions install in /usr instead of /usr/local, and 2.6+ versions are a strange application). Instead, download the source. NOTE: 2.8.5 is broken for detecting part of Qt. Fixed in 2.8.6. Double-click the source tarball, then cd to the source folder and: ./bootstrap --docdir=/share/doc/CMake --mandir=/share/man make sudo make install ### Noli On 8/4/12, Larry Shaffer wrote: > Noli, > > On Fri, Aug 3, 2012 at 5:02 PM, Noli Sicad wrote: >> How can I incorporate qmake in my system? >> >> It seems that I can't use qmake in my terminal right now. > > This is because the place where qmake is installed with the SDK is not > in your PATH environment variable. > > You will need to edit ~/.bash_profile (create if not there yet) and > add the path to the 'bin' you noted to the PATH variable: > > export PATH=/path/to/sdk/bin:$PATH > > Then, log in to a new Terminal session (e.g. restart Terminal). qmake > will be found and can be used in compiling. > > Read 'man bash' for more details on its config files. > > I will be available on #qgis channel on irc.freenode.net most of the > day today, if you want more help (nickname of 'dakcarto'). > > Larry > > >> See this logs. >> >> ## >> >> Last login: Sat Aug 4 08:56:51 on ttys004 >> Nolis-MacBook-Pro:bin nsicad$ qmake --help >> -bash: qmake: command not found >> Nolis-MacBook-Pro:bin nsicad$ ls >> Designer.appmoc qt3to4 >> Linguist.apppixeltool.app qttracereplay.app >> QMLViewer.app qcollectiongeneratorrcc >> lconvertqdoc3 uic >> lreleaseqhelpconverter.app uic3 >> lupdate qhelpgenerator xmlpatterns >> macdeployqt qmake xmlpatternsvalidator >> Nolis-MacBook-Pro:bin nsicad$ qmake -help >> -bash: qmake: command not found >> Nolis-MacBook-Pro:bin nsicad$ qmake --help >> -bash: qmake: command not found >> Nolis-MacBook-Pro:bin nsicad$ >> >> >> >> Double clicking qmake works. >> >> Noli >> >> On 8/4/12, Noli Sicad wrote: >>> It is stlll not clear to me what to do with QtSDK (i.e. Qt 4.7.4) and >>> XCode 4.x with Command Line Tool for compiling QGIS in Mac OS X. >>> >>> Tim has this wiki - Building QGIS 0.8 with Qt4.x for Ubuntu. >>> >>> https://help.ubuntu.com/community/BuildingQuantumGisPoint8FromSource >>> >>> Can some lighten me how to use QtSDK 4.7.4 for Building QGIS in Mac OS >>> X? >>> >>> Noli >>> >>> On 8/3/12, William Kyngesburye wrote: As it says, "when using a system SDK". If you just compile for your current system, with no SDK options, you don't need to do this. I suppose this should be removed, since I was aiming for simple current system builds in the instructions. On Aug 2, 2012, at 11:44 PM, Noli Sicad wrote: > My QtSDK for Mac OS X is installed in: > > /Users/nsicad/QtSDK/Desktop/Qt/474/gcc/ > > See screenshot attached. > > What i am going to do inorder that qt library, include, etc can be > founded during compilation? > > This is copied (below) from Building QGIS for Mac OS ... > > ## > Leopard note: Qt includes a couple non-framework libraries in > /usr/lib. > When using a system SDK these libraries will not be found. To fix this > problem, > add symlinks to /usr/local: > > sudo ln -s /usr/lib/libQtUiTools.a /usr/local/lib/ > sudo ln -s /usr/lib/libQtCLucene.dylib /usr/local/lib/ > > These should then be found automatically. Earlier systems > may need some help by adding '-L/usr/local/lib' to > CMAKE_SHARED_LINKER_FLAGS, > CMAKE_MODULE_LINKER_FLAGS and CMAKE_EXE_LINKER_FLAGS in the cmake > build. > > ## > > From the above statements what I am going to do with my QtSDK > installation? What need to copy to /usr/lib or link? > > Thanks. > > Noli > - William Kyngesburye http://www.kyngchaos.com/ "Mon Dieu! but they are all alike. Cheating, murdering, lying, fighting, and all for things that the beasts of the jungle would not deign to possess - money to purchase the effeminate pleasures of weaklings. And yet withal bound down by silly customs that make them slaves to their unhappy lot while firm in the belief that they be the lords of creation enjoying the only real pleasures of existence - the wisdom of Tarzan >>> >> _
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
Noli, On Fri, Aug 3, 2012 at 5:02 PM, Noli Sicad wrote: > How can I incorporate qmake in my system? > > It seems that I can't use qmake in my terminal right now. This is because the place where qmake is installed with the SDK is not in your PATH environment variable. You will need to edit ~/.bash_profile (create if not there yet) and add the path to the 'bin' you noted to the PATH variable: export PATH=/path/to/sdk/bin:$PATH Then, log in to a new Terminal session (e.g. restart Terminal). qmake will be found and can be used in compiling. Read 'man bash' for more details on its config files. I will be available on #qgis channel on irc.freenode.net most of the day today, if you want more help (nickname of 'dakcarto'). Larry > See this logs. > > ## > > Last login: Sat Aug 4 08:56:51 on ttys004 > Nolis-MacBook-Pro:bin nsicad$ qmake --help > -bash: qmake: command not found > Nolis-MacBook-Pro:bin nsicad$ ls > Designer.appmoc qt3to4 > Linguist.apppixeltool.app qttracereplay.app > QMLViewer.app qcollectiongeneratorrcc > lconvertqdoc3 uic > lreleaseqhelpconverter.app uic3 > lupdate qhelpgenerator xmlpatterns > macdeployqt qmake xmlpatternsvalidator > Nolis-MacBook-Pro:bin nsicad$ qmake -help > -bash: qmake: command not found > Nolis-MacBook-Pro:bin nsicad$ qmake --help > -bash: qmake: command not found > Nolis-MacBook-Pro:bin nsicad$ > > > > Double clicking qmake works. > > Noli > > On 8/4/12, Noli Sicad wrote: >> It is stlll not clear to me what to do with QtSDK (i.e. Qt 4.7.4) and >> XCode 4.x with Command Line Tool for compiling QGIS in Mac OS X. >> >> Tim has this wiki - Building QGIS 0.8 with Qt4.x for Ubuntu. >> >> https://help.ubuntu.com/community/BuildingQuantumGisPoint8FromSource >> >> Can some lighten me how to use QtSDK 4.7.4 for Building QGIS in Mac OS X? >> >> Noli >> >> On 8/3/12, William Kyngesburye wrote: >>> As it says, "when using a system SDK". If you just compile for your >>> current >>> system, with no SDK options, you don't need to do this. >>> >>> I suppose this should be removed, since I was aiming for simple current >>> system builds in the instructions. >>> >>> On Aug 2, 2012, at 11:44 PM, Noli Sicad wrote: >>> My QtSDK for Mac OS X is installed in: /Users/nsicad/QtSDK/Desktop/Qt/474/gcc/ See screenshot attached. What i am going to do inorder that qt library, include, etc can be founded during compilation? This is copied (below) from Building QGIS for Mac OS ... ## Leopard note: Qt includes a couple non-framework libraries in /usr/lib. When using a system SDK these libraries will not be found. To fix this problem, add symlinks to /usr/local: sudo ln -s /usr/lib/libQtUiTools.a /usr/local/lib/ sudo ln -s /usr/lib/libQtCLucene.dylib /usr/local/lib/ These should then be found automatically. Earlier systems may need some help by adding '-L/usr/local/lib' to CMAKE_SHARED_LINKER_FLAGS, CMAKE_MODULE_LINKER_FLAGS and CMAKE_EXE_LINKER_FLAGS in the cmake build. ## From the above statements what I am going to do with my QtSDK installation? What need to copy to /usr/lib or link? Thanks. Noli >>> >>> - >>> William Kyngesburye >>> http://www.kyngchaos.com/ >>> >>> "Mon Dieu! but they are all alike. Cheating, murdering, lying, fighting, >>> and all for things that the beasts of the jungle would not deign to >>> possess >>> - money to purchase the effeminate pleasures of weaklings. And yet >>> withal >>> bound down by silly customs that make them slaves to their unhappy lot >>> while >>> firm in the belief that they be the lords of creation enjoying the only >>> real >>> pleasures of existence >>> >>> - the wisdom of Tarzan >>> >>> >>> >> > ___ > Qgis-developer mailing list > Qgis-developer@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
Regarding, qmake, etc. in Mac OS X system. Any suggestion how to make this thing working based on this post below? http://osgeo-org.1560.n6.nabble.com/building-qgis-on-centos-td4100055.html Noli On 8/4/12, Noli Sicad wrote: > How can I incorporate qmake in my system? > > It seems that I can't use qmake in my terminal right now. > > See this logs. > > ## > > Last login: Sat Aug 4 08:56:51 on ttys004 > Nolis-MacBook-Pro:bin nsicad$ qmake --help > -bash: qmake: command not found > Nolis-MacBook-Pro:bin nsicad$ ls > Designer.app moc qt3to4 > Linguist.app pixeltool.app qttracereplay.app > QMLViewer.app qcollectiongeneratorrcc > lconvert qdoc3 uic > lrelease qhelpconverter.app uic3 > lupdate qhelpgenerator xmlpatterns > macdeployqt qmake xmlpatternsvalidator > Nolis-MacBook-Pro:bin nsicad$ qmake -help > -bash: qmake: command not found > Nolis-MacBook-Pro:bin nsicad$ qmake --help > -bash: qmake: command not found > Nolis-MacBook-Pro:bin nsicad$ > > > > Double clicking qmake works. > > Noli > > On 8/4/12, Noli Sicad wrote: >> It is stlll not clear to me what to do with QtSDK (i.e. Qt 4.7.4) and >> XCode 4.x with Command Line Tool for compiling QGIS in Mac OS X. >> >> Tim has this wiki - Building QGIS 0.8 with Qt4.x for Ubuntu. >> >> https://help.ubuntu.com/community/BuildingQuantumGisPoint8FromSource >> >> Can some lighten me how to use QtSDK 4.7.4 for Building QGIS in Mac OS X? >> >> Noli >> >> On 8/3/12, William Kyngesburye wrote: >>> As it says, "when using a system SDK". If you just compile for your >>> current >>> system, with no SDK options, you don't need to do this. >>> >>> I suppose this should be removed, since I was aiming for simple current >>> system builds in the instructions. >>> >>> On Aug 2, 2012, at 11:44 PM, Noli Sicad wrote: >>> My QtSDK for Mac OS X is installed in: /Users/nsicad/QtSDK/Desktop/Qt/474/gcc/ See screenshot attached. What i am going to do inorder that qt library, include, etc can be founded during compilation? This is copied (below) from Building QGIS for Mac OS ... ## Leopard note: Qt includes a couple non-framework libraries in /usr/lib. When using a system SDK these libraries will not be found. To fix this problem, add symlinks to /usr/local: sudo ln -s /usr/lib/libQtUiTools.a /usr/local/lib/ sudo ln -s /usr/lib/libQtCLucene.dylib /usr/local/lib/ These should then be found automatically. Earlier systems may need some help by adding '-L/usr/local/lib' to CMAKE_SHARED_LINKER_FLAGS, CMAKE_MODULE_LINKER_FLAGS and CMAKE_EXE_LINKER_FLAGS in the cmake build. ## From the above statements what I am going to do with my QtSDK installation? What need to copy to /usr/lib or link? Thanks. Noli >>> >>> - >>> William Kyngesburye >>> http://www.kyngchaos.com/ >>> >>> "Mon Dieu! but they are all alike. Cheating, murdering, lying, >>> fighting, >>> and all for things that the beasts of the jungle would not deign to >>> possess >>> - money to purchase the effeminate pleasures of weaklings. And yet >>> withal >>> bound down by silly customs that make them slaves to their unhappy lot >>> while >>> firm in the belief that they be the lords of creation enjoying the only >>> real >>> pleasures of existence >>> >>> - the wisdom of Tarzan >>> >>> >>> >> > ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
How can I incorporate qmake in my system? It seems that I can't use qmake in my terminal right now. See this logs. ## Last login: Sat Aug 4 08:56:51 on ttys004 Nolis-MacBook-Pro:bin nsicad$ qmake --help -bash: qmake: command not found Nolis-MacBook-Pro:bin nsicad$ ls Designer.appmoc qt3to4 Linguist.apppixeltool.app qttracereplay.app QMLViewer.app qcollectiongeneratorrcc lconvertqdoc3 uic lreleaseqhelpconverter.app uic3 lupdate qhelpgenerator xmlpatterns macdeployqt qmake xmlpatternsvalidator Nolis-MacBook-Pro:bin nsicad$ qmake -help -bash: qmake: command not found Nolis-MacBook-Pro:bin nsicad$ qmake --help -bash: qmake: command not found Nolis-MacBook-Pro:bin nsicad$ Double clicking qmake works. Noli On 8/4/12, Noli Sicad wrote: > It is stlll not clear to me what to do with QtSDK (i.e. Qt 4.7.4) and > XCode 4.x with Command Line Tool for compiling QGIS in Mac OS X. > > Tim has this wiki - Building QGIS 0.8 with Qt4.x for Ubuntu. > > https://help.ubuntu.com/community/BuildingQuantumGisPoint8FromSource > > Can some lighten me how to use QtSDK 4.7.4 for Building QGIS in Mac OS X? > > Noli > > On 8/3/12, William Kyngesburye wrote: >> As it says, "when using a system SDK". If you just compile for your >> current >> system, with no SDK options, you don't need to do this. >> >> I suppose this should be removed, since I was aiming for simple current >> system builds in the instructions. >> >> On Aug 2, 2012, at 11:44 PM, Noli Sicad wrote: >> >>> My QtSDK for Mac OS X is installed in: >>> >>> /Users/nsicad/QtSDK/Desktop/Qt/474/gcc/ >>> >>> See screenshot attached. >>> >>> What i am going to do inorder that qt library, include, etc can be >>> founded during compilation? >>> >>> This is copied (below) from Building QGIS for Mac OS ... >>> >>> ## >>> Leopard note: Qt includes a couple non-framework libraries in /usr/lib. >>> When using a system SDK these libraries will not be found. To fix this >>> problem, >>> add symlinks to /usr/local: >>> >>> sudo ln -s /usr/lib/libQtUiTools.a /usr/local/lib/ >>> sudo ln -s /usr/lib/libQtCLucene.dylib /usr/local/lib/ >>> >>> These should then be found automatically. Earlier systems >>> may need some help by adding '-L/usr/local/lib' to >>> CMAKE_SHARED_LINKER_FLAGS, >>> CMAKE_MODULE_LINKER_FLAGS and CMAKE_EXE_LINKER_FLAGS in the cmake build. >>> >>> ## >>> >>> From the above statements what I am going to do with my QtSDK >>> installation? What need to copy to /usr/lib or link? >>> >>> Thanks. >>> >>> Noli >>> >> >> - >> William Kyngesburye >> http://www.kyngchaos.com/ >> >> "Mon Dieu! but they are all alike. Cheating, murdering, lying, fighting, >> and all for things that the beasts of the jungle would not deign to >> possess >> - money to purchase the effeminate pleasures of weaklings. And yet >> withal >> bound down by silly customs that make them slaves to their unhappy lot >> while >> firm in the belief that they be the lords of creation enjoying the only >> real >> pleasures of existence >> >> - the wisdom of Tarzan >> >> >> > ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
It is stlll not clear to me what to do with QtSDK (i.e. Qt 4.7.4) and XCode 4.x with Command Line Tool for compiling QGIS in Mac OS X. Tim has this wiki - Building QGIS 0.8 with Qt4.x for Ubuntu. https://help.ubuntu.com/community/BuildingQuantumGisPoint8FromSource Can some lighten me how to use QtSDK 4.7.4 for Building QGIS in Mac OS X? Noli On 8/3/12, William Kyngesburye wrote: > As it says, "when using a system SDK". If you just compile for your current > system, with no SDK options, you don't need to do this. > > I suppose this should be removed, since I was aiming for simple current > system builds in the instructions. > > On Aug 2, 2012, at 11:44 PM, Noli Sicad wrote: > >> My QtSDK for Mac OS X is installed in: >> >> /Users/nsicad/QtSDK/Desktop/Qt/474/gcc/ >> >> See screenshot attached. >> >> What i am going to do inorder that qt library, include, etc can be >> founded during compilation? >> >> This is copied (below) from Building QGIS for Mac OS ... >> >> ## >> Leopard note: Qt includes a couple non-framework libraries in /usr/lib. >> When using a system SDK these libraries will not be found. To fix this >> problem, >> add symlinks to /usr/local: >> >> sudo ln -s /usr/lib/libQtUiTools.a /usr/local/lib/ >> sudo ln -s /usr/lib/libQtCLucene.dylib /usr/local/lib/ >> >> These should then be found automatically. Earlier systems >> may need some help by adding '-L/usr/local/lib' to >> CMAKE_SHARED_LINKER_FLAGS, >> CMAKE_MODULE_LINKER_FLAGS and CMAKE_EXE_LINKER_FLAGS in the cmake build. >> >> ## >> >> From the above statements what I am going to do with my QtSDK >> installation? What need to copy to /usr/lib or link? >> >> Thanks. >> >> Noli >> > > - > William Kyngesburye > http://www.kyngchaos.com/ > > "Mon Dieu! but they are all alike. Cheating, murdering, lying, fighting, > and all for things that the beasts of the jungle would not deign to possess > - money to purchase the effeminate pleasures of weaklings. And yet withal > bound down by silly customs that make them slaves to their unhappy lot while > firm in the belief that they be the lords of creation enjoying the only real > pleasures of existence > > - the wisdom of Tarzan > > > ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
As it says, "when using a system SDK". If you just compile for your current system, with no SDK options, you don't need to do this. I suppose this should be removed, since I was aiming for simple current system builds in the instructions. On Aug 2, 2012, at 11:44 PM, Noli Sicad wrote: > My QtSDK for Mac OS X is installed in: > > /Users/nsicad/QtSDK/Desktop/Qt/474/gcc/ > > See screenshot attached. > > What i am going to do inorder that qt library, include, etc can be > founded during compilation? > > This is copied (below) from Building QGIS for Mac OS ... > > ## > Leopard note: Qt includes a couple non-framework libraries in /usr/lib. > When using a system SDK these libraries will not be found. To fix this > problem, > add symlinks to /usr/local: > > sudo ln -s /usr/lib/libQtUiTools.a /usr/local/lib/ > sudo ln -s /usr/lib/libQtCLucene.dylib /usr/local/lib/ > > These should then be found automatically. Earlier systems > may need some help by adding '-L/usr/local/lib' to CMAKE_SHARED_LINKER_FLAGS, > CMAKE_MODULE_LINKER_FLAGS and CMAKE_EXE_LINKER_FLAGS in the cmake build. > > ## > > From the above statements what I am going to do with my QtSDK > installation? What need to copy to /usr/lib or link? > > Thanks. > > Noli > - William Kyngesburye http://www.kyngchaos.com/ "Mon Dieu! but they are all alike. Cheating, murdering, lying, fighting, and all for things that the beasts of the jungle would not deign to possess - money to purchase the effeminate pleasures of weaklings. And yet withal bound down by silly customs that make them slaves to their unhappy lot while firm in the belief that they be the lords of creation enjoying the only real pleasures of existence - the wisdom of Tarzan ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
On Aug 2, 2012, at 6:48 AM, William Kyngesburye wrote: > It might be a while before I get to Mountain Lion, for various reasons. > > For running existing software on Mtn, I expect few problems. Apple usually > does a good job of forward compatibility if the software was built for the > previous version or 2. Also, this time there shouldn't be a Python change - > there is no Python 2.8, and 3.x is a big jump (not just for Apple). Can you > verify the default Python version is still 2.7? (it will still be there > anyways) In any case my Python installers should be able to reinstall Python > modules removed by the upgrade. I'm running ML on my machine also. Here's the default python: /usr/bin/python --version Python 2.7.2 > > On Aug 2, 2012, at 4:43 AM, Noli Sicad wrote: > >> Hi Larry, >> >> Thanks for these pointers. >> What are the changes in this instruction? >>> >>> Unless you're feeling really adventurous and want use a different >>> route, you'll want to first test whether the Qt and kyngchaos.com >>> frameworks for 10.6/10.7 install and work as is. Not sure how much >>> testing William has done with the new Mac OS. I'll probably be trying >>> to compile QGIS on 10.8 next week. >> >> I already installed William frameworks before I update to ML (10.8). I >> think the frameworks survive after the ML install (update). Only >> python site packages did not survived after the update to ML (10.8). >> >> We need to add 10.8 in Qt global (i.e. qglobal.h), as you can see it >> here (below): >> >> http://stevenyue.com/2011/10/27/install-pyqt4-qt-4-7-on-mac-osx-lion/ >> > > - > William Kyngesburye > http://www.kyngchaos.com/ > > All generalizations are dangerous, even this one. > > > ___ > Qgis-developer mailing list > Qgis-developer@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
It might be a while before I get to Mountain Lion, for various reasons. For running existing software on Mtn, I expect few problems. Apple usually does a good job of forward compatibility if the software was built for the previous version or 2. Also, this time there shouldn't be a Python change - there is no Python 2.8, and 3.x is a big jump (not just for Apple). Can you verify the default Python version is still 2.7? (it will still be there anyways) In any case my Python installers should be able to reinstall Python modules removed by the upgrade. Qt software should run, but there may be small glitches. Compiling on Mtn for Qt may have problems. The fix in that link may not be absolutely necessary. As I remember, Qt just spews out warnings on new OSX versions, the fix just removes those. Also, you can use an SDK to compile for Lion and you shouldn't get those warnings. On Aug 2, 2012, at 4:43 AM, Noli Sicad wrote: > Hi Larry, > > Thanks for these pointers. > >>> What are the changes in this instruction? >> >> Unless you're feeling really adventurous and want use a different >> route, you'll want to first test whether the Qt and kyngchaos.com >> frameworks for 10.6/10.7 install and work as is. Not sure how much >> testing William has done with the new Mac OS. I'll probably be trying >> to compile QGIS on 10.8 next week. > > I already installed William frameworks before I update to ML (10.8). I > think the frameworks survive after the ML install (update). Only > python site packages did not survived after the update to ML (10.8). > > We need to add 10.8 in Qt global (i.e. qglobal.h), as you can see it > here (below): > > http://stevenyue.com/2011/10/27/install-pyqt4-qt-4-7-on-mac-osx-lion/ > - William Kyngesburye http://www.kyngchaos.com/ All generalizations are dangerous, even this one. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
Hi Larry, Thanks for these pointers. >> What are the changes in this instruction? > > Unless you're feeling really adventurous and want use a different > route, you'll want to first test whether the Qt and kyngchaos.com > frameworks for 10.6/10.7 install and work as is. Not sure how much > testing William has done with the new Mac OS. I'll probably be trying > to compile QGIS on 10.8 next week. I already installed William frameworks before I update to ML (10.8). I think the frameworks survive after the ML install (update). Only python site packages did not survived after the update to ML (10.8). We need to add 10.8 in Qt global (i.e. qglobal.h), as you can see it here (below): http://stevenyue.com/2011/10/27/install-pyqt4-qt-4-7-on-mac-osx-lion/ > After those are correctly installed an validated, there are a couple > of optional items you can skip on your first compiling to save > yourself some time: > > 5.4.10. Optional Dependencies: libfcgi > 5.4.11. Optional Dependencies: OSG & osgEarth > > You may have compile errors regarding libspatialindex, see this > discussion for additional info: > http://osgeo-org.1560.n6.nabble.com/Config-fails-on-find-of-spatialindex-library-tt4939392.html#a4940948 > > >> I want also to include QtSQL support so MSSQL can work as well for Mac OS >> X. >> >> How do you include QtSQL support (ie. qsql_odbc.h support for MSSQL) >> for Mac OS X build? > > The Mac QGIS.app includes bundled Qt frameworks (though not their > header files), so Qt ODBC support should be functional if the > libqsqlodbc.dylib plugin is included. I saw the discussion you brought > up about it previously [1], but it is not currently being bundled. > Here is a temporary git patch file you can apply that adds the > bundling [2]. The method I used has redundant code in it, which can be > fixed up once you report back that it actually works (I don't have > access to a MSSQL server to test). > > [1] > http://osgeo-org.1560.n6.nabble.com/Compiling-QGIS-with-iODBC-driver-library-for-MacOS-X-and-Linux-td4987085.html#none > [2] https://dl.dropbox.com/u/4058089/qgis/libqsqlodbc-mac_patch.diff > Placing the libqsqlodbc.dylib in the /plugins/sqldrivers/ in QGIS.app probably will work. I don't have MSSQL to test as well. However, I can probably visit some people around here in Melbourne who are using QGIS for Mac OS X who have MSSQL servers. William's QGIS for Mac OS X works fine in Mountaion Lion (ML) 10.8. ML 10.8 is better (stable) than Lion (10.7.4). Thanks. Noli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
Hi Noli, On Wed, Aug 1, 2012 at 9:25 PM, Noli Sicad wrote: > Hi, > > Has anybody managed to build / compile QGIS in Mac OS X (Mountain Lion > i.e. 10.8)? > > Any tips on this? > > https://github.com/qgis/Quantum-GIS/blob/master/INSTALL > > What are the changes in this instruction? Unless you're feeling really adventurous and want use a different route, you'll want to first test whether the Qt and kyngchaos.com frameworks for 10.6/10.7 install and work as is. Not sure how much testing William has done with the new Mac OS. I'll probably be trying to compile QGIS on 10.8 next week. After those are correctly installed an validated, there are a couple of optional items you can skip on your first compiling to save yourself some time: 5.4.10. Optional Dependencies: libfcgi 5.4.11. Optional Dependencies: OSG & osgEarth You may have compile errors regarding libspatialindex, see this discussion for additional info: http://osgeo-org.1560.n6.nabble.com/Config-fails-on-find-of-spatialindex-library-tt4939392.html#a4940948 > I want also to include QtSQL support so MSSQL can work as well for Mac OS X. > > How do you include QtSQL support (ie. qsql_odbc.h support for MSSQL) > for Mac OS X build? The Mac QGIS.app includes bundled Qt frameworks (though not their header files), so Qt ODBC support should be functional if the libqsqlodbc.dylib plugin is included. I saw the discussion you brought up about it previously [1], but it is not currently being bundled. Here is a temporary git patch file you can apply that adds the bundling [2]. The method I used has redundant code in it, which can be fixed up once you report back that it actually works (I don't have access to a MSSQL server to test). [1] http://osgeo-org.1560.n6.nabble.com/Compiling-QGIS-with-iODBC-driver-library-for-MacOS-X-and-Linux-td4987085.html#none [2] https://dl.dropbox.com/u/4058089/qgis/libqsqlodbc-mac_patch.diff > How do this QtSQL support in Linux? I'll let one of the Linux gurus answer that one. :^) > > (I got a decent macbookpro (base) retina 2.3Gh now. I have not build > any QGIS in my slow laptop before). > > Thanks. Good luck! Please let us know how your effort fares. > > Noli > ___ > Qgis-developer mailing list > Qgis-developer@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support
Hi, Has anybody managed to build / compile QGIS in Mac OS X (Mountain Lion i.e. 10.8)? Any tips on this? https://github.com/qgis/Quantum-GIS/blob/master/INSTALL What are the changes in this instruction? I want also to include QtSQL support so MSSQL can work as well for Mac OS X. How do you include QtSQL support (ie. qsql_odbc.h support for MSSQL) for Mac OS X build? How do this QtSQL support in Linux? (I got a decent macbookpro (base) retina 2.3Gh now. I have not build any QGIS in my slow laptop before). Thanks. Noli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer