Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 20 Oct 2014, 09:53
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Setup codeblocks, wxwidget and compile a wxwidget project
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count_1  
Author Message
snayak

Joined: 14 Sep 2011
Posts: 231

PostPosted: Wed 22 Jan 2014, 05:59    Post_subject:  Setup codeblocks, wxwidget and compile a wxwidget project  

Code:
0. Download wxWidgets and CodeBlocks
================================
#mkdir development
#cp wxGTK-2.8.12.tar.gz codeblocks_12.11-1.tar.gz development/

1. Compile and install wxWidgets
================================
#cd development/
#tar -xvzf wxGTK-2.8.12.tar.gz
#cd wxGTK-2.8.12
#mkdir build_gtk2_shared_nomonolithic_unicode_release
#cd build_gtk2_shared_nomonolithic_unicode_release
#../configure --enable-xrc --enable-unicode
#make
#new2dir make install
#mksquashfs wxGTK-2.8.12-x86_64 wxGTK-2.8.12-x86_64.sfs -noappend
and
#dir2pet wxGTK-2.8.12-x86_64

2. Compile and install CodeBlocks
================================
#cd development/
#tar -xvzf codeblocks_12.11-1.tar.gz
#cd codeblocks-12.11release8629/
#mkdir my_cb_build
#cd my_cb_build/
#./configure --with-contrib-plugins=Cccc,wxsmith
#make
#new2dir make install
#mksquashfs codeblocks-12.11release8629-x86_64 codeblocks-12.11release8629-x86_64.sfs -noappend
and
#dir2pet codeblocks-12.11release8629-x86_64

3. copy the sample program folder 'widgets' (.../wxGTK-2.8.12/samples/widgets) to /root/development
4. inside /root/development/widgets, keep only *.cpp, *.h files and 'icons' folder; delete rest including hidden folders if any
5. copy sample.xpm file from .../wxGTK-2.8.12/samples/ to /root/development/
6. in codeblocks, 'create a new project' and select 'wxwidget project'
7. Choose wxwidgets 2.8.x version.
8. enter 'project title' as 'development'; enter 'folder to create project in' as '/root'; see that 'resulting filename' becomes '/root/development/development.cbp'.
9. Preferred GUI Builder: None; Application Type: Frame Based
10. Tick only 'create debug configuration'
11. See that under "wxwidgets library settings", "Use default wxwidgets configuration" is selected.
12. on left, under 'workspace', under 'development', see that 4 files are added by default. Click on each of them and remove from project.
13. go to /root/development and delete newly added two *.cpp files and two *.h files.
14. on left, under 'workspace', right click on 'development' and 'add files recursively'
15. select /root/development/widgets
16. now click 'build' -> 'build'; see 'build log' that it is building
17. now click 'build' -> 'run'


Yours sincerely,
Srinivas Nayak

_________________
Machine: Wary 530, AMD Athlon 2000+, ASUS A7N266-VM board, 512MB DDR RAM, 40GB HDD, 52xCDRW, PS/2 Mouse/Keyboard, USB 2.0.
Home: http://www.mathmeth.com/sn/
Blog: http://srinivas-nayak.blogspot.com/
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count_1  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0754s ][ Queries: 11 (0.0374s) ][ GZIP on ]