<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Авионика и Софт &mdash; Проблема при компилировании библиотеки под Linux]]></title>
	<link rel="self" href="http://www.forum.aviosoft.ru/extern.php?action=feed&amp;tid=45&amp;type=atom" />
	<updated>2016-06-30T12:51:21Z</updated>
	<generator>PunBB</generator>
	<id>http://www.forum.aviosoft.ru/viewtopic.php?id=45</id>
		<entry>
			<title type="html"><![CDATA[Re: Проблема при компилировании библиотеки под Linux]]></title>
			<link rel="alternate" href="http://www.forum.aviosoft.ru/viewtopic.php?pid=143#p143" />
			<content type="html"><![CDATA[<p>Короче, фиг его знает почему это так, сделал все заново, начиная с Вашего QT проекта, в итоге все компилируется нормально, отображается без искажений.</p>]]></content>
			<author>
				<name><![CDATA[gluhow]]></name>
				<uri>http://www.forum.aviosoft.ru/profile.php?id=45</uri>
			</author>
			<updated>2016-06-30T12:51:21Z</updated>
			<id>http://www.forum.aviosoft.ru/viewtopic.php?pid=143#p143</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проблема при компилировании библиотеки под Linux]]></title>
			<link rel="alternate" href="http://www.forum.aviosoft.ru/viewtopic.php?pid=142#p142" />
			<content type="html"><![CDATA[<p>Исправил, но к сожалению проблема осталась</p>]]></content>
			<author>
				<name><![CDATA[gluhow]]></name>
				<uri>http://www.forum.aviosoft.ru/profile.php?id=45</uri>
			</author>
			<updated>2016-06-30T10:37:43Z</updated>
			<id>http://www.forum.aviosoft.ru/viewtopic.php?pid=142#p142</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проблема при компилировании библиотеки под Linux]]></title>
			<link rel="alternate" href="http://www.forum.aviosoft.ru/viewtopic.php?pid=141#p141" />
			<content type="html"><![CDATA[<p>Здравствуйте!<br />Некоторое время назад мы отказались от типа <em>long</em> в создаваемом программном коде. Вам необходимо файлы <em>FontMngr.h</em> и <em>SymbolCreator.h</em> заменить на те, что находятся в проекте <em>CGFormatPro2.X.Test.Linux-x64.Qt.OpenGL</em>. А для блока в конце файла <em>font_api.cpp</em> использовать:<br /></p><div class="codebox"><pre><code>int/*bool*/ BGLCreateFont(char const *facename, int32 size, int/*bool*/ bold, int/*bool*/ italic, struct BGLFont *fnt/*out*/)
{    extern int32 g_bgl_dpi;    /* значение DPI монитора в системе на момент генерации кода */
    return m_FontMngr.AddFont(facename,size,g_bgl_dpi,bold!=0,italic!=0,fnt);
}
float32 BGLCalcTextLengthA(int32 font, char_mb const *text, int/*bool*/ smooth)        /* определение длины текстовой строки в пикселях */
{    return m_FontMngr.GetLength(font,text,smooth!=0);
}
float32 BGLCalcTextLengthW(int32 font, char_un const *text, int/*bool*/ smooth)        /* определение длины текстовой строки в пикселях */
{    return m_FontMngr.GetLength(font,text,smooth!=0);
}
struct BGLChar const *BGLGetChar(int32 font, char_un ch, int/*bool*/ smooth)
{    return m_FontMngr.GetChar(font,(wchar_t)ch,smooth!=0);
}
void BGLDestroyFonts(void)
{    m_FontMngr.Destroy();
}
/**/
int/*bool*/ BGLCreateSymbol(wchar_t const *path, int/*bool*/ useColorKey, uint32 colorKey, struct BGLSymbol *smb/*out*/)
{    return SymbolCreator().Add(path,useColorKey!=0,colorKey,smb);
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Admin]]></name>
				<uri>http://www.forum.aviosoft.ru/profile.php?id=2</uri>
			</author>
			<updated>2016-06-30T09:25:12Z</updated>
			<id>http://www.forum.aviosoft.ru/viewtopic.php?pid=141#p141</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Проблема при компилировании библиотеки под Linux]]></title>
			<link rel="alternate" href="http://www.forum.aviosoft.ru/viewtopic.php?pid=140#p140" />
			<content type="html"><![CDATA[<p>Сейчас хотел упростить компилирование библиотек .so приборов. По идее мы должны указать нашей программе папку с исходными кодами, а она дальше сама их компилирует и сразу отображает, поэтому и пробую минимизировать количество операций. В итоге вылезла странная вещь:<br />В файле GraphLibOGL.h описания функций<br /></p><div class="codebox"><pre><code>int/*bool*/  BGLCreateFont(char const *facename, int32 size, int/*bool*/ bold, int/*bool*/ italic, struct BGLFont *fnt/*out*/)
float32 BGLCalcTextLengthW(int32 font, char_un const *text, int/*bool*/ smooth)   /* определение длины текстовой строки в пикселях для unicode */
struct BGLChar const *BGLGetChar(int32 font, char_un ch, int/*bool*/ smooth)</code></pre></div><p>не соответствуют функциям из файла font_api.cpp<br /></p><div class="codebox"><pre><code>long/*bool*/ BGLCreateFont(char const *facename, long size, long/*bool*/ bold, long/*bool*/ italic, struct BGLFont *fnt/*out*/)
float BGLCalcTextLengthW(long font, char_un const *text, long/*bool*/ smooth)        /* определение длины текстовой строки в пикселях */
struct BGLChar const *BGLGetChar(long font, char_un ch, long/*bool*/ smooth)</code></pre></div><p>После исправления описаний на одинаковые, всё компилируется нормально, но шрифт отображается с искажениями. См. приложение. Причину которых я пока так и не понял.&nbsp; <br />Специально ли сделано несоответствие описаний? В какую сторону копать со шрифтом?</p>]]></content>
			<author>
				<name><![CDATA[gluhow]]></name>
				<uri>http://www.forum.aviosoft.ru/profile.php?id=45</uri>
			</author>
			<updated>2016-06-30T07:35:04Z</updated>
			<id>http://www.forum.aviosoft.ru/viewtopic.php?pid=140#p140</id>
		</entry>
</feed>
