Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » OS Problems etc., Win32, POSIX, MacOS, FreeBSD, X11 etc » Ubuntu 8.04 linking problem
Ubuntu 8.04 linking problem [message #16069] Tue, 27 May 2008 02:02 Go to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

OK, my second attempt to master U++ under Linux. Smile
Installed upp2008 DEB package, after that - latest SVN DEB-package.
Compiling was OK (but much slower than Windows MSC8).
Linking fails with a big number of warnings and errors on DEBUG and RELEASE with any linkage type (STATIC, SHARED or ALL SHARED).

Here is an example of verbose output of linking problems:
----- CtrlLib ( GUI MT GCC LINUX ) (1 / 9)
cd /home/paul/upp/uppsrc/CtrlLib
----- CtrlCore ( GUI MT GCC LINUX ) (2 / 9)
cd /home/paul/upp/uppsrc/CtrlCore
----- RichText ( GUI MT GCC LINUX ) (3 / 9)
cd /home/paul/upp/uppsrc/RichText
----- PdfDraw ( GUI MT GCC LINUX ) (4 / 9)
cd /home/paul/upp/uppsrc/PdfDraw
----- Draw ( GUI MT GCC LINUX ) (5 / 9)
cd /home/paul/upp/uppsrc/Draw
----- plugin\bmp ( GUI MT GCC LINUX ) (6 / 9)
cd /home/paul/upp/uppsrc/plugin/bmp
----- Core ( GUI MT GCC LINUX ) (7 / 9)
cd /home/paul/upp/uppsrc/Core
----- plugin\png ( GUI MT GCC LINUX ) (8 / 9)
cd /home/paul/upp/uppsrc/plugin/png
----- HelloWorld ( GUI MT MAIN GCC LINUX ) (9 / 9)
cd /home/paul/upp/examples/HelloWorld
Linking...
g++-4.1 -static -o "/home/paul/upp/out/GCC.Gui.Mt/HelloWorld" -Wl,-s -L"/usr/X11R6/lib" -L"/usr/lib" -Wl,-O,2
	  "/home/paul/upp/out/HelloWorld/GCC.Gui.Main.Mt/hello.o" "/home/paul/upp/out/CtrlLib/GCC.Gui.Mt/CtrlLib.
	o" "/home/paul/upp/out/CtrlCore/GCC.Gui.Mt/CtrlCore.o" "/home/paul/upp/out/RichText/GCC.Gui.Mt/RichImage.
	o" "/home/paul/upp/out/PdfDraw/GCC.Gui.Mt/PdfReport.o" "/home/paul/upp/out/plugin/bmp/GCC.Gui.Mt/BmpReg.o
	" "/home/paul/upp/out/plugin/png/GCC.Gui.Mt/pngreg.o" -Wl,--start-group  "/home/paul/upp/out/CtrlLib/GCC.
	Gui.Mt/CtrlLib.a" "/home/paul/upp/out/CtrlCore/GCC.Gui.Mt/CtrlCore.a" "/home/paul/upp/out/RichText/GCC.Gu
	i.Mt/RichText.a" "/home/paul/upp/out/PdfDraw/GCC.Gui.Mt/PdfDraw.a" -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 
	-lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -l
	Xfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lX11 -ldl -lXft -lfontconfig -lX
	render -lfreetype -lexpat "/home/paul/upp/out/Draw/GCC.Gui.Mt/Draw.a" "/home/paul/upp/out/plugin/bmp/GCC.
	Gui.Mt/bmp.a" -lpthread -ldl -lz "/home/paul/upp/out/Core/GCC.Gui.Mt/Core.a" -lpng "/home/paul/upp/out/pl
	ugin/png/GCC.Gui.Mt/png.a" -Wl,--end-group
/usr/lib/libX11.a(CrGlCur.o): In function `open_library':
(.text+0x3b): warning: Using 'dlopen' in statically linked applications requires at runtime the shared librar
	ies from the glibc version used for linking
/usr/lib/libglib-2.0.a(gutils.o): In function `g_get_any_init_do':
(.text+0x146e): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared li
	braries from the glibc version used for linking
/usr/lib/libglib-2.0.a(gutils.o): In function `g_get_any_init_do':
(.text+0x1461): warning: Using 'setpwent' in statically linked applications requires at runtime the shared li
	braries from the glibc version used for linking
/usr/lib/libglib-2.0.a(gutils.o): In function `g_get_any_init_do':
(.text+0x1476): warning: Using 'endpwent' in statically linked applications requires at runtime the shared li
	braries from the glibc version used for linking
/usr/lib/libX11.a(GetDflt.o): In function `GetHomeDir':
(.text+0xa9): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared li
	braries from the glibc version used for linking
/usr/lib/libX11.a(GetDflt.o): In function `GetHomeDir':
(.text+0x104): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared l
	ibraries from the glibc version used for linking
/usr/lib/libX11.a(xim_trans.o): In function `_XimXTransSocketOpen':
(.text+0x6c0): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared 
	libraries from the glibc version used for linking
/usr/lib/libX11.a(xim_trans.o): In function `_XimXTransSocketUNIXConnect':
(.text+0xd86): warning: Using 'gethostbyname' in statically linked applications requires at runtime the share
	d libraries from the glibc version used for linking
/usr/lib/libX11.a(xim_trans.o): In function `_XimXTransSocketINETConnect':
(.text+0x191d): warning: Using 'getservbyname' in statically linked applications requires at runtime the shar
	ed libraries from the glibc version used for linking
/usr/lib/libgdk-x11-2.0.a(gdkdisplay-x11.o): In function `gdk_display_open':
(.text+0xfcd): undefined reference to `XCompositeQueryExtension'
/usr/lib/libgdk-x11-2.0.a(gdkdisplay-x11.o): In function `gdk_display_open':
(.text+0xff4): undefined reference to `XDamageQueryExtension'
/usr/lib/libgdk-x11-2.0.a(gdkevents-x11.o): In function `gdk_event_translate':
(.text+0x2e3b): undefined reference to `XDamageSubtract'
/usr/lib/libgdk-x11-2.0.a(gdkwindow-x11.o): In function `_gdk_windowing_window_set_composited':
(.text+0xab): undefined reference to `XCompositeRedirectWindow'
/usr/lib/libgdk-x11-2.0.a(gdkwindow-x11.o): In function `_gdk_windowing_window_set_composited':
(.text+0xbf): undefined reference to `XDamageCreate'
/usr/lib/libgdk-x11-2.0.a(gdkwindow-x11.o): In function `_gdk_windowing_window_set_composited':
(.text+0xe3): undefined reference to `XCompositeUnredirectWindow'
/usr/lib/libgdk-x11-2.0.a(gdkwindow-x11.o): In function `_gdk_windowing_window_set_composited':
(.text+0xf2): undefined reference to `XDamageDestroy'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `real_save_jpeg':
(.text+0x3c4): undefined reference to `jpeg_std_error'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `real_save_jpeg':
(.text+0x406): undefined reference to `jpeg_CreateCompress'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `real_save_jpeg':
(.text+0x499): undefined reference to `jpeg_set_defaults'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `real_save_jpeg':
(.text+0x4b3): undefined reference to `jpeg_set_quality'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `real_save_jpeg':
(.text+0x4c3): undefined reference to `jpeg_start_compress'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `real_save_jpeg':
(.text+0x551): undefined reference to `jpeg_write_scanlines'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `real_save_jpeg':
(.text+0x579): undefined reference to `jpeg_finish_compress'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `real_save_jpeg':
(.text+0x581): undefined reference to `jpeg_destroy_compress'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `real_save_jpeg':
(.text+0x5b2): undefined reference to `jpeg_destroy_compress'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `real_save_jpeg':
(.text+0x64c): undefined reference to `jpeg_stdio_dest'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_load_lines':
(.text+0xea0): undefined reference to `jpeg_read_scanlines'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_load_increment':
(.text+0x11ab): undefined reference to `jpeg_start_output'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_load_increment':
(.text+0x11ed): undefined reference to `jpeg_finish_output'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_load_increment':
(.text+0x1206): undefined reference to `jpeg_input_complete'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_load_increment':
(.text+0x1215): undefined reference to `jpeg_input_complete'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_load_increment':
(.text+0x126f): undefined reference to `jpeg_save_markers'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_load_increment':
(.text+0x1282): undefined reference to `jpeg_read_header'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_load_increment':
(.text+0x12fc): undefined reference to `jpeg_calc_output_dimensions'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_load_increment':
(.text+0x1338): undefined reference to `jpeg_calc_output_dimensions'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_load_increment':
(.text+0x13d5): undefined reference to `jpeg_start_decompress'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_stop_load':
(.text+0x1555): undefined reference to `jpeg_destroy_decompress'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_stop_load':
(.text+0x158c): undefined reference to `jpeg_finish_decompress'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_load':
(.text+0x15fd): undefined reference to `jpeg_std_error'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_load':
(.text+0x165c): undefined reference to `jpeg_CreateDecompress'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_load':
(.text+0x16b6): undefined reference to `jpeg_resync_to_restart'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_load':
(.text+0x16ee): undefined reference to `jpeg_save_markers'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_load':
(.text+0x16fe): undefined reference to `jpeg_read_header'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_load':
(.text+0x170f): undefined reference to `jpeg_start_decompress'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_load':
(.text+0x17cd): undefined reference to `jpeg_read_scanlines'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_load':
(.text+0x181c): undefined reference to `jpeg_destroy_decompress'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_load':
(.text+0x1862): undefined reference to `jpeg_finish_decompress'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_load':
(.text+0x186a): undefined reference to `jpeg_destroy_decompress'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_load':
(.text+0x1946): undefined reference to `jpeg_destroy_decompress'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_begin_load':
(.text+0x1a16): undefined reference to `jpeg_CreateDecompress'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_begin_load':
(.text+0x1a53): undefined reference to `jpeg_std_error'
/usr/lib/libgdk_pixbuf-2.0.a(io-jpeg.o): In function `gdk_pixbuf__jpeg_image_begin_load':
(.text+0x1a93): undefined reference to `jpeg_resync_to_restart'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `tiff_pop_handlers':
(.text+0x1f4): undefined reference to `TIFFSetErrorHandler'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `tiff_pop_handlers':
(.text+0x201): undefined reference to `TIFFSetWarningHandler'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `tiff_push_handlers':
(.text+0x244): undefined reference to `TIFFSetErrorHandler'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `tiff_push_handlers':
(.text+0x255): undefined reference to `TIFFSetWarningHandler'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `gdk_pixbuf__tiff_image_save_to_callback':
(.text+0x3fa): undefined reference to `TIFFClientOpen'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `gdk_pixbuf__tiff_image_save_to_callback':
(.text+0x4a2): undefined reference to `TIFFSetField'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `gdk_pixbuf__tiff_image_save_to_callback':
(.text+0x4b9): undefined reference to `TIFFSetField'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `gdk_pixbuf__tiff_image_save_to_callback':
(.text+0x4d1): undefined reference to `TIFFSetField'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `gdk_pixbuf__tiff_image_save_to_callback':
(.text+0x4f1): undefined reference to `TIFFSetField'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `gdk_pixbuf__tiff_image_save_to_callback':
(.text+0x508): undefined reference to `TIFFSetField'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o):(.text+0x520): more undefined references to `TIFFSetField' follow
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `gdk_pixbuf__tiff_image_save_to_callback':
(.text+0x58d): undefined reference to `TIFFWriteScanline'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `gdk_pixbuf__tiff_image_save_to_callback':
(.text+0x5d5): undefined reference to `TIFFClose'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `gdk_pixbuf__tiff_image_save_to_callback':
(.text+0x5ff): undefined reference to `TIFFSetField'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `gdk_pixbuf__tiff_image_save_to_callback':
(.text+0x616): undefined reference to `TIFFSetField'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `gdk_pixbuf__tiff_image_save_to_callback':
(.text+0x635): undefined reference to `TIFFSetField'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `gdk_pixbuf__tiff_image_save_to_callback':
(.text+0x642): undefined reference to `TIFFClose'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `tiff_image_parse':
(.text+0x98b): undefined reference to `TIFFGetField'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `tiff_image_parse':
(.text+0x9f1): undefined reference to `TIFFGetField'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `tiff_image_parse':
(.text+0xae6): undefined reference to `TIFFGetField'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `tiff_image_parse':
(.text+0xb59): undefined reference to `TIFFReadRGBAImageOriented'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `gdk_pixbuf__tiff_image_stop_load':
(.text+0xe15): undefined reference to `TIFFClientOpen'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `gdk_pixbuf__tiff_image_stop_load':
(.text+0xe5d): undefined reference to `TIFFClose'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `gdk_pixbuf__tiff_image_load':
(.text+0x1026): undefined reference to `TIFFFdOpen'
/usr/lib/libgdk_pixbuf-2.0.a(io-tiff.o): In function `gdk_pixbuf__tiff_image_load':
(.text+0x1083): undefined reference to `TIFFClose'
/usr/lib/libpangocairo-1.0.a(libpangocairo_1_0_la-pangocairo-fcfontmap.o): In function `pango_cairo_fc_font_m
	ap_get_type':
(.text+0x7a): undefined reference to `pango_fc_font_map_get_type'
/usr/lib/libpangocairo-1.0.a(libpangocairo_1_0_la-pangocairo-fcfontmap.o): In function `pango_cairo_fc_font_m
	ap_set_resolution':
(.text+0x16e): undefined reference to `pango_fc_font_map_cache_clear'
/usr/lib/libpangocairo-1.0.a(libpangocairo_1_0_la-pangocairo-fcfont.o): In function `pango_cairo_fc_font_get_
	type':
(.text+0x6a): undefined reference to `pango_fc_font_get_type'
/usr/lib/libpangocairo-1.0.a(libpangocairo_1_0_la-pangocairo-fcfont.o): In function `pango_cairo_fc_font_crea
	te_metrics_for_context':
(.text+0x345): undefined reference to `pango_fc_font_create_metrics_for_context'
/usr/lib/libpango-1.0.a(libpango_thai_lang_la-thai-lang.o): In function `thai_engine_break':
(.text+0x124): undefined reference to `th_uni2tis'
/usr/lib/libpango-1.0.a(libpango_thai_lang_la-thai-lang.o): In function `thai_engine_break':
(.text+0x173): undefined reference to `th_brk'
/usr/lib/libcairo.a(libcairo_la-cairo-image-surface.o): In function `_cairo_image_surface_finish':
(.text+0x6f8): undefined reference to `pixman_image_unref'
/usr/lib/libcairo.a(libcairo_la-cairo-image-surface.o): In function `_cairo_image_surface_set_attributes':
(.text+0x760): undefined reference to `pixman_image_set_transform'
/usr/lib/libcairo.a(libcairo_la-cairo-image-surface.o): In function `_cairo_image_surface_set_attributes':
(.text+0x7c5): undefined reference to `pixman_image_set_filter'
/usr/lib/libcairo.a(libcairo_la-cairo-image-surface.o): In function `_cairo_image_surface_set_attributes':
(.text+0x822): undefined reference to `pixman_image_set_repeat'
/usr/lib/libcairo.a(libcairo_la-cairo-image-surface.o): In function `_cairo_image_surface_set_attributes':
(.text+0x842): undefined reference to `pixman_image_set_repeat'
/usr/lib/libcairo.a(libcairo_la-cairo-image-surface.o): In function `_cairo_image_surface_set_attributes':
(.text+0x85d): undefined reference to `pixman_image_set_repeat'
/usr/lib/libcairo.a(libcairo_la-cairo-image-surface.o): In function `_cairo_image_surface_set_attributes':
(.text+0x878): undefined reference to `pixman_image_set_repeat'
/usr/lib/libcairo.a(libcairo_la-cairo-image-surface.o): In function `_cairo_image_surface_fill_rectangles':
(.text+0x973): undefined reference to `pixman_image_fill_rectangles'
/usr/lib/libcairo.a(libcairo_la-cairo-image-surface.o): In function `_cairo_image_surface_composite':
(.text+0xaef): undefined reference to `pixman_image_composite'
/usr/lib/libcairo.a(libcairo_la-cairo-image-surface.o): In function `_cairo_image_surface_set_clip_region':
(.text+0xcb0): undefined reference to `pixman_image_set_clip_region'
/usr/lib/libcairo.a(libcairo_la-cairo-image-surface.o): In function `_pixman_format_from_masks':
(.text+0xdbb): undefined reference to `pixman_format_supported_destination'
/usr/lib/libcairo.a(libcairo_la-cairo-image-surface.o): In function `_cairo_image_surface_create_for_pixman_i
	mage':
(.text+0xeea): undefined reference to `pixman_image_get_data'
/usr/lib/libcairo.a(libcairo_la-cairo-image-surface.o): In function `_cairo_image_surface_create_for_pixman_i
	mage':
(.text+0xf16): undefined reference to `pixman_image_get_width'
/usr/lib/libcairo.a(libcairo_la-cairo-image-surface.o): In function `_cairo_image_surface_create_for_pixman_i
	mage':
(.text+0xf24): undefined reference to `pixman_image_get_height'
/usr/lib/libcairo.a(libcairo_la-cairo-image-surface.o): In function `_cairo_image_surface_create_for_pixman_i
	mage':
(.text+0xf32): undefined reference to `pixman_image_get_stride'
/usr/lib/libcairo.a(libcairo_la-cairo-image-surface.o): In function `_cairo_image_surface_create_for_pixman_i
	mage':
(.text+0xf40): undefined reference to `pixman_image_get_depth'
/usr/lib/libcairo.a(libcairo_la-cairo-image-surface.o): In function `_cairo_image_surface_create_with_pixman_
	format':
(.text+0x114b): undefined reference to `pixman_image_create_bits'
/usr/lib/libcairo.a(libcairo_la-cairo-image-surface.o): In function `_cairo_image_surface_create_with_pixman_
	format':
(.text+0x117c): undefined reference to `pixman_image_unref'
/usr/lib/libcairo.a(libcairo_la-cairo-image-surface.o): In function `_cairo_image_surface_composite_trapezoid
	s':
(.text+0x1879): undefined reference to `pixman_image_create_bits'
/usr/lib/libcairo.a(libcairo_la-cairo-image-surface.o): In function `_cairo_image_surface_composite_trapezoid
	s':
(.text+0x18bf): undefined reference to `pixman_add_trapezoids'
/usr/lib/libcairo.a(libcairo_la-cairo-image-surface.o): In function `_cairo_image_surface_composite_trapezoid
	s':
(.text+0x193d): undefined reference to `pixman_image_composite'
/usr/lib/libcairo.a(libcairo_la-cairo-image-surface.o): In function `_cairo_image_surface_composite_trapezoid
	s':
(.text+0x195e): undefined reference to `pixman_image_unref'
/usr/lib/libcairo.a(libcairo_la-cairo-image-surface.o): In function `_cairo_image_surface_composite_trapezoid
	s':
(.text+0x19dd): undefined reference to `pixman_add_trapezoids'
/usr/lib/libcairo.a(libcairo_la-cairo-matrix.o): In function `_cairo_matrix_to_pixman_matrix':
(.text+0xbb1): undefined reference to `pixman_transform_point_3d'
/usr/lib/libcairo.a(libcairo_la-cairo-region.o): In function `_cairo_region_contains_rectangle':
(.text+0x34): undefined reference to `pixman_region_contains_rectangle'
/usr/lib/libcairo.a(libcairo_la-cairo-region.o): In function `_cairo_region_union_rect':
(.text+0x92): undefined reference to `pixman_region_union_rect'
/usr/lib/libcairo.a(libcairo_la-cairo-region.o): In function `_cairo_region_intersect':
(.text+0xcb): undefined reference to `pixman_region_intersect'
/usr/lib/libcairo.a(libcairo_la-cairo-region.o): In function `_cairo_region_subtract':
(.text+0x10b): undefined reference to `pixman_region_subtract'
/usr/lib/libcairo.a(libcairo_la-cairo-region.o): In function `_cairo_region_get_extents':
(.text+0x141): undefined reference to `pixman_region_extents'
/usr/lib/libcairo.a(libcairo_la-cairo-region.o): In function `_cairo_region_get_boxes':
(.text+0x197): undefined reference to `pixman_region_rectangles'
/usr/lib/libcairo.a(libcairo_la-cairo-region.o): In function `_cairo_region_copy':
(.text+0x264): undefined reference to `pixman_region_copy'
/usr/lib/libcairo.a(libcairo_la-cairo-region.o): In function `_cairo_region_init_boxes':
(.text+0x339): undefined reference to `pixman_region_init_rects'
/usr/lib/libcairo.a(libcairo_la-cairo-region.o): In function `_cairo_region_init_rect':
(.text+0x39b): undefined reference to `pixman_region_init_rect'
/usr/lib/libcairo.a(libcairo_la-cairo-region.o): In function `_cairo_region_translate':
(.text+0x45): undefined reference to `pixman_region_translate'
/usr/lib/libcairo.a(libcairo_la-cairo-region.o): In function `_cairo_region_not_empty':
(.text+0x55): undefined reference to `pixman_region_not_empty'
/usr/lib/libcairo.a(libcairo_la-cairo-region.o): In function `_cairo_region_num_boxes':
(.text+0x245): undefined reference to `pixman_region_n_rects'
/usr/lib/libcairo.a(libcairo_la-cairo-region.o): In function `_cairo_region_fini':
(.text+0x285): undefined reference to `pixman_region_fini'
/usr/lib/libcairo.a(libcairo_la-cairo-region.o): In function `_cairo_region_init':
(.text+0x3b5): undefined reference to `pixman_region_init'
/usr/lib/libcairo.a(libcairo_la-cairo-scaled-font.o): In function `_cairo_scaled_font_show_glyphs':
(.text+0x17a7): undefined reference to `pixman_image_set_component_alpha'
/usr/lib/libcairo.a(libcairo_la-cairo-pattern.o): In function `_cairo_pattern_acquire_surface':
(.text+0x1a6c): undefined reference to `pixman_image_create_radial_gradient'
/usr/lib/libcairo.a(libcairo_la-cairo-pattern.o): In function `_cairo_pattern_acquire_surface':
(.text+0x1b0d): undefined reference to `pixman_image_unref'
/usr/lib/libcairo.a(libcairo_la-cairo-pattern.o): In function `_cairo_pattern_acquire_surface':
(.text+0x1b37): undefined reference to `pixman_image_unref'
/usr/lib/libcairo.a(libcairo_la-cairo-pattern.o): In function `_cairo_pattern_acquire_surface':
(.text+0x1dd5): undefined reference to `pixman_image_create_linear_gradient'
/usr/lib/libcairo.a(libcairo_la-cairo-pattern.o): In function `_cairo_pattern_acquire_surface':
(.text+0x1e0c): undefined reference to `pixman_image_set_filter'
/usr/lib/libcairo.a(libcairo_la-cairo-pattern.o): In function `_cairo_pattern_acquire_surface':
(.text+0x1e2d): undefined reference to `pixman_image_set_transform'
/usr/lib/libcairo.a(libcairo_la-cairo-pattern.o): In function `_cairo_pattern_acquire_surface':
(.text+0x1e5d): undefined reference to `pixman_image_set_repeat'
/usr/lib/libcairo.a(libcairo_la-cairo-pattern.o): In function `_cairo_pattern_acquire_surface':
(.text+0x1ecb): undefined reference to `pixman_image_composite'
/usr/lib/libcairo.a(libcairo_la-cairo-pattern.o): In function `_cairo_pattern_acquire_surface':
(.text+0x1ed9): undefined reference to `pixman_image_unref'
/usr/lib/libcairo.a(libcairo_la-cairo-pattern.o): In function `_cairo_pattern_acquire_surface':
(.text+0x24b1): undefined reference to `pixman_image_unref'
/usr/lib/libcairo.a(libcairo_la-cairo-pattern.o): In function `_cairo_pattern_acquire_surface':
(.text+0x24dd): undefined reference to `pixman_image_set_repeat'
/usr/lib/libcairo.a(libcairo_la-cairo-pattern.o): In function `_cairo_pattern_acquire_surface':
(.text+0x2509): undefined reference to `pixman_image_set_repeat'
/usr/lib/libcairo.a(libcairo_la-cairo-pattern.o): In function `_cairo_pattern_acquire_surface':
(.text+0x2524): undefined reference to `pixman_image_set_repeat'
/usr/lib/libcairo.a(libcairo_la-cairo-ft-font.o): In function `_get_bitmap_surface':
(.text+0x813): undefined reference to `pixman_image_set_component_alpha'
/usr/lib/libX11.a(ClDisplay.o): In function `XCloseDisplay':
(.text+0xbe): undefined reference to `xcb_disconnect'
/usr/lib/libX11.a(OpenDis.o): In function `OutOfMemory':
(.text+0x3fa): undefined reference to `xcb_disconnect'
/usr/lib/libX11.a(OpenDis.o): In function `XOpenDisplay':
(.text+0x7e2): undefined reference to `xcb_get_setup'
/usr/lib/libX11.a(OpenDis.o): In function `XOpenDisplay':
(.text+0xc29): undefined reference to `xcb_get_maximum_request_length'
/usr/lib/libX11.a(xcb_lock.o): In function `_XPutXCBBuffer':
(.text+0xdd): undefined reference to `xcb_get_request_sent'
/usr/lib/libX11.a(xcb_lock.o): In function `_XPutXCBBuffer':
(.text+0x30e): undefined reference to `xcb_get_request_sent'
/usr/lib/libX11.a(xcb_lock.o): In function `_XPutXCBBuffer':
(.text+0x33d): undefined reference to `xcb_send_request'
/usr/lib/libX11.a(xcb_lock.o): In function `_XGetXCBBuffer':
(.text+0x568): undefined reference to `xcb_get_request_sent'
/usr/lib/libX11.a(xcb_lock.o): In function `_XGetXCBBuffer':
(.text+0x57b): undefined reference to `xcb_connection_has_error'
/usr/lib/libX11.a(xcb_lock.o): In function `_XCBUnlockDisplay':
(.text+0x6ad): undefined reference to `xcb_xlib_unlock'
/usr/lib/libX11.a(xcb_lock.o): In function `_XCBUnlockDisplay':
(.text+0x6e0): undefined reference to `xcb_get_request_sent'
/usr/lib/libX11.a(xcb_lock.o): In function `_XCBLockDisplay':
(.text+0x78d): undefined reference to `xcb_xlib_lock'
/usr/lib/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x94): undefined reference to `xcb_parse_display'
/usr/lib/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x147): undefined reference to `xcb_connect_to_display_with_auth_info'
/usr/lib/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x165): undefined reference to `xcb_get_file_descriptor'
/usr/lib/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x18e): undefined reference to `xcb_generate_id'
/usr/lib/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x199): undefined reference to `xcb_connection_has_error'
/usr/lib/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x1c3): undefined reference to `xcb_connect'
/usr/lib/libX11.a(xcb_io.o): In function `wait_or_poll_for_event':
(.text+0x3ef): undefined reference to `xcb_wait_for_event'
/usr/lib/libX11.a(xcb_io.o): In function `wait_or_poll_for_event':
(.text+0x414): undefined reference to `xcb_poll_for_event'
/usr/lib/libX11.a(xcb_io.o): In function `process_responses':
(.text+0x4c3): undefined reference to `xcb_connection_has_error'
/usr/lib/libX11.a(xcb_io.o): In function `process_responses':
(.text+0x519): undefined reference to `xcb_xlib_unlock'
/usr/lib/libX11.a(xcb_io.o): In function `process_responses':
(.text+0x543): undefined reference to `xcb_xlib_lock'
/usr/lib/libX11.a(xcb_io.o): In function `process_responses':
(.text+0x5de): undefined reference to `xcb_poll_for_reply'
/usr/lib/libX11.a(xcb_io.o): In function `_XReply':
(.text+0x890): undefined reference to `xcb_xlib_unlock'
/usr/lib/libX11.a(xcb_io.o): In function `_XReply':
(.text+0x8bb): undefined reference to `xcb_wait_for_reply'
/usr/lib/libX11.a(xcb_io.o): In function `_XAllocIDs':
(.text+0xb60): undefined reference to `xcb_generate_id'
/usr/lib/libX11.a(xcb_io.o): In function `_XIDHandler':
(.text+0xb98): undefined reference to `xcb_generate_id'
/usr/lib/libX11.a(xcb_io.o): In function `_XSend':
(.text+0xc45): undefined reference to `xcb_flush'
/usr/lib/libglib-2.0.a(gregex.o): In function `g_regex_get_string_number':
(.text+0x39f): undefined reference to `pcre_get_stringnumber'
/usr/lib/libglib-2.0.a(gregex.o): In function `g_regex_get_capture_count':
(.text+0x426): undefined reference to `pcre_fullinfo'
/usr/lib/libglib-2.0.a(gregex.o): In function `g_regex_get_max_backref':
(.text+0x456): undefined reference to `pcre_fullinfo'
/usr/lib/libglib-2.0.a(gregex.o): In function `g_regex_unref':
(.text+0x6f7): undefined reference to `pcre_free'
/usr/lib/libglib-2.0.a(gregex.o): In function `g_regex_unref':
(.text+0x707): undefined reference to `pcre_free'
/usr/lib/libglib-2.0.a(gregex.o): In function `match_info_new':
(.text+0x895): undefined reference to `pcre_fullinfo'
/usr/lib/libglib-2.0.a(gregex.o): In function `g_regex_match_all_full':
(.text+0x1068): undefined reference to `pcre_dfa_exec'
/usr/lib/libglib-2.0.a(gregex.o): In function `g_regex_new':
(.text+0x12a5): undefined reference to `pcre_compile2'
/usr/lib/libglib-2.0.a(gregex.o): In function `g_regex_new':
(.text+0x12ce): undefined reference to `pcre_fullinfo'
/usr/lib/libglib-2.0.a(gregex.o): In function `g_regex_new':
(.text+0x1333): undefined reference to `pcre_study'
/usr/lib/libglib-2.0.a(gregex.o): In function `g_regex_new':
(.text+0x13c0): undefined reference to `pcre_config'
/usr/lib/libglib-2.0.a(gregex.o): In function `g_regex_new':
(.text+0x13db): undefined reference to `pcre_config'
/usr/lib/libglib-2.0.a(gregex.o): In function `g_regex_new':
(.text+0x1422): undefined reference to `pcre_fullinfo'
/usr/lib/libglib-2.0.a(gregex.o): In function `get_matched_substring_number':
(.text+0x1a4e): undefined reference to `pcre_get_stringnumber'
/usr/lib/libglib-2.0.a(gregex.o): In function `get_matched_substring_number':
(.text+0x1a79): undefined reference to `pcre_get_stringtable_entries'
/usr/lib/libglib-2.0.a(gregex.o): In function `g_match_info_next':
(.text+0x1cc3): undefined reference to `pcre_exec'
collect2: ld returned 1 exit status
g++-4.1 -static -o "/home/paul/upp/out/GCC.Gui.Mt/HelloWorld" -Wl,-s -L"/usr/X11R6/lib" -L"/usr/lib" -Wl,-O,2
	  "/home/paul/upp/out/HelloWorld/GCC.Gui.Main.Mt/hello.o" "/home/paul/upp/out/CtrlLib/GCC.Gui.Mt/CtrlLib.
	o" "/home/paul/upp/out/CtrlCore/GCC.Gui.Mt/CtrlCore.o" "/home/paul/upp/out/RichText/GCC.Gui.Mt/RichImage.
	o" "/home/paul/upp/out/PdfDraw/GCC.Gui.Mt/PdfReport.o" "/home/paul/upp/out/plugin/bmp/GCC.Gui.Mt/BmpReg.o
	" "/home/paul/upp/out/plugin/png/GCC.Gui.Mt/pngreg.o" -Wl,--start-group  "/home/paul/upp/out/CtrlLib/GCC.
	Gui.Mt/CtrlLib.a" "/home/paul/upp/out/CtrlCore/GCC.Gui.Mt/CtrlCore.a" "/home/paul/upp/out/RichText/GCC.Gu
	i.Mt/RichText.a" "/home/paul/upp/out/PdfDraw/GCC.Gui.Mt/PdfDraw.a" -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 
	-lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -l
	Xfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lX11 -ldl -lXft -lfontconfig -lX
	render -lfreetype -lexpat "/home/paul/upp/out/Draw/GCC.Gui.Mt/Draw.a" "/home/paul/upp/out/plugin/bmp/GCC.
	Gui.Mt/bmp.a" -lpthread -ldl -lz "/home/paul/upp/out/Core/GCC.Gui.Mt/Core.a" -lpng "/home/paul/upp/out/pl
	ugin/png/GCC.Gui.Mt/png.a" -Wl,--end-group
Error executing g++-4.1 -static -o "/home/paul/upp/out/GCC.Gui.Mt/HelloWorld" -Wl,-s -L"/usr/X11R6/lib" -L"/u
	sr/lib" -Wl,-O,2  "/home/paul/upp/out/HelloWorld/GCC.Gui.Main.Mt/hello.o" "/home/paul/upp/out/CtrlLib/GCC
	.Gui.Mt/CtrlLib.o" "/home/paul/upp/out/CtrlCore/GCC.Gui.Mt/CtrlCore.o" "/home/paul/upp/out/RichText/GCC.G
	ui.Mt/RichImage.o" "/home/paul/upp/out/PdfDraw/GCC.Gui.Mt/PdfReport.o" "/home/paul/upp/out/plugin/bmp/GCC
	.Gui.Mt/BmpReg.o" "/home/paul/upp/out/plugin/png/GCC.Gui.Mt/pngreg.o" -Wl,--start-group  "/home/paul/upp/
	out/CtrlLib/GCC.Gui.Mt/CtrlLib.a" "/home/paul/upp/out/CtrlCore/GCC.Gui.Mt/CtrlCore.a" "/home/paul/upp/out
	/RichText/GCC.Gui.Mt/RichText.a" "/home/paul/upp/out/PdfDraw/GCC.Gui.Mt/PdfDraw.a" -lgtk-x11-2.0 -lgdk-x1
	1-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXra
	ndr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lX11 -ldl -lXft 
	-lfontconfig -lXrender -lfreetype -lexpat "/home/paul/upp/out/Draw/GCC.Gui.Mt/Draw.a" "/home/paul/upp/out
	/plugin/bmp/GCC.Gui.Mt/bmp.a" -lpthread -ldl -lz "/home/paul/upp/out/Core/GCC.Gui.Mt/Core.a" -lpng "/home
	/paul/upp/out/plugin/png/GCC.Gui.Mt/png.a" -Wl,--end-group
Exitcode: 1

There were errors. (1:20.11)
Re: Ubuntu 8.04 linking problem [message #16070 is a reply to message #16069] Tue, 27 May 2008 07:19 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
You are linking with static libraries, which is a no-no for Linux GUI apps.

Activate "Use shared libraries" instead in the output mode.

BTW, have you switched it yourself or it is badly set in after installing .deb?

Mirek
Re: Ubuntu 8.04 linking problem [message #16079 is a reply to message #16070] Tue, 27 May 2008 10:50 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Is is so after install. I tried to compile with default configuration assuming this should work fine.
Re: Ubuntu 8.04 linking problem [message #16085 is a reply to message #16079] Tue, 27 May 2008 14:07 Go to previous messageGo to next message
bytefield is currently offline  bytefield
Messages: 210
Registered: December 2007
Experienced Member
Have you used my package? At me it setup correctly with "Shared libs". You could freely use both packages (upp2008 and latest SVN) because they doesn't share the same configuration directory. Try to remove configuration directory for /home/paul/.upp/theide-svn and then run theide again - it should write GCC.bm file again with default (unaltered) options. And be sure you run the correct ide version if you have installed both. Smile

Andrei


cdabbd745f1234c2751ee1f932d1dd75
Re: Ubuntu 8.04 linking problem [message #16096 is a reply to message #16085] Tue, 27 May 2008 23:02 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Deleted directory, restarted IDE, got same linking errors.
Maybe IDE really can`t find .lib-files needed? How can I check it?

