Page 1 of 1

Using Visual Studio Express 2013

Posted: Fri May 15, 2015 5:29 pm
by iwbnwif
Hi,

I am trying to set up CodeLite 8.0 to work with Visual Studio Express 2013, using the latest version of wxWindows from Github on Windows 8.1.

Edit> I have built this using nmake within the VS2013 x86 Native Tools Command Prompt.

I create a project using File->New->New Project and choosing wxWidgets GUI Application (wxFrame using wxCrafter) and set the compiler to Visual C++ 12.

If I try to build within CodeLite I get the following error message:

Code: Select all

'makedir' is not recognized as an internal or external command,
If I open a terminal at the location of the workspace and run

Code: Select all

C:\Windows\system32\cmd.exe /C C:/TDM-GCC-64/bin/mingw32-make.exe SHELL=cmd.exe -e -f  Makefile
I get the following error:

Code: Select all

C:/TDM-GCC-64/bin/windres.exe -i "C:/Users/iwbnwif/Development/General/Genera
l Tests/MSVC_Test/win_resources.rc" /d WIN32 /d __WXMSW__ /d __WXDEBUG__ /d _UNI
CODE --include-dir C:/Users/iwbnwif/Development/wx_git_vc/wxWidgets/lib/vc_li
b/mswud --include-dir C:/Users/iwbnwif/Development/wx_git_vc/wxWidgets/includ
e /d _WINDOWS    /Fo./Debug/win_resources.rc.obj
Usage: C:/TDM-GCC-64/bin/windres.exe [option(s)] [input-file] [output-file]
 The options are:
  -i --input=<file>            Name input file
  -o --output=<file>           Name output file
  -J --input-format=<format>   Specify input format
  -O --output-format=<format>  Specify output format
  -F --target=<target>         Specify COFF target
     --preprocessor=<program>  Program to use to preprocess rc file
     --preprocessor-arg=<arg>  Additional preprocessor argument
  -I --include-dir=<dir>       Include directory when preprocessing rc file
  -D --define <sym>[=<val>]    Define SYM when preprocessing rc file
  -U --undefine <sym>          Undefine SYM when preprocessing rc file
  -v --verbose                 Verbose - tells you what it's doing
  -c --codepage=<codepage>     Specify default codepage
  -l --language=<val>          Set language when reading rc file
     --use-temp-file           Use a temporary file instead of popen to read
                               the preprocessor output
     --no-use-temp-file        Use popen (default)
  -r                           Ignored for compatibility with rc
  @<file>                      Read options from <file>
  -h --help                    Print this help message
  -V --version                 Print version information
FORMAT is one of rc, res, or coff, and is deduced from the file name
extension if not specified.  A single file name is an input file.
No input-file is stdin, default rc.  No output-file is stdout, default rc.
C:/TDM-GCC-64/bin/windres.exe: supported targets: pe-x86-64 pei-x86-64 pe-bigobj
-x86-64 elf64-x86-64 elf64-l1om elf64-k1om pe-i386 pei-i386 elf32-i386 elf64-lit
tle elf64-big elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex
MSVC_Test.mk:117: recipe for target 'Debug/win_resources.rc.obj' failed
mingw32-make.exe[1]: *** [Debug/win_resources.rc.obj] Error 1
mingw32-make.exe[1]: Leaving directory 'C:/Users/iwbnwif/Development/General/
General Tests/MSVC_Test'
Makefile:4: recipe for target 'All' failed
mingw32-make.exe: *** [All] Error 2
I think the first error is caused by the PATH not being set correctly, but I have the following environment variables set up (Settings->Environment Variables):

Code: Select all

CodeLiteDir=C:\Program Files\CodeLite
UNIT_TEST_PP_SRC_DIR=C:\UnitTest++-1.3
WXWIN=C:\Users\iwbnwif\Development\wx_git_vc\wxWidgets
WXCFG=vc_lib/mswud
PATH=%PATH%;C:\Program Files\CodeLite;C:\Users\iwbnwif
\Development\wx_git_vc\wxWidgets\lib\vc_lib
So I don't know why makedir isn't being found?

As for the windres error, it looks like the windres command is being correctly constructed or the TDB-GCC-64 windres has a different syntax to the 32 bit one?

Any help is very welcome

Re: Using Visual Studio Express 2013

Posted: Fri May 15, 2015 6:27 pm
by eranif

Code: Select all

PATH=%PATH%;C:\Program Files\CodeLite;C:\Users\iwbnwif
This line is wrong.
In CodeLite you always use "$"

This line should be:

Code: Select all

PATH=$PATH;C:\Program Files\CodeLite;C:\Users\iwbnwif

Re: Using Visual Studio Express 2013

Posted: Fri May 15, 2015 8:16 pm
by iwbnwif
Thank you, but I made the change as you suggested and still get the same errors both within CodeLite and from a command prompt spawned from CodeLite.