GladeVCP и PyVCP для начинающих

Обсуждение установки, настройки и использования LinuxCNC. Вопросы по Gкоду.
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: GladeVCP и PyVCP для начинающих

Сообщение Nick »

Диалоги надо по другому показывать, его надо не просто показать - его надо запустить.
попробуй run().
http://www.pygtk.org/docs/pygtk/class-g ... ialog--run
nkp
Мастер
Сообщения: 8340
Зарегистрирован: 28 ноя 2011, 00:25
Репутация: 1589
Контактная информация:

Re: GladeVCP и PyVCP для начинающих

Сообщение nkp »

вот glade файл Gscreen
gscreen.glade
(177.97 КБ) 861 скачивание
а вот так он открывается в Glade и с Lcnc
Выделение(015).jpg (2762 просмотра) <a class='original' href='./download/file.php?id=10983&sid=dc4becef125c91f7cbe23784d93f55cc&mode=view' target=_blank>Загрузить оригинал (417.34 КБ)</a>
Выделение(016).jpg (2762 просмотра) <a class='original' href='./download/file.php?id=10984&sid=dc4becef125c91f7cbe23784d93f55cc&mode=view' target=_blank>Загрузить оригинал (68.98 КБ)</a>
и некоторые виджеты отсутствуют в Glade
вот например если открыть glade файл в текстовом редакторе-
то имеется :

Код: Выделить всё

<object class="ToolEdit" id="tooledit1">
а в Glade такого нет:
Выделение(017).jpg (2762 просмотра) <a class='original' href='./download/file.php?id=10985&sid=dc4becef125c91f7cbe23784d93f55cc&mode=view' target=_blank>Загрузить оригинал (189.45 КБ)</a>
как такое может быть ???
===============
у меня Gtk 2.20
nkp
Мастер
Сообщения: 8340
Зарегистрирован: 28 ноя 2011, 00:25
Репутация: 1589
Контактная информация:

Re: GladeVCP и PyVCP для начинающих

Сообщение nkp »

попытался поставить Glade 3.8 (последняя версия под gtk 2)
не получается - вот ошибка:
(для просмотра содержимого нажмите на ссылку)

Код: Выделить всё

nkp@nkp-desktop:~/glade3-3.8.0$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether NLS is requested... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for intltool >= 0.35.0... 0.41.0 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.10.1
checking for XML::Parser... ok
checking for glib-genmarshal... /usr/bin/glib-genmarshal
checking for dlltool... no
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether make sets $(MAKE)... (cached) yes
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether gcc understands -Wno-sign-compare... yes
checking what warning flags to pass to the C compiler... -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare
checking what language compliance flags to pass to the C compiler... 
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking how to copy va_list... va_copy
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gtkdoc-check... no
checking for gtkdoc-rebase... no
checking for gtkdoc-mkpdf... no
checking whether to build gtk-doc documentation... no
checking for GTK... yes
checking for gtk_print_unix_dialog_new... yes
checking for GNOME... no
checking for PYGTK... yes
checking for python... /usr/bin/python
checking for python version... 2.6
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.6/dist-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.6/dist-packages
checking for headers required to compile python extensions... found
checking for libraries required to embed python... yes
checking gnome-doc-utils >= 0.9.0... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating data/gladeui-1.0.pc
config.status: creating data/glade-3.desktop.in
config.status: creating data/Makefile
config.status: creating data/icons/Makefile
config.status: creating data/icons/hicolor/Makefile
config.status: creating data/icons/hicolor/16x16/Makefile
config.status: creating data/icons/hicolor/16x16/apps/Makefile
config.status: creating data/icons/hicolor/22x22/Makefile
config.status: creating data/icons/hicolor/22x22/apps/Makefile
config.status: creating data/icons/hicolor/24x24/Makefile
config.status: creating data/icons/hicolor/24x24/apps/Makefile
config.status: creating data/icons/hicolor/32x32/Makefile
config.status: creating data/icons/hicolor/32x32/apps/Makefile
config.status: creating data/icons/hicolor/48x48/Makefile
config.status: creating data/icons/hicolor/48x48/apps/Makefile
config.status: creating data/icons/hicolor/scalable/Makefile
config.status: creating data/icons/hicolor/scalable/apps/Makefile
config.status: creating gladeui/Makefile
config.status: creating gladeui/gladeui.rc
config.status: creating src/Makefile
config.status: creating src/glade-3.rc
config.status: creating plugins/Makefile
config.status: creating plugins/gtk+/Makefile
config.status: creating plugins/gtk+/icons/Makefile
config.status: creating plugins/gtk+/icons/16x16/Makefile
config.status: creating plugins/gtk+/icons/22x22/Makefile
config.status: creating plugins/gnome/Makefile
config.status: creating plugins/gnome/icons/Makefile
config.status: creating plugins/gnome/icons/16x16/Makefile
config.status: creating plugins/gnome/icons/22x22/Makefile
config.status: creating plugins/python/Makefile
config.status: creating po/Makefile.in
config.status: creating doc/Makefile
config.status: creating doc/version.xml
config.status: creating help/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands


