Ход моих действий такой:
1. В терминале пишу
Код:
svn checkout svn://svn.berlios.de/sim-im/trunk2. получаю директорию /trunk, далее:
Код:
cd cmake
cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Flex: /usr/bin/flex
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Found LibXml2: /usr/lib/libxml2.so
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Found LibXslt: /usr/lib/libxslt.so
-- Found ZLIB: /usr/lib/libz.so
-- Found OpenSSL: /usr/lib/libssl.so
-- Could NOT find ASPELL (missing: ASPELL_LIBRARIES ASPELL_INCLUDE_DIR)
-- Didn't find KDE3 headers
-- Didn't find KDE3 core library
-- Found KDE3 dcopidl preprocessor: /opt/kde3/bin/dcopidl
-- Found KDE3 dcopidl2cpp preprocessor: /opt/kde3/bin/dcopidl2cpp
-- Found KDE3 kconfig_compiler preprocessor: /opt/kde3/bin/kconfig_compiler
-- Looking for include files HAVE_CARBON_CARBON_H
-- Looking for include files HAVE_CARBON_CARBON_H - not found.
-- Looking for include files HAVE_INTTYPES_H
-- Looking for include files HAVE_INTTYPES_H - found
-- Looking for include files HAVE_STDDEF_H
-- Looking for include files HAVE_STDDEF_H - found
-- Looking for include files HAVE_STDINT_H
-- Looking for include files HAVE_STDINT_H - found
-- Looking for include files HAVE_STDLIB_H
-- Looking for include files HAVE_STDLIB_H - found
-- Looking for include files HAVE_STRING_H
-- Looking for include files HAVE_STRING_H - found
-- Looking for include files HAVE_SYS_STAT_H
-- Looking for include files HAVE_SYS_STAT_H - found
-- Looking for include files HAVE_SYS_TYPES_H
-- Looking for include files HAVE_SYS_TYPES_H - found
-- Looking for include files HAVE_UNISTD_H
-- Looking for include files HAVE_UNISTD_H - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for chmod
-- Looking for chmod - found
-- Looking for mmap
-- Looking for mmap - found
-- Looking for munmap
-- Looking for munmap - found
-- Looking for uname
-- Looking for uname - found
-- Performing Test HAVE_TM_GMTOFF
-- Performing Test HAVE_TM_GMTOFF - Success
-- Using plugin __homedir
-- Using plugin _core
Using non-GPL icons
-- Using plugin __migrate
-- Using plugin navigate
-- Using plugin yahoo
-- Using plugin osd
-- Using plugin sound
-- Using plugin ontop
-- Using plugin weather
-- Using plugin filter
-- Using plugin styles
-- Using plugin proxy
-- Using plugin transparent
-- This plugin can only be used on windows or KDE
-- Using plugin spell
-- Cannot build spell plugin because aspell is missing on your system
-- Using plugin shortcuts
-- Using plugin action
-- Using plugin splash
-- Using plugin replace
-- Using plugin windock
-- Windock plugin can only be used on windows
-- Using plugin jabber
-- Using plugin zodiak
-- Using plugin livejournal
-- Using plugin icons
-- Using plugin background
-- Using plugin icq
-- Using plugin remote
-- Using plugin sms
-- Using plugin autoaway
-- Looking for XScreenSaverRegister in Xext
-- Looking for XScreenSaverRegister in Xext - not found
-- Looking for XScreenSaverRegister in Xss
-- Looking for XScreenSaverRegister in Xss - found
-- Looking for include files HAVE_X11_EXTENSIONS_SCRNSAVER
-- Looking for include files HAVE_X11_EXTENSIONS_SCRNSAVER - found
-- Using plugin about
-- Using plugin msn
-- Using plugin floaty
-- Using plugin forward
-- Using plugin gpg
-- Using plugin update
-- Using plugin logger
-- Using plugin netmonitor
-- Using plugin dock
-- Configuring done
CMake Warning (dev) at cmake/SimPlugins.cmake:14 (ADD_LIBRARY):
Policy CMP0003 should be set before this line. Add code such as
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
as early as possible but after the most recent call to
cmake_minimum_required or cmake_policy(VERSION). This warning appears
because target "autoaway" links to some libraries for which the linker must
search:
Xss
and other libraries with known full path:
/usr/src/trunk/cmake/sim/libsim.so.0.0.0
CMake is adding directories in the second list to the linker search path in
case they are needed to find libraries from the first list (for backwards
compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to enable
or disable this behavior explicitly. Run "cmake --help-policy CMP0003" for
more information.
Call Stack (most recent call first):
plugins/autoaway/CMakeLists.txt:62 (SIM_ADD_PLUGIN)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /usr/src/trunk/cmake
4. Добавляю указанный код в SimPlugins.cmake, затем cmake ..
Код:
[root@simp cmake]# cmake ..
-- Found Flex: /usr/bin/flex
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Could NOT find ASPELL (missing: ASPELL_LIBRARIES ASPELL_INCLUDE_DIR)
-- Didn't find KDE3 headers
-- Didn't find KDE3 core library
-- Found KDE3 dcopidl preprocessor: /opt/kde3/bin/dcopidl
-- Found KDE3 dcopidl2cpp preprocessor: /opt/kde3/bin/dcopidl2cpp
-- Found KDE3 kconfig_compiler preprocessor: /opt/kde3/bin/kconfig_compiler
-- Using plugin __homedir
-- Using plugin _core
Using non-GPL icons
-- Using plugin __migrate
-- Using plugin navigate
-- Using plugin yahoo
-- Using plugin osd
-- Using plugin sound
-- Using plugin ontop
-- Using plugin weather
-- Using plugin filter
-- Using plugin styles
-- Using plugin proxy
-- Using plugin transparent
-- This plugin can only be used on windows or KDE
-- Using plugin spell
-- Cannot build spell plugin because aspell is missing on your system
-- Using plugin shortcuts
-- Using plugin action
-- Using plugin splash
-- Using plugin replace
-- Using plugin windock
-- Windock plugin can only be used on windows
-- Using plugin jabber
-- Using plugin zodiak
-- Using plugin livejournal
-- Using plugin icons
-- Using plugin background
-- Using plugin icq
-- Using plugin remote
-- Using plugin sms
-- Using plugin autoaway
-- Using plugin about
-- Using plugin msn
-- Using plugin floaty
-- Using plugin forward
-- Using plugin gpg
-- Using plugin update
-- Using plugin logger
-- Using plugin netmonitor
-- Using plugin dock
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/src/trunk/cmake
5. Далее make
Код:
Scanning dependencies of target sim
[ 8%] Building CXX object sim/CMakeFiles/sim.dir/sim.o
Linking CXX executable sim
libsim.so.0.0.0: undefined reference to `typeinfo for SIM::HTMLParser'
libsim.so.0.0.0: undefined reference to `SIM::HTMLParser::HTMLParser()'
libsim.so.0.0.0: undefined reference to `SIM::HTMLParser::parse(QString const&)'
libsim.so.0.0.0: undefined reference to `SIM::HTMLParser::~HTMLParser()'
collect2: выполнение ld завершилось с кодом возврата 1
make[2]: *** [sim/sim] Ошибка 1
make[1]: *** [sim/CMakeFiles/sim.dir/all] Ошибка 2
make: *** [all] Ошибка 2
Подскажите где ошибка?