Jean-François Mertens wrote: > > On 01 Feb 2010, at 19:13, Robert Wyatt wrote: > >> Undefined symbols: >> "_g_type_check_instance_cast", referenced from: >> MyFrame::UpdateToolbar(ColorScheme) in chart1.o >> "_gtk_widget_get_type", referenced from: >> MyFrame::UpdateToolbar(ColorScheme) in chart1.o >> "_gzclose", referenced from: >> _zu_close in zuFile.o >> "_gzopen", referenced from: >> _zu_open in zuFile.o >> "_gzread", referenced from: >> _zu_read in zuFile.o >> "_gzseek", referenced from: >> _zu_seek in zuFile.o >> _zu_seek in zuFile.o >> "_gztell", referenced from: >> _zu_seek in zuFile.o >> _zu_seek in zuFile.o >> "_gtk_widget_modify_bg", referenced from: >> MyFrame::UpdateToolbar(ColorScheme) in chart1.o > > You need in addition "-lgtk-x11-2.0 -lgobject-2.0 -lz" in tis linking. > (You can find this yourself using grep and nm) > > JF Mertens
Thank you Jean-François! It seems that adding an LDFlags line to the .info package resolved this but I have a new question that I'm hoping someone here will have had experience with. It seems that the upstream author has code that tries to create a Mac .app and so I get the following error: g++ -Wall -g -DocpnUSE_GTK_OPTIMIZE -DUSE_S57 -DUSE_GLU_TESS -I/sw/include -Wall -g -fexceptions -fno-stack-protector -I/sw/include/gtk-2.0 -I/sw/lib/gtk-2.0/include -I/sw/include/atk-1.0 -I/sw/include/cairo -I/sw/include/pango-1.0 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/pixman-1 -I/sw/include/freetype2 -I/sw/include -I/sw/include/libpng12 -I/usr/X11R6/include -I/usr/X11/include -lgtk-x11-2.0 -lgobject-2.0 -lz -L/sw/lib -L/System/Library/Frameworks/OpenGL.framework/Libraries -o opencpn bbox.o ocpn_pixel.o chart1.o chartdb.o chartdbs.o chartimg.o chcanv.o concanv.o cutil.o georef.o navutil.o nmea.o routeman.o routeprop.o statwin.o tcmgr.o thumbwin.o options.o wvschart.o about.o ais.o cm93.o latlong.o long.o nmea0183.o response.o rmb.o sentence.o talkerid.o rmc.o hexvalue.o lat.o expid.o wpl.o rte.o hdt.o hdg.o hdm.o gll.o vtg.o scrollingdialog.o grib.o GribReader.o GribRecord.o zuFile.o IsoLine.o blocksort.o bzlib.o compress.o crctable.o decompress.o huffman.o randtable.o s52cnsy.o s52plib.o s52utils.o s57chart.o mygeom.o tri.o ddffielddefn.o ddfmodule.o ddfrecord.o ddfsubfielddefn.o ddffield.o ddfutils.o ddfrecordindex.o cpl_conv.o cpl_csv.o cpl_dir.o cpl_error.o cpl_findfile.o cpl_minixml.o cpl_path.o cpl_string.o cpl_vsisimple.o cplgetsymbol.o ograssemblepolygon.o ogrcurve.o ogrfeature.o ogrfeaturedefn.o ogrfielddefn.o ogrgeometry.o ogrgeometrycollection.o ogrgeometryfactory.o ogrlinearring.o ogrlinestring.o ogrmultilinestring.o ogrmultipoint.o ogrmultipolygon.o ogrpoint.o ogrpolygon.o ogrs57datasource.o ogrlayer.o ogrs57layer.o ogrutils.o s57classregistrar.o s57featuredefns.o s57reader.o gdal_misc.o macsercomm.o macutils.o -L/sw/lib -L/sw/lib/fontconfig2/lib -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -L/usr/X11R6/lib -L/sw/lib -L/sw/lib -framework IOKit -framework CoreServices -framework System -framework ApplicationServices -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8 -lGL -lGLU mkdir -p OpenCPN.app/Contents/MacOS OpenCPN.app/Contents/Resources OpenCPN.app/Contents/SharedSupport sed "s/__VERSION__/1.3.6/;s/__COPYRIGHT_YEAR__/2009/" buildosx/app-bundle/Info.plist > OpenCPN.app/Contents/Info.plist sed: can't read buildosx/app-bundle/Info.plist: No such file or directory make: *** [OpenCPN.app/Contents/MacOS/opencpn] Error 2 (complete output is available here: http://robertwyatt.info/fink/opencpn/opencpn-1.3.6-0.txt) I figure that I have three ways to resolve this: 1) patch the file so that it doesn't do this, 2) patch the file so that it works, or 3) patch the file so that this is ignored. Do I understand my options correctly? Do you have guidance on how to proceed? Thanks very much for any input you may have, Robert ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ Fink-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-users