[Updated on: Tue, 27 May 2008 23:03]

Report message to a moderator

Re: Ubuntu 8.04 linking problem [message #16104 is a reply to message #16070] Wed, 28 May 2008 03:56 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1363
Registered: December 2006
Ultimate Contributor
luzr wrote on Tue, 27 May 2008 01:19

You are linking with static libraries, which is a no-no for Linux GUI apps.

Activate "Use shared libraries" instead in the output mode.

BTW, have you switched it yourself or it is badly set in after installing .deb?

Mirek


The same problem as with me. In my case setting of "Shared libraries" in GUI or "bm" file doesn't help.


Regards,
Novo
Re: Ubuntu 8.04 linking problem [message #16133 is a reply to message #16104] Wed, 28 May 2008 21:35 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Let`s help bytefield make good package with testing it.

Maybe we can help in some way? Let`s discuss what could cause these errors and exclude one by one.
Re: Ubuntu 8.04 linking problem [message #16136 is a reply to message #16133] Wed, 28 May 2008 22:22 Go to previous messageGo to next message
bytefield is currently offline  bytefield
Messages: 210
Registered: December 2007
Experienced Member
Well, i use mdelfede scripts when building packages, so there shouldn't be any problem with it.




cdabbd745f1234c2751ee1f932d1dd75
Re: Ubuntu 8.04 linking problem [message #16140 is a reply to message #16136] Wed, 28 May 2008 22:56 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

How could we use these scripts? Excuse my misunderstanding, I`m just learning Linux. Rolling Eyes
But the main question is: shouldn`t U++ work "from the box"? I mean, download .deb package, install it and have everything compiling and linking fine.
I open Hello World package and it fails to link from TheIDE. This is not good from my point of view.

[Updated on: Wed, 28 May 2008 22:59]

Report message to a moderator

Re: Ubuntu 8.04 linking problem [message #16141 is a reply to message #16140] Wed, 28 May 2008 23:00 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
Hm, maybe missing dependency?

This can be tricky to test as many developers have these packages already loaded in the system, therefore installing .deb on such machine does not reveal the problem...

Maybe maintainers should test with really "empty" installation?

Mirek
Re: Ubuntu 8.04 linking problem [message #16142 is a reply to message #16141] Wed, 28 May 2008 23:08 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

I may help with this. From time to time I may completely reinstall Lunix on my notebook to test empty installation. If it is needed of course.
The fact I`m not the only one with this problem means it`s not problem with my Linux configuration but more probably with U++.
Re: Ubuntu 8.04 linking problem [message #16143 is a reply to message #16140] Thu, 29 May 2008 01:15 Go to previous messageGo to next message
bytefield is currently offline  bytefield
Messages: 210
Registered: December 2007
Experienced Member
Mindtraveller wrote on Wed, 28 May 2008 23:56

How could we use these scripts? Excuse my misunderstanding, I`m just learning Linux. Rolling Eyes
But the main question is: shouldn`t U++ work "from the box"? I mean, download .deb package, install it and have everything compiling and linking fine.
I open Hello World package and it fails to link from TheIDE. This is not good from my point of view.


You shouldn't use the scripts, *.deb package should work out of box. I was saying that i use the same scripts as mdelfede to make packages and if there is something wrong then that something should be in both packages. So, i will try to install latest package in a new distro in virtual machine and check for the problems.


cdabbd745f1234c2751ee1f932d1dd75

[Updated on: Thu, 29 May 2008 01:24]

Report message to a moderator

Re: Ubuntu 8.04 linking problem [message #16145 is a reply to message #16143] Thu, 29 May 2008 12:04 Go to previous messageGo to next message
bytefield is currently offline  bytefield
Messages: 210
Registered: December 2007
Experienced Member
Ok, I've tried upp in a fresh installed distro (U8.04) and there isn't any problem with it. TheIde settings are correct and the build of any package work without any error. There isn't any dependencies problem or something like that. I've used the distro with latest update installed.
So please send your feedback about your problems and in which circumstances the errors appear. I don't know what the problem can be. Are there any other users of Ubuntu 8.04 distro which meet these problems?
So i have a request to everyone who can help(~advanced linux user): please test deb package.
Thanks,

Andrei


cdabbd745f1234c2751ee1f932d1dd75
Re: Ubuntu 8.04 linking problem [message #16146 is a reply to message #16069] Thu, 29 May 2008 12:09 Go to previous messageGo to next message
cocob is currently offline  cocob
Messages: 156
Registered: January 2008
Experienced Member
no problems in Debian Lenny with all packages but i have a lot of developpement library installed...
Re: Ubuntu 8.04 linking problem [message #16147 is a reply to message #16104] Thu, 29 May 2008 12:26 Go to previous messageGo to next message
bytefield is currently offline  bytefield
Messages: 210
Registered: December 2007
Experienced Member
Novo wrote on Wed, 28 May 2008 04:56

luzr wrote on Tue, 27 May 2008 01:19

You are linking with static libraries, which is a no-no for Linux GUI apps.

Activate "Use shared libraries" instead in the output mode.

BTW, have you switched it yourself or it is badly set in after installing .deb?

Mirek


The same problem as with me. In my case setting of "Shared libraries" in GUI or "bm" file doesn't help.


Is your compiler output the same as Mindtraveller compiler errors?
Could you post it, for comparison, to see what is going wrong?
cocob wrote

no problems in Debian Lenny with all packages but i have a lot of developpement library installed...

Thanks for checking.


cdabbd745f1234c2751ee1f932d1dd75
Re: Ubuntu 8.04 linking problem [message #16155 is a reply to message #16147] Thu, 29 May 2008 21:49 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Maybe I`ve found a problem. After "fresh" IDE-SVN install from .deb package, if you enter Build - Output mode dialog, on the right side of it we have Link mode = Static for Release mode. But in Build methods we have Shared Libs linking for all modes (Debug & Release).
In Output mode dialog I switched Linking mode to Use shared libs, made complete rebuild and had everything linked without errors.
Re: Ubuntu 8.04 linking problem [message #16158 is a reply to message #16155] Thu, 29 May 2008 23:50 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1363
Registered: December 2006
Ultimate Contributor
Mindtraveller wrote on Thu, 29 May 2008 15:49

Maybe I`ve found a problem. After "fresh" IDE-SVN install from .deb package, if you enter Build - Output mode dialog, on the right side of it we have Link mode = Static for Release mode. But in Build methods we have Shared Libs linking for all modes (Debug & Release).
In Output mode dialog I switched Linking mode to Use shared libs, made complete rebuild and had everything linked without errors.


Unfortunately, this trick doesn't work with TheIDE built from SVN via Makefile.


Regards,
Novo
Re: Ubuntu 8.04 linking problem [message #16159 is a reply to message #16155] Thu, 29 May 2008 23:57 Go to previous messageGo to next message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
Mindtraveller wrote on Thu, 29 May 2008 21:49

Maybe I`ve found a problem. After "fresh" IDE-SVN install from .deb package, if you enter Build - Output mode dialog, on the right side of it we have Link mode = Static for Release mode. But in Build methods we have Shared Libs linking for all modes (Debug & Release).
In Output mode dialog I switched Linking mode to Use shared libs, made complete rebuild and had everything linked without errors.


IIRC, output mode is stored in package config area, but build modes are global to ide. So, if you had ide installed previously and set output mode to static, it will stay there until you don't change it (or wipe .upp/theide-svn folder, which erases ALL configs, so DON'T do it Smile ).

I don't remember if reinstalling .deb replaces .bm file, either... but I don't think so, otherwise custom settings would be lost on ide upgrade.
So, if you want to test if packages install correctly, the only choice would be to wipe .upp folder before installing OR install on a clean ubuntu.

Max
Re: Ubuntu 8.04 linking problem [message #16160 is a reply to message #16158] Thu, 29 May 2008 23:59 Go to previous messageGo to next message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
Novo wrote on Thu, 29 May 2008 23:50

Mindtraveller wrote on Thu, 29 May 2008 15:49

Maybe I`ve found a problem. After "fresh" IDE-SVN install from .deb package, if you enter Build - Output mode dialog, on the right side of it we have Link mode = Static for Release mode. But in Build methods we have Shared Libs linking for all modes (Debug & Release).
In Output mode dialog I switched Linking mode to Use shared libs, made complete rebuild and had everything linked without errors.


Unfortunately, this trick doesn't work with TheIDE built from SVN via Makefile.


Try following :

1) Wipe output folder before building
2) set to shared mode both in build method AND output mode
3) rebuild all

It should do the trick...

Max
Re: Ubuntu 8.04 linking problem [message #16162 is a reply to message #16160] Fri, 30 May 2008 05:35 Go to previous messageGo to previous message
Novo is currently offline  Novo
Messages: 1363
Registered: December 2006
Ultimate Contributor
mdelfede wrote on Thu, 29 May 2008 17:59


2) set to shared mode both in build method AND output mode



Thanks !!! That was it. I completely forgot about this "Output mode". I checked GCC.bm and Setup/Build methods. Everything seemed to be fine. Even tryed to debug TheIDE ...



Regards,
Novo

[Updated on: Fri, 30 May 2008 05:35]

Report message to a moderator

Previous Topic: cross compile from win32 to Linux
Next Topic: Is there a working U++ [Free]BSD port?
Goto Forum:
  


Current Time: Thu Jun 13 00:18:24 CEST 2024

Total time taken to generate the page: 0.02158 seconds