This helps set up the development environment for VC++. Version 6 is described here. Other versions are likely similar. Nothing tricky, just a few steps.
This is a simple process of downloading and running the setup included in wxWindows. You will have to reboot, because wxWindows header files make use of an environmental variable that isn't set until boot time.
In the wxWindows src directory is a file wxwindows.dsw. This is a standard Microsoft Workspace file (analogous to a makefile for other systems.) Load it into VC++ and select [Build][Batch Build]. Build everything, and go have a nice lunch or catch a movie. Even on a decently-quick system this will take an hour or so.
Plucker-Desktop uses the XML Resource Library, XRC, from the src/contrib subdirectory of wxWindows. Open up the included VC++ Workspace XRCVC.DSW and batch-build it also.
On a decent system this will take less than five minutes.
Plucker-Desktop uses the WX Styled Text Control Library, STC, from the src/contrib subdirectory of wxWindows. Open up the included VC++ Workspace STCVC.DSW and batch-build it also.
On a decent system this will take less than one minute.
Open up the plucker_desktop/PluckerDesktop.dsp file and load it into MSVC++ by selecting "Open Workspace", changing the file type to "Projects *.dsp", and selecting PluckerDesktop.dsp. If you don't have access to the dsp file, create a new Project and insert all the Desktop source files from cvs into it.
The PluckerDesktop.dsp VC++ project file already has these settings described below. If you are using the supplied PluckerDesktop.dsp file, then update the settings in blue to match your directory structure and ignore the rest.
(All of the following are set in the Project - Settings area).
Setting | Navigation | Value |
---|---|---|
Resource | Resources tab | add the wxWindows include directory (e.g. d:\dev\wx\include) to the Additional resource includes directories. |
Include Directories | [Project][Settings][C/C++], Preprocessor tab | add the
wxWindows include directory and the Contrib/Include directory (e.g. d:\dev\wx\include;d:\dev\wx\contrib\include). |
MFC | General tab | Set to Not Using MFC |
Preprocessor Defines | C/C++ tab, General Category, Preprocessor Definitions editbox | Add __WXMSW__,__WIN95__ |
Code Generation | C/C++ tab, Code Generation category | Default values of Blend, CDecl calling, MultiThreaded DLL, and 8-byte alignment. |
Link Inclusions | Link tab, General category | The following are needed, mostly for wxWindows: kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib d:\dev\wx\lib\wxmswd.lib d:\dev\wx\lib\wxxrc.lib d:\dev\wx\lib\stc.lib comctl32.lib rpcrt4.lib wsock32.lib |
Link Exclusions | Link tab, Inputs category, Ignore editbox | For debug mode, "Ignore" the following:libcd.lib,libcid.lib,msvcrt.lib,libc.lib |
Link Options | Link tab, Project Options edit box | Remove the /GZ if any. This disables the MS-VC++ compiler stack checking functionality preventing unresolved external __chkesp messages. |
Project Type | Link tab, Project Options edit box | Change /subsystem:console to /subsystem:windows if necessary, allowing it to compile to a Windows app and see _main. |
Other current requirements which may be obsolete by now:
You can now do a full build of the project.