Opened 18 years ago

Closed 18 years ago

#11165 closed defect (wontfix)

can't build py-wxpython 2.6.3.2

Reported by: salustri@… Owned by: mww@…
Priority: High Milestone:
Component: ports Version: 1.3.2
Keywords: py-wxpython Cc: salustri@…, markd@…
Port:

Description

Running OS 10.4.8, Xcode 2.4.1, and darwinports 1.3.2.

First, I tried installing python25 and wxWidgets each in turn, but wxWidgets installed python24. Fine. That all worked. Then tried to install py-wxpython, but got the errors below.

Then uninstalled everything noted above, and just installed py-wxpython, letting deps take care of themselves. Still, exactly the same error.

Assistance is greatly appreciated.

--->  Building py-wxpython with target build
Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_python_py-wxpython/work/wxPython-src-2.6.3.2/wxPython" && WX_CONFIG="/opt/local/bin/wx-config" UNICODE="1" WXPORT="mac" /opt/local/bin/python2.4 setup.py build" returned error 1
Command output: src/helpers.cpp:2763: error: 'stream' was not declared in this scope
src/helpers.cpp:2763: error: expected ',' or ';' before '{' token
src/helpers.cpp:2785: error: 'bool wxPyImageHandler::LoadFile' is not a static member of 'class wxPyImageHandler'
src/helpers.cpp:2785: error: 'wxImage' was not declared in this scope
src/helpers.cpp:2785: error: 'image' was not declared in this scope
src/helpers.cpp:2785: error: 'wxInputStream' was not declared in this scope
src/helpers.cpp:2785: error: 'stream' was not declared in this scope
src/helpers.cpp:2786: error: expected primary-expression before 'bool'
src/helpers.cpp:2786: error: expected primary-expression before 'int'
src/helpers.cpp:2786: error: initializer expression list treated as compound expression
src/helpers.cpp:2786: error: expected ',' or ';' before '{' token
src/helpers.cpp:2810: error: 'bool wxPyImageHandler::SaveFile' is not a static member of 'class wxPyImageHandler'
src/helpers.cpp:2810: error: 'wxImage' was not declared in this scope
src/helpers.cpp:2810: error: 'image' was not declared in this scope
src/helpers.cpp:2810: error: 'wxOutputStream' was not declared in this scope
src/helpers.cpp:2810: error: 'stream' was not declared in this scope
src/helpers.cpp:2811: error: expected primary-expression before 'bool'
src/helpers.cpp:2811: error: initializer expression list treated as compound expression
src/helpers.cpp:2811: error: expected ',' or ';' before '{' token
src/helpers.cpp:2833: error: 'int wxPyImageHandler::GetImageCount' is not a static member of 'class wxPyImageHandler'
src/helpers.cpp:2833: error: 'wxInputStream' was not declared in this scope
src/helpers.cpp:2833: error: 'stream' was not declared in this scope
src/helpers.cpp:2833: error: expected ',' or ';' before '{' token
src/helpers.cpp: In function 'bool wxPyCheckForApp()':
src/helpers.cpp:877: warning: control reaches end of non-void function
src/helpers.cpp: In member function 'bool wxPyInputStream::eof()':
src/helpers.cpp:1219: warning: control reaches end of non-void function
src/helpers.cpp: In member function 'int wxPyInputStream::tell()':
src/helpers.cpp:1366: warning: control reaches end of non-void function
error: command '/usr/bin/gcc-4.0' failed with exit status 1

Error: Status 1 encountered during processing.

Change History (5)

comment:1 Changed 18 years ago by khorton01@…

I get a very similar error trying to build py-wxpython 2.8.0.1, with OS X 10.4.8, XCode 2.4.1 and MacPorts 1.3.2 on PPC:

Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_Volumes_Maxtor_300_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_python_py-wxpython/work/wxPython-src-2.8.0.1/wxPython" && WX_CONFIG="/opt/local/bin/wx-config" UNICODE="1" WXPORT="mac" /opt/local/bin/python2.5 setup.py build" returned error 1
Command output: src/helpers.cpp:2894: error: 'bool wxPyImageHandler::LoadFile' is not a static member of 'class wxPyImageHandler'
src/helpers.cpp:2894: error: 'wxImage' was not declared in this scope
src/helpers.cpp:2894: error: 'image' was not declared in this scope
src/helpers.cpp:2894: error: 'wxInputStream' was not declared in this scope
src/helpers.cpp:2894: error: 'stream' was not declared in this scope
src/helpers.cpp:2895: error: expected primary-expression before 'bool'
src/helpers.cpp:2895: error: expected primary-expression before 'int'
src/helpers.cpp:2895: error: initializer expression list treated as compound expression
src/helpers.cpp:2895: error: expected ',' or ';' before '{' token
src/helpers.cpp:2919: error: 'bool wxPyImageHandler::SaveFile' is not a static member of 'class wxPyImageHandler'
src/helpers.cpp:2919: error: 'wxImage' was not declared in this scope
src/helpers.cpp:2919: error: 'image' was not declared in this scope
src/helpers.cpp:2919: error: 'wxOutputStream' was not declared in this scope
src/helpers.cpp:2919: error: 'stream' was not declared in this scope
src/helpers.cpp:2920: error: expected primary-expression before 'bool'
src/helpers.cpp:2920: error: initializer expression list treated as compound expression
src/helpers.cpp:2920: error: expected ',' or ';' before '{' token
src/helpers.cpp:2942: error: 'int wxPyImageHandler::GetImageCount' is not a static member of 'class wxPyImageHandler'
src/helpers.cpp:2942: error: 'wxInputStream' was not declared in this scope
src/helpers.cpp:2942: error: 'stream' was not declared in this scope
src/helpers.cpp:2942: error: expected ',' or ';' before '{' token
src/helpers.cpp: In function 'bool wxPyCheckForApp()':
src/helpers.cpp:752: warning: control reaches end of non-void function
src/helpers.cpp: In member function 'bool wxPyInputStream::eof()':
src/helpers.cpp:1094: warning: control reaches end of non-void function
src/helpers.cpp: In member function 'int wxPyInputStream::tell()':
src/helpers.cpp:1241: warning: control reaches end of non-void function
src/helpers.cpp: In function 'bool wxPyTestDisplayAvailable()':
src/helpers.cpp:3016: warning: control reaches end of non-void function
error: command '/usr/bin/gcc-4.0' failed with exit status 1

Error: Status 1 encountered during processing.

comment:2 Changed 18 years ago by markd@…

Cc: markd@… added

The port is now at 2.8.1.1. Does that work for you?

comment:3 Changed 18 years ago by salustri@…

Sorry, still having trouble with 2.8.1.1.

Try 1: "sudo port install py-wxpython" on my PowerPC. This generated errors cuz I hadn't deactivated wxWidgets. I deactivated wxWidgets and tried again. This time lots of wonky errors very similar to those I posted in ticket #11165.

Try 2: on my intel MacBook (identical configuration), first I deactivated wxWidgets then did the install per above. Didn't work cuz I didn't deactivate existent wxpython. Deactivated it and tried again. This time it worked. BUT: pythonw (version 2.5) is missing and my scripts cannot find wx module.

I'm stumped.

At this point, I'm ready to just remove all of macports and start again.

comment:4 Changed 18 years ago by salustri@…

I request this ticket be closed, as I'm now working with py-wxpython 2.8.1.1. Unfortunately, I'll likely be filing a new ticket.

Fil Salustri

comment:5 Changed 18 years ago by markd@…

Resolution: wontfix
Status: newclosed

Closing per comments.

Note: See TracTickets for help on using tickets.