wxWidget Samples .vcproj files [Solved]

General questions regarding the usage of CodeLite
5k3105
CodeLite Enthusiast
Posts: 22
Joined: Tue Sep 17, 2013 11:44 pm
Genuine User: Yes
IDE Question: C++
Contact:

wxWidget Samples .vcproj files [Solved]

Post by 5k3105 »

Is there a way to import .vcproj files (the kind wxWidgets uses for it's samples) into CodeLite?

(I'm very new to C++ and wxWidgets)

Thanks
Last edited by 5k3105 on Tue Oct 01, 2013 9:10 am, edited 1 time in total.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: wxWidget Samples .vcproj files

Post by eranif »

Last time I touched codelite's VS importer code was 4-5 years ago... so I doubt it will work :P

codelite works best with gcc so you can:
- Create an empty project and place it under wxWidgets samples folder
- Add new project to the workspace of type 'Custom Makefile'
- Right click on the newly added project and select 'Import files from directory' - navigate to the wxWidgets root samples directory and select it
- Next check the folders you wish to import (or click on the root folder and it will check all its children)
- Click OK and wait for codelite to create the project layout

Set up build for all the samples:
- Right click on the project and go to Customize -> Custom Build and set up the "Working directory" entry to to the root folder of the samples directory
- Double click on the 'Build' entry and set up the MinGW/GCC build command, for me it was:

Code: Select all

mingw32-make -f Makefile.gcc SHARED=1 UNICODE=1 BUILD=release VENDOR=cl -j8
(this is the exact command of how I built my wxWidgets)
- Hit F7 to build

You should now have a sample binary under each sub folder.
For example, the "widgets" sample will have its binary under:

Code: Select all

samples\widgets\gcc_mswudll\widgets.exe
To be able to run them you need to add wxWidgets DLL folder to your PATH environment variable

Eran
Make sure you have read the HOW TO POST thread
5k3105
CodeLite Enthusiast
Posts: 22
Joined: Tue Sep 17, 2013 11:44 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: wxWidget Samples .vcproj files

Post by 5k3105 »

This worked great. Thank you!
evstevemd
CodeLite Guru
Posts: 352
Joined: Sun Nov 29, 2009 7:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: wxWidget Samples .vcproj files

Post by evstevemd »

eranif wrote: codelite works best with gcc so you can:
- Create an empty project and place it under wxWidgets samples folder
- Add new project to the workspace of type 'Custom Makefile'

Eran
Hi,
Can i do this in normal workspace?
I need to add libcurl in my workspace
see this post

CodeLite 15.x
CodeLite is awesome, I just Love it!

User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: wxWidget Samples .vcproj files [Solved]

Post by eranif »

evstevemd wrote:Can i do this in normal workspace?
I need to add libcurl in my workspace
see this post
Yes. a workspace can have multiple projects, including custom ones

Eran
Make sure you have read the HOW TO POST thread
Post Reply