wxWidgets/libiconv @ loggerheads?

Nigel King nigel at nigelking.me.uk
Mon Apr 30 14:07:22 PDT 2007


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_dp 
orts_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_dpupdate 
>> _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_dpupdate 
>> _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_dpupdate 
>> _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_dpupdate 
>> _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_dpupdate 
>> _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_dpupdate 
>> _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_dpupdate 
>> _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_dpupdate 
>> _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
>
>
>




More information about the macports-users mailing list