Configuration:

	Source code location:	 .
	Compiler:		 gcc
	GTK+ UNIX Print Widgets: yes
	GNOME UI Widgets:	 no
	PYTHON Widgets support:	 yes

	Build Reference Manual:  no
	Build User Manual:       yes

nkp@nkp-desktop:~/glade3-3.8.0$ make
make  all-recursive
make[1]: Вход в каталог `/home/nkp/glade3-3.8.0'
Making all in po
make[2]: Вход в каталог `/home/nkp/glade3-3.8.0/po'
make[2]: Цель `all' не требует выполнения команд.
make[2]: Выход из каталога `/home/nkp/glade3-3.8.0/po'
Making all in data
make[2]: Вход в каталог `/home/nkp/glade3-3.8.0/data'
Making all in icons
make[3]: Вход в каталог `/home/nkp/glade3-3.8.0/data/icons'
Making all in hicolor
make[4]: Вход в каталог `/home/nkp/glade3-3.8.0/data/icons/hicolor'
Making all in 16x16
make[5]: Вход в каталог `/home/nkp/glade3-3.8.0/data/icons/hicolor/16x16'
Making all in apps
make[6]: Вход в каталог `/home/nkp/glade3-3.8.0/data/icons/hicolor/16x16/apps'
make[6]: Цель `all' не требует выполнения команд.
make[6]: Выход из каталога `/home/nkp/glade3-3.8.0/data/icons/hicolor/16x16/apps'
make[6]: Вход в каталог `/home/nkp/glade3-3.8.0/data/icons/hicolor/16x16'
make[6]: Цель `all-am' не требует выполнения команд.
make[6]: Выход из каталога `/home/nkp/glade3-3.8.0/data/icons/hicolor/16x16'
make[5]: Выход из каталога `/home/nkp/glade3-3.8.0/data/icons/hicolor/16x16'
Making all in 22x22
make[5]: Вход в каталог `/home/nkp/glade3-3.8.0/data/icons/hicolor/22x22'
Making all in apps
make[6]: Вход в каталог `/home/nkp/glade3-3.8.0/data/icons/hicolor/22x22/apps'
make[6]: Цель `all' не требует выполнения команд.
make[6]: Выход из каталога `/home/nkp/glade3-3.8.0/data/icons/hicolor/22x22/apps'
make[6]: Вход в каталог `/home/nkp/glade3-3.8.0/data/icons/hicolor/22x22'
make[6]: Цель `all-am' не требует выполнения команд.
make[6]: Выход из каталога `/home/nkp/glade3-3.8.0/data/icons/hicolor/22x22'
make[5]: Выход из каталога `/home/nkp/glade3-3.8.0/data/icons/hicolor/22x22'
Making all in 24x24
make[5]: Вход в каталог `/home/nkp/glade3-3.8.0/data/icons/hicolor/24x24'
Making all in apps
make[6]: Вход в каталог `/home/nkp/glade3-3.8.0/data/icons/hicolor/24x24/apps'
make[6]: Цель `all' не требует выполнения команд.
make[6]: Выход из каталога `/home/nkp/glade3-3.8.0/data/icons/hicolor/24x24/apps'
make[6]: Вход в каталог `/home/nkp/glade3-3.8.0/data/icons/hicolor/24x24'
make[6]: Цель `all-am' не требует выполнения команд.
make[6]: Выход из каталога `/home/nkp/glade3-3.8.0/data/icons/hicolor/24x24'
make[5]: Выход из каталога `/home/nkp/glade3-3.8.0/data/icons/hicolor/24x24'
Making all in 32x32
make[5]: Вход в каталог `/home/nkp/glade3-3.8.0/data/icons/hicolor/32x32'
Making all in apps
make[6]: Вход в каталог `/home/nkp/glade3-3.8.0/data/icons/hicolor/32x32/apps'
make[6]: Цель `all' не требует выполнения команд.
make[6]: Выход из каталога `/home/nkp/glade3-3.8.0/data/icons/hicolor/32x32/apps'
make[6]: Вход в каталог `/home/nkp/glade3-3.8.0/data/icons/hicolor/32x32'
make[6]: Цель `all-am' не требует выполнения команд.
make[6]: Выход из каталога `/home/nkp/glade3-3.8.0/data/icons/hicolor/32x32'
make[5]: Выход из каталога `/home/nkp/glade3-3.8.0/data/icons/hicolor/32x32'
Making all in 48x48
make[5]: Вход в каталог `/home/nkp/glade3-3.8.0/data/icons/hicolor/48x48'
Making all in apps
make[6]: Вход в каталог `/home/nkp/glade3-3.8.0/data/icons/hicolor/48x48/apps'
make[6]: Цель `all' не требует выполнения команд.
make[6]: Выход из каталога `/home/nkp/glade3-3.8.0/data/icons/hicolor/48x48/apps'
make[6]: Вход в каталог `/home/nkp/glade3-3.8.0/data/icons/hicolor/48x48'
make[6]: Цель `all-am' не требует выполнения команд.
make[6]: Выход из каталога `/home/nkp/glade3-3.8.0/data/icons/hicolor/48x48'
make[5]: Выход из каталога `/home/nkp/glade3-3.8.0/data/icons/hicolor/48x48'
Making all in scalable
make[5]: Вход в каталог `/home/nkp/glade3-3.8.0/data/icons/hicolor/scalable'
Making all in apps
make[6]: Вход в каталог `/home/nkp/glade3-3.8.0/data/icons/hicolor/scalable/apps'
make[6]: Цель `all' не требует выполнения команд.
make[6]: Выход из каталога `/home/nkp/glade3-3.8.0/data/icons/hicolor/scalable/apps'
make[6]: Вход в каталог `/home/nkp/glade3-3.8.0/data/icons/hicolor/scalable'
make[6]: Цель `all-am' не требует выполнения команд.
make[6]: Выход из каталога `/home/nkp/glade3-3.8.0/data/icons/hicolor/scalable'
make[5]: Выход из каталога `/home/nkp/glade3-3.8.0/data/icons/hicolor/scalable'
make[5]: Вход в каталог `/home/nkp/glade3-3.8.0/data/icons/hicolor'
make[5]: Цель `all-am' не требует выполнения команд.
make[5]: Выход из каталога `/home/nkp/glade3-3.8.0/data/icons/hicolor'
make[4]: Выход из каталога `/home/nkp/glade3-3.8.0/data/icons/hicolor'
make[4]: Вход в каталог `/home/nkp/glade3-3.8.0/data/icons'
make[4]: Цель `all-am' не требует выполнения команд.
make[4]: Выход из каталога `/home/nkp/glade3-3.8.0/data/icons'
make[3]: Выход из каталога `/home/nkp/glade3-3.8.0/data/icons'
make[3]: Вход в каталог `/home/nkp/glade3-3.8.0/data'
LC_ALL=C /usr/bin/intltool-merge -d -u -c ../po/.intltool-merge-cache ../po glade-3.desktop.in glade-3.desktop
Found cached translation database
Merging translations into glade-3.desktop.
make[3]: Выход из каталога `/home/nkp/glade3-3.8.0/data'
make[2]: Выход из каталога `/home/nkp/glade3-3.8.0/data'
Making all in gladeui
make[2]: Вход в каталог `/home/nkp/glade3-3.8.0/gladeui'
make  all-am
make[3]: Вход в каталог `/home/nkp/glade3-3.8.0/gladeui'
  CC     libgladeui_1_la-glade-base-editor.lo
glade-base-editor.c: In function ‘glade_base_editor_treeview_key_press_event’:
glade-base-editor.c:942: error: ‘GDK_KEY_Delete’ undeclared (first use in this function)
glade-base-editor.c:942: error: (Each undeclared identifier is reported only once
glade-base-editor.c:942: error: for each function it appears in.)
glade-base-editor.c: In function ‘glade_base_editor_set_container’:
glade-base-editor.c:1240: warning: implicit declaration of function ‘g_object_notify_by_pspec’
glade-base-editor.c:1240: warning: nested extern declaration of ‘g_object_notify_by_pspec’
glade-base-editor.c: In function ‘glade_base_editor_class_init’:
glade-base-editor.c:1498: warning: implicit declaration of function ‘g_object_class_install_properties’
glade-base-editor.c:1498: warning: nested extern declaration of ‘g_object_class_install_properties’
make[3]: *** [libgladeui_1_la-glade-base-editor.lo] Ошибка 1
make[3]: Выход из каталога `/home/nkp/glade3-3.8.0/gladeui'
make[2]: *** [all] Ошибка 2
make[2]: Выход из каталога `/home/nkp/glade3-3.8.0/gladeui'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Выход из каталога `/home/nkp/glade3-3.8.0'
make: *** [all] Ошибка 2
nkp@nkp-desktop:~/glade3-3.8.0$ 
нашел было deb пакет - тоже не стал (ошибку не скопировал)
как его победить????
nkp
Мастер
Сообщения: 8340
Зарегистрирован: 28 ноя 2011, 00:25
Репутация: 1589
Контактная информация:

