On 14-12-23 12:23 PM, Philip Chimento wrote:
On Tue, Dec 23, 2014 at 12:50 PM, Jim Charlton <[email protected]
<mailto:[email protected]>> wrote:
I am building gtk-osx on MAC Yosemite 10.10
1. gtk-osx-build-setup.sh
2. export PATH=$PATH:/Users/chartech/.local/bin
3. Added lines
checkoutroot =
os.path.expanduser("/Applications/Drumroaster/gtk/Source/gtk")
prefix = os.path.expanduser("/Applications/Drumroaster/gtk/inst")
os.environ["ARCHFLAGS"] = "-arch x86_64"
to .jhbuildrc-custom as I want the installation in a non-standard
location.
4. jhbuild bootstrap
5. alias
jhbuild="PATH=/Applications/Drumroaster/gtk/inst/bin:$PATH jhbuild"
6. jhbuild build python
7. jhbuild build meta-gtk-osx-bootstrap
In step 7 I get a configure error while building itstool.
"configure: error: Python module libxml2 is needed to run this
package"
I have run this sequence before on MAVERICKS (10.9.5) with no
problem. Must be something about the way the python libs are
being installed or used but I cannot figure it out.
Any help would be appreciated.
You may need to set the PYTHONPATH environment variable to include
/Applications/Drumroaster/gtk/inst/lib/python2.7/site-packages (check
that there is a libxml2.py file there.)
Regards,
--
Philip
Further to my initial posting, the configure error comes from
.../gtk/Source/gtk/itstool-2.0.2/configure
.
.
.
py_module=libxml2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module
$py_module" >&5
$as_echo_n "checking for python module $py_module... " >&6; }
echo "import $py_module" | python - &>/dev/null
if test $? -ne 0; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
as_fn_error $? "Python module $py_module is needed to run this
package" "$LINENO" 5
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
fi
.
.
.
The if test $? ... fails and the error is generated. But the file
libxml2.py does exist at
/Applications/Drumroaster/gtk/inst/lib/python2.7/site-packages/libxml2.py and
PYTHON environment variables are set as
PYTHON=/Applications/Drumroaster/gtk/inst/bin/python
PYTHONPATH=/Applications/Drumroaster/gtk/inst/lib/python2.7:/Applications/Drumroaster/gtk/inst/lib/python2.7/site-packages/gtk-2.0:/Applications/Drumroaster/gtk/inst/lib/python2.7/site-packages
PYTHON_SITE_PACKAGES=/Applications/Drumroaster/gtk/inst/lib/python2.7/site-packages
If I edit the configure script to force the "if test $? ... line to exit
to the "else" statement then the installation of itstool completes. But
then 'jhbuild build meta-gtk-osx-bootstrap' will fail later at
*** Building gtk-doc *** [12/13]
make -j 2
Making all in help
Making all in manual
GEN bn_IN/
GEN de/
Fatal Python error: PyThreadState_Get: no current thread
Fatal Python error: PyThreadState_Get: no current thread
/bin/sh: line 1: 3055 Abort trap: 6 itstool -m "${mo}"
${d}/C/index.docbook ${d}/C/fdl-appendix.xml
make[2]: *** [de/de.stamp] Error 134
make[2]: *** Waiting for unfinished jobs....
/bin/sh: line 1: 3054 Abort trap: 6 itstool -m "${mo}"
${d}/C/index.docbook ${d}/C/fdl-appendix.xml
make[2]: *** [bn_IN/bn_IN.stamp] Error 134
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
*** Error during phase build of gtk-doc: ########## Error running make
-j 2 *** [12/13]
I may eventually figure this out. Best of the season... jim...
_______________________________________________
Gtk-osx-devel-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtk-osx-devel-list