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
wxWidget Samples .vcproj files [Solved]
-
- CodeLite Enthusiast
- Posts: 22
- Joined: Tue Sep 17, 2013 11:44 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
wxWidget Samples .vcproj files [Solved]
Last edited by 5k3105 on Tue Oct 01, 2013 9:10 am, edited 1 time in total.
- 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
Last time I touched codelite's VS importer code was 4-5 years ago... so I doubt it will work
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:
(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:
To be able to run them you need to add wxWidgets DLL folder to your PATH environment variable
Eran
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
- 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
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 22
- Joined: Tue Sep 17, 2013 11:44 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: wxWidget Samples .vcproj files
This worked great. Thank you!
-
- CodeLite Guru
- Posts: 352
- Joined: Sun Nov 29, 2009 7:36 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: wxWidget Samples .vcproj files
Hi,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
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!
- 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]
Yes. a workspace can have multiple projects, including custom onesevstevemd wrote:Can i do this in normal workspace?
I need to add libcurl in my workspace
see this post
Eran
Make sure you have read the HOW TO POST thread