Re: [CMake] Possible bug in XCode backend and proposed workarounds
- Original Message > From: Michael Wild > To: cmake@cmake.org > Sent: Thu, January 6, 2011 10:16:28 AM > Subject: Re: [CMake] Possible bug in XCode backend and proposed workarounds > > On 01/06/2011 05:02 PM, Samuel Crow wrote: > > Hello, > > > > I've built LLVM 2.9SVN successfully with CMake under XCode but had some > > workarounds needed to get to that point. > > > > 1. Building in debug mode there was one archive file dependency that > > looked >for > > > the release folder instead of the debug folder. > > I suspect the error is in the CMakeLists.txt of the LLVM project. Óscar Fuentes (the CMake build script maintainer of LLVM) said that all of the Windows and Linux backends generated debug builds without any side-tracks. That's why he suggested that I post here. > > > 2. The install target failed to put a sudo -A in front of it. This is >required > > > even when logged in as administrator on the Mac. > > Do you really want to install into the system from Xcode??? Do normal > Xcode projects allow this (I never tried, and probably never will)? > Would this even be desirable? > > The proper thing to do would be to build a package, and then install > that into the system. > In LLVM, targets are defined for every Makefile-style target. This is useful when installing debug builds into the system for use with all of the other software that uses LLVM. Again, if there are issues with the way that you'd have to ask Óscar Fuentes. I suspect that the problem is that he was migrating from an Autotools environment and desired to do so with minimum disruption to the rest of the people that still use the Autotools install scripts. > > 3. Since there is no console input source available in XCode, a small > > executable was needed to accept the password and echo it to stdout for the >sudo > > > -A flag to use. I've written such a requester box code in Qt and would be > > willing to share with the CMake team if desired. > > Wouldn't that be easier with a small applescript (subject to my > reservations from 2.)? > It would be if I knew the slightest amount of AppleScript. As it was, the choices I was aware of were Apple's Interface Builder and Objective C (which I don't know); and Qt and C++ (which I do know). Thanks, --Sam ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Possible bug in XCode backend and proposed workarounds
Hello, I've built LLVM 2.9SVN successfully with CMake under XCode but had some workarounds needed to get to that point. 1. Building in debug mode there was one archive file dependency that looked for the release folder instead of the debug folder. 2. The install target failed to put a sudo -A in front of it. This is required even when logged in as administrator on the Mac. 3. Since there is no console input source available in XCode, a small executable was needed to accept the password and echo it to stdout for the sudo -A flag to use. I've written such a requester box code in Qt and would be willing to share with the CMake team if desired. Thanks for your time and efforts, --Samuel D. Crow ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Help with REGEX expression
Hi Mike, I think you only had an extra * closure on the end of the MacOSX string. As soon as I took that off it worked fine. (We don't need extra X's at the end of that, after all.) --Sam --- On Thu, 9/18/08, Samuel Crow <[EMAIL PROTECTED]> wrote: > From: Samuel Crow <[EMAIL PROTECTED]> > Subject: Re: [CMake] Help with REGEX expression > To: "Cmake Mailing List" , "Mike Jackson" <[EMAIL PROTECTED]> > Date: Thursday, September 18, 2008, 6:36 PM > Correction. What you're trying to do is the right idea. > I'd forgotten about the string function of CMake so > actually CMake should be able to do it. > > > --- On Thu, 9/18/08, Samuel Crow > <[EMAIL PROTECTED]> wrote: > > > From: Samuel Crow > <[EMAIL PROTECTED]> > > Subject: Re: [CMake] Help with REGEX expression > > To: "Cmake Mailing List" > , "Mike Jackson" > <[EMAIL PROTECTED]> > > Date: Thursday, September 18, 2008, 6:32 PM > > Update: > > > > It looks like what we're trying to do cannot be > done > > with a REGEX as such because the REGEX functions are > for > > pattern-matching only. To actually cut out numbers > from a > > string will require an external script. > > > > If it is only going to be running on a Mac we have > Python > > or Bash to choose from. For something lightweight > like > > this, Bash should work better. The "cut" > command > > should work nicely. > > > > I'll keep you informed of any progress. > > > > --Sam > > > > > > --- On Thu, 9/18/08, Samuel Crow > > <[EMAIL PROTECTED]> wrote: > > > > > From: Samuel Crow > > <[EMAIL PROTECTED]> > > > Subject: Re: [CMake] Help with REGEX expression > > > To: "Cmake Mailing List" > > , "Mike Jackson" > > <[EMAIL PROTECTED]> > > > Date: Thursday, September 18, 2008, 6:19 PM > > > Hello Mike, > > > > > > I'm looking at Page 41 of Mastering CMake 4th > > edition. > > > I'll try to get this figured out for you, if > you > > like. > > > > > > --Sam > > > > > > --- On Thu, 9/18/08, Mike Jackson > > > <[EMAIL PROTECTED]> wrote: > > > > > > > From: Mike Jackson > > <[EMAIL PROTECTED]> > > > > Subject: [CMake] Help with REGEX expression > > > > To: "Cmake Mailing List" > > > > > > > Date: Thursday, September 18, 2008, 5:53 PM > > > > I am trying to parse out the OS Version from > the > > > following: > > > > > > > > > > > > /Developer/SDKs/MacOSX10.5.sdk > > > > /Developer/SDKs/MacOSX10.4u.sdk > > > > /Developer/SDKs/MacOSX10.3.9.sdk > > > > > > > > I only need the 10.5, 10.4 or 10.3 so I can > > compare it > > > > against another > > > > number (10.x or even 11.x). > > > > > > > > I have no idea where to start with this. > Could > > anyone > > > > suggest > > > > somewhere to start .. (besides a good Regex > > tutorial.. > > > ) > > > > > > > > Thanks > > > > > > _ > > > > | Mike Jackson - Principal Software Engineer > > > | > > > > | BlueQuartz Software > > > | > > > > | [EMAIL PROTECTED] > > > | > > > > | www.bluequartz.net > > > | > > > > > > --- > > > > > > > > > ___ > > > > CMake mailing list > > > > CMake@cmake.org > > > > http://www.cmake.org/mailman/listinfo/cmake > > > > > > > > > > > > > > > ___ > > > CMake mailing list > > > CMake@cmake.org > > > http://www.cmake.org/mailman/listinfo/cmake > > > > > > > > > > ___ > > CMake mailing list > > CMake@cmake.org > > http://www.cmake.org/mailman/listinfo/cmake > > > > > ___ > CMake mailing list > CMake@cmake.org > http://www.cmake.org/mailman/listinfo/cmake ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Help with REGEX expression
Correction. What you're trying to do is the right idea. I'd forgotten about the string function of CMake so actually CMake should be able to do it. --- On Thu, 9/18/08, Samuel Crow <[EMAIL PROTECTED]> wrote: > From: Samuel Crow <[EMAIL PROTECTED]> > Subject: Re: [CMake] Help with REGEX expression > To: "Cmake Mailing List" , "Mike Jackson" <[EMAIL PROTECTED]> > Date: Thursday, September 18, 2008, 6:32 PM > Update: > > It looks like what we're trying to do cannot be done > with a REGEX as such because the REGEX functions are for > pattern-matching only. To actually cut out numbers from a > string will require an external script. > > If it is only going to be running on a Mac we have Python > or Bash to choose from. For something lightweight like > this, Bash should work better. The "cut" command > should work nicely. > > I'll keep you informed of any progress. > > --Sam > > > --- On Thu, 9/18/08, Samuel Crow > <[EMAIL PROTECTED]> wrote: > > > From: Samuel Crow > <[EMAIL PROTECTED]> > > Subject: Re: [CMake] Help with REGEX expression > > To: "Cmake Mailing List" > , "Mike Jackson" > <[EMAIL PROTECTED]> > > Date: Thursday, September 18, 2008, 6:19 PM > > Hello Mike, > > > > I'm looking at Page 41 of Mastering CMake 4th > edition. > > I'll try to get this figured out for you, if you > like. > > > > --Sam > > > > --- On Thu, 9/18/08, Mike Jackson > > <[EMAIL PROTECTED]> wrote: > > > > > From: Mike Jackson > <[EMAIL PROTECTED]> > > > Subject: [CMake] Help with REGEX expression > > > To: "Cmake Mailing List" > > > > > Date: Thursday, September 18, 2008, 5:53 PM > > > I am trying to parse out the OS Version from the > > following: > > > > > > > > > /Developer/SDKs/MacOSX10.5.sdk > > > /Developer/SDKs/MacOSX10.4u.sdk > > > /Developer/SDKs/MacOSX10.3.9.sdk > > > > > > I only need the 10.5, 10.4 or 10.3 so I can > compare it > > > against another > > > number (10.x or even 11.x). > > > > > > I have no idea where to start with this. Could > anyone > > > suggest > > > somewhere to start .. (besides a good Regex > tutorial.. > > ) > > > > > > Thanks > > > > _ > > > | Mike Jackson - Principal Software Engineer > | > > > | BlueQuartz Software > | > > > | [EMAIL PROTECTED] > | > > > | www.bluequartz.net > | > > > > --- > > > > > > ___ > > > CMake mailing list > > > CMake@cmake.org > > > http://www.cmake.org/mailman/listinfo/cmake > > > > > > > > > > ___ > > CMake mailing list > > CMake@cmake.org > > http://www.cmake.org/mailman/listinfo/cmake > > > > > ___ > CMake mailing list > CMake@cmake.org > http://www.cmake.org/mailman/listinfo/cmake ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Help with REGEX expression
Update: It looks like what we're trying to do cannot be done with a REGEX as such because the REGEX functions are for pattern-matching only. To actually cut out numbers from a string will require an external script. If it is only going to be running on a Mac we have Python or Bash to choose from. For something lightweight like this, Bash should work better. The "cut" command should work nicely. I'll keep you informed of any progress. --Sam --- On Thu, 9/18/08, Samuel Crow <[EMAIL PROTECTED]> wrote: > From: Samuel Crow <[EMAIL PROTECTED]> > Subject: Re: [CMake] Help with REGEX expression > To: "Cmake Mailing List" , "Mike Jackson" <[EMAIL PROTECTED]> > Date: Thursday, September 18, 2008, 6:19 PM > Hello Mike, > > I'm looking at Page 41 of Mastering CMake 4th edition. > I'll try to get this figured out for you, if you like. > > --Sam > > --- On Thu, 9/18/08, Mike Jackson > <[EMAIL PROTECTED]> wrote: > > > From: Mike Jackson <[EMAIL PROTECTED]> > > Subject: [CMake] Help with REGEX expression > > To: "Cmake Mailing List" > > > Date: Thursday, September 18, 2008, 5:53 PM > > I am trying to parse out the OS Version from the > following: > > > > > > /Developer/SDKs/MacOSX10.5.sdk > > /Developer/SDKs/MacOSX10.4u.sdk > > /Developer/SDKs/MacOSX10.3.9.sdk > > > > I only need the 10.5, 10.4 or 10.3 so I can compare it > > against another > > number (10.x or even 11.x). > > > > I have no idea where to start with this. Could anyone > > suggest > > somewhere to start .. (besides a good Regex tutorial.. > ) > > > > Thanks > > _ > > | Mike Jackson - Principal Software Engineer | > > | BlueQuartz Software | > > | [EMAIL PROTECTED] | > > | www.bluequartz.net | > > --- > > > > ___ > > CMake mailing list > > CMake@cmake.org > > http://www.cmake.org/mailman/listinfo/cmake > > > > > ___ > CMake mailing list > CMake@cmake.org > http://www.cmake.org/mailman/listinfo/cmake ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Help with REGEX expression
Hello Mike, I'm looking at Page 41 of Mastering CMake 4th edition. I'll try to get this figured out for you, if you like. --Sam --- On Thu, 9/18/08, Mike Jackson <[EMAIL PROTECTED]> wrote: > From: Mike Jackson <[EMAIL PROTECTED]> > Subject: [CMake] Help with REGEX expression > To: "Cmake Mailing List" > Date: Thursday, September 18, 2008, 5:53 PM > I am trying to parse out the OS Version from the following: > > > /Developer/SDKs/MacOSX10.5.sdk > /Developer/SDKs/MacOSX10.4u.sdk > /Developer/SDKs/MacOSX10.3.9.sdk > > I only need the 10.5, 10.4 or 10.3 so I can compare it > against another > number (10.x or even 11.x). > > I have no idea where to start with this. Could anyone > suggest > somewhere to start .. (besides a good Regex tutorial.. ) > > Thanks > _ > | Mike Jackson - Principal Software Engineer | > | BlueQuartz Software | > | [EMAIL PROTECTED] | > | www.bluequartz.net | > --- > > ___ > CMake mailing list > CMake@cmake.org > http://www.cmake.org/mailman/listinfo/cmake ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] make -j and cmake
Hello Jim Chaney, What version of CMake are you using? I'm using 2.6.2-RC4 here. I often use make -j7 on my company's 8 core Mac Pro. (Leaving the remaining core to manage interprocess communications, run make, manage disk caches, etc.) Using that configuration I can build ParaView in only 7-10 minutes. Occasionally it bombs out but if I repeat the make it picks up where it left off and finishes the build. --- On Wed, 9/17/08, Jim Chaney <[EMAIL PROTECTED]> wrote: > From: Jim Chaney <[EMAIL PROTECTED]> > Subject: Re: [CMake] make -j and cmake > To: cmake@cmake.org > Date: Wednesday, September 17, 2008, 1:47 PM > In case my first post to the list went missing, re-posting. > > (If my post did reach the list, help! :) > > Jim > > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jim Chaney > Sent: 12 September 2008 10:54 > To: cmake@cmake.org > Subject: [CMake] make -j and cmake > > I have been attempting to switch CMAKE from building using > nmake (via a customised Microsoft Visual Studio 8 generator) > to a cygwin make (using Unix Makefiles generator) in order > to use the -j option. A previous post > (http://www.cmake.org/pipermail/cmake/2008-April/021338.html) > noted that Bill Hoffman had made a special version of make > that fixed/reverted some path/drive letter change in the > main CVS branch. > > Although the version of make available on the cmake website > seems to work OK from the command line, when I then run it > under Incredibuild (to move from parallel to distributed > builds) I get a crash inside make.exe. I have spoken to > Xoreax (the makers of Incredibuild) and they are interested > but unable to assist, as the problem is inside make and not > their product. The logical step then was to make my own > debug version of make from the source, but I cannot get the > same behaviour from a locally compiled make (using latest > CVS as downloaded from Savannah) as I do with the version > from the cmake website. > > So to the questions: > > 1) What modifications were made to > the CVS of make? Is there a certain date I should sync > to? (I notice that it says the -j option only takes effect > for that call to make, and subsequent calls have to have -j > added to them; I dont think the cmake generated makefile > will do this for me, will it?) > > 2) When I get 'valid' source, > what parameters were used in the config.h? Most > importantly, was HAVE_CYGWIN_MAKE or HAVE_MKS_MAKE defined? > > > Apologies of this seems tangential, but unless I am > misunderstanding the CVS repository make hasn't been > released for 2+ years so the change from Bill has never been > released... > > ___ > CMake mailing list > CMake@cmake.org > http://www.cmake.org/mailman/listinfo/cmake ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
[CMake] Fw: Re: Problems generating Xcode projects
--- On Tue, 7/15/08, Samuel Crow <[EMAIL PROTECTED]> wrote: > From: Samuel Crow <[EMAIL PROTECTED]> > Subject: Re: [CMake] Problems generating Xcode projects > To: "Carminati Federico" <[EMAIL PROTECTED]> > Date: Tuesday, July 15, 2008, 1:31 PM > Hello Federico, > > I've had the same problems. When it did work right it > just had calls to the Make utility internally anyway. If > all it's going to do is call make, you might just as > well generate UNIX-style makefiles and call them from the > terminal prompt by typing make and, if there is an install > target, make install afterward. > > --Sam > > > --- On Tue, 7/15/08, Carminati Federico > <[EMAIL PROTECTED]> wrote: > > > From: Carminati Federico > <[EMAIL PROTECTED]> > > Subject: [CMake] Problems generating Xcode projects > > To: cmake@cmake.org > > Cc: "Florian Uhlig" <[EMAIL PROTECTED]> > > Date: Tuesday, July 15, 2008, 12:13 PM > > Hello, > > I am trying to generate an Xcode project. I have > > > > cmake 2.6 > > Xcode 3.0 > > Mac OS X 10.5.4 > > > > When I try to open the project with Xcode I have > > > > Project > > /Users/fca/AliCmake/NewIO/xcode_dir/AliRoot.xcodeproj > > cannot > > be opened because the project file cannot be parsed. > > > > Any hint? Best, > > > > Federico Carminati > > CERN-PH > > 1211 Geneva 23 > > Switzerland > > Tel: +41 22 76 74959 > > Fax: +41 22 76 79480 > > Mobile: +41 76 487 4843 > > > > ___ > > CMake mailing list > > CMake@cmake.org > > http://www.cmake.org/mailman/listinfo/cmake ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
[CMake] Fw: Re: Building Mac kext from CMake
--- On Wed, 7/9/08, Samuel Crow <[EMAIL PROTECTED]> wrote: > From: Samuel Crow <[EMAIL PROTECTED]> > Subject: Re: [CMake] Building Mac kext from CMake > To: "Tim Schooley" <[EMAIL PROTECTED]> > Date: Wednesday, July 9, 2008, 5:18 PM > Hello Tim, > > Don't waste your time with the XCode generator on > CMake. It only calls make from the XCode project. You > might as well just use makefiles directly. > > --Sam > > --- On Wed, 7/9/08, Tim Schooley <[EMAIL PROTECTED]> > wrote: > > > From: Tim Schooley <[EMAIL PROTECTED]> > > Subject: [CMake] Building Mac kext from CMake > > To: cmake@cmake.org > > Date: Wednesday, July 9, 2008, 4:06 PM > > Hi folks! > > > > Has anyone managed to take an XCode project (yuk) and > build > > it from > > CMake? I have a kernel extension that I would like to > build > > from CMake > > in order to include it in CPack. > > > > I guess I could just add a custom target, but I was > hoping > > someone may > > have a better suggestion. > > > > Thanks for any help/advice! > > > > Kind regards, > > > > Tim > > > > ___ > > CMake mailing list > > CMake@cmake.org > > http://www.cmake.org/mailman/listinfo/cmake ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake