Page 1 of 1

wxWidget Samples .vcproj files [Solved]

Posted: Tue Sep 17, 2013 11:47 pm
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

Re: wxWidget Samples .vcproj files

Posted: Wed Sep 18, 2013 12:12 am
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

Re: wxWidget Samples .vcproj files

Posted: Thu Sep 19, 2013 5:08 am
by 5k3105
This worked great. Thank you!

Re: wxWidget Samples .vcproj files

Posted: Wed Oct 30, 2013 2:14 pm
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

Re: wxWidget Samples .vcproj files [Solved]

Posted: Wed Oct 30, 2013 9:26 pm
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