devel@ where you _can_ ask
 help / color / mirror / Atom feed
From: "Евгений Ростовцев" <real.altlinux.org@gmail.com>
To: "devel@ where you _can_ ask" <devel-newbies@lists.altlinux.org>
Subject: Re: [newbies] Кто-нибудь знает что значит "undefined reference to" при сборке?
Date: Tue, 18 Sep 2012 18:28:12 +0700
Message-ID: <CAKCRA6LvWQmbn9tWeXzPk7p1swFSzhaD9t24-hfsA=jeZPOTAw@mail.gmail.com> (raw)
In-Reply-To: <1347960684.5846.0.camel@localhost.localdomain>

>> >> Дайте лучше ссылку на проект. Тут используется cmake, а его я не знаю.
>> >> Надо посмотреть поближе.
>> >
>> > https://launchpad.net/granite
>>
>> А спек?
>
> Не Уапрос =)))

Непонятно, ошибок линковки не наблюдается. Только конфиг проекта
содержит ошибки, вот небольшой фикс:

--- a/granite/lib/CMakeLists.txt
+++ b/granite/lib/CMakeLists.txt
@@ -17,7 +17,7 @@ set (DOLLAR "$")
 # You hear that? It's kittens being killed by the gods of cmake

 configure_file (${CMAKE_CURRENT_SOURCE_DIR}/${PKGNAME}.pc.cmake
${CMAKE_CURRENT_BINARY_DIR}
-install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${PKGNAME}.pc DESTINATION
${CMAKE_INSTALL_PREFIX
+install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${PKGNAME}.pc DESTINATION
${CMAKE_INSTALL_PREFIX
 # Check for the deps

 find_package(PkgConfig)
@@ -101,13 +101,13 @@ target_link_libraries(${PKGNAME}-static ${LIBS})
 # The library target "foo-static" has a default OUTPUT_NAME of
"foo-static", so change it.

 SET_TARGET_PROPERTIES(${PKGNAME}-static PROPERTIES OUTPUT_NAME ${PKGNAME})
-install (TARGETS ${PKGNAME}-static DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/)
+install (TARGETS ${PKGNAME}-static DESTINATION
${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/)
 endif(BUILD_STATIC MATCHES "Yes")
 set_target_properties (${PKGNAME} PROPERTIES
     VERSION ${GRANITE_VERSION}
     SOVERSION ${GRANITE_SOVERSION}
                        )
-install (TARGETS ${PKGNAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/)
+install (TARGETS ${PKGNAME} DESTINATION
${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/)

 macro(_list_prefix _outvar _listvar _prefix)
   set(${_outvar})


-- 
REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
ALT Linux team


  reply	other threads:[~2012-09-18 11:28 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-16 20:29 gBopHuk_alt
2012-09-17  2:34 ` Евгений Ростовцев
2012-09-17  6:44   ` gBopHuk_alt
2012-09-17  8:13     ` Евгений Ростовцев
2012-09-17  9:20       ` gBopHuk_alt
2012-09-17  9:26         ` Igor Zubkov
2012-09-17 13:08           ` gBopHuk_alt
2012-09-17 13:15             ` Igor Zubkov
2012-09-17 17:06               ` gBopHuk_alt
2012-09-18  2:34                 ` Евгений Ростовцев
2012-09-18  9:31                   ` gBopHuk_alt
2012-09-18 11:28                     ` Евгений Ростовцев [this message]
2012-09-18 11:30                       ` Евгений Ростовцев
2012-09-18 13:15                       ` gBopHuk_alt
2012-09-19  3:06                         ` Евгений Ростовцев
2012-09-19  3:10                         ` Евгений Ростовцев
2012-09-20  6:58                           ` gBopHuk_alt
2012-09-20  8:42                             ` Евгений Ростовцев
2012-09-20  9:23                               ` gBopHuk_alt
2012-09-20  9:49                                 ` Евгений Ростовцев
2012-09-20 10:46                                 ` Ivan A. Melnikov
2012-09-20 16:29                                   ` gBopHuk_alt
2012-09-20 16:34                                     ` Евгений Ростовцев
2012-09-20 16:37                                       ` Евгений Ростовцев
2012-09-20 19:07                                         ` gBopHuk_alt
2012-09-21  6:44                                           ` Евгений Ростовцев
2012-09-21  7:28                                             ` gBopHuk_alt
2012-09-21  7:45                                               ` Евгений Ростовцев
2012-09-20 19:01                                       ` gBopHuk_alt
2012-09-21  6:43                                         ` Евгений Ростовцев
2012-09-21  7:31                                           ` gBopHuk_alt
2012-09-21  7:46                                             ` Евгений Ростовцев
2012-09-21  8:50                                             ` Ivan A. Melnikov
2012-09-22 10:46                                               ` Michael Shigorin
2012-09-24 10:55                                               ` gBopHuk_alt
2012-09-17  9:52         ` Евгений Ростовцев
2012-09-17 10:12         ` Michael Shigorin
2012-09-17 11:21         ` Ivan A. Melnikov
2012-09-17 12:35           ` Евгений Ростовцев
2012-09-21 13:06 ` gBopHuk_alt
2012-09-22 10:46   ` Michael Shigorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKCRA6LvWQmbn9tWeXzPk7p1swFSzhaD9t24-hfsA=jeZPOTAw@mail.gmail.com' \
    --to=real.altlinux.org@gmail.com \
    --cc=devel-newbies@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

devel@ where you _can_ ask

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-newbies/0 devel-newbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-newbies devel-newbies/ http://lore.altlinux.org/devel-newbies \
		devel-newbies@lists.altlinux.org devel-newbies@lists.altlinux.ru devel-newbies@lists.altlinux.com
	public-inbox-index devel-newbies

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-newbies


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git