User forums > Using Code::Blocks

WxSmith extensions

<< < (3/3)

ollydbg:

--- Quote from: seb_seb0 on July 21, 2010, 09:42:36 pm ---You can try to compile CodeBlocks from source:
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux

Then, you can compile the plugin: download the archive from Cryogen's site:
http://wxsmithaddons.sourceforge.net/wxsmithkwic.html
(direct link to archive http://sourceforge.net/projects/wxsmithaddons/files/)

Extract the archive, go in the folder "wxSmithKWIC" and open the CodeBlocks project file wxSmithKWIC.cbp.
Then select target "all" and build.

It worked perfectly on Windows, it might be not so different on Linux. Just try !

Sebastien

--- End quote ---

Hi, I just do the following:
Check out the SVN source from your sites:
And there are folders

--- Code: ---├─KWIC
│  ├─KWICDemo
│  │  ├─KWIC
│  │  │  └─contrib
│  │  │      ├─include
│  │  │      │  └─wx
│  │  │      │      ├─KWIC
│  │  │      │      └─xrc
│  │  │      └─src
│  │  │          └─wx
│  │  │              ├─KWIC
│  │  │              └─xrc
│  │  ├─lib
│  │  ├─res
│  │  └─wxsmith
│  ├─kwxIndControlSource-0.3.0
│  │  ├─Debug
│  │  ├─Doc
│  │  ├─kwic_pch.h.gch
│  │  ├─Release
│  │  ├─res
│  │  └─wx_pch.h.gch
│  └─wxSmithKWIC
│      ├─doxygen
│      ├─images
│      └─KWIC
│          └─contrib
│              ├─include
│              │  └─wx
│              │      ├─KWIC
│              │      └─xrc
│              └─src
│                  └─wx
│                      ├─KWIC
│                      └─xrc
└─wxSmithDemo
    ├─media
    ├─wximages
    └─wxsmith

--- End code ---
Now, I just copy the folder "wxSmithKWIC" to the cb_trunk\src\plugins\contrib
And build fine.

But when I try to use the new c::b to create a demo (adding some KWIC window), I get the error:

--- Code: ---error: wx/KWIC/AngularMeter.h: No such file or directory

--- End code ---

It looks like the generated code in my app is:

--- Code: ---//(*Headers(xuchangLEDFrame)
#include "wx/KWIC/AngularMeter.h"
#include "wx/KWIC/AngularRegulator.h"
#include <wx/sizer.h>
#include <wx/menu.h>
#include <wx/panel.h>
#include <wx/frame.h>
#include <wx/statusbr.h>
//*)

--- End code ---
So, where can I put those wx/KWIC header folders?

There is another issue:
The workspace file I opened in kwxIndControlSource-0.3.0 folder, I see many hard-coded file paths, I would suggest you change to standard like:

--- Code: ---$(#wx.include)
$(#wx)\contrib\include

--- End code ---

Third issue is:
I can successfully build the "Testdc" project, and when I drag the vertical bar, I see both the analog meter and linear meter will change, but there are a lot of flickers, any ideas how to eliminate the flickers?

Thanks.

ollydbg:
In the LinearRegulator.h
I suggest use:

--- Code: --- int GetValue() { return m_nRealVal ; } ;
void SetValue(int val) ;
--- End code ---

instead of GetVal and SetVal.

Jenna:
I'm working on the linux build-files.
I will do the same split for all the new items, like I have done fore the "old" wxSmithContribItems: build the libraries as standalone libraries and build the wxSmith-interface in a different project, so the libraries can be used without the need to build the whole wxSmith.

Once I am ready and have committed them you can build all te stuff from source with C::B's own build-system or with autotools.
In the second case, you will also get pkg-config files for the easier use of the libraries.

ollydbg:

--- Quote from: jens on November 16, 2011, 06:02:29 pm ---Once I am ready and have committed them you can build all te stuff from source with C::B's own build-system or with autotools.

--- End quote ---
This is really cool!! thanks.
PS: I'm currently start to working on a product which need KWIC components.

ollydbg:

--- Quote from: ollydbg on November 16, 2011, 02:35:00 pm ---Third issue is:
I can successfully build the "Testdc" project, and when I drag the vertical bar, I see both the analog meter and linear meter will change, but there are a lot of flickers, any ideas how to eliminate the flickers?

--- End quote ---
The flicker issue can be simply solved by adding an empty erase background event handler function body.

--- Code: ---EVT_ERASE_BACKGROUND (kwxAngularMeter::OnEraseBackground)
--- End code ---
See Flicker-Free Drawing - WxWiki as a reference.

Navigation

[0] Message Index

[*] Previous page

Go to full version