News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

New Project wisard creates .rc. and WxWizFrame.fbp file in a CBs template dir

Started by MasterAlexei, April 28, 2012, 12:19:01 PM

Previous topic - Next topic

MasterAlexei

Hello every one.
I am using now build SVN 7929 (Updt. from Windows)
and after creating a new wxWidgets project, the wizard has asked me if I want to overwrite the .rc and .fbp files in a CodeBlocks\share\CodeBlocks\templates\wizard\wxwidgets\ directories.
Earlier it does put this files into projects directory.
Is there some settings to make, to point the right directories for that wizard (I did enter the right directory for my project)?

oBFusCATed

What version of C::B are you using?
I've seen this with self compiled C::B (using autotools) on linux, but I've not bothered to debug it.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MasterAlexei


Radek

Strange. Unless I am mistaken, the *.fbp file is a wxFormBuilder project file but Code Blocks does not use wxFB. It has its own resource editor, which uses *.wxs files. Code blocks should have nothing common with *.fbp files. Where to store *.fbp and wxFB output files should be decided by wxFB.

Are you using wxFormBuilder?

MasterAlexei

Yes, I am using wxFormBuilder.
All I did is just created new Project:
File->New->Project...->wxWidgets project.
As Preferred GUI builder I select wxFormBuilder, Frame Based, then some other options, and as I click finish, it ask to confirm, that CodeBlocks\share\CodeBlocks\templates\wizard\wxwidgets\rc\resource.rc file will be overwritten,
then CodeBlocks\share\CodeBlocks\templates\wizard\wxwidgets\wxfb\frame\GUIFrame.cpp will be overwritten,
then CodeBlocks\share\CodeBlocks\templates\wizard\wxwidgets\wxfb\frame\GUIFrame.h will be overwritten, and
CodeBlocks\share\CodeBlocks\templates\wizard\wxwidgets\wxfb\frame\WxWizFrame.fbp will be overwritten.

Then it creates a project, where this files are also in a project tree with the whole path, where my CB is located (D:\Soft\SDKs\CB... and so on) but the project is located in D:\MyProjects\wxWidgets\ProjName dir.


oBFusCATed

MasterAlexei: Please try the nightly build and report if the problem is still there.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Radek

I am also using wxFB but in Debian and I've never seen the problem. Well, Windows Code Blocks seems to patch the project wizard for some reason. This need not obstacle, you will place the *fbp and wxFB output files where you want, patched wizards or not. Cleansing the project tree is a little nuisance but you do it only once per project. Try creating another "wxFB project" (with patched wizards) for a test and see whether Code Blocks will try to path again or whether the strange patching is over. In the later case, the problem can be ignored most likely.

MasterAlexei

Hello there again.

I did compile a last revision today (8388) with wx2.8.10 and created a new wxWidgets project with the wizard.
the behavior, that it does not copies the files to the project folder but uses them from the template folder is still here, and also it overwrites them in that template folder.

Best wishes,

Alexey