From stevenq1967 at gmail.com Thu Feb 8 21:01:10 2007 From: stevenq1967 at gmail.com (Steven Quinones-Colon) Date: Thu, 8 Feb 2007 18:01:10 -0800 Subject: [Wxruby-users] Hello Everyone Message-ID: <73800bf00702081801l5855390fuca61392ec74c8008@mail.gmail.com> 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) From sean.m.long at gmail.com Fri Feb 9 01:00:16 2007 From: sean.m.long at gmail.com (Sean Long) Date: Thu, 8 Feb 2007 22:00:16 -0800 Subject: [Wxruby-users] Hello Everyone In-Reply-To: <73800bf00702081801l5855390fuca61392ec74c8008@mail.gmail.com> References: <73800bf00702081801l5855390fuca61392ec74c8008@mail.gmail.com> Message-ID: 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 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 > From stevenq1967 at gmail.com Fri Feb 9 18:18:04 2007 From: stevenq1967 at gmail.com (Steven Quinones-Colon) Date: Fri, 9 Feb 2007 15:18:04 -0800 Subject: [Wxruby-users] Hello Everyone In-Reply-To: References: <73800bf00702081801l5855390fuca61392ec74c8008@mail.gmail.com> Message-ID: <73800bf00702091518n65595b74pda02dd78b223e89@mail.gmail.com> 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 From stevenq1967 at gmail.com Fri Feb 9 18:19:44 2007 From: stevenq1967 at gmail.com (Steven Quinones-Colon) Date: Fri, 9 Feb 2007 15:19:44 -0800 Subject: [Wxruby-users] Hello Everyone In-Reply-To: <73800bf00702091518n65595b74pda02dd78b223e89@mail.gmail.com> References: <73800bf00702081801l5855390fuca61392ec74c8008@mail.gmail.com> <73800bf00702091518n65595b74pda02dd78b223e89@mail.gmail.com> Message-ID: <73800bf00702091519xf6ad7dep8b6322265497c09b@mail.gmail.com> By the way, the commnad was: ?rake --trace" From alex at pressure.to Sat Feb 10 04:56:42 2007 From: alex at pressure.to (Alex Fenton) Date: Sat, 10 Feb 2007 09:56:42 +0000 Subject: [Wxruby-users] Hello Everyone In-Reply-To: <73800bf00702091518n65595b74pda02dd78b223e89@mail.gmail.com> References: <73800bf00702081801l5855390fuca61392ec74c8008@mail.gmail.com> <73800bf00702091518n65595b74pda02dd78b223e89@mail.gmail.com> Message-ID: <45CD96DA.2020205@pressure.to> 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 arithmetic I 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 From stevenq1967 at gmail.com Mon Feb 12 13:55:02 2007 From: stevenq1967 at gmail.com (Steven Quinones-Colon) Date: Mon, 12 Feb 2007 10:55:02 -0800 Subject: [Wxruby-users] Hello Everyone In-Reply-To: <45CD96DA.2020205@pressure.to> References: <73800bf00702081801l5855390fuca61392ec74c8008@mail.gmail.com> <73800bf00702091518n65595b74pda02dd78b223e89@mail.gmail.com> <45CD96DA.2020205@pressure.to> Message-ID: <73800bf00702121055y28b65977x1941957c04b8bbd3@mail.gmail.com> > 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 From alex at pressure.to Mon Feb 12 14:35:56 2007 From: alex at pressure.to (Alex Fenton) Date: Mon, 12 Feb 2007 19:35:56 +0000 Subject: [Wxruby-users] problem compiling with X11 In-Reply-To: <73800bf00702121055y28b65977x1941957c04b8bbd3@mail.gmail.com> References: <73800bf00702081801l5855390fuca61392ec74c8008@mail.gmail.com> <73800bf00702091518n65595b74pda02dd78b223e89@mail.gmail.com> <45CD96DA.2020205@pressure.to> <73800bf00702121055y28b65977x1941957c04b8bbd3@mail.gmail.com> Message-ID: <45D0C19C.8090501@pressure.to> > 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 From stevenq1967 at gmail.com Mon Feb 12 15:44:48 2007 From: stevenq1967 at gmail.com (Steven Quinones-Colon) Date: Mon, 12 Feb 2007 12:44:48 -0800 Subject: [Wxruby-users] problem compiling with X11 In-Reply-To: <45D0C19C.8090501@pressure.to> References: <73800bf00702081801l5855390fuca61392ec74c8008@mail.gmail.com> <73800bf00702091518n65595b74pda02dd78b223e89@mail.gmail.com> <45CD96DA.2020205@pressure.to> <73800bf00702121055y28b65977x1941957c04b8bbd3@mail.gmail.com> <45D0C19C.8090501@pressure.to> Message-ID: <73800bf00702121244r46520cfvcd750b30f9e9f2c3@mail.gmail.com> Would GTK2 be OK? On 2/12/07, Alex Fenton 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 > From alex at pressure.to Mon Feb 12 16:18:25 2007 From: alex at pressure.to (Alex Fenton) Date: Mon, 12 Feb 2007 21:18:25 +0000 Subject: [Wxruby-users] problem compiling with X11 In-Reply-To: <73800bf00702121244r46520cfvcd750b30f9e9f2c3@mail.gmail.com> References: <73800bf00702081801l5855390fuca61392ec74c8008@mail.gmail.com> <73800bf00702091518n65595b74pda02dd78b223e89@mail.gmail.com> <45CD96DA.2020205@pressure.to> <73800bf00702121055y28b65977x1941957c04b8bbd3@mail.gmail.com> <45D0C19C.8090501@pressure.to> <73800bf00702121244r46520cfvcd750b30f9e9f2c3@mail.gmail.com> Message-ID: <45D0D9A1.2090904@pressure.to> Steven Quinones-Colon wrote: > Would GTK2 be OK? > Yes, that's ideal. alex From stevenq1967 at gmail.com Mon Feb 12 16:58:52 2007 From: stevenq1967 at gmail.com (Steven Quinones-Colon) Date: Mon, 12 Feb 2007 13:58:52 -0800 Subject: [Wxruby-users] problem compiling with X11 In-Reply-To: <45D0D9A1.2090904@pressure.to> References: <73800bf00702081801l5855390fuca61392ec74c8008@mail.gmail.com> <73800bf00702091518n65595b74pda02dd78b223e89@mail.gmail.com> <45CD96DA.2020205@pressure.to> <73800bf00702121055y28b65977x1941957c04b8bbd3@mail.gmail.com> <45D0C19C.8090501@pressure.to> <73800bf00702121244r46520cfvcd750b30f9e9f2c3@mail.gmail.com> <45D0D9A1.2090904@pressure.to> Message-ID: <73800bf00702121358p66f4ab2bie7af363762f1468@mail.gmail.com> 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 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 > From stevenq1967 at gmail.com Mon Feb 12 17:03:11 2007 From: stevenq1967 at gmail.com (Steven Quinones-Colon) Date: Mon, 12 Feb 2007 14:03:11 -0800 Subject: [Wxruby-users] problem compiling with X11 In-Reply-To: <73800bf00702121358p66f4ab2bie7af363762f1468@mail.gmail.com> References: <73800bf00702081801l5855390fuca61392ec74c8008@mail.gmail.com> <73800bf00702091518n65595b74pda02dd78b223e89@mail.gmail.com> <45CD96DA.2020205@pressure.to> <73800bf00702121055y28b65977x1941957c04b8bbd3@mail.gmail.com> <45D0C19C.8090501@pressure.to> <73800bf00702121244r46520cfvcd750b30f9e9f2c3@mail.gmail.com> <45D0D9A1.2090904@pressure.to> <73800bf00702121358p66f4ab2bie7af363762f1468@mail.gmail.com> Message-ID: <73800bf00702121403x7308736fg3079032d621e9016@mail.gmail.com> Hold on a sec, I think I didn't sourced my .tcshrc stay tuned On 2/12/07, Steven Quinones-Colon wrote: > This is where it seems to fail: > From stevenq1967 at gmail.com Mon Feb 12 18:44:43 2007 From: stevenq1967 at gmail.com (Steven Quinones-Colon) Date: Mon, 12 Feb 2007 15:44:43 -0800 Subject: [Wxruby-users] problem compiling with X11 In-Reply-To: <73800bf00702121403x7308736fg3079032d621e9016@mail.gmail.com> References: <73800bf00702081801l5855390fuca61392ec74c8008@mail.gmail.com> <73800bf00702091518n65595b74pda02dd78b223e89@mail.gmail.com> <45CD96DA.2020205@pressure.to> <73800bf00702121055y28b65977x1941957c04b8bbd3@mail.gmail.com> <45D0C19C.8090501@pressure.to> <73800bf00702121244r46520cfvcd750b30f9e9f2c3@mail.gmail.com> <45D0D9A1.2090904@pressure.to> <73800bf00702121358p66f4ab2bie7af363762f1468@mail.gmail.com> <73800bf00702121403x7308736fg3079032d621e9016@mail.gmail.com> Message-ID: <73800bf00702121544v61d36d6fs9b213a37d9297048@mail.gmail.com> 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 wrote: > Hold on a sec, I think I didn't sourced my .tcshrc > stay tuned > On 2/12/07, Steven Quinones-Colon wrote: > > This is where it seems to fail: > > > From sean.m.long at gmail.com Tue Feb 13 00:05:00 2007 From: sean.m.long at gmail.com (Sean Long) Date: Mon, 12 Feb 2007 21:05:00 -0800 Subject: [Wxruby-users] problem compiling with X11 In-Reply-To: <73800bf00702121544v61d36d6fs9b213a37d9297048@mail.gmail.com> References: <73800bf00702081801l5855390fuca61392ec74c8008@mail.gmail.com> <73800bf00702091518n65595b74pda02dd78b223e89@mail.gmail.com> <45CD96DA.2020205@pressure.to> <73800bf00702121055y28b65977x1941957c04b8bbd3@mail.gmail.com> <45D0C19C.8090501@pressure.to> <73800bf00702121244r46520cfvcd750b30f9e9f2c3@mail.gmail.com> <45D0D9A1.2090904@pressure.to> <73800bf00702121358p66f4ab2bie7af363762f1468@mail.gmail.com> <73800bf00702121403x7308736fg3079032d621e9016@mail.gmail.com> <73800bf00702121544v61d36d6fs9b213a37d9297048@mail.gmail.com> Message-ID: try: rake clean rake clean_src to view other rake tasks type: rake -T Sean On 2/12/07, Steven Quinones-Colon wrote: > This is the result, is there a way to do a "clean" with rake, like you > do with make? > > From stevenq1967 at gmail.com Tue Feb 13 13:58:31 2007 From: stevenq1967 at gmail.com (Steven Quinones-Colon) Date: Tue, 13 Feb 2007 10:58:31 -0800 Subject: [Wxruby-users] problem compiling with X11 In-Reply-To: References: <73800bf00702081801l5855390fuca61392ec74c8008@mail.gmail.com> <45CD96DA.2020205@pressure.to> <73800bf00702121055y28b65977x1941957c04b8bbd3@mail.gmail.com> <45D0C19C.8090501@pressure.to> <73800bf00702121244r46520cfvcd750b30f9e9f2c3@mail.gmail.com> <45D0D9A1.2090904@pressure.to> <73800bf00702121358p66f4ab2bie7af363762f1468@mail.gmail.com> <73800bf00702121403x7308736fg3079032d621e9016@mail.gmail.com> <73800bf00702121544v61d36d6fs9b213a37d9297048@mail.gmail.com> Message-ID: <73800bf00702131058k77fe4b40le83e71ccf5192cb7@mail.gmail.com> 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) From alex at pressure.to Tue Feb 13 14:28:09 2007 From: alex at pressure.to (Alex Fenton) Date: Tue, 13 Feb 2007 19:28:09 +0000 Subject: [Wxruby-users] problem compiling with X11 In-Reply-To: <73800bf00702131058k77fe4b40le83e71ccf5192cb7@mail.gmail.com> References: <73800bf00702081801l5855390fuca61392ec74c8008@mail.gmail.com> <45CD96DA.2020205@pressure.to> <73800bf00702121055y28b65977x1941957c04b8bbd3@mail.gmail.com> <45D0C19C.8090501@pressure.to> <73800bf00702121244r46520cfvcd750b30f9e9f2c3@mail.gmail.com> <45D0D9A1.2090904@pressure.to> <73800bf00702121358p66f4ab2bie7af363762f1468@mail.gmail.com> <73800bf00702121403x7308736fg3079032d621e9016@mail.gmail.com> <73800bf00702121544v61d36d6fs9b213a37d9297048@mail.gmail.com> <73800bf00702131058k77fe4b40le83e71ccf5192cb7@mail.gmail.com> Message-ID: <45D21149.3040801@pressure.to> 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 [...] > -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 Hmmm - 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 From stevenq1967 at gmail.com Tue Feb 13 15:02:16 2007 From: stevenq1967 at gmail.com (Steven Quinones-Colon) Date: Tue, 13 Feb 2007 12:02:16 -0800 Subject: [Wxruby-users] problem compiling with X11 In-Reply-To: <45D21149.3040801@pressure.to> References: <73800bf00702081801l5855390fuca61392ec74c8008@mail.gmail.com> <45D0C19C.8090501@pressure.to> <73800bf00702121244r46520cfvcd750b30f9e9f2c3@mail.gmail.com> <45D0D9A1.2090904@pressure.to> <73800bf00702121358p66f4ab2bie7af363762f1468@mail.gmail.com> <73800bf00702121403x7308736fg3079032d621e9016@mail.gmail.com> <73800bf00702121544v61d36d6fs9b213a37d9297048@mail.gmail.com> <73800bf00702131058k77fe4b40le83e71ccf5192cb7@mail.gmail.com> <45D21149.3040801@pressure.to> Message-ID: <73800bf00702131202q704f2c38t16c39de5f11ef229@mail.gmail.com> 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) From alex at pressure.to Tue Feb 13 15:43:00 2007 From: alex at pressure.to (Alex Fenton) Date: Tue, 13 Feb 2007 20:43:00 +0000 Subject: [Wxruby-users] problem compiling with X11 In-Reply-To: <73800bf00702131202q704f2c38t16c39de5f11ef229@mail.gmail.com> References: <73800bf00702081801l5855390fuca61392ec74c8008@mail.gmail.com> <45D0C19C.8090501@pressure.to> <73800bf00702121244r46520cfvcd750b30f9e9f2c3@mail.gmail.com> <45D0D9A1.2090904@pressure.to> <73800bf00702121358p66f4ab2bie7af363762f1468@mail.gmail.com> <73800bf00702121403x7308736fg3079032d621e9016@mail.gmail.com> <73800bf00702121544v61d36d6fs9b213a37d9297048@mail.gmail.com> <73800bf00702131058k77fe4b40le83e71ccf5192cb7@mail.gmail.com> <45D21149.3040801@pressure.to> <73800bf00702131202q704f2c38t16c39de5f11ef229@mail.gmail.com> Message-ID: <45D222D4.8090107@pressure.to> 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.6 I 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 From stevenq1967 at gmail.com Tue Feb 13 17:18:18 2007 From: stevenq1967 at gmail.com (Steven Quinones-Colon) Date: Tue, 13 Feb 2007 14:18:18 -0800 Subject: [Wxruby-users] problem compiling with X11 In-Reply-To: <45D222D4.8090107@pressure.to> References: <73800bf00702081801l5855390fuca61392ec74c8008@mail.gmail.com> <45D0D9A1.2090904@pressure.to> <73800bf00702121358p66f4ab2bie7af363762f1468@mail.gmail.com> <73800bf00702121403x7308736fg3079032d621e9016@mail.gmail.com> <73800bf00702121544v61d36d6fs9b213a37d9297048@mail.gmail.com> <73800bf00702131058k77fe4b40le83e71ccf5192cb7@mail.gmail.com> <45D21149.3040801@pressure.to> <73800bf00702131202q704f2c38t16c39de5f11ef229@mail.gmail.com> <45D222D4.8090107@pressure.to> Message-ID: <73800bf00702131418w168c29dawdec47e97a2e38fb@mail.gmail.com> 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? From alex at pressure.to Tue Feb 13 17:49:52 2007 From: alex at pressure.to (Alex Fenton) Date: Tue, 13 Feb 2007 22:49:52 +0000 Subject: [Wxruby-users] problem compiling with X11 In-Reply-To: <73800bf00702131418w168c29dawdec47e97a2e38fb@mail.gmail.com> References: <73800bf00702081801l5855390fuca61392ec74c8008@mail.gmail.com> <45D0D9A1.2090904@pressure.to> <73800bf00702121358p66f4ab2bie7af363762f1468@mail.gmail.com> <73800bf00702121403x7308736fg3079032d621e9016@mail.gmail.com> <73800bf00702121544v61d36d6fs9b213a37d9297048@mail.gmail.com> <73800bf00702131058k77fe4b40le83e71ccf5192cb7@mail.gmail.com> <45D21149.3040801@pressure.to> <73800bf00702131202q704f2c38t16c39de5f11ef229@mail.gmail.com> <45D222D4.8090107@pressure.to> <73800bf00702131418w168c29dawdec47e97a2e38fb@mail.gmail.com> Message-ID: <45D24090.7030204@pressure.to> 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 From stevenq1967 at gmail.com Tue Feb 13 21:36:40 2007 From: stevenq1967 at gmail.com (Steven Quinones-Colon) Date: Tue, 13 Feb 2007 18:36:40 -0800 Subject: [Wxruby-users] problem compiling with X11 In-Reply-To: <45D24090.7030204@pressure.to> References: <73800bf00702081801l5855390fuca61392ec74c8008@mail.gmail.com> <73800bf00702121403x7308736fg3079032d621e9016@mail.gmail.com> <73800bf00702121544v61d36d6fs9b213a37d9297048@mail.gmail.com> <73800bf00702131058k77fe4b40le83e71ccf5192cb7@mail.gmail.com> <45D21149.3040801@pressure.to> <73800bf00702131202q704f2c38t16c39de5f11ef229@mail.gmail.com> <45D222D4.8090107@pressure.to> <73800bf00702131418w168c29dawdec47e97a2e38fb@mail.gmail.com> <45D24090.7030204@pressure.to> Message-ID: <73800bf00702131836n75a265a5i3e152cf0f9f16d86@mail.gmail.com> 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 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 > From stevenq1967 at gmail.com Tue Feb 13 22:02:43 2007 From: stevenq1967 at gmail.com (Steven Quinones-Colon) Date: Tue, 13 Feb 2007 19:02:43 -0800 Subject: [Wxruby-users] problem compiling with X11 In-Reply-To: <73800bf00702131836n75a265a5i3e152cf0f9f16d86@mail.gmail.com> References: <73800bf00702081801l5855390fuca61392ec74c8008@mail.gmail.com> <73800bf00702121544v61d36d6fs9b213a37d9297048@mail.gmail.com> <73800bf00702131058k77fe4b40le83e71ccf5192cb7@mail.gmail.com> <45D21149.3040801@pressure.to> <73800bf00702131202q704f2c38t16c39de5f11ef229@mail.gmail.com> <45D222D4.8090107@pressure.to> <73800bf00702131418w168c29dawdec47e97a2e38fb@mail.gmail.com> <45D24090.7030204@pressure.to> <73800bf00702131836n75a265a5i3e152cf0f9f16d86@mail.gmail.com> Message-ID: <73800bf00702131902q5c02f18eoe9158c6bb5b59431@mail.gmail.com> Well, I try those settings as well, and no luck. I guess I'll have to stick with Fox. Thanks for all the help. Best regards, Steven From micah at 8thlight.com Mon Feb 19 08:46:48 2007 From: micah at 8thlight.com (Micah Martin) Date: Mon, 19 Feb 2007 07:46:48 -0600 Subject: [Wxruby-users] Sizer question Message-ID: <8C127AC8-297B-45D4-9622-5E648C7CBFD6@8thlight.com> First, Thank you, thank you, thank you for those who put wxRuby together. I'm thrilled to be able to write GUI code in Ruby! I'm hitting some confusion about how Sizers work. I've read the tutorials and the section in the wxWidgets book but I still can't seem to figure this out. Here's an example of my code: parent = Wx::Panel.new(frame, -1, Wx::Point.new(0, 0), Wx::Size.new (823, 900)) sizer = Wx::BoxSizer.new(Wx::VERTICAL) child = Wx::Panel.new(parent, -1, Wx::Point.new(0, 0), Wx::Size.new (823, 200)) sizer.add(child, 1, Wx::ALIGN_CENTER_HORIZONTAL, 0) parent.set_sizer(sizer) When I resize the window, the size of the child panel grows to consume the entire height of the parent. I'd like the child's height to remain 200. I've tried: - child.set_max_size(Size.new(823, 200)) - sizer.add(child, 1, 0|Wx::ALIGN_CENTER_HORIZONTAL, 0) # according to the book, the flag 0 means the window should not be resized. - and several other combinations of flags and settings I'd like the child to remain centered horizontally without it's size changing at all. How is this done? Micah Martin 8th Light, Inc. 8thlight.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070219/686d1034/attachment.html From alex at pressure.to Mon Feb 19 15:00:40 2007 From: alex at pressure.to (Alex Fenton) Date: Mon, 19 Feb 2007 20:00:40 +0000 Subject: [Wxruby-users] Sizer question In-Reply-To: <8C127AC8-297B-45D4-9622-5E648C7CBFD6@8thlight.com> References: <8C127AC8-297B-45D4-9622-5E648C7CBFD6@8thlight.com> Message-ID: <45DA01E8.1050806@pressure.to> Hi Micah Micah Martin wrote: > I'm hitting some confusion about how Sizers work. ... > Here's an example of my code: > > parent = Wx::Panel.new(frame, -1, Wx::Point.new(0, 0), > Wx::Size.new(823, 900)) > sizer = Wx::BoxSizer.new(Wx::VERTICAL) > child = Wx::Panel.new(parent, -1, Wx::Point.new(0, 0), > Wx::Size.new(823, 200)) > sizer.add(child, 1, Wx::ALIGN_CENTER_HORIZONTAL, 0) > parent.set_sizer(sizer) > > When I resize the window, the size of the child panel grows to consume > the entire height of the parent. I'd like the child's height to > remain 200. Instead of your current sizer.add call, try the following sizer.add(child, 0, Wx::ALIGN_CENTRE_HORIZONTAL, 0) sizer.add_spacer(1) You were right that you wanted '0' as an argument, but it should be the second argument to 'add'. Think of it as a 'proportion' argument. So 0 means: "when the parent is resized, don't allocate any of the resize to this child window". You then need to add something that will be allocated the additional space when the window is resized. In this case we've used add_spacer and given it a proportion argument of 1. Since the total of all the proportion arguments to this sizer is 1 (0 for the panel + 1 for the spacer), the spacer receives 1 / 1 = 100% of the resize. I used a spacer but it could as easily be a Window like a notebook, a textctrl, another panel, whatever. you might find this useful: http://www.wxwidgets.org/manuals/2.8/wx_sizeroverview.html#boxsizerprogramming Also wxSugar is a package which sits on top of wxRuby and makes programming sizers a lot easier: http://wxruby.rubyforge.org/wiki/wiki.pl?WxSugar hth alex From micah at 8thlight.com Mon Feb 19 15:39:11 2007 From: micah at 8thlight.com (Micah Martin) Date: Mon, 19 Feb 2007 14:39:11 -0600 Subject: [Wxruby-users] Sizer question In-Reply-To: <45DA01E8.1050806@pressure.to> References: <8C127AC8-297B-45D4-9622-5E648C7CBFD6@8thlight.com> <45DA01E8.1050806@pressure.to> Message-ID: <135A8C4E-C4F9-4498-93DE-99481CA36ED9@8thlight.com> That worked brilliantly! Thanks Alex. I'll definitely give the sugar package a whirl. Micah On Feb 19, 2007, at 2:00 PM, Alex Fenton wrote: > Hi Micah > > Micah Martin wrote: >> I'm hitting some confusion about how Sizers work. > ... >> Here's an example of my code: >> >> parent = Wx::Panel.new(frame, -1, Wx::Point.new(0, 0), >> Wx::Size.new(823, 900)) >> sizer = Wx::BoxSizer.new(Wx::VERTICAL) >> child = Wx::Panel.new(parent, -1, Wx::Point.new(0, 0), >> Wx::Size.new(823, 200)) >> sizer.add(child, 1, Wx::ALIGN_CENTER_HORIZONTAL, 0) >> parent.set_sizer(sizer) >> >> When I resize the window, the size of the child panel grows to >> consume >> the entire height of the parent. I'd like the child's height to >> remain 200. > Instead of your current sizer.add call, try the following > > sizer.add(child, 0, Wx::ALIGN_CENTRE_HORIZONTAL, 0) > sizer.add_spacer(1) > > You were right that you wanted '0' as an argument, but it should be > the > second argument to 'add'. Think of it as a 'proportion' argument. So 0 > means: "when the parent is resized, don't allocate any of the > resize to > this child window". > > You then need to add something that will be allocated the additional > space when the window is resized. In this case we've used > add_spacer and > given it a proportion argument of 1. Since the total of all the > proportion arguments to this sizer is 1 (0 for the panel + 1 for the > spacer), the spacer receives 1 / 1 = 100% of the resize. > > I used a spacer but it could as easily be a Window like a notebook, a > textctrl, another panel, whatever. > > you might find this useful: > http://www.wxwidgets.org/manuals/2.8/ > wx_sizeroverview.html#boxsizerprogramming > > Also wxSugar is a package which sits on top of wxRuby and makes > programming sizers a lot easier: > > http://wxruby.rubyforge.org/wiki/wiki.pl?WxSugar > > hth > alex > > > > > > > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070219/ba689886/attachment.html From micah at 8thlight.com Mon Feb 19 19:25:12 2007 From: micah at 8thlight.com (Micah Martin) Date: Mon, 19 Feb 2007 18:25:12 -0600 Subject: [Wxruby-users] sugar constructor error Message-ID: <0C84A3AF-2ACD-475E-9CD8-7521C1B7B889@8thlight.com> I tried out the sugar. The following code crashes: require 'rubygems' require 'wx' require 'wx_sugar/all' frame = Wx::Frame.new(nil, :title => "Text") panel = Wx::Panel.new(frame) With the following error. 0.1.13/lib/wx_sugar/keyword_constructors.rb:244: [BUG] Bus Error Any ideas? Micah Martin 8th Light, Inc. 8thlight.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070219/a3b9def9/attachment-0001.html From alex at pressure.to Tue Feb 20 02:34:10 2007 From: alex at pressure.to (Alex Fenton) Date: Tue, 20 Feb 2007 07:34:10 +0000 Subject: [Wxruby-users] sugar constructor error In-Reply-To: <0C84A3AF-2ACD-475E-9CD8-7521C1B7B889@8thlight.com> References: <0C84A3AF-2ACD-475E-9CD8-7521C1B7B889@8thlight.com> Message-ID: <45DAA472.9000704@pressure.to> Micah Martin wrote: > I tried out the sugar. The following code crashes: > > require 'rubygems' > require 'wx' > require 'wx_sugar/all' > frame = Wx::Frame.new(nil, :title => "Text") > panel = Wx::Panel.new(frame) You didn't create a Wx::App? Please try to run the constructors for Frame and Panel within an on_init method of a Wx::App subclass, as per the samples. This seems to be a common misunderstanding, so I wonder if we should make it raise an exception if a ctor is called outside on_init? cheers alex