소스 검색

compile glib-schemas after extracting, explain compiling in readme

tobias47n9e 10 년 전
부모
커밋
bc7dcfe4c1
2개의 변경된 파일19개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      examples/pygi_mpl_numpy/2_extract.sh
  2. 16 0
      examples/pygi_mpl_numpy/README.rst

+ 3 - 0
examples/pygi_mpl_numpy/2_extract.sh

@@ -35,3 +35,6 @@ done
 
 #Remove pygi Folder
 rm -r pygi
+
+#Compile glib schemas
+glib-compile-schemas pynsist_pkgs/gnome/share/glib-2.0/schemas/

+ 16 - 0
examples/pygi_mpl_numpy/README.rst

@@ -66,3 +66,19 @@ The include section requires the Python packages numpy, matplotlib (which are ta
         dateutil
         pyparsing
 
+Compiling
+---------
+
+When the pygi-aio bundle is installed on a Windows-machine, the installer performs some post-installation compiling steps. After extracting the libraries from the bundle, compiling can be carried out on Linux, as long as the operating system used for packaging and the targeted operating system have the same bitness. For different bitnesses, use a virtual machine with desired bitness, install the bundle, and copy the compiled files back into your build directory.
+
+An example are the ``glib-schemas`` which are required for the GtkFileChooserDialog to work properly. The script ``2_extract.sh`` will automatically call the following command to compile the ``glib-schemas``:
+
+::
+
+    glib-compile-schemas pynsist_pkgs/gnome/share/glib-2.0/schemas/
+
+See also:
+
+ - https://github.com/takluyver/pynsist/issues/43
+ - https://sourceforge.net/p/pygobjectwin32/tickets/12/
+