Am 10.05.2011 um 12:11 schrieb Kornel:

> Am Dienstag, 10. Mai 2011 schrieb Stephan Witt:
> > Sorry, didn't work too.
> > 
> > % cmake -DLYX_RELEASE=ON -DLYX_EXTERNAL_LIBINTL=OFF -DLYX_NLS=ON
> > CompileC
> > .../cmake/lyx-devel/intl/lyx.build/Debug/intl.build/Objects-normal/i386/in
> > tl-exports.o intl/intl-exports.c normal i386 c com.apple.compilers.gcc.4_2
> > ...
> > {standard input}:38:Expected comma after segment-name
> > Command /Developer/usr/bin/gcc-4.2 failed with exit code 1
> > ...
> > Ld .../cmake/lyx-devel/bin/Debug/tex2lyx normal i386
> > Undefined symbols:
> >   "_libintl_bind_textdomain_codeset", referenced from:
> >       _bind_textdomain_codeset in libsupport.a(Messages.o)
> >   "_libintl_gettext", referenced from:
> >       _gettext in libsupport.a(Messages.o)
> >   "_libintl_textdomain", referenced from:
> >       _textdomain in libsupport.a(Messages.o)
> >   "_libintl_bindtextdomain", referenced from:
> >       _bindtextdomain in libsupport.a(Messages.o)
> > ld: symbol(s) not found
> > collect2: ld returned 1 exit status
> But it compiled!

No, intl-exports.o was not created.

> The created lib seems not to be included.
> The relevant code is development/cmake/src/CMakeFiles.txt:130
> Since LYX_EXTERNAL_LIBINTL==OFF, this should be ok.
> 1.)
>   Could you add
>       message(STATUS "Adding intl " )
>   and check if it is displayed?
Yes.
...
-- Performing Test SIZEOF_WCHAR_T_IS_4 - Success
-- Generating 
/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/src/frontends/qt4/Resources.qrc
-- Mac LinkBack support
-- Adding intl 
-- 
-- Build options, switch LYX_* variables by -DLYX_*=1 or 0:
-- 
-- LYX_CPACK                = OFF    : Use the CPack management (Implies 
LYX_INSTALL option)
-- LYX_INSTALL              = OFF    : Build install projects/rules (implies a 
bunch of other options)
-- LYX_NLS                  = ON     : Use nls
-- LYX_ASPELL               = ON     : Require aspell
-- LYX_ENCHANT              = OFF    : Require Enchant
-- LYX_HUNSPELL             = ON     : Require Hunspell
-- LYX_DEVEL_VERSION        = ON     : Build developer version
-- LYX_RELEASE              = ON     : Build release version, build debug when 
disabled
-- LYX_PACKAGE_SUFFIX       = OFF    : Use version suffix for packaging
-- LYX_PCH                  = OFF    : Use precompiled headers
-- LYX_MERGE_FILES          = OFF    : Merge source files into one compilation 
unit
-- LYX_MERGE_REBUILD        = OFF    : Rebuild generated files from merged 
files build
-- LYX_QUIET                = ON     : Don't generate verbose makefiles
-- LYX_INSTALL_PREFIX       = OFF    : Install path for LyX
-- LYX_EXTERNAL_LIBINTL     = OFF    : Use external libintl
-- LYX_PROFILE              = OFF    : Build profile version
-- LYX_EXTERNAL_BOOST       = OFF    : Use external boost
-- LYX_PROGRAM_SUFFIX       = OFF    : Append version suffix to binaries
-- LYX_DEBUG_GLIBC          = ON     : Enable libstdc++ debug mode
-- LYX_DEBUG_GLIBC_PEDANTIC = ON     : Enable libstdc++pedantic debug mode
-- LYX_STDLIB_DEBUG         = OFF    : Use debug stdlib
-- LYX_CONCEPT_CHECKS       = OFF    : Enable concept-checks
-- 
-- Configuring done
-- Generating done
-- Build files have been written to: 
/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel

