Программа существует для двух сборок:
Qt и GTK
Если я пытаюсь собрать для GTK, то пишется следующее, после команды gmake
linux:/home/boron/Desktop/er-dict-gtk-0.23 # gmake
gcc -c -pipe -Wall -W `pkg-config --cflags gtk+-2.0` -o obj/main.o src/main.c
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
src/main.c:26:21: error: gtk/gtk.h: Нет такого файла или каталога
In file included from src/main.c:28:
src/dict.h:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/dict.h:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/dict.h:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/dict.h:32: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/dict.h:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dict_search_mode’
src/dict.h:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/dict.h:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dict_lines’
src/dict.h:39: warning: type defaults to ‘int’ in declaration of ‘gchar’
src/dict.h:39: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
src/dict.h:40: warning: parameter names (without types) in function declaration
src/dict.h:41: error: expected declaration specifiers or ‘...’ before ‘gchar’
src/dict.h:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘chech_duplicated_entries’
src/dict.h:47: error: expected ‘)’ before ‘*’ token
src/dict.h:50: error: expected ‘)’ before ‘*’ token
src/main.c: In function ‘main’:
src/main.c:51: error: ‘GtkWidget’ undeclared (first use in this function)
src/main.c:51: error: (Each undeclared identifier is reported only once
src/main.c:51: error: for each function it appears in.)
src/main.c:51: error: ‘window’ undeclared (first use in this function)
src/main.c:51: error: ‘hbox’ undeclared (first use in this function)
src/main.c:51: warning: left-hand operand of comma expression has no effect
src/main.c:51: error: ‘vbox’ undeclared (first use in this function)
src/main.c:51: warning: left-hand operand of comma expression has no effect
src/main.c:51: warning: statement with no effect
src/main.c:52: error: ‘menu’ undeclared (first use in this function)
src/main.c:52: error: ‘menu_bar’ undeclared (first use in this function)
src/main.c:52: warning: left-hand operand of comma expression has no effect
src/main.c:52: error: ‘root_menu’ undeclared (first use in this function)
src/main.c:52: warning: left-hand operand of comma expression has no effect
src/main.c:52: error: ‘menu_item’ undeclared (first use in this function)
src/main.c:52: warning: left-hand operand of comma expression has no effect
src/main.c:52: warning: statement with no effect
src/main.c:53: error: ‘label’ undeclared (first use in this function)
src/main.c:53: error: ‘button’ undeclared (first use in this function)
src/main.c:53: warning: left-hand operand of comma expression has no effect
src/main.c:53: warning: statement with no effect
src/main.c:54: error: ‘text_view’ undeclared (first use in this function)
src/main.c:54: error: ‘scroll’ undeclared (first use in this function)
src/main.c:54: warning: left-hand operand of comma expression has no effect
src/main.c:54: warning: statement with no effect
src/main.c:55: error: ‘GtkEntryCompletion’ undeclared (first use in this function)
src/main.c:55: error: ‘completion’ undeclared (first use in this function)
src/main.c:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/main.c:56: error: ‘list’ undeclared (first use in this function)
src/main.c:58: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/main.c:58: error: ‘dict_text_buffer’ undeclared (first use in this function)
src/main.c:61: error: ‘gint’ undeclared (first use in this function)
src/main.c:61: error: expected ‘;’ before ‘c’
src/main.c:62: error: expected ‘;’ before ‘args’
src/main.c:63: error: ‘gchar’ undeclared (first use in this function)
src/main.c:63: error: ‘wordbase’ undeclared (first use in this function)
src/main.c:65: error: expected expression before ‘)’ token
src/main.c:69: error: ‘c’ undeclared (first use in this function)
src/main.c:81: error: ‘args’ undeclared (first use in this function)
src/main.c:93: error: too many arguments to function ‘dict_usage’
src/main.c:108: error: too many arguments to function ‘dict_usage’
src/main.c:111: warning: implicit declaration of function ‘gtk_init’
src/main.c:113: warning: implicit declaration of function ‘gtk_window_new’
src/main.c:113: error: ‘GTK_WINDOW_TOPLEVEL’ undeclared (first use in this function)
src/main.c:114: warning: implicit declaration of function ‘gtk_window_set_default_size’
src/main.c:114: warning: implicit declaration of function ‘GTK_WINDOW’
src/main.c:115: warning: implicit declaration of function ‘gtk_window_set_title’
src/main.c:116: warning: implicit declaration of function ‘g_signal_connect’
src/main.c:116: warning: implicit declaration of function ‘G_CALLBACK’
src/main.c:118: warning: implicit declaration of function ‘gtk_vbox_new’
src/main.c:118: error: ‘FALSE’ undeclared (first use in this function)
src/main.c:119: warning: implicit declaration of function ‘gtk_container_add’
src/main.c:119: warning: implicit declaration of function ‘GTK_CONTAINER’
src/main.c:121: warning: implicit declaration of function ‘gtk_menu_new’
src/main.c:122: warning: implicit declaration of function ‘gtk_menu_bar_new’
src/main.c:123: warning: implicit declaration of function ‘gtk_box_pack_start’
src/main.c:123: warning: implicit declaration of function ‘GTK_BOX’
src/main.c:126: warning: implicit declaration of function ‘gtk_menu_item_new_with_label’
src/main.c:127: warning: implicit declaration of function ‘gtk_menu_shell_append’
src/main.c:127: warning: implicit declaration of function ‘GTK_MENU_SHELL’
src/main.c:128: warning: implicit declaration of function ‘g_signal_connect_swapped’
src/main.c:128: warning: implicit declaration of function ‘G_OBJECT’
src/main.c:136: warning: implicit declaration of function ‘gtk_separator_menu_item_new’
src/main.c:145: warning: implicit declaration of function ‘gtk_menu_item_set_submenu’
src/main.c:145: warning: implicit declaration of function ‘GTK_MENU_ITEM’
src/main.c:151: warning: implicit declaration of function ‘gtk_check_menu_item_new_with_label’
src/main.c:171: error: ‘gpointer’ undeclared (first use in this function)
src/main.c:171: error: expected ‘)’ before numeric constant
src/main.c:178: warning: implicit declaration of function ‘gtk_hbox_new’
src/main.c:181: warning: implicit declaration of function ‘gtk_label_new’
src/main.c:184: warning: implicit declaration of function ‘gtk_entry_completion_new’
src/main.c:186: warning: implicit declaration of function ‘gtk_list_store_new’
src/main.c:186: error: ‘G_TYPE_STRING’ undeclared (first use in this function)
src/main.c:187: warning: implicit declaration of function ‘gtk_entry_completion_set_model’
src/main.c:187: warning: implicit declaration of function ‘GTK_TREE_MODEL’
src/main.c:188: warning: implicit declaration of function ‘gtk_entry_completion_set_text_column’
src/main.c:190: error: ‘dict_word’ undeclared (first use in this function)
src/main.c:190: warning: implicit declaration of function ‘gtk_combo_box_entry_new_with_model’
src/main.c:191: warning: implicit declaration of function ‘gtk_entry_set_completion’
src/main.c:191: warning: implicit declaration of function ‘GTK_ENTRY’
src/main.c:191: warning: implicit declaration of function ‘GTK_BIN’
src/main.c:191: error: invalid type argument of ‘->’
src/main.c:193: warning: implicit declaration of function ‘gtk_entry_set_max_length’
src/main.c:193: error: invalid type argument of ‘->’
src/main.c:194: warning: implicit declaration of function ‘g_object_unref’
src/main.c:196: error: invalid type argument of ‘->’
src/main.c:198: error: ‘TRUE’ undeclared (first use in this function)
src/main.c:200: warning: implicit declaration of function ‘gtk_button_new_from_stock’
src/main.c:200: error: ‘GTK_STOCK_FIND’ undeclared (first use in this function)
src/main.c:205: warning: implicit declaration of function ‘gtk_scrolled_window_new’
src/main.c:206: warning: implicit declaration of function ‘gtk_scrolled_window_set_policy’
src/main.c:207: warning: implicit declaration of function ‘GTK_SCROLLED_WINDOW’
src/main.c:208: error: ‘GTK_POLICY_AUTOMATIC’ undeclared (first use in this function)
src/main.c:214: warning: implicit declaration of function ‘gtk_text_view_new’
src/main.c:216: warning: implicit declaration of function ‘gtk_text_view_set_wrap_mode’
src/main.c:216: warning: implicit declaration of function ‘GTK_TEXT_VIEW’
src/main.c:216: error: ‘GTK_WRAP_WORD’ undeclared (first use in this function)
src/main.c:217: warning: implicit declaration of function ‘gtk_text_view_set_pixels_below_lines’
src/main.c:218: warning: implicit declaration of function ‘gtk_text_view_set_editable’
src/main.c:219: warning: implicit declaration of function ‘gtk_text_view_get_buffer’
src/main.c:221: warning: implicit declaration of function ‘gtk_widget_show_all’
src/main.c:223: error: ‘dict_content’ undeclared (first use in this function)
src/main.c:226: warning: implicit declaration of function ‘dict_message_box’
src/main.c:228: warning: implicit declaration of function ‘gtk_main’
gmake: *** [obj/main.o] Ошибка 1
А если я пытаюсь компелировать для Qt, то пишется следующее
linux:/home/boron/Desktop/er-dict0.31b # make
qmake -o Makefile dictionary.pro
make: qmake: Команда не найдена
make: *** [Makefile] Ошибка 127
Помогите пожалуйста установить программу... В чем может быть проблема?