<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Компиляция linphone]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=12495&amp;type=atom" />
	<updated>2011-04-13T16:59:06Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=12495</id>
		<entry>
			<title type="html"><![CDATA[Re: Компиляция linphone]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=168219#p168219" />
			<content type="html"><![CDATA[<p>Не видя системы и предыдущего резильтата, трудно сказать.<br />Там же есть сообщение, что не находится библиотека libspeexdsp,<br />вот и надо выяснить, есть ли она и где, а если её нет, то как<br />её получить. Там же в README.arm говорится, что дано сначала<br />скомпилировать этот speex.</p><p>Пётр.</p>]]></content>
			<author>
				<name><![CDATA[Peter]]></name>
				<uri>https://linuxforum.ru/profile.php?id=5246</uri>
			</author>
			<updated>2011-04-13T16:59:06Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=168219#p168219</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Компиляция linphone]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=168063#p168063" />
			<content type="html"><![CDATA[<p>не долго я радовался.<br /></p><div class="codebox"><pre><code>CXXLD  libmediastreamer.la
/usr/local/arm/3.3.2/lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux/bin/ld: cannot find -lspeexdsp
collect2: ld returned 1 exit status
make[5]: *** [libmediastreamer.la] Ошибка 1
make[5]: Leaving directory `/home/user/linphone-34/linphone-3.4.3/mediastreamer2/src&#039;
make[4]: *** [all] Ошибка 2
make[4]: Leaving directory `/home/user/linphone-34/linphone-3.4.3/mediastreamer2/src&#039;
make[3]: *** [all-recursive] Ошибка 1
make[3]: Leaving directory `/home/user/linphone-34/linphone-3.4.3/mediastreamer2&#039;
make[2]: *** [all] Ошибка 2
make[2]: Leaving directory `/home/user/linphone-34/linphone-3.4.3/mediastreamer2&#039;
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/home/user/linphone-34/linphone-3.4.3&#039;
make: *** [all] Ошибка 2</code></pre></div><p>Конфигурирую следующим образом:<br /></p><div class="codebox"><pre><code>./configure --prefix=/armbuild --host=arm-linux --with-gnu-ld --disable-static--disable-glib 
--with-osip=$ARM_INSTALL_TREE/usr     --with-readline=$ARM_INSTALL_TREE/usr         
SPEEX_CFLAGS=&quot;-I$ARM_INSTALL_TREE/usr/include&quot;         
SPEEX_LIBS=&quot;-L$ARM_INSTALL_TREE/usr/lib -lspeex&quot; --disable-video --disable-nls 
--enable-gtk_ui=no --disable-glib --enable-alsa=no</code></pre></div><p>я уже ничего не понимаю, откуда почему и как?</p>]]></content>
			<author>
				<name><![CDATA[jacuba]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16547</uri>
			</author>
			<updated>2011-04-13T09:36:29Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=168063#p168063</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Компиляция linphone]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=168003#p168003" />
			<content type="html"><![CDATA[<p>в поисках решения забрел на <a href="http://electronix.ru/redirect.php?http://blog.csdn.net/jj425161693/archive/2009/10/16/4674988.aspx">один китайский блог</a><br />Google Chrome помог мне перевести страницу, и если я правильно понял, то там советуют закоментировать ветку else в условии, но там говорится про файл msticker.с а у меня msfilter.c, но мне то же помогло. <em>Прошу поправить, если я понял не правильно.</em></p><p>не нравится мне эти операции с удалением строк из кода. <br />В общем ошибка пропала и появилась следующая, не помню точно содержание, но что-то про неопределенные SPEEX_PREPROCESS_GET_PSD_SIZE и SPEEX_PREPROCESS_GET_PSD. В этом же блоге было и решение - достаточно было добавить в файл mediastreamer2/src/msconf.c строки<br /></p><div class="codebox"><pre><code>#define SPEEX_PREPROCESS_GET_PSD_SIZE 34
#define SPEEX_PREPROCESS_GET_PSD 35</code></pre></div><p>Эти ошибки больше не возникают, появляются другие, но пока все решается.</p><p>Первый раз в жизни столкнулся с кросс-компиляцией и сразу же такой геморой. Кросс-компиляция всегда так тяжело проходит или мой случай исключительный?</p>]]></content>
			<author>
				<name><![CDATA[jacuba]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16547</uri>
			</author>
			<updated>2011-04-13T06:46:57Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=168003#p168003</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Компиляция linphone]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=167958#p167958" />
			<content type="html"><![CDATA[<p>Задам еще вопрос.<br />Компилирую linphone, получаю ошибку:<br /></p><div class="codebox"><pre><code>...
make  all-am
make[5]: Entering directory `/home/user/linphone-34/linphone-3.4.3/mediastreamer2/src&#039;
  CC     mscommon.lo
  CC     msfilter.lo
msfilter.c: In function `get_cur_time_ns&#039;:
msfilter.c:257: error: `CLOCK_MONOTONIC&#039; undeclared (first use in this function)
msfilter.c:257: error: (Each undeclared identifier is reported only once
msfilter.c:257: error: for each function it appears in.)
make[5]: *** [msfilter.lo] Ошибка 1
make[5]: Leaving directory `/home/user/linphone-34/linphone-3.4.3/mediastreamer2/src&#039;
make[4]: *** [all] Ошибка 2
make[4]: Leaving directory `/home/user/linphone-34/linphone-3.4.3/mediastreamer2/src&#039;
make[3]: *** [all-recursive] Ошибка 1
make[3]: Leaving directory `/home/user/linphone-34/linphone-3.4.3/mediastreamer2&#039;
make[2]: *** [all] Ошибка 2
make[2]: Leaving directory `/home/user/linphone-34/linphone-3.4.3/mediastreamer2&#039;
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/home/user/linphone-34/linphone-3.4.3&#039;
make: *** [all] Ошибка 2</code></pre></div><p>предполагаю, что если закоментировать и эти строки, то ошибка пропадет:) но это плохое решение. От чего возникают&nbsp; подобные ошибки?</p>]]></content>
			<author>
				<name><![CDATA[jacuba]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16547</uri>
			</author>
			<updated>2011-04-13T04:44:02Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=167958#p167958</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Компиляция linphone]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=167806#p167806" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>jacuba пишет:</cite><blockquote><p>Еще раз проверил все пути - понял, что linphone искал хидеры не там - поправил - частично помогло.<br />Большое спасибо, <strong>Peter</strong>.</p></blockquote></div><p>Да, это бывает и даже не очень редко. Я тоже сталкивался.</p><p>Пётр.</p>]]></content>
			<author>
				<name><![CDATA[Peter]]></name>
				<uri>https://linuxforum.ru/profile.php?id=5246</uri>
			</author>
			<updated>2011-04-12T16:28:52Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=167806#p167806</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Компиляция linphone]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=167686#p167686" />
			<content type="html"><![CDATA[<p>Я открыл файл b64.c и закоментировал строки 209-212.<br />Данная проблема решилась. Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[jacuba]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16547</uri>
			</author>
			<updated>2011-04-12T11:03:49Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=167686#p167686</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Компиляция linphone]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=167626#p167626" />
			<content type="html"><![CDATA[<p>Я добился того, что linphone сконфигурировался и теперь приступаю к компиляции:<br /></p><div class="codebox"><pre><code># make
...
libtool: compile:  arm-linux-gcc -DHAVE_CONFIG_H -I. -I.. -I../include/ -D_REENTRANT -I.. -g -O2 -Wall -Werror -DORTP_INET6 -MT b64.lo -MD -MP -MF .deps/b64.Tpo -c b64.c  -fPIC -DPIC -o .libs/b64.o
b64.c: In function `b64_encode_&#039;:
b64.c:209: warning: comparison is always true due to limited range of data type
b64.c:210: warning: comparison is always true due to limited range of data type
b64.c:211: warning: comparison is always true due to limited range of data type
b64.c:212: warning: comparison is always true due to limited range of data type
make[5]: *** [b64.lo] Ошибка 1
make[5]: Leaving directory `/root/arm1/linphone-3.4.3/oRTP/src&#039;
make[4]: *** [all-recursive] Ошибка 1
make[4]: Leaving directory `/root/arm1/linphone-3.4.3/oRTP/src&#039;
make[3]: *** [all-recursive] Ошибка 1
make[3]: Leaving directory `/root/arm1/linphone-3.4.3/oRTP&#039;
make[2]: *** [all] Ошибка 2
make[2]: Leaving directory `/root/arm1/linphone-3.4.3/oRTP&#039;
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/root/arm1/linphone-3.4.3&#039;
make: *** [all] Ошибка 2</code></pre></div><p>В какую сторону копать?</p>]]></content>
			<author>
				<name><![CDATA[jacuba]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16547</uri>
			</author>
			<updated>2011-04-12T06:26:56Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=167626#p167626</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Компиляция linphone]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=167600#p167600" />
			<content type="html"><![CDATA[<p>Еще раз проверил все пути - понял, что linphone искал хидеры не там - поправил - частично помогло.<br />Большое спасибо, <strong>Peter</strong>.</p>]]></content>
			<author>
				<name><![CDATA[jacuba]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16547</uri>
			</author>
			<updated>2011-04-12T04:54:18Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=167600#p167600</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Компиляция linphone]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=167435#p167435" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>jacuba пишет:</cite><blockquote><p>Поставил <em>libexosip2-4</em><br />Теперь при конфигурации linphone получаю уже<br /></p><div class="codebox"><pre><code>checking for eXosip2/eXosip.h... yes
checking for eXosip_subscribe_remove in -leXosip2... no
configure: error: Could not find eXosip2 library with version &gt;= 3.0.2 !</code></pre></div><p>Если я правильно понял, то&nbsp; libexosip2-4 &gt; libexosip2-3.0.2, так почему же линфон не видит этого установленного пакета?</p></blockquote></div><p>Не знаю. ВВедите<br /></p><div class="codebox"><pre><code>dpkg -p libexosip2-4</code></pre></div><p>там будет строка Version:<br />У меня она 3.3.0-1.</p><p>Пётр.</p>]]></content>
			<author>
				<name><![CDATA[Peter]]></name>
				<uri>https://linuxforum.ru/profile.php?id=5246</uri>
			</author>
			<updated>2011-04-11T17:00:13Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=167435#p167435</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Компиляция linphone]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=167133#p167133" />
			<content type="html"><![CDATA[<p>Поставил <em>libexosip2-4</em><br />Теперь при конфигурации linphone получаю уже<br /></p><div class="codebox"><pre><code>checking for eXosip2/eXosip.h... yes
checking for eXosip_subscribe_remove in -leXosip2... no
configure: error: Could not find eXosip2 library with version &gt;= 3.0.2 !</code></pre></div><p>Если я правильно понял, то&nbsp; libexosip2-4 &gt; libexosip2-3.0.2, так почему же линфон не видит этого установленного пакета?</p>]]></content>
			<author>
				<name><![CDATA[jacuba]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16547</uri>
			</author>
			<updated>2011-04-11T07:15:37Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=167133#p167133</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Компиляция linphone]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=165789#p165789" />
			<content type="html"><![CDATA[<p>А не пробовали установить пакет libexosip2-4?</p><p>Пётр.</p>]]></content>
			<author>
				<name><![CDATA[Peter]]></name>
				<uri>https://linuxforum.ru/profile.php?id=5246</uri>
			</author>
			<updated>2011-04-07T13:56:41Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=165789#p165789</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Компиляция linphone]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=165616#p165616" />
			<content type="html"><![CDATA[<p>Проблема решилась путем установки компилятора в /usr</p><p>Теперь при попытки конфигурирования самого libphone получаю сообщение:<br /></p><div class="codebox"><pre><code># ./configure --prefix=/usr --host=arm-linux --with-gnu-ld --disable-static \
        --disable-glib --with-osip=$ARM_INSTALL_TREE/usr \
    --with-readline=$ARM_INSTALL_TREE/usr \
        SPEEX_CFLAGS=&quot;-I$ARM_INSTALL_TREE/usr/include&quot; \
        SPEEX_LIBS=&quot;-L$ARM_INSTALL_TREE/usr/lib -lspeex &quot;

...
checking eXosip2/eXosip.h usability... no
checking eXosip2/eXosip.h presence... no
checking for eXosip2/eXosip.h... no
configure: error: Could not find eXosip2 headers !</code></pre></div><p>Делаю вывод, что хидеры не могут быть найдены потому что их просто нет.<br />Принимаю решение установить libexosip. Скачиваю и распаковываю.<br /></p><div class="codebox"><pre><code># cd ../libeXosip2-3.5.0/
# ./configure --prefix=/usr --host=arm-linux --with-gnu-ld --disable-static 
#  make 
...
eXosip.c: In function `_eXosip_transaction_init&#039;:
eXosip.c:76: error: `osip_srv_record_t&#039; undeclared (first use in this function)
eXosip.c:76: error: (Each undeclared identifier is reported only once
eXosip.c:76: error: for each function it appears in.)
eXosip.c:76: error: parse error before &quot;record&quot;
eXosip.c:84: error: `record&#039; undeclared (first use in this function)
eXosip.c:88: error: `OSIP_SUCCESS&#039; undeclared (first use in this function)
eXosip.c:90: warning: implicit declaration of function `osip_transaction_set_srv_record&#039;
eXosip.c: In function `eXosip_transaction_find&#039;:
eXosip.c:106: error: `OSIP_SUCCESS&#039; undeclared (first use in this function)
eXosip.c:110: error: `OSIP_NOTFOUND&#039; undeclared (first use in this function)
eXosip.c: In function `_eXosip_retry_with_auth&#039;:
eXosip.c:130: error: `OSIP_BADPARAMETER&#039; undeclared (first use in this function)
eXosip.c:134: error: `OSIP_UNDEFINED_ERROR&#039; undeclared (first use in this function)
eXosip.c:154: warning: passing arg 1 of `osip_list_get&#039; from incompatible pointer type
eXosip.c:160: error: `OSIP_SYNTAXERROR&#039; undeclared (first use in this function)
eXosip.c:1430: warning: passing arg 1 of `osip_list_add&#039; from incompatible pointer type
eXosip.c: In function `eXosip_update_top_via&#039;:
eXosip.c:1464: warning: passing arg 1 of `osip_list_get&#039; from incompatible pointer type
eXosip.c:1470: error: `OSIP_SYNTAXERROR&#039; undeclared (first use in this function)
eXosip.c:1487: error: `OSIP_SUCCESS&#039; undeclared (first use in this function)
make[2]: *** [eXosip.lo] Ошибка 1
make[2]: Leaving directory `/root/arm1/libeXosip2-3.5.0/src&#039;
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/root/arm1/libeXosip2-3.5.0&#039;
make: *** [all] Ошибка 2</code></pre></div><p>какова причина возникновения этих ошибок? Прошу у вас помощи.</p>]]></content>
			<author>
				<name><![CDATA[jacuba]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16547</uri>
			</author>
			<updated>2011-04-07T06:05:10Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=165616#p165616</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Компиляция linphone]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=165380#p165380" />
			<content type="html"><![CDATA[<p>Если уж есть права root, то я бы установил этот кросс-компилятор<br />в предопределённое место, в /usr/local/. Он ведь получен компиляцией,<br />а не установлен из пакета? Тогда проще потом будет обеспечивать<br />доступность и библиотек и бинарных и заголовочных файлов.</p><p>Т.е. для начала удалите его из $HOME и установите туда, куда он<br />устанавливается по умолчанию. Также configure и make надо вводить<br />от пользователя.</p><p>Пётр.</p>]]></content>
			<author>
				<name><![CDATA[Peter]]></name>
				<uri>https://linuxforum.ru/profile.php?id=5246</uri>
			</author>
			<updated>2011-04-06T13:50:04Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=165380#p165380</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Компиляция linphone]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=165292#p165292" />
			<content type="html"><![CDATA[<p>появилась еще одна проблема: при компиляции speex получаю следующее сообщение<br /></p><div class="codebox"><pre><code>root@debian:/home/user/arm1/speex-1.2beta2# make
make  all-recursive
make[1]: Entering directory `/home/user/arm1/speex-1.2beta2&#039;
Making all in libspeex
make[2]: Entering directory `/home/user/arm1/speex-1.2beta2/libspeex&#039;
/bin/bash ../libtool --mode=link arm-unknown-linux-uclibcgnueabi-gcc  -g -O2   -o testenc  testenc.o libspeex.la -lm 
arm-unknown-linux-uclibcgnueabi-gcc -g -O2 -o .libs/testenc testenc.o  ./.libs/libspeex.so -lm
testenc.o: In function `fprintf&#039;:
/usr/include/bits/stdio2.h:98: undefined reference to `__fprintf_chk&#039;
/usr/include/bits/stdio2.h:98: undefined reference to `__fprintf_chk&#039;
/usr/include/bits/stdio2.h:98: undefined reference to `__fprintf_chk&#039;
./.libs/libspeex.so: undefined reference to `__printf_chk&#039;
collect2: ld returned 1 exit status
make[2]: *** [testenc] Ошибка 1
make[2]: Leaving directory `/home/user/arm1/speex-1.2beta2/libspeex&#039;
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/home/user/arm1/speex-1.2beta2&#039;
make: *** [all] Ошибка 2</code></pre></div><p>гугл вообще ничего про это не знает oO <br />уважаемые, помогите разобраться.</p>]]></content>
			<author>
				<name><![CDATA[jacuba]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16547</uri>
			</author>
			<updated>2011-04-06T11:10:54Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=165292#p165292</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Компиляция linphone]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=165158#p165158" />
			<content type="html"><![CDATA[<p>если начать выполнять все манипуляции от лица суперпользователя, т.е.</p><div class="codebox"><pre><code>$ su 
Пароль: 
# </code></pre></div><p>то подобных ошибок не появляется. <br />Остановился на этом решении.</p>]]></content>
			<author>
				<name><![CDATA[jacuba]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16547</uri>
			</author>
			<updated>2011-04-06T06:54:49Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=165158#p165158</id>
		</entry>
</feed>
