I have a bit of a problem with installation. I installed wxX11 in my linux box. I compiled the demos and all the demos, save dbbrowse, work. I think I have a functional wx. Now I''m trying to install wxRuby from source, since I have a 64 bit machine. I only have permission to my home directory so my installation is : /usr/people/stevenq/Applications/wxX11/ /usr/people/stevenq/Applications/share/swig/ /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake I added rake to my path and I''m getting: [DING!]carburetor: /usr/people/stevenq/src/wxruby2-preview-0.0.38/ 78$ rake (in /home/stevenq/src/wxruby2-preview-0.0.38) ./rake/rakelinux.rb:35: command not found: wx-config --version ./rake/rakelinux.rb:35: command not found: wx-config --cppflags ./rake/rakelinux.rb:35: command not found: wx-config --libs ./rake/rakelinux.rb:35: command not found: wx-config --cxx ./rake/rakelinux.rb:35: command not found: wx-config --ld ./rake/rakewx.rb:210: warning: global variable `$found_good_swig'' not initialized ./rake/rakewx.rb:210: command not found: swig -version rake aborted! Couldn''t find required SWIG (minimum 1.3.29). (See full trace by running task with --trace)
Hello Steven, Looks to me like you need to include the path to wx-config in your PATH. wx-config is installed when creating the Wx library (make install), on my OS X machine it is located in /usr/local/bin/wx-config. You also may want to check that the path to swig is in your PATH. Hope that solves your problems. Sean On 2/8/07, Steven Quinones-Colon <stevenq1967 at gmail.com> wrote:> I have a bit of a problem with installation. I installed wxX11 in my > linux box. I compiled the demos and all the demos, save dbbrowse, > work. I think I have a functional wx. Now I''m trying to install wxRuby > from source, since I have a 64 bit machine. I only have permission to > my home directory so my installation is : > /usr/people/stevenq/Applications/wxX11/ > /usr/people/stevenq/Applications/share/swig/ > /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake > I added rake to my path and I''m getting: > > > [DING!]carburetor: /usr/people/stevenq/src/wxruby2-preview-0.0.38/ 78$ rake > (in /home/stevenq/src/wxruby2-preview-0.0.38) > ./rake/rakelinux.rb:35: command not found: wx-config --version > ./rake/rakelinux.rb:35: command not found: wx-config --cppflags > ./rake/rakelinux.rb:35: command not found: wx-config --libs > ./rake/rakelinux.rb:35: command not found: wx-config --cxx > ./rake/rakelinux.rb:35: command not found: wx-config --ld > ./rake/rakewx.rb:210: warning: global variable `$found_good_swig'' not > initialized > ./rake/rakewx.rb:210: command not found: swig -version > rake aborted! > Couldn''t find required SWIG (minimum 1.3.29). > > (See full trace by running task with --trace) > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users >
Sean, thanks for the tip. I fixed my paths and everything goes well until we get here: core_name: Choice ** Execute obj/Choice.o ./rake/rakewx.rb:320: warning: global variable `$verbose_flag'' not initialized g++ -c -I/usr/people/stevenq/Applications/wxX11/lib/wx/include/x11univ-ansi-debug-static-2.6 -I/usr/people/stevenq/Applications/wxX11/include/wx-2.6 -D__WXDEBUG__ -D__WXUNIVERSAL__ -D__WXX11__ -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -g -O2 -Wno-unused-function -I /usr/people/stevenq/Applications/ruby/lib/ruby -I /usr/people/stevenq/Applications/ruby/lib/site_ruby/1.8 -I /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8 -I /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/x86_64-linux -I /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby -I /usr/people/stevenq/Applications/ruby/lib/ruby/1.8 -I /usr/people/stevenq/Applications/ruby/lib/ruby/1.8/x86_64-linux -I . -I /home/stevenq/src/wxruby2-preview-0.0.38/doc/lib -o obj/Choice.o src/Choice.cpp src/Choice.cpp: In function ''VALUE wxControlWithItems_get_client_data(wxControlWithItems*, int)'': src/Choice.cpp:2041: warning: NULL used in arithmetic src/Choice.cpp: In function ''void mark_wxControlWithItems(void*)'': src/Choice.cpp:2060: warning: NULL used in arithmetic src/Choice.cpp: In function ''VALUE wxChoice_get_client_data(wxChoice*, int)'': src/Choice.cpp:2168: error: cannot convert ''wxChoice*'' to ''wxControlWithItems*'' for argument ''1'' to ''VALUE wxControlWithItems_get_client_data(wxControlWithItems*, int)'' src/Choice.cpp: In function ''VALUE _wrap_wxChoice_GetColumns(int, VALUE*, VALUE)'': src/Choice.cpp:2813: error: ''const class wxChoice'' has no member named ''GetColumns'' src/Choice.cpp: In function ''VALUE _wrap_wxChoice_SetColumns(int, VALUE*, VALUE)'': src/Choice.cpp:2845: error: ''class wxChoice'' has no member named ''SetColumns'' rake aborted! Command failed with status (1): [g++ -c -I/usr/people/stevenq/Application...] /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:722:in `sh'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:729:in `call'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:729:in `sh'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:812:in `sh'' ./rake/rakewx.rb:320:in `create_compile_task'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:387:in `call'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:387:in `execute'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:387:in `each'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:387:in `execute'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:357:in `invoke'' /usr/people/stevenq/Applications/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:350:in `invoke'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:364:in `invoke_prerequisites'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:999:in `each'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:999:in `send'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:999:in `each'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:363:in `invoke_prerequisites'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:356:in `invoke'' /usr/people/stevenq/Applications/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:350:in `invoke'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:364:in `invoke_prerequisites'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:999:in `each'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:999:in `send'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:999:in `each'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:363:in `invoke_prerequisites'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:356:in `invoke'' /usr/people/stevenq/Applications/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:350:in `invoke'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:364:in `invoke_prerequisites'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:999:in `each'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:999:in `send'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:999:in `each'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:363:in `invoke_prerequisites'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:356:in `invoke'' /usr/people/stevenq/Applications/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:350:in `invoke'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:1906:in `run'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:1906:in `each'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:1906:in `run'' /usr/people/stevenq/Applications/ruby/bin/rake:8
By the way, the commnad was: ?rake --trace"
Hi Steven Steven Quinones-Colon wrote:> Sean, thanks for the tip. I fixed my paths and everything goes well > until we get here: > >> src/Choice.cpp: In function ''VALUE > wxControlWithItems_get_client_data(wxControlWithItems*, int)'': > src/Choice.cpp:2041: warning: NULL used in arithmeticI will try and fix these warnings but they aren''t a problem.> src/Choice.cpp: In function ''VALUE wxChoice_get_client_data(wxChoice*, int)'': > src/Choice.cpp:2168: error: cannot convert ''wxChoice*'' to > ''wxControlWithItems*'' for argument ''1'' to ''VALUE > wxControlWithItems_get_client_data(wxControlWithItems*, int)'' > src/Choice.cpp: In function ''VALUE _wrap_wxChoice_GetColumns(int, > VALUE*, VALUE)'': > src/Choice.cpp:2813: error: ''const class wxChoice'' has no member named > ''GetColumns'' > src/Choice.cpp: In function ''VALUE _wrap_wxChoice_SetColumns(int, > VALUE*, VALUE)'': > src/Choice.cpp:2845: error: ''class wxChoice'' has no member named ''SetColumns'' > rake aborted! >Can I ask what GUI toolkit you are using with WxWidgets? You can find this out by running wx-config --list If you are on linux, it should say something like "Default config is gtk-unicode-release-static-2.6" thanks alex
> Can I ask what GUI toolkit you are using with WxWidgets? You can find > this out by running > > wx-config --list > > If you are on linux, it should say something like "Default config is > gtk-unicode-release-static-2.6" > > thanks > alex > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users >wx-config --list Default config is x11univ-ansi-debug-static-2.6 Default config will be used for output
> wx-config --list > > Default config is x11univ-ansi-debug-static-2.6 >Thanks. Is it possible for you to use the GTK toolkit instead of X11? To compile wxWidgets this way, add this argument to wxWidget''s configure --with-gtk Also I''d recommend using unicode if possible (--enable-unicode) alex
Would GTK2 be OK? On 2/12/07, Alex Fenton <alex at pressure.to> wrote:> > > wx-config --list > > > > Default config is x11univ-ansi-debug-static-2.6 > > > Thanks. Is it possible for you to use the GTK toolkit instead of X11? > > To compile wxWidgets this way, add this argument to wxWidget''s configure > --with-gtk > > Also I''d recommend using unicode if possible (--enable-unicode) > > alex > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users >
Steven Quinones-Colon wrote:> Would GTK2 be OK? >Yes, that''s ideal. alex
This is where it seems to fail: /usr/bin/ld: obj/ActivateEvent.o: relocation R_X86_64_32 against `a local symbol'' can not be used when making a shared object; recompile with -fPIC obj/ActivateEvent.o: could not read symbols: Bad value collect2: ld returned 1 exit status rake aborted! Command failed with status (1): [g++ -shared -fPIC -o -rdynamic -Wl,-expo...] /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:722:in `sh'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:729:in `call'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:729:in `sh'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:812:in `sh'' ./rake/rakewx.rb:334:in `create_link_task'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:387:in `call'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:387:in `execute'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:387:in `each'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:387:in `execute'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:357:in `invoke'' /usr/people/stevenq/Applications/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:350:in `invoke'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:364:in `invoke_prerequisites'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:999:in `each'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:999:in `send'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:999:in `each'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:363:in `invoke_prerequisites'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:356:in `invoke'' /usr/people/stevenq/Applications/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:350:in `invoke'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:364:in `invoke_prerequisites'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:999:in `each'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:999:in `send'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:999:in `each'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:363:in `invoke_prerequisites'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:356:in `invoke'' /usr/people/stevenq/Applications/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:350:in `invoke'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:1906:in `run'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:1906:in `each'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:1906:in `run'' /usr/people/stevenq/Applications/ruby/bin/rake:8 On 2/12/07, Alex Fenton <alex at pressure.to> wrote:> Steven Quinones-Colon wrote: > > Would GTK2 be OK? > > > Yes, that''s ideal. > > alex > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users >
Hold on a sec, I think I didn''t sourced my .tcshrc stay tuned On 2/12/07, Steven Quinones-Colon <stevenq1967 at gmail.com> wrote:> This is where it seems to fail: >
This is the result, is there a way to do a "clean" with rake, like you do with make? /usr/bin/ld: obj/ActivateEvent.o: relocation R_X86_64_32 against `a local symbol'' can not be used when making a shared object; recompile with -fPIC obj/ActivateEvent.o: could not read symbols: Bad value collect2: ld returned 1 exit status rake aborted! Command failed with status (1): [g++ -shared -fPIC -o -rdynamic -Wl,-expo...] /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:722:in `sh'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:729:in `call'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:729:in `sh'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:812:in `sh'' ./rake/rakewx.rb:334:in `create_link_task'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:387:in `call'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:387:in `execute'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:387:in `each'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:387:in `execute'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:357:in `invoke'' /usr/people/stevenq/Applications/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:350:in `invoke'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:364:in `invoke_prerequisites'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:999:in `each'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:999:in `send'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:999:in `each'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:363:in `invoke_prerequisites'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:356:in `invoke'' /usr/people/stevenq/Applications/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:350:in `invoke'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:364:in `invoke_prerequisites'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:999:in `each'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:999:in `send'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:999:in `each'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:363:in `invoke_prerequisites'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:356:in `invoke'' /usr/people/stevenq/Applications/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:350:in `invoke'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:1906:in `run'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:1906:in `each'' /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake.rb:1906:in `run'' /usr/people/stevenq/Applications/ruby/bin/rake:8 On 2/12/07, Steven Quinones-Colon <stevenq1967 at gmail.com> wrote:> Hold on a sec, I think I didn''t sourced my .tcshrc > stay tuned > On 2/12/07, Steven Quinones-Colon <stevenq1967 at gmail.com> wrote: > > This is where it seems to fail: > > >
try: rake clean rake clean_src to view other rake tasks type: rake -T Sean On 2/12/07, Steven Quinones-Colon <stevenq1967 at gmail.com> wrote:> This is the result, is there a way to do a "clean" with rake, like you > do with make? > >
well, no dice after the "clean" . I was hoping that would do it. Here is where it fails: g++ -shared -fPIC -o -rdynamic -Wl,-export-dynamic -shared obj/ActivateEvent.o obj/App.o obj/ArtProvider.o obj/Bitmap.o obj/BitmapButton.o obj/Bogus.o obj/BoxSizer.o obj/Brush.o obj/BusyCursor.o obj/BusyInfo.o obj/Button.o obj/CalendarCtrl.o obj/CalendarDateAttr.o obj/CalendarEvent.o obj/Caret.o obj/CheckBox.o obj/CheckListBox.o obj/Choice.o obj/Choicebook.o obj/ChoicebookEvent.o obj/ClassInfo.o obj/ClientDC.o obj/ClientDataContainer.o obj/CloseEvent.o obj/Colour.o obj/ColourData.o obj/ColourDialog.o obj/ComboBox.o obj/CommandEvent.o obj/Control.o obj/ControlWithItems.o obj/Cursor.o obj/DC.o obj/Dialog.o obj/DirDialog.o obj/DragImage.o obj/Event.o obj/EvtHandler.o obj/FileDialog.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/GDIObject.o obj/Gauge.o obj/GenericDirCtrl.o obj/Grid.o obj/GridCellAttr.o obj/GridCellBoolEditor.o obj/GridCellBoolRenderer.o obj/GridCellChoiceEditor.o obj/GridCellCoords.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/HelpController.o obj/HtmlCell.o obj/HtmlContainerCell.o obj/HtmlEasyPrinting.o obj/HtmlHelpController.o obj/HtmlLinkInfo.o obj/HtmlWidgetCell.o obj/HtmlWindow.o obj/Icon.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/MemoryDC.o obj/Menu.o obj/MenuBar.o obj/MenuItem.o obj/MessageDialog.o obj/MiniFrame.o obj/MouseEvent.o obj/MoveEvent.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/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/RadioBox.o obj/RadioButton.o obj/Rect.o obj/Region.o obj/SashEvent.o obj/SashLayoutWindow.o obj/SashWindow.o obj/ScreenDC.o obj/ScrollWinEvent.o obj/ScrolledWindow.o obj/SingleChoiceDialog.o obj/Size.o obj/SizeEvent.o obj/Sizer.o obj/Slider.o obj/SpinButton.o obj/SpinCtrl.o obj/SpinEvent.o obj/SplashScreen.o obj/SplitterEvent.o obj/SplitterWindow.o obj/StaticBitmap.o obj/StaticBox.o obj/StaticBoxSizer.o obj/StaticLine.o obj/StaticText.o obj/StatusBar.o obj/StdDialogButtonSizer.o obj/SystemSettings.o obj/TaskBarIcon.o obj/TextAttr.o obj/TextCtrl.o obj/TextEntryDialog.o obj/TextValidator.o obj/Timer.o obj/TimerEvent.o obj/TipProvider.o obj/TipWindow.o obj/ToggleButton.o obj/ToolBar.o obj/ToolTip.o obj/TopLevelWindow.o obj/TreeCtrl.o obj/TreeEvent.o obj/TreeItemId.o obj/UpdateUIEvent.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/wx.o obj/RubyConstants.o obj/RubyStockObjects.o obj/RubyEventTypes.o obj/Functions.o obj/Mac.o obj/Events.o -L/usr/people/stevenq/Applications/lib -pthread -L/usr/X11R6/lib64 -Wl,-Bstatic -lwx_gtk2_xrc-2.6 -Wl,-Bdynamic -Wl,-Bstatic -lwx_gtk2_qa-2.6 -Wl,-Bdynamic -Wl,-Bstatic -lwx_gtk2_html-2.6 -Wl,-Bdynamic -Wl,-Bstatic -lwx_gtk2_adv-2.6 -Wl,-Bdynamic -Wl,-Bstatic -lwx_gtk2_core-2.6 -Wl,-Bdynamic -Wl,-Bstatic -lwx_base_xml-2.6 -Wl,-Bdynamic -Wl,-Bstatic -lwx_base_net-2.6 -Wl,-Bdynamic -Wl,-Bstatic -lwx_base-2.6 -Wl,-Bdynamic -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 -ljpeg -lpng -ltiff -o lib/wxruby2.so /usr/bin/ld: obj/ActivateEvent.o: relocation R_X86_64_32 against `a local symbol'' can not be used when making a shared object; recompile with -fPIC obj/ActivateEvent.o: could not read symbols: Bad value collect2: ld returned 1 exit status rake aborted! Command failed with status (1): [g++ -shared -fPIC -o -rdynamic -Wl,-expo...] (See full trace by running task with --trace)
Steven Quinones-Colon wrote:> well, no dice after the "clean" . I was hoping that would do it. >Thanks for your patience...> g++ -shared -fPIC -o -rdynamic -Wl,-export-dynamic -shared > obj/ActivateEvent.o obj/App.o obj/ArtProvider.o [...]<snip>> -lpangoxft-1.0 -lpangox-1.0 > -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 > -ljpeg -lpng -ltiff -o lib/wxruby2.so > /usr/bin/ld: obj/ActivateEvent.o: relocation R_X86_64_32 against `a > local symbol'' can not be used when making a shared object; recompile > with -fPICHmmm - I don''t know much about gcc on AMD64. But perhaps you could try editing rake/rakelinux.rb in the wxruby2 install dirs, and changing line 12 from $extra_cppflags = ''-Wno-unused-function '' to $extra_cppflags = ''-fPIC -Wno-unused-function '' And doing a rake clean; rake I would have thought ruby should arrange for the correct compiler flags to be inserted. Have you compiled other ruby c extensions successfully with this install? Could you let us know what the following command returns: ruby -rrbconfig -e ''puts Config::CONFIG["CFLAGS"]'' thanks alex
By the way if I haven''t said this. I''m installing to my home directory because I don''t have permissions for the system. All my other installations run fine. I''ve installed Fox and FxRuby and that worked fine. But I''d much rather use wx. Running your command: /usr/people/stevenq/src/wxruby2-preview-0.0.38/ 24$ ruby -rrbconfig -e ''puts Config::CONFIG["CFLAGS"]'' -g -O2 This is the error now: .0 -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -ljpeg -lpng -ltiff -o lib/wxruby2.so /usr/bin/ld: cannot find -lwx_gtk2_xrc-2.6 collect2: ld returned 1 exit status rake aborted! Command failed with status (1): [g++ -shared -fPIC -o -rdynamic -Wl,-expo...] (See full trace by running task with --trace)
Steven Quinones-Colon wrote:> By the way if I haven''t said this. I''m installing to my home directory > because I don''t have permissions for the system....> /usr/bin/ld: cannot find -lwx_gtk2_xrc-2.6I think this is because ld can''t find the wxwidgets libs. Try adding a -L argument with the path to where the compiled libs can be found in your home directory. eg: -L/home/alex/wxGTK-2.6.3/build/lib You could add this argument to $extra_ldflags in rake/rakelinux.rb alex
I see that rake is looking for : /usr/bin/ld: cannot find -lwx_gtk2_xrc-2.6 and my libraries are named differently, I have instead; libwx_gtk2_xrc-2.6.so.0 Coud this be it?
Steven Quinones-Colon wrote:> I see that rake is looking for : > /usr/bin/ld: cannot find -lwx_gtk2_xrc-2.6 > and my libraries are named differently, I have instead; > libwx_gtk2_xrc-2.6.so.z >I don''t think this is the problem -lwx_gtk2_xrc-2.6 is an argument to the ''ld'' command, which means link to the library ''libwx_gtk2_xrc-2.6''. But I think it looks like you have built a shared ANSI wx library. Did you try building wxWidgets with the options recommended here: http://wxruby.rubyforge.org/wiki/wiki.pl?Release_HowTo Also, did you try adding a -L argument to ld? alex
I''ll try those setting. Yes, I did try the -L argumen,t I have this on the file now: $extra_ldflags = ''-shared -L/usr/people/stevenq/Applications/lib/'' On 2/13/07, Alex Fenton <alex at pressure.to> wrote:> Steven Quinones-Colon wrote: > > I see that rake is looking for : > > /usr/bin/ld: cannot find -lwx_gtk2_xrc-2.6 > > and my libraries are named differently, I have instead; > > libwx_gtk2_xrc-2.6.so.z > > > I don''t think this is the problem -lwx_gtk2_xrc-2.6 is an argument to > the ''ld'' command, which means link to the library ''libwx_gtk2_xrc-2.6''. > > But I think it looks like you have built a shared ANSI wx library. Did > you try building wxWidgets with the options recommended here: > > http://wxruby.rubyforge.org/wiki/wiki.pl?Release_HowTo > > Also, did you try adding a -L argument to ld? > > alex > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users >