XCode 4

View: New views
2 Messages — Rating Filter:   Alert me  

XCode 4

by Miguel de Benito Delgado :: Rate this Message:

| View Threaded | Show Only this Message

Dear all,

   I've been playing around with the latest XCode 4.2 and managed to use
the TeXmacs xcodeproject without too many modifications. Those which do
not interfere with XC3 are already in the SVN. If someone wants to give
it a try, then I might spare you a bit of head scratching with the
following few tips:

     - Fix Base SDK for all configurations, point it to any valid one.
Why: $(DEVELOPER_SDK_DIR) is no longer valid / necessary, now it
suffices to set this to "macosx10.5" for instance. (XCode4 is
distributed via AppStore and has everything in its bundle)
     - Change compiler to GCC 4.2. Why: LLVM 3.1 complains about arrays
of non-POD objects.
     - Change architecture to 64 bit. Why: it won't compile for 32 bit
(in my 64 bit system), because of "Integer constant is too large for
long type" in fast_alloc(), fast_free(), fast_new()
     - Edit schemes (CMD+<) and deactivate debugging of document
versions in the options tab. Why: otherwise XCode will pass some
parameters in the command line which TeXmacs doesn't understand.

That's it. CMD+R and enjoy your shiny new IDE.

Cheers,
______________
Miguel de Benito.


_______________________________________________
Texmacs-dev mailing list
Texmacs-dev@...
https://lists.gnu.org/mailman/listinfo/texmacs-dev

Re: XCode 4

by Martin Costabel :: Rate this Message:

| View Threaded | Show Only this Message

On 3/04/12 23:10, Miguel de Benito Delgado wrote:
[]
> - Change compiler to GCC 4.2. Why: LLVM 3.1 complains about arrays of
> non-POD objects.

You mean llvm-gcc-4.2. Plain old gcc-4.2 has disappeared now from MacOSX
10.7. The one that complains is clang (based on llvm-3.1svn). There is
an easy fix for the code to make it sufficiently standard-compliant so
that it is accepted by clang:

Change in src/Kernel/Abstractions/basic.hpp line 51 from

#if (defined OS_WIN32 || defined __SUNPRO_CC)

to

#if (defined OS_WIN32 || defined __SUNPRO_CC || defined __clang__)

In this way it keeps the previous code for the older more tolerant
compilers.

--
Martin

_______________________________________________
Texmacs-dev mailing list
Texmacs-dev@...
https://lists.gnu.org/mailman/listinfo/texmacs-dev