Re: GladeVCP и PyVCP для начинающих

Сообщение nkp »

nkp писал(а):некоторые виджеты отсутствуют в Glade
tooledit добавлен в gscreen :
gladevcp.rar
(5.15 КБ) 414 скачиваний
поэтому я его сразу и не "обнаружил"...)))
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: GladeVCP и PyVCP для начинающих

Сообщение Nick »

Да, можно виджеты и вручную прописывать. Я кстати так и делал, когда писал gui для своих программ. В этом основная прелесть gtk - можно писать GUI вручную.
nkp
Мастер
Сообщения: 8340
Зарегистрирован: 28 ноя 2011, 00:25
Репутация: 1589
Контактная информация:

Re: GladeVCP и PyVCP для начинающих

Сообщение nkp »

еще вопрос: диалоговому окну можно как то задать координаты
а то там есть "только по центру" и с курсором вариант не подходит (его нет)
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: GladeVCP и PyVCP для начинающих

Сообщение Nick »

dialog - это потомок gtk.window - значит ничто от gtk.window ему не чуждо :)

http://www.pygtk.org/docs/pygtk/class-g ... ndow--move

А зачем его перемещать?
nkp
Мастер
Сообщения: 8340
Зарегистрирован: 28 ноя 2011, 00:25
Репутация: 1589
Контактная информация:

Re: GladeVCP и PyVCP для начинающих

Сообщение nkp »

Nick писал(а):А зачем его перемещать?
ну гораздо удобней когда они будут в углу ,а не по
центру в gremlin
один из диалогов будет для настройки того же gremlin
а так по центру окошко закрывает и отображение траектории и инструмент
nkp
Мастер
Сообщения: 8340
Зарегистрирован: 28 ноя 2011, 00:25
Репутация: 1589
Контактная информация:

Re: GladeVCP и PyVCP для начинающих

Сообщение nkp »

Nick, а что по поводу установки Glade 3.8.0 скажешь ??
(я выше об этом писал)
устанавливал - как написано в файле INSTALL:
(для просмотра содержимого нажмите на ссылку)

Код: Выделить всё

Installation Instructions
*************************

Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
Software Foundation, Inc.

This file is free documentation; the Free Software Foundation gives
unlimited permission to copy, distribute and modify it.

