Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / New User Build Error

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. New User Build Error
#3711
Posted by: 2004-04-03 10:58:49
Hi All,

I installed Dev-C++ 4.9.8.7 & wxWidgets 2.4.2 DevPack and the wxWidgets 2.4.2 distro all per instructions (yep - actually read everything & followed).  I then imported the "widgets" VC++ project from the examples and saved as a Dev-C++ project.  Compiling went OK with 0 errors, but the build failed with the following error:

<snip>

windres.exe -i widgets_private.rc -I rc -o widgets_private.res -O coff

windres.exe: can't open cursor file `wx/msw/hand.cur': No such file or directory

make.exe: *** [widgets_private.res] Error 1

Execution terminated


The files are all present, and the compiler is setup to locate these directories.  Seems like it's almost there, but not quite.  Suggestions?

Thanks,
Dan
Message2. Re: New User Build Error
#3722
Posted by: guidance 2004-04-04 08:00:30
Set your "resource include directory" in dev-cpp project options accordingly.
Message3. Re: New User Build Error
#3819
Posted by: 2004-04-13 16:49:36
I've meet the same problem, opening a wxDialog from menubar.
I "resolve" it (it is not an available solution, but it works..), with putting in commentary "//" all the lines in wx.rc.
Then the compilation was Ok.

Sure it's not the right way...So i'll test Guidance's solution.
Message4. Re: New User Build Error
#4062
Posted by: 2004-05-07 20:38:05
Hi

I have the same problem: When tring to compile one project from the contibs package (lets say plot.dev) i have the same compiling error
can't open cursor file `wx/msw/hand.cur': No such file or directory

and i set "resource include directory" in dev-cpp project options accordingly.
but...

can anyone help me please?
thx in advance
Message5. Re: New User Build Error
#4068
Posted by: 2004-05-08 04:47:18
i'm workin on fixing the same problem as we speak, if i get it i'll be sure to let ya know. :)

~Adam
Message6. Re: New User Build Error
#4100
Posted by: bobmorton 2004-05-13 05:28:56
I found a solution, you just copy the files you need(for example coulours.bmp) from the devcpp\include\wx\msw to your local project rep and then change the
wxBITMAP_STD_COLOURS    BITMAP "wx\msw\colours.bmp"
to
wxBITMAP_STD_COLOURS    BITMAP "colours.bmp"

This solution worked for me, if you're really blocked try it! But I still just can't understand why putting the path of the rep in the include rep didn't work.
Message7. Re: New User Build Error
#5836
Posted by: 2005-02-05 10:40:46
I thing i found a better solution, just go
to folder /wx/msw ,find the  'wx.rc' and replace
all paths /wx/msw/.. with your actual path e.g.
 C:/Dev-Cpp/include/wx/msw/hand.cur




Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥1,800.00 ·
 
 
¥489.00 ·
 
 
¥288.00 ·
 
 
¥908.00 ·
 
 
¥748.00 ·
 
 
¥264.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0