> 2.) please add -DCMAKE_VERBOSE_MAKEFILE=1 to the cmake-command to see the 
> linker output
What do you want to see? The complete output is of the failing commands is:
...
CompileC 
/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/intl/lyx.build/Debug/intl.build/Objects-normal/i386/intl-exports.o
 intl/intl-exports.c normal i386 c com.apple.compilers.gcc.4_2
cd /Users/stephan/cvs/lyx/lyx-devel
setenv LANG en_US.US-ASCII
/Developer/usr/bin/gcc-4.2 -x c -arch i386 -fmessage-length=0 -pipe 
-Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -DCMAKE_INTDIR="Debug" 
-DHAVE_CONFIG_H=1 -DMAKE_INTL_LIB -DIN_LIBINTL -DENABLE_RELOCATABLE=1 
-DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix 
-Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -isysroot 
/Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -gdwarf-2 -Wmost 
-Wno-four-char-constants -Wno-unknown-pragmas 
-F/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/lib/Debug 
-I/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/lib/Debug/include 
-I/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel 
-I/Users/stephan/cvs/lyx/lyx-devel/src 
-I/Users/stephan/cvs/lyx/lyx-build/SpellChecker.lib/include 
-I/Users/stephan/cvs/lyx/lyx-devel/po -I/Users/stephan/cvs/lyx/lyx-devel/intl 
-I/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/intl 
-I/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/intl/lyx.build/Debug/intl.build/DerivedSources/i386
 
-I/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/intl/lyx.build/Debug/intl.build/DerivedSources
 -DLOCALEDIR="" -DLOCALE_ALIAS_PATH="" 
-DLIBDIR="/Users/stephan/cvs/lyx/lyx-devel" -DINSTALLDIR="~/bin/LyX" -c 
/Users/stephan/cvs/lyx/lyx-devel/intl/intl-exports.c -o 
/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/intl/lyx.build/Debug/intl.build/Objects-normal/i386/intl-exports.o

{standard input}:38:Expected comma after segment-name
Command /Developer/usr/bin/gcc-4.2 failed with exit code 1
...
Ld /Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/bin/Debug/LyX normal i386
cd /Users/stephan/cvs/lyx/lyx-devel
setenv MACOSX_DEPLOYMENT_TARGET 10.5
/Developer/usr/bin/g++-4.2 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk 
-L/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/bin/Debug 
-L/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/lib/Debug/Debug 
-L/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/lib/Debug 
-L/Users/stephan/cvs/lyx/lyx-build/SpellChecker.lib/lib/Debug 
-L/Users/stephan/cvs/lyx/lyx-build/SpellChecker.lib/lib 
-F/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/bin/Debug -filelist 
/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/src/lyx.build/Debug/LyX.build/Objects-normal/i386/LyX.LinkFileList
 -mmacosx-version-min=10.5 -Wl,-search_paths_first -headerpad_max_install_names 
/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/lib/Debug/libmathed.a 
/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/lib/Debug/libinsets.a 
/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/lib/Debug/libfrontends.a 
/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/lib/Debug/libfrontend_qt4.a 
/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/lib/Debug/libgraphics.a 
/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/lib/Debug/libsupport.a 
/usr/lib/libiconv.dylib 
/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/lib/Debug/libintl.a 
/Users/stephan/cvs/lyx/lyx-build/SpellChecker.lib/lib/libhunspell.dylib 
/Users/stephan/cvs/lyx/lyx-build/SpellChecker.lib/lib/libaspell.dylib 
-bind_at_load -framework Carbon 
/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/lib/Debug/libfrontends.a 
-framework QtGui 
/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/lib/Debug/libboost_signals.a 
/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/lib/Debug/libboost_regex.a 
-framework QtCore /usr/lib/libz.dylib -lobjc -framework Appkit -framework 
CoreFoundation /usr/lib/libiconv.dylib -o 
/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/bin/Debug/LyX

i686-apple-darwin10-g++-4.2.1: 
/Users/stephan/cvs/lyx/lyx-build/cmake/lyx-devel/lib/Debug/libintl.a: No such 
file or directory
Command /Developer/usr/bin/g++-4.2 failed with exit code 1
...

Stephan

Reply via email to