Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GLIB_VERSION_MIN_REQUIRED must be >= GLIB_VERSION_2_26 #3

Closed
chodorenko opened this issue Aug 19, 2016 · 4 comments
Closed

GLIB_VERSION_MIN_REQUIRED must be >= GLIB_VERSION_2_26 #3

chodorenko opened this issue Aug 19, 2016 · 4 comments

Comments

@chodorenko
Copy link

chodorenko commented Aug 19, 2016

Пытался собрать на SUSE Leap 42.1, все нужные библиотеки поставлены но при билде получаю ошибку не соотвествия версии glib2 просит минимум 2_26 , а у меня стоят 2.44

chodorenko@chodorenko-linux:/9/far2l.git/trunk/WinPort> make -f WinPort.mk
In file included from /usr/include/glib-2.0/glib/gtypes.h:34:0,
from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from KeyFileHelper.cpp:2:
/usr/include/glib-2.0/glib/gversionmacros.h:217:2: error: #error "GLIB_VERSION_MIN_REQUIRED must be >= GLIB_VERSION_2_26"
#error "GLIB_VERSION_MIN_REQUIRED must be >= GLIB_VERSION_2_26"
^
In file included from /usr/include/glib-2.0/glib/galloca.h:32:0,
from /usr/include/glib-2.0/glib.h:30,
from KeyFileHelper.cpp:2:
/usr/include/glib-2.0/glib/gtypes.h:446:2: error: #error unknown ENDIAN type
#error unknown ENDIAN type
^
WinPort.mk:272: ошибка выполнения рецепта для цели «Debug/KeyFileHelper.cpp.o.d»
make: *** [Debug/KeyFileHelper.cpp.o.d] Ошибка 1
chodorenko@chodorenko-linux:
/9/far2l.git/trunk/WinPort> rpm -qa | grep glib2
glib2-devel-2.44.1-2.3.x86_64
glib2-devel-32bit-2.44.1-2.3.x86_64
glib2-tools-32bit-2.44.1-2.3.x86_64
glib2-lang-2.44.1-2.3.noarch
glib2-tools-2.44.1-2.3.x86_64
libpackagekit-glib2-18-1.0.7-3.5.x86_64
libpackagekit-glib2-devel-1.0.7-3.5.x86_64

Также наблюдаю проблемы с кастами

./Main.cpp: In member function ‘wxString FixedFontLookup::Query()’:
./Main.cpp:246:62: error: invalid cast from type ‘wxString’ to type ‘const wchar_t_’
fprintf(stderr, "FixedFontLookup: %ls\n", (const wchar_t *)result);
^
./Main.cpp: In function ‘void InitializeFont(wxFrame
, wxFont&)’:
./Main.cpp:264:59: error: invalid cast from type ‘wxString’ to type ‘const wchar_t_’
printf("InitializeFont: used %ls\n", (const wchar_t )str);
^
./Main.cpp: In constructor ‘WinPortPanel::WinPortPanel(WinPortFrame_, const wxPoint&, const wxSize&)’:
./Main.cpp:304:73: error: invalid cast from type ‘wxString’ to type ‘const wchar_t

fprintf(stderr, "Font: '%ls' %s\n", (const wchar_t *)_font.GetFaceName(), _font.IsFixedWidth() ? "monospaced" : "not monospaced");
^

@elfmz
Copy link
Owner

elfmz commented Aug 19, 2016

а ща?

@lieff
Copy link
Contributor

lieff commented Aug 20, 2016

Нет, это fbb8e5c не правильно.
Нужно использовать pkg-config glib-2.0 --cflags вместо хардкодных путей. Вот я исправил:
lieff@d01365f
У меня на OpenSUSE мейком теперь собралось, не знаю можно ли в проект codelite так же в настройку путей встроить запуск pkg-config.

@elfmz
Copy link
Owner

elfmz commented Aug 20, 2016

ага спасибо, посмотрим что ща у chodorenko будет..

@chodorenko
Copy link
Author

Собралось нормально https://screencloud.net/v/tqE0
PS: Парни спасибо , это то что я ждал так долго

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants