Compiling problem on Ubuntu 9.10 64 bit

Hello,

I’m trying to compile wxruby for Ruby 1.9 on Ubuntu Karmic 64 bit, but I
can’t get it to work. I’ve already done this for the 32 bit version (on
another machine, of course), so I don’t see where’s the problem with
that. I thought, I had all neccessary libraries installed, but maybe you
know better… After compiling for a long time, rake fails with this
error:

g++ -shared -fPIC -o -L. -rdynamic -Wl,-export-dynamic -shared
obj/AboutDialogInfo.o obj/AcceleratorEntry.o obj/AcceleratorTable.o
obj/ActivateEvent.o obj/Animation.o obj/AnimationCtrl.o obj/App.o
obj/ArtProvider.o obj/AuiDefaultDockArt.o obj/AuiDockArt.o
obj/AuiManager.o obj/AuiManagerEvent.o obj/AuiNotebook.o
obj/AuiNotebookEvent.o obj/AuiPaneInfo.o obj/Bitmap.o obj/BitmapButton.o
obj/BitmapComboBox.o obj/BitmapDataObject.o obj/BookCtrlBase.o
obj/BookCtrlBaseEvent.o obj/BoxSizer.o obj/Brush.o obj/BusyInfo.o
obj/Button.o obj/CalculateLayoutEvent.o obj/CalendarCtrl.o
obj/CalendarDateAttr.o obj/CalendarEvent.o obj/Caret.o obj/CheckBox.o
obj/CheckListBox.o obj/ChildFocusEvent.o obj/Choice.o obj/Choicebook.o
obj/ChoicebookEvent.o obj/ClientDC.o obj/ClientDataContainer.o
obj/Clipboard.o obj/ClipboardTextEvent.o obj/CloseEvent.o
obj/CollapsiblePane.o obj/CollapsiblePaneEvent.o obj/Colour.o
obj/ColourData.o obj/ColourDialog.o obj/ComboBox.o obj/CommandEvent.o
obj/ContextHelpButton.o obj/ContextMenuEvent.o obj/Control.o
obj/ControlWithItems.o obj/Cursor.o obj/DC.o obj/DataFormat.o
obj/DataObject.o obj/DataObjectComposite.o obj/DataObjectSimple.o
obj/DateEvent.o obj/DatePickerCtrl.o obj/Dialog.o obj/DirDialog.o
obj/Display.o obj/DragImage.o obj/DropSource.o obj/DropTarget.o
obj/EraseEvent.o obj/Event.o obj/EvtHandler.o obj/FileDataObject.o
obj/FileDialog.o obj/FileDropTarget.o obj/FindDialogEvent.o
obj/FindReplaceData.o obj/FindReplaceDialog.o obj/FlexGridSizer.o
obj/FocusEvent.o obj/Font.o obj/FontData.o obj/FontDialog.o obj/Frame.o
obj/GBPosition.o obj/GBSpan.o obj/GCDC.o obj/GDIObject.o obj/GLCanvas.o
obj/Gauge.o obj/GenericDirCtrl.o obj/GraphicsBrush.o
obj/GraphicsContext.o obj/GraphicsFont.o obj/GraphicsMatrix.o
obj/GraphicsObject.o obj/GraphicsPath.o obj/GraphicsPen.o obj/Grid.o
obj/GridBagSizer.o obj/GridCellAttr.o obj/GridCellBoolEditor.o
obj/GridCellBoolRenderer.o obj/GridCellChoiceEditor.o
obj/GridCellEditor.o obj/GridCellFloatEditor.o
obj/GridCellFloatRenderer.o obj/GridCellNumberEditor.o
obj/GridCellNumberRenderer.o obj/GridCellRenderer.o
obj/GridCellStringRenderer.o obj/GridCellTextEditor.o
obj/GridEditorCreatedEvent.o obj/GridEvent.o obj/GridRangeSelectEvent.o
obj/GridSizeEvent.o obj/GridSizer.o obj/GridTableBase.o
obj/HelpController.o obj/HelpEvent.o obj/HelpProvider.o obj/HtmlCell.o
obj/HtmlCellEvent.o obj/HtmlContainerCell.o obj/HtmlEasyPrinting.o
obj/HtmlHelpController.o obj/HtmlLinkEvent.o obj/HtmlLinkInfo.o
obj/HtmlListBox.o obj/HtmlWidgetCell.o obj/HtmlWindow.o
obj/HyperlinkCtrl.o obj/HyperlinkEvent.o obj/Icon.o obj/IconBundle.o
obj/IconizeEvent.o obj/IdleEvent.o obj/Image.o obj/ImageList.o
obj/KeyEvent.o obj/LayoutAlgorithm.o obj/ListBox.o obj/ListCtrl.o
obj/ListEvent.o obj/ListItem.o obj/ListItemAttr.o obj/Listbook.o
obj/ListbookEvent.o obj/Locale.o obj/Log.o obj/LogTextCtrl.o
obj/MDIChildFrame.o obj/MDIParentFrame.o obj/Mask.o obj/MediaCtrl.o
obj/MediaEvent.o obj/MemoryDC.o obj/Menu.o obj/MenuBar.o obj/MenuEvent.o
obj/MenuItem.o obj/MessageDialog.o obj/MiniFrame.o obj/MouseEvent.o
obj/MouseState.o obj/MoveEvent.o obj/MultiChoiceDialog.o
obj/NavigationKeyEvent.o obj/Notebook.o obj/NotebookEvent.o
obj/NotifyEvent.o obj/NumberEntryDialog.o obj/Object.o
obj/PageSetupDialog.o obj/PageSetupDialogData.o obj/PaintDC.o
obj/PaintEvent.o obj/Panel.o obj/PasswordEntryDialog.o obj/Pen.o
obj/Point.o obj/PreviewCanvas.o obj/PreviewControlBar.o
obj/PreviewFrame.o obj/PrintData.o obj/PrintDialog.o
obj/PrintDialogData.o obj/PrintPreview.o obj/Printer.o obj/Printout.o
obj/ProgressDialog.o obj/PropertySheetDialog.o
obj/QueryLayoutInfoEvent.o obj/RadioBox.o obj/RadioButton.o obj/Rect.o
obj/Region.o obj/RendererNative.o obj/RichTextAttr.o
obj/RichTextBuffer.o obj/RichTextCharacterStyleDefinition.o
obj/RichTextCtrl.o obj/RichTextEvent.o obj/RichTextFileHandler.o
obj/RichTextFormattingDialog.o obj/RichTextHTMLHandler.o
obj/RichTextHeaderFooterData.o obj/RichTextListStyleDefinition.o
obj/RichTextParagraphStyleDefinition.o obj/RichTextPrinting.o
obj/RichTextPrintout.o obj/RichTextStyleDefinition.o
obj/RichTextStyleListBox.o obj/RichTextStyleListCtrl.o
obj/RichTextStyleSheet.o obj/RichTextXMLHandler.o obj/SashEvent.o
obj/SashLayoutWindow.o obj/SashWindow.o obj/ScreenDC.o obj/ScrollBar.o
obj/ScrollEvent.o obj/ScrollWinEvent.o obj/ScrolledWindow.o
obj/SearchCtrl.o obj/SetCursorEvent.o obj/ShowEvent.o
obj/SingleChoiceDialog.o obj/Size.o obj/SizeEvent.o obj/Sizer.o
obj/SizerItem.o obj/Slider.o obj/Sound.o obj/SpinButton.o obj/SpinCtrl.o
obj/SpinEvent.o obj/SplashScreen.o obj/SplitterEvent.o
obj/SplitterWindow.o obj/StandardPaths.o obj/StaticBitmap.o
obj/StaticBox.o obj/StaticBoxSizer.o obj/StaticLine.o obj/StaticText.o
obj/StatusBar.o obj/StdDialogButtonSizer.o obj/StyledTextCtrl.o
obj/StyledTextEvent.o obj/SymbolPickerDialog.o obj/SystemSettings.o
obj/TaskBarIcon.o obj/TextAttr.o obj/TextCtrl.o obj/TextDataObject.o
obj/TextDropTarget.o obj/TextEntryDialog.o obj/TextUrlEvent.o
obj/TextValidator.o obj/Timer.o obj/TimerEvent.o obj/TipProvider.o
obj/TipWindow.o obj/ToggleButton.o obj/ToolBar.o obj/ToolBarToolBase.o
obj/ToolTip.o obj/Toolbook.o obj/ToolbookEvent.o obj/TopLevelWindow.o
obj/TreeCtrl.o obj/TreeEvent.o obj/Treebook.o obj/TreebookEvent.o
obj/UpdateUIEvent.o obj/VListBox.o obj/VScrolledWindow.o obj/Validator.o
obj/Window.o obj/WindowCreateEvent.o obj/WindowDC.o
obj/WindowDestroyEvent.o obj/WindowDisabler.o obj/Wizard.o
obj/WizardEvent.o obj/WizardPage.o obj/WizardPageSimple.o
obj/XmlResource.o obj/RubyConstants.o obj/RubyStockObjects.o
obj/Functions.o obj/Mac.o obj/wx.o -pthread -Wl,-Bsymbolic-functions
-lwx_gtk2u_stc-2.8 -lwx_gtk2u_gl-2.8 -lwx_gtk2u_media-2.8
-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
-lpthread -lrt -ldl -lcrypt -lm -Wl,-Bdynamic -lgtk-x11-2.0
-lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0 -lpangox-1.0
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -o
lib/wxruby2.so
/usr/bin/ld: obj/AboutDialogInfo.o: relocation R_X86_64_32 against
`.bss’ can not be used when making a shared object; recompile with -fPIC
obj/AboutDialogInfo.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
rake aborted!
Command failed with status (1): [g++ -shared -fPIC -o -L. -rdynamic
-Wl,-…]

(See full trace by running task with --trace)

Anyone an idea? Or does somebody know where to obtain the wxruby-ruby19
gem for Ubuntu Karmic 64 bit?

ruby -v: ruby 1.9.1p378 (2010-01-10 revision 26273) [x86_64-linux]

Marvin

from http://wxruby.rubyforge.org/wiki/wiki.pl?HowToBuildWxWidgets

Unpack the wxWidgets distribution, create a ‘build’ directory, then do:

…/configure --disable-shared --with-gtk --enable-monolithic
–enable-unicode --disable-debug --enable-catch_segvs
–enable-graphics_ctx
–enable-mediactrl --with-opengl --with-libjpeg=builtin
–with-libpng=builtin
–with-libtiff=builtin --with-zlib=builtin --with-expat=builtin
–enable-gui
–enable-xrc --enable-mdi --enable-gif
–enable-pcx --enable-iff --enable-pnm --enable-xpm

(Note that this command should be all one line; if you are on a 64-bit
architecture, you may also need to add the following flags to the end:
CFLAGS=-fPIC CXXFLAGS=-fPIC LDFLAGS=-fPIC)

in my laptop (ubuntu 9.10 64bit ) work

see also
http://wxruby.rubyforge.org/wiki/wiki.pl?BuildingOnTopOfLinuxDistroPackages

this is the gem :
svn version: 2107
http://www.waydotnet.com/ruby/wxruby-ruby19-2.0.1.dev-x86_64-linux.gem

without StyledTextCtrl

Only problem when install without --no-rdoc

Carlo Bertini

Sorry for the late answer, I’ve been cut off from the Internet for the
last days…

Carlo Bertini wrote:

this is the gem :
svn version: 2107
http://www.waydotnet.com/ruby/wxruby-ruby19-2.0.1.dev-x86_64-linux.gem

without StyledTextCtrl

Only problem when install without --no-rdoc

Carlo Bertini

That works awesome! Thank you!

Carlo Bertini wrote:

from http://wxruby.rubyforge.org/wiki/wiki.pl?HowToBuildWxWidgets

I couldn’t get wxRuby to compile. After compiling wxWidgets with the
long term you (or the wxRuby wiki) suggested (with the extra 64-bit
options) passed to the configure script and the “ugly hack” described at
http://trac.wxwidgets.org/ticket/10883 the error I posted still
persists.

However, your gem works, so thank you!

Marvin

Carlo Bertini wrote:

Marvin Gülker wrote:

However, your gem works, so thank you!

Nothing :smiley:

Carlo Bertini

www.waydotnet.com

To be social is very positive aspect in this age of materialism. Life is
moving very fast and embedded with full luxuries. In this fast life dedicated
hosting
is too facilitating for your comfort and minimizing all
tensions.

Marvin Gülker wrote:

However, your gem works, so thank you!

Nothing :smiley:

Carlo Bertini

www.waydotnet.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs