Since this seemed to be the right file, I got quite adventurous and
copied the file into the working directory
cp /opt/local/var/db/dports/build/
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp
orts_graphics_wxWidgets/work/wxWidgets-2.8.3/include/wx/srchctrl.h /
opt/local/include/wx-2.8/wx/
Unfortunately this now fails with
---> 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_dp
orts_python_py-wxpython/work/wxPython-src-2.8.3.0/wxPython" && /opt/
local/bin/python2.4 setup.py build " returned error 1
Command output: Found wx-config: /opt/local/bin/wx-config
Using flags: --toolkit=mac --unicode=yes --version=2.8
Preparing CORE...
Preparing GLCANVAS...
Preparing STC...
Preparing GIZMOS...
running build
running build_py
copying wx/__version__.py -> build.unicode/lib.darwin-8.9.1-i386-2.4/wx
copying wx/build/build_options.py -> build.unicode/lib.darwin-8.9.1-
i386-2.4/wx/build
running build_ext
building '_core_' extension
/usr/bin/gcc-4.0 -fno-strict-aliasing -Wno-long-double -no-cpp-
precomp -fno-common -fno-common -dynamic -DNDEBUG -g -O3 -Wall -
Wstrict-prototypes -DSWIG_TYPE_TABLE=_wxPython_table -
DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -
D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXMAC__ -Iinclude -Isrc -I/
opt/local/lib/wx/include/mac-unicode-release-2.8 -I/opt/local/include/
wx-2.8 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
include/python2.4 -I/opt/local/include/python2.4 -c src/mac/
_core_wrap.cpp -o build.unicode/temp.darwin-8.9.1-i386-2.4/src/mac/
_core_wrap.o -O3
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
src/mac/_core_wrap.cpp: In function 'PyObject*
_wrap_GetAccelFromString(PyObject*, PyObject*, PyObject*)':
src/mac/_core_wrap.cpp:32500: warning: 'wxGetAccelFromString' is
deprecated (declared at /opt/local/include/wx-2.8/wx/utils.h:571)
src/mac/_core_wrap.cpp:32500: warning: 'wxGetAccelFromString' is
deprecated (declared at /opt/local/include/wx-2.8/wx/utils.h:571)
src/mac/_core_wrap.cpp: In function 'PyObject* _wrap_SizerFlags_Top
(PyObject*, PyObject*)':
src/mac/_core_wrap.cpp:48827: error: 'class wxSizerFlags' has no
member named 'Top'
src/mac/_core_wrap.cpp: In function 'PyObject* _wrap_SizerFlags_Bottom
(PyObject*, PyObject*)':
src/mac/_core_wrap.cpp:48860: error: 'class wxSizerFlags' has no
member named 'Bottom'
src/mac/_core_wrap.cpp: In function 'PyObject* _wrap_SizerFlags_Shaped
(PyObject*, PyObject*)':
src/mac/_core_wrap.cpp:48893: error: 'class wxSizerFlags' has no
member named 'Shaped'
src/mac/_core_wrap.cpp: In function 'PyObject*
_wrap_SizerFlags_FixedMinSize(PyObject*, PyObject*)':
src/mac/_core_wrap.cpp:48926: error: 'class wxSizerFlags' has no
member named 'FixedMinSize'
error: command '/usr/bin/gcc-4.0' failed with exit status 1
Error: Status 1 encountered during processing.
Looking at the wxSizerFlags documentation Top and Bottom do not exist
but Shaped and FixedMinSize do so now I am thoroughly confused.
Thanks
Nigel
Blundering in the dark!
On 30 Apr 2007, at 22:07, Nigel King wrote:
Dear Jyrki,
Thanks very much. That has done the trick with wxWidgets, is there
anything else I should do with the info for the Portfile? I thought
I would then be in luck but unfortunately py-wxpython did not
complete. The error is
building '_core_' extension
/usr/bin/gcc-4.0 -fno-strict-aliasing -Wno-long-double -no-cpp-
precomp -fno-common -fno-common -dynamic -DNDEBUG -g -O3 -Wall -
Wstrict-prototypes -DSWIG_TYPE_TABLE=_wxPython_table -
DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -
D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXMAC__ -Iinclude -Isrc -I/
opt/local/lib/wx/include/mac-unicode-release-2.8 -I/opt/local/
include/wx-2.8 -I/opt/local/Library/Frameworks/Python.framework/
Versions/2.4/include/python2.4 -I/opt/local/include/python2.4 -c
src/helpers.cpp -o build.unicode/temp.darwin-8.9.1-i386-2.4/src/
helpers.o -O3
cc1plus: warning: command line option "-Wstrict-prototypes" is
valid for C/ObjC but not for C++
In file included from src/helpers.cpp:16:
include/wx/wxPython/wxPython_int.h:82:25: error: wx/srchctrl.h: No
such file or directory
error: command '/usr/bin/gcc-4.0' failed with exit status 1
There is the file
/opt/local/var/db/dports/build/
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_
dports_graphics_wxWidgets/work/wxWidgets-2.8.3/include/wx/srchctrl.h
however I cannot see what is best to do.
Thanks
Nigel
On 30 Apr 2007, at 11:32, Jyrki Wahlstedt wrote:
Hi,
it seems there was a typo in the dirname. I modified wxWidgets-
devel Portfile already, but it would be better to try:
configure.ldflags -L${build.dir}/lib
(linker complaint in your trace is about not finding the 'libs'
directory!)
On 30.4.2007, at 9.42, Nigel King wrote:
I copied the line
configure.env LDFLAGS="-L${build.dir}/libs"
from
/opt/local/var/db/dports/sources/
rsync.rsync.darwinports.org_dpupdate_dports/graphics/wxWidgets-
devel/Portfile
to
/opt/local/var/db/dports/sources/
rsync.rsync.darwinports.org_dpupdate_dports/graphics/wxWidgets/
Portfile
wxWidgets still fails to build with the trace below. Although
still complaining about __ZN10wxListCtrl8SetFocusEv this is not
now complaining about libiconv.
Any suggestions?
Thanks
Nigel
*****************
---> Building wxWidgets
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_dpupdat
e_dports_graphics_wxWidgets/work/wxWidgets-2.8.3/build && make -C
contrib/src/gizmos" returned error 2
Command output: /usr/bin/g++-4.0 -dynamiclib -single_module -
headerpad_max_install_names -o /opt/local/var/db/dports/build/
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdat
e_dports_graphics_wxWidgets/work/wxWidgets-2.8.3/build/lib/
libwx_macu_gizmos-2.8.0.1.1.dylib gizmosdll_dynamicsash.o
gizmosdll_editlbox.o gizmosdll_ledctrl.o gizmosdll_multicell.o
gizmosdll_splittree.o gizmosdll_statpict.o -L/opt/local/var/db/
dports/build/
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdat
e_dports_graphics_wxWidgets/work/wxWidgets-2.8.3/build/libs -L/
opt/local/lib -L/opt/local/lib -framework QuickTime -framework
IOKit -framework Carbon -framework Cocoa -framework System -L/
opt/local/var/db/dports/build/
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdat
e_dports_graphics_wxWidgets/work/wxWidgets-2.8.3/build/lib -
install_name /opt/local/lib/libwx_macu_gizmos-2.8.0.dylib -
compatibility_version 2.0 -current_version 2.1 -lz -lpthread -
liconv -lwx_macu-2.8 -lwxregexu-2.8 -L/opt/local/var/db/
dports/build/
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdat
e_dports_graphics_wxWidgets/work/wxWidgets-2.8.3/build/libs -L/
opt/local/lib -L/opt/local/lib -framework QuickTime -framework
IOKit -framework Carbon -framework Cocoa -framework System -lz -
lpthread -liconv -lpng -lz -ljpeg -ltiff -framework WebKit
ld: warning -L: directory name (/opt/local/var/db/dports/build/
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdat
e_dports_graphics_wxWidgets/work/wxWidgets-2.8.3/build/libs) does
not exist
ld: warning -L: directory name (/opt/local/var/db/dports/build/
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdat
e_dports_graphics_wxWidgets/work/wxWidgets-2.8.3/build/libs) does
not exist
ld: warning prebinding disabled because dependent library: /opt/
local/lib/libz.1.dylib is not prebound
ld: Undefined symbols:
__ZN10wxListCtrl8SetFocusEv
/usr/bin/libtool: internal link edit command failed
make: *** [/opt/local/var/db/dports/build/
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdat
e_dports_graphics_wxWidgets/work/wxWidgets-2.8.3/build/lib/
libwx_macu_gizmos-2.8.0.1.1.dylib] Error 1
****************
On 26 Apr 2007, at 10:00, Jyrki Wahlstedt wrote:
On 25.4.2007, at 18.00, Nigel King wrote:
Hi,
Has any further progress been made on this? It is completely
blocking my progress with wxWidgets and py-wxpython.
Thanks
Nigel
Hi,
I had forgotten this, sorry! If it is convenient to you to
modify portfiles, you could copy the line with 'configure.env'
from wxWidgets-devel to wxWidgets Portfile. It adds a flag to
look for symbols in built libraries prior to outside libraries.
That should fix the problem of missing symbols. It ought be
added to wxWidgets{26}, too. I am getting a new laptop soon, so
I'll have better chances to handle things.
!
! Jyrki Wahlstedt
! skype:jyrkiwahlstedt
! http://www.wahlstedt.fi/jyrki/
!
! Our life is no dream; but it ought to become one and perhaps will.
! PGP key ID: 0x139CC386 fingerprint: F355 B46F 026C B8C1 89C0
A780 6366 EFD9 139C C386
_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users
_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users