Code::Blocks

User forums => Using Code::Blocks => Topic started by: 80sky on October 10, 2006, 05:10:06 pm

Title: wxSmith' s problem Plz help!
Post by: 80sky on October 10, 2006, 05:10:06 pm
When I  used wxSmith as it  (  http://wiki.codeblocks.org/index.php?title=WxSmith_Tutorial_%26_Pointers) said ,   system info: cloudn't genterate sources. 

how can i  do  it?  wxSmith  can work  well.


PLZ help  me. 
Title: Re: wxSmith' s problem Plz help!
Post by: byo on October 10, 2006, 11:56:12 pm
It looks like you don't have write permissions to directory where you want to create wxSmith.
Title: Re: wxSmith' s problem Plz help!
Post by: 80sky on October 11, 2006, 06:10:58 am
how  to  do  it? could you  explain clearly?

thanks a lot.


I set a  new  wxsmith project.   successfull.

but no way  to complete to complie this one.

sysytem info:


-------------- Build: default in wxSmith_project ---------------
Compiling: mainframe.cpp
In file included from C:/wxWidgets-2.6.3/include/wx/defs.h:21,
                 from C:/wxWidgets-2.6.3/include/wx/wxprec.h:13,
                 from ./wx_pch.h:9,
                 from <command line>:7:
C:/wxWidgets-2.6.3/include/wx/platform.h:190:22: wx/setup.h: No such file or directory
In file included from C:/wxWidgets-2.6.3/include/wx/platform.h:271,
                 from C:/wxWidgets-2.6.3/include/wx/defs.h:21,
                 from C:/wxWidgets-2.6.3/include/wx/wxprec.h:13,
                 from ./wx_pch.h:9,
                 from <command line>:7:
C:/wxWidgets-2.6.3/include/wx/chkconf.h:84:9: #error "wxUSE_DYNLIB_CLASS must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:92:9: #error "wxUSE_EXCEPTIONS must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:100:9: #error "wxUSE_FILESYSTEM must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:113:9: #error "wxUSE_DYNAMIC_LOADER must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:121:9: #error "wxUSE_LOG must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:129:9: #error "wxUSE_LONGLONG must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:137:9: #error "wxUSE_MIMETYPE must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:153:9: #error "wxUSE_PROTOCOL must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:195:9: #error "wxUSE_REGEX must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:203:9: #error "wxUSE_STDPATHS must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:211:9: #error "wxUSE_XML must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:219:9: #error "wxUSE_SOCKETS must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:227:9: #error "wxUSE_STREAMS must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:235:9: #error "wxUSE_STOPWATCH must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:243:9: #error "wxUSE_TEXTBUFFER must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:251:9: #error "wxUSE_TEXTFILE must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:267:9: #error "wxUSE_URL must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:285:9: #error "wxUSE_ACCEL must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:293:9: #error "wxUSE_BMPBUTTON must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:301:9: #error "wxUSE_BUTTON must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:309:9: #error "wxUSE_CALENDARCTRL must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:317:9: #error "wxUSE_CARET must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:325:9: #error "wxUSE_CHECKBOX must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:341:9: #error "wxUSE_CHOICE must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:349:9: #error "wxUSE_CHOICEBOOK must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:357:9: #error "wxUSE_CHOICEDLG must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:365:9: #error "wxUSE_CLIPBOARD must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:373:9: #error "wxUSE_COLOURDLG must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:381:9: #error "wxUSE_COMBOBOX must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:389:9: #error "wxUSE_DATAOBJ must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:397:9: #error "wxUSE_DATEPICKCTRL must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:405:9: #error "wxUSE_DISPLAY must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:413:9: #error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:421:9: #error "wxUSE_FILEDLG must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:429:9: #error "wxUSE_FONTDLG must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:437:9: #error "wxUSE_FONTMAP must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:445:9: #error "wxUSE_GAUGE must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:453:9: #error "wxUSE_GRID must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:461:9: #error "wxUSE_HELP must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:469:9: #error "wxUSE_HTML must be defined."
C:/wxWidgets-2.6.3/in
clude/wx/chkconf.h:477:9: #error "wxUSE_XRC must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:498:9: #error "wxUSE_ICO_CUR must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:506:9: #error "wxUSE_IFF must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:514:9: #error "wxUSE_IMAGLIST must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:522:9: #error "wxUSE_JOYSTICK must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:530:9: #error "wxUSE_LISTBOOK must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:538:9: #error "wxUSE_LISTBOX must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:546:9: #error "wxUSE_LISTCTRL must be defined."
C:/wxWidgets-2.6.3/include/wx/chkconf.h:554:9: #error "wxUSE_LOGGUI must be defined."
Process terminated with status 1 (0 minutes, 3 seconds)
50 errors, 0 warnings


what  should I do?  PLZ..........
Title: Re: wxSmith' s problem Plz help!
Post by: Ceniza on October 11, 2006, 08:11:35 am
Just take a look to the first reported error: wx/setup.h: No such file or directory

You need to add the path to setup.h to the list of includes. It should be somewhere in your C:/wxWidgets-2.6.3 directory.
Title: Re: wxSmith' s problem Plz help!
Post by: 80sky on October 11, 2006, 12:28:42 pm
thanks  a  lot.  I  do  as  you  said.  but  a  new  problem  happened:


-------------- Build: default in wxSmith_project ---------------
Compiling: mainframe.cpp
Precompiling header: wx_pch.h
Compiling: app.cpp
Linking executable: wxSmith_project.exe
C:\Program Files\CodeBlocks\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw26
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 14 seconds)
1 errors, 0 warnings


that's  why?
Title: Re: wxSmith' s problem Plz help!
Post by: kkez on October 11, 2006, 01:38:00 pm
imho you're building an unicode C::B with an ANSI wxwidgets build, or viceversa. If you're building it against an ansi wxwidget build, remember to remove the wxUSE_UNICODE #define and to modify the wxsuffix variable (which should be = u) to be = nothing.
Title: Re: wxSmith' s problem Plz help!
Post by: 80sky on October 12, 2006, 06:32:20 am
thank  you!
Title: Re: wxSmith' s problem Plz help!
Post by: 80sky on October 15, 2006, 09:04:11 am
-------------- Build: default in wxSmith_project ---------------
Compiling: mainframe.cpp
Precompiling header: wx_pch.h
Compiling: app.cpp
Linking executable: wxSmith_project.exe
D:\Program Files\CodeBlocks\bin\..\lib\gcc\mingw32\3.4.4\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw26
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 18 seconds)
1 errors, 0 warnings
 

The  old question  who  can  help  me!  I  compile this  program whth  an UNICODE wxwidgets , that's  why?

plz explain clearly, thank you !  I'm new  here. so I have  too much things to  ask.  I have  too  much things not to

understand.
Title: Re: wxSmith' s problem Plz help!
Post by: MortenMacFly on October 15, 2006, 10:42:39 am
D:\Program Files\CodeBlocks\bin\..\lib\gcc\mingw32\3.4.4\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw26
The linker doesn't have access to the wxWidgets library. This time it looks for the Windows ansi version 2.6 of wxWidgets which you might have compiled (or not). This can have two reasons:
1.) You did not specify the path where the linker should look for this lib (usually the lib's filename would be something like libwxmsw26.a). Setup this in the build options of your project, tab "directories" -> "linker".
2.) You don't have this library. In that case you need to compile wxWidgets for Windows. Have a look at e.g. the wxWidgets homepage how to do so.
In another post there was also a link where to look in the C::B WiKi.
In addtion please enable the full compiler logging (see my sig how to do so). Then post the compiler log again in case it still doesn't work.
With regards, Morten.