Basic Installation
==================

These are generic installation instructions.

   The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation.  It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions.  Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, and a
file `config.log' containing compiler output (useful mainly for
debugging `configure').

   It can also use an optional file (typically called `config.cache'
and enabled with `--cache-file=config.cache' or simply `-C') that saves
the results of its tests to speed up reconfiguring.  (Caching is
disabled by default to prevent problems with accidental use of stale
cache files.)

   If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release.  If you are using the cache, and at
some point `config.cache' contains results you don't want to keep, you
may remove or edit it.

   The file `configure.ac' (or `configure.in') is used to create
`configure' by a program called `autoconf'.  You only need
`configure.ac' if you want to change it or regenerate `configure' using
a newer version of `autoconf'.

The simplest way to compile this package is:

  1. `cd' to the directory containing the package's source code and type
     `./configure' to configure the package for your system.  If you're
     using `csh' on an old version of System V, you might need to type
     `sh ./configure' instead to prevent `csh' from trying to execute
     `configure' itself.

     Running `configure' takes awhile.  While running, it prints some
     messages telling which features it is checking for.

  2. Type `make' to compile the package.

  3. Optionally, type `make check' to run any self-tests that come with
     the package.

  4. Type `make install' to install the programs and any data files and
     documentation.

  5. You can remove the program binaries and object files from the
     source code directory by typing `make clean'.  To also remove the
     files that `configure' created (so you can compile the package for
     a different kind of computer), type `make distclean'.  There is
     also a `make maintainer-clean' target, but that is intended mainly
     for the package's developers.  If you use it, you may have to get
     all sorts of other programs in order to regenerate files that came
     with the distribution.

Compilers and Options
=====================

Some systems require unusual options for compilation or linking that the
`configure' script does not know about.  Run `./configure --help' for
details on some of the pertinent environment variables.

   You can give `configure' initial values for configuration parameters
by setting variables in the command line or in the environment.  Here
is an example:

     ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix

   *Note Defining Variables::, for more details.

Compiling For Multiple Architectures
====================================

You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory.  To do this, you must use a version of `make' that
supports the `VPATH' variable, such as GNU `make'.  `cd' to the
directory where you want the object files and executables to go and run
the `configure' script.  `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'.

   If you have to use a `make' that does not support the `VPATH'
variable, you have to compile the package for one architecture at a
time in the source code directory.  After you have installed the
package for one architecture, use `make distclean' before reconfiguring
for another architecture.

Installation Names
==================

By default, `make install' installs the package's commands under
`/usr/local/bin', include files under `/usr/local/include', etc.  You
can specify an installation prefix other than `/usr/local' by giving
`configure' the option `--prefix=PREFIX'.

   You can specify separate installation prefixes for
architecture-specific files and architecture-independent files.  If you
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
PREFIX as the prefix for installing programs and libraries.
Documentation and other data files still use the regular prefix.

   In addition, if you use an unusual directory layout you can give
options like `--bindir=DIR' to specify different values for particular
kinds of files.  Run `configure --help' for a list of the directories
you can set and what kinds of files go in them.

   If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.

Optional Features
=================

Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System).  The
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.

   For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.

Specifying the System Type
==========================

There may be some features `configure' cannot figure out automatically,
but needs to determine by the type of machine the package will run on.
Usually, assuming the package is built to be run on the _same_
architectures, `configure' can figure that out, but if it prints a
message saying it cannot guess the machine type, give it the
`--build=TYPE' option.  TYPE can either be a short name for the system
type, such as `sun4', or a canonical name which has the form:

     CPU-COMPANY-SYSTEM

where SYSTEM can have one of these forms:

     OS KERNEL-OS

   See the file `config.sub' for the possible values of each field.  If
`config.sub' isn't included in this package, then this package doesn't
need to know the machine type.

   If you are _building_ compiler tools for cross-compiling, you should
use the option `--target=TYPE' to select the type of system they will
produce code for.

   If you want to _use_ a cross compiler, that generates code for a
platform different from the build platform, you should specify the
"host" platform (i.e., that on which the generated programs will
eventually be run) with `--host=TYPE'.

Sharing Defaults
================

If you want to set default values for `configure' scripts to share, you
can create a site shell script called `config.site' that gives default
values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists.  Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.

Defining Variables
==================

Variables not defined in a site shell script can be set in the
environment passed to `configure'.  However, some packages may run
configure again during the build, and the customized values of these
variables may be lost.  In order to avoid this problem, you should set
them in the `configure' command line, using `VAR=value'.  For example:

     ./configure CC=/usr/local2/bin/gcc

causes the specified `gcc' to be used as the C compiler (unless it is
overridden in the site shell script).  Here is a another example:

     /bin/bash ./configure CONFIG_SHELL=/bin/bash

Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
configuration-related scripts to be executed by `/bin/bash'.

`configure' Invocation
======================

`configure' recognizes the following options to control how it operates.

`--help'
`-h'
     Print a summary of the options to `configure', and exit.

`--version'
`-V'
     Print the version of Autoconf used to generate the `configure'
     script, and exit.

`--cache-file=FILE'
     Enable the cache: use and save the results of the tests in FILE,
     traditionally `config.cache'.  FILE defaults to `/dev/null' to
     disable caching.

`--config-cache'
`-C'
     Alias for `--cache-file=config.cache'.

`--quiet'
`--silent'
`-q'
     Do not print messages saying which checks are being made.  To
     suppress all normal output, redirect it to `/dev/null' (any error
     messages will still be shown).

`--srcdir=DIR'
     Look for the package's source code in directory DIR.  Usually
     `configure' can determine that directory automatically.

`configure' also accepts some other, not widely useful, options.  Run
`configure --help' for more details.
мож я не так что делаю??
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: GladeVCP и PyVCP для начинающих

Сообщение Nick »

Во кстати, попробуй Alt+F7. Хотя ты вроде все F отрезал...

http://askubuntu.com/questions/18243/mo ... e-keyboard

Nick, а что по поводу установки Glade 3.8.0 скажешь ??
Честно говоря, хрен его знает :freak:
А зачем он тебе?

Вроде какие-то ошибки объявлений в коде выдает... а откуда ты исходник брал?
nkp
Мастер
Сообщения: 8340
Зарегистрирован: 28 ноя 2011, 00:25
Репутация: 1589
Контактная информация:

Re: GladeVCP и PyVCP для начинающих

Сообщение nkp »

Nick писал(а):Хотя ты вроде все F отрезал...
я хоть и отрезал :)
но весь функционал восстановил
а двигать - время отнимает
move(800,500) - сработал с этим все вроде бы нормально
но тут вылезла такая бяка - главное окно GUI работает в полноэкранном режиме
и при открытии диалога наш fullscreen пропадает
а это никак не проходит....
если это изменить не представляется возможным - то придется отказаться от диалогов
и все сделать на дополнительных вкладках
nkp
Мастер
Сообщения: 8340
Зарегистрирован: 28 ноя 2011, 00:25
Репутация: 1589
Контактная информация:

Re: GladeVCP и PyVCP для начинающих

Сообщение nkp »

Nick писал(а):а откуда ты исходник брал?
с оффсайта
Nick писал(а):А зачем он тебе?
мне кажется в 3.6.7 некоторые вещи отсутствуют
если у тебя версия выше - можешь сделать скрин
вот этой части:
Выделение(020).jpg (2738 просмотров) <a class='original' href='./download/file.php?id=11021&sid=dc4becef125c91f7cbe23784d93f55cc&mode=view' target=_blank>Загрузить оригинал (60.34 КБ)</a>
nkp
Мастер
Сообщения: 8340
Зарегистрирован: 28 ноя 2011, 00:25
Репутация: 1589
Контактная информация:

Re: GladeVCP и PyVCP для начинающих

Сообщение nkp »

nkp писал(а):главное окно GUI работает в полноэкранном режимеи при открытии диалога наш fullscreen пропадает
сделал на рабочем столе верхнюю и нижнюю панель "автоматически скрывать" -
и теперь диалог не "нарушает" fullscreen...
Аватара пользователя
Serg
Мастер
Сообщения: 21923
Зарегистрирован: 17 апр 2012, 14:58
Репутация: 5183
Заслуга: c781c134843e0c1a3de9
Настоящее имя: Сергей
Откуда: Москва
Контактная информация:

Re: GladeVCP и PyVCP для начинающих

Сообщение Serg »

nkp писал(а): а что по поводу установки Glade 3.8.0 скажешь ??
gtk2-dev (или как там оно в убунте?) стоит? Последний?
Файл /usr/include/gtk-2.0/gdk/gdkkeysyms.h есть?
nkp писал(а):мне кажется в 3.6.7 некоторые вещи отсутствуют
Эти компоненты не входят в состав glade, а поставляются при установке linuxcnc.
Я не Христос, рыбу не раздаю, но могу научить, как сделать удочку...
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: GladeVCP и PyVCP для начинающих

Сообщение Nick »

Они еще могут отстутствовать, если выбираешь разные версии gtk... Что у тебя показывает при сознании нового проекта?
Вложения
Снимок-9.png (2729 просмотров) <a class='original' href='./download/file.php?id=11023&sid=dc4becef125c91f7cbe23784d93f55cc&mode=view' target=_blank>Загрузить оригинал (179.91 КБ)</a>
Аватара пользователя
Тима
Почётный участник
Почётный участник
Сообщения: 3162
Зарегистрирован: 01 мар 2012, 20:47
Репутация: 1089
Настоящее имя: Тимур
Откуда: КБР
Контактная информация:

Re: GladeVCP и PyVCP для начинающих

Сообщение Тима »

UAVpilot писал(а):Эти компоненты не входят в состав glade, а поставляются при установке linuxcnc.
А есть вариант их как-то в ручную добавить? А то я устанавливал и емс2 и глейд на сборку и поля ЕМС Action у меня нету!
Дорогу осилит идущий!
Я все пойму, Вы только дайте денег!!!
nkp
Мастер
Сообщения: 8340
Зарегистрирован: 28 ноя 2011, 00:25
Репутация: 1589
Контактная информация:

Re: GladeVCP и PyVCP для начинающих

Сообщение nkp »

Тима писал(а):А есть вариант их как-то в ручную добавить?
поддерживаю вопрос
как это все цепляется?
почему одна и та же версия (3.6.7 ) содержит разный набор???
Аватара пользователя
Serg
Мастер
Сообщения: 21923
Зарегистрирован: 17 апр 2012, 14:58
Репутация: 5183
Заслуга: c781c134843e0c1a3de9
Настоящее имя: Сергей
Откуда: Москва
Контактная информация:

Re: GladeVCP и PyVCP для начинающих

Сообщение Serg »

nkp писал(а):почему одна и та же версия (3.6.7 ) содержит разный набор???
Вероятно из-за разных версий linuxcnc.
Тима писал(а):А есть вариант их как-то в ручную добавить?
Конечно. Вот тут они все живут:
/usr/lib/python*/site-packages/gladevcp/
/usr/share/glade3/
Я не Христос, рыбу не раздаю, но могу научить, как сделать удочку...
Аватара пользователя
Тима
Почётный участник
Почётный участник
Сообщения: 3162
Зарегистрирован: 01 мар 2012, 20:47
Репутация: 1089
Настоящее имя: Тимур
Откуда: КБР
Контактная информация:

Re: GladeVCP и PyVCP для начинающих

Сообщение Тима »

UAVpilot писал(а):Вот тут они все живут:
А делать то с ними что?
Дорогу осилит идущий!
Я все пойму, Вы только дайте денег!!!
nkp
Мастер
Сообщения: 8340
Зарегистрирован: 28 ноя 2011, 00:25
Репутация: 1589
Контактная информация:

Re: GladeVCP и PyVCP для начинающих

Сообщение nkp »

UAVpilot писал(а):/usr/lib/python*/site-packages/gladevcp/
у меня сами скрипты лежат:
/usr/lib/pymodules/python2.6/gladevcp
а значки:
/usr/share/glade3/
но там тоже нет всех -
ЕМС Action .png наверно надо искать в другом месте
Ответить

Вернуться в «LinuxCNC»