I performed a get on the CVS WxRuby2; I have installed wxWidgets 2.6.3 and SWIG 1.3.29. Additionally I am running Visual Studio on Windows XP. When I run rake to compile I receive the following error. App.cpp c:\wxWidgets-2.6.3/include\wx/platform.h(190) : fatal error C1083: Cannot open include file: ''wx/setup.h'': No such file or directory rake aborted! Command failed with status (2): [cl.exe -c -Ic:\wxWidgets-2.6.3/include -D_...] I''m not sure why this is happening. I have looked at my environment variables and don''t see any errors there. Thanks, Joe _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
Do a ''SET'' command and paste me he results into a private e-mail and I''ll respond to the list if I have the solution. Roy Joe Seeley wrote:> I performed a get on the CVS WxRuby2; I have installed wxWidgets 2.6.3 > and SWIG 1.3.29. Additionally I am running Visual Studio on Windows > XP. When I run rake to compile I receive the following error. > > App.cpp > c:\wxWidgets- 2.6.3/include\wx/platform.h(190) : fatal error C1083: > Cannot open include file: ''wx/setup.h'': No such file or directory > rake aborted! > Command failed with status (2): [cl.exe -c > -Ic:\wxWidgets-2.6.3/include -D_...] > > I''m not sure why this is happening. I have looked at my environment > variables and don''t see any errors there. > > Thanks, > Joe > ------------------------------------------------------------------------ > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users
Try the following: - go to (c:\wxWidgets-2.6.3\include\wx\msw) in explorer - make a copy of setup0.h and rename it setup.h I am pretty sure that is what needs to be done. On Windows I build wxWidgets from DialogBlocks and I believe that it creates the copy for me. Sean On 8/11/06, Joe Seeley <joiey.seeley at gmail.com> wrote:> I performed a get on the CVS WxRuby2; I have installed wxWidgets 2.6.3 and > SWIG 1.3.29. Additionally I am running Visual Studio on Windows XP. When I > run rake to compile I receive the following error. > > App.cpp > c:\wxWidgets- 2.6.3/include\wx/platform.h(190) : fatal error C1083: Cannot > open include file: ''wx/setup.h'': No such file or directory > rake aborted! > Command failed with status (2): [cl.exe -c -Ic:\wxWidgets-2.6.3/include > -D_...] > > I''m not sure why this is happening. I have looked at my environment > variables and don''t see any errors there. > > Thanks, > Joe > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > >
Just to add to the other emails (hope not confusing) What does running wx-config --cppflags and wx-config --list return in the command prompt you''re about to compile in? I ran into this error the other day when building a wx extension. ''setup.h'' is a special header which contains all the settings specific to your build of WxWidgets - what optional features were and weren''t included (eg unicode or ANSI). On my Mac at least, it lives in a separate directory from the rest of the headers: The main headers are in /usr/local/include/wx-2.6/wx/ The correct setup.h is in /usr/local/include/wx-2.6/wx/mac-unicode-release-static-2.6/ The same should happen on windows - you should have a configuration-specific location with a modified setup.h that reflects your real build options. But the including (-I) directive should happen automatically in rake. alex http://www.wxwidgets.org/wiki/index.php/MSVC_Setup_Guide#Setup.h Sean Long wrote:> Try the following: > - go to (c:\wxWidgets-2.6.3\include\wx\msw) in explorer > - make a copy of setup0.h and rename it setup.h > > I am pretty sure that is what needs to be done. On Windows I build > wxWidgets from DialogBlocks and I believe that it creates the copy for > me. > > Sean > > On 8/11/06, Joe Seeley <joiey.seeley at gmail.com> wrote: > >> I performed a get on the CVS WxRuby2; I have installed wxWidgets 2.6.3 and >> SWIG 1.3.29. Additionally I am running Visual Studio on Windows XP. When I >> run rake to compile I receive the following error. >> >> App.cpp >> c:\wxWidgets- 2.6.3/include\wx/platform.h(190) : fatal error C1083: Cannot >> open include file: ''wx/setup.h'': No such file or directory >> rake aborted! >> Command failed with status (2): [cl.exe -c -Ic:\wxWidgets-2.6.3/include >> -D_...] >> >> I''m not sure why this is happening. I have looked at my environment >> variables and don''t see any errors there. >> >> Thanks, >> Joe >> >> _______________________________________________ >> wxruby-users mailing list >> wxruby-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wxruby-users >> >> >> > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > >
Thanks for the input everyone. It turned out that the problem was with the setup.h file not being copied into the correct location as first mentioned by Sean. I was able to compile then, but there were a lot of linking errors at first due to the Visual studio workspace not building all objects by default. But I have finally gotten everything linked and compiled and am ready to go! Thanks again, Joe On 8/12/06, Daniel F. Savarese <dfs at savarese.org> wrote:> > > In message <5d0946540608112205h70467c59jfa7db4dda69d89b6 at mail.gmail.com>, > "Joe > Seeley" writes: > >I performed a get on the CVS WxRuby2; I have installed wxWidgets 2.6.3and > >SWIG 1.3.29. Additionally I am running Visual Studio on Windows > XP. When I > >run rake to compile I receive the following error. > > >From my notes from the last time I compiled wxruby2 on Windows, I have > the following: > > I added $DEBUG=false to rake/rakemswin.rb and then from > cygwin (so we pick up swig): > > WXWIN=y:/opt/wxWidgets/wxWidgets \ > /cygdrive/y/opt/ruby/ruby-184-16rc1/bin/rake.bat \ > mswin=true install > > Of course, that''s idiosyncratic to where I had things installed at the > time and that I was using swig from cygwin. However, since you''re not > finding wx/setup.h you may find you need to point the WXWIN environment > variable (which is referenced in rakemswin.rb) to your wxWidgets > installation. But since you''re already finding platform.h, that''s > probably not it. > > I also have notes for compiling wxWidgets for Windows where I had to > manually copy setup.h from lib/vc_dll/msw/wx/setup.h to include/wx. > Apparently that was after a command prompt build with nmake and cl, > where I manually copied the build artifacts to my desired installation > location rather than using an install target, so it probably doesn''t > apply. At any rate, I hope it''s one of the things folks have mentioned. > We all seem to have run into different snags. > > daniel > > _______________________________________________ > 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/20060814/8c5fe931/attachment-0001.html
I''m glad to hear that you got it working. Could you write up a summary of your environment, problem, and solution and either post it here or on the wiki? Thanks, Kevin On Mon, 2006-08-14 at 15:51 -0500, Joe Seeley wrote:> Thanks for the input everyone. It turned out that the problem was > with the setup.h file not being copied into the correct location as > first mentioned by Sean. I was able to compile then, but there were a > lot of linking errors at first due to the Visual studio workspace not > building all objects by default. But I have finally gotten everything > linked and compiled and am ready to go! > > Thanks again, > Joe > On 8/12/06, Daniel F. Savarese <dfs at savarese.org> wrote: > > In message > <5d0946540608112205h70467c59jfa7db4dda69d89b6 at mail.gmail.com>, > "Joe > Seeley" writes: > >I performed a get on the CVS WxRuby2; I have installed > wxWidgets 2.6.3 and > >SWIG 1.3.29. Additionally I am running Visual Studio on > Windows XP. When I > >run rake to compile I receive the following error. > > >From my notes from the last time I compiled wxruby2 on > Windows, I have > the following: > > I added $DEBUG=false to rake/rakemswin.rb and then from > cygwin (so we pick up swig): > > WXWIN=y:/opt/wxWidgets/wxWidgets \ > /cygdrive/y/opt/ruby/ruby-184-16rc1/bin/rake.bat \ > mswin=true install > > Of course, that''s idiosyncratic to where I had things > installed at the > time and that I was using swig from cygwin. However, since > you''re not > finding wx/setup.h you may find you need to point the WXWIN > environment > variable (which is referenced in rakemswin.rb) to your > wxWidgets > installation. But since you''re already finding platform.h, > that''s > probably not it. > > I also have notes for compiling wxWidgets for Windows where I > had to > manually copy setup.h from lib/vc_dll/msw/wx/setup.h to > include/wx. > Apparently that was after a command prompt build with nmake > and cl, > where I manually copied the build artifacts to my desired > installation > location rather than using an install target, so it probably > doesn''t > apply. At any rate, I hope it''s one of the things folks have > mentioned. > We all seem to have run into different snags. > > daniel > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users