Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#38464 closed defect (fixed)

py26-wxpython: fatal error: 'gdk/gdkx.h' file not found

Reported by: kentj (John K) Owned by: jameskyle@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py26-wxpython

Description (last modified by ryandesign (Ryan Carsten Schmidt))

:info:build src/helpers.cpp:29:10: fatal error: 'gdk/gdkx.h' file not found
:info:build #include <gdk/gdkx.h>
:info:build          ^
:info:build 1 error generated.
:info:build error: command '/usr/bin/clang' failed with exit status 1
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py26-wxpython/py26-wxpython/work/wxPython-src-2.8.10.1/wxPython" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py build UNICODE=1 WXPORT=gtk2 
:info:build Exit code: 1
:error:build org.macports.build for port py26-wxpython returned: command execution failed
:debug:build Error code: CHILDSTATUS 14063 1
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for py26-wxpython: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:error:build Failed to install py26-wxpython
:debug:build couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory
    while executing
"open [file join $dir tclIndex]"
:notice:build Please see the log file for port py26-wxpython for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py26-wxpython/py26-wxpython/main.log

Change History (4)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to jameskyle@…
Port: py26-wxpython added
Summary: py26-wxwidget compile fails missing header Mountain Lionpy26-wxpython: fatal error: 'gdk/gdkx.h' file not found

Remember to use WikiFormatting.

Does /opt/local/include/gtk-2.0/gdk/gdkx.h exist? If not, did you install the gtk2 port with the +quartz variant? If so, that's probably the problem; install gtk2 with the +x11 variant instead; wxpython seems to require it.

comment:2 in reply to:  1 Changed 12 years ago by kentj (John K)

Replying to ryandesign@…:

Remember to use WikiFormatting.

Does /opt/local/include/gtk-2.0/gdk/gdkx.h exist? If not, did you install the gtk2 port with the +quartz variant? If so, that's probably the problem; install gtk2 with the +x11 variant instead; wxpython seems to require it.

In response to your query:

  • /opt/local/include/gtk-2.0/gdk/gdkx.h exists.
  • This is a fresh/new install of MacPorts. I reached this point only by executing "sudo port install spe"
  • "port installed gtk2" responds with:
    Soleil:gdk john$ port installed gtk2
    The following ports are currently installed:
      gtk2 @2.24.16_0+x11 (active)
    

comment:3 Changed 12 years ago by jmroot (Joshua Root)

Please attach the main.log.

comment:4 Changed 11 years ago by mojca (Mojca Miklavec)

Resolution: fixed
Status: newclosed
Version: 2.1.3

This should be fixed in py2X-wxpython-2.8 which adds an explicit dependency on gtk2 +x11 in r110398 (and missing dependency on pkgconfig in r110414) as well as patches the config.py script (r110279).

Last edited 11 years ago by mojca (Mojca Miklavec) (previous) (diff)
Note: See TracTickets for help on using tickets.