Am 06.11.2010 um 23:27 schrieb BH:

> On Sat, Nov 6, 2010 at 5:22 PM, Abdelrazak Younes <you...@lyx.org> wrote:
>> Hi there,
>> My employer just got me a brand new MacBook Pro. I am not impressed so far
>> by MacOS so called legendary user friendlyness but I am trying to get used
>> to it right now.

The modern desktops with Linux and Windows had done much work to shorten the 
distance.
I'm a long time Linux user and Windows hater. I had to learn the Apple way to 
do the
tasks too. But I have to admit now - for many tasks you easily can get the job 
done.
And most developer documentation is in an extra-ordinary good state.

But if you hit a limit - then you have a problem, like with any other system.
Only Linux makes a difference here - at the cost of your time...

>> Anyway, I need to install development stuff. I've downloaded latest XCode
>> and Qt SDK. Now I need to know if I'd better use fink or MacPort (or
>> something else?) for package...
>> More generally, Bennett, Stefan, any advice?
>> Thanks in advance,
> 
> I (and Stephan I believe) use MacPorts, though fink should work fine
> as well. I have been using cmake (with the precompiled Qt package),
> though I haven't used cmake to generate an XCode project. Stephan uses
> autotools (with self-compiled Qt?).

I'm using
* macports for autotools, cmake, etc.
* Xcode for compiler and IDE (cmake based project)
* self compiled Qt 4.6.3 library (because of #6706 is fixed then)
* self compiled hunspell and aspell libraries (frameworks)
* a Dictionaries collection (which needs to be checked in)
* for automake builds the script development/LyX-Mac-binary-release.sh
* for cmake generation the script mkcmake.sh (attached)
(which needs a first release build with autotools for Resources)
* to use hunspell and aspell with cmake I patched the development/cmake files

All the stuff is living in a common directory and the results are "bundled"
below the subdirectory lyx-build.
.../lyx
.../lyx/lyx-devel (svn checkout)
.../lyx/qt-everywhere-opensource-src-4.6.3 (source tar content from Nokia - 
patched)
.../lyx/Dictionaries (collection of zip files from different sources)
.../lyx/hunspell-1.2.9 (source tar content)
.../lyx/aspell-0.60.6 (source tar content - patched to solve 32/64 bit issues)
.../lyx/lyx-build/LyX-2.0.0svn.build (automake build stage)
.../lyx/lyx-build/LyX-2.0.0svn.app (automake result)
.../lyx/lyx-build/lyx-cmake (Xcode project)
.../lyx/lyx-build/...  etc.

When developing new code I'm using Xcode.
For release builds and final tests I'm using autotools.
I think CMake currently isn't able to produce a Xcode project with package 
build capabilities.
So I didn't try it and use our LyX-Mac-binary-release.sh script instead.


Stephan

Attachment: mkcmake.sh
Description: Binary data


Index: development/cmake/modules/LyXMacros.cmake
===================================================================
--- development/cmake/modules/LyXMacros.cmake   (Revision 36164)
+++ development/cmake/modules/LyXMacros.cmake   (Arbeitskopie)
@@ -57,6 +57,7 @@
          MAIN_DEPENDENCY ${_tmp_FILE}
 )
       set(${_ui} ${${_ui}} ${_header})
+      SET_SOURCE_FILES_PROPERTIES(${_header} GENERATED)
    endforeach (_current_FILE)
 endmacro(LYX_ADD_UI_FILES)
 
Index: development/cmake/modules/FindASPELL.cmake
===================================================================
--- development/cmake/modules/FindASPELL.cmake  (Revision 36164)
+++ development/cmake/modules/FindASPELL.cmake  (Arbeitskopie)
@@ -50,12 +50,14 @@
        /usr/local/include
        /usr/local/include/aspell
        ${_program_FILES_DIR}/gnuwin32/include
+       "/Users/stephan/cvs/lyx/lyx-build/SpellChecker.lib/include"
 )
 
 FIND_LIBRARY(ASPELL_LIBRARY_RELEASE NAMES aspell aspell-15 libaspell 
libaspell-15
        PATHS
        /usr/lib
        /usr/local/lib
+       "/Users/stephan/cvs/lyx/lyx-build/SpellChecker.lib/lib"
 )
 
 # msvc makes a difference between debug and release
Index: development/cmake/modules/FindHunspell.cmake
===================================================================
--- development/cmake/modules/FindHunspell.cmake        (Revision 36164)
+++ development/cmake/modules/FindHunspell.cmake        (Arbeitskopie)
@@ -3,10 +3,10 @@
   find_library(HUNSPELL_LIBRARY "libhunspell")
 else()
   #find_library(HUNSPELL_LIBRARY NAME "hunspell" PATH "/usr/local/lib" 
"/usr/lib" NO_DEFAULT_PATH)
-  find_library(HUNSPELL_LIBRARY NAMES "hunspell" "hunspell-1.2" PATHS 
"/usr/local/lib" "/usr/lib" "/usr/lib64")
+  find_library(HUNSPELL_LIBRARY NAMES "hunspell" "hunspell-1.2" PATHS 
"/Users/stephan/cvs/lyx/lyx-build/SpellChecker.lib/lib" "/usr/local/lib" 
"/usr/lib" "/usr/lib64")
 endif()
 
-FIND_PATH(HUNSPELL_INCLUDE_DIR "hunspell/hunspell.hxx")
+FIND_PATH(HUNSPELL_INCLUDE_DIR "hunspell/hunspell.hxx" PATHS 
"/Users/stephan/cvs/lyx/lyx-build/SpellChecker.lib/include")
 
 
 # handle the QUIETLY and REQUIRED arguments and 

Reply via email to