Having trouble building with CMake

I Use codeblocks 12.11 with it's default compiler,
I Use CMake 2.8.11

I am trying to compile Box2D

I build ok, but there is no linker (*.a) generated

This is the first time I compile with CMake,
From what I know the step by step to build using CMake

1. Find the CMakeList.txt file and it's source
2. Setup the build folder and the source folder
3. Setup the CMake into using "Codeblocks MinGW Makefile"
4. Setup The MINGW_MAKE_PROGRAM into C:\Program Files\Codeblocks\MinGW\bin\mingw32-make.exe
5. Genereate
6. Copy the linker file (*.a) into C:\Program Files\Codeblocks\MinGW\lib
7. Setup Codeblocks to link against them with -l[something]
8. Compile all done

Did I miss any step ?
Those are from what I learn in a few places while googling
Steps 4 and 6 don't look right. Unless you changed the installation directory of MingW it normally resides in it's own directory at C:\MingW and C::B doesn't install it's own MingW AFAIK. I'd double check to make sure those directories exist.
Really, but there is a package
Codeblocks 12.11 MinGW
in Codeblocks' download page

and I've been using it since the beginning
Well do those directories (in steps 4 and 6) exist or not? If they are there then what I said doesn't matter because no matter how it happened MingW is there.
It's there,
Why wouldn't it be there,
if it weren't there then CMake will produce some error

But the compile looks successful


The C compiler identification is GNU 4.7.1
The CXX compiler identification is GNU 4.7.1
Check for working C compiler: C:/Program Files/CodeBlocks/MinGW/bin/gcc.exe
Check for working C compiler: C:/Program Files/CodeBlocks/MinGW/bin/gcc.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler: C:/Program Files/CodeBlocks/MinGW/bin/g++.exe
Check for working CXX compiler: C:/Program Files/CodeBlocks/MinGW/bin/g++.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Configuring done
Generating done


This is outputed
Bah! I'm an idiot. Sorry I'm a Windows user so I don't use make files a whole lot. Go to the directory that is designated under "Where to build the binary's" in CMake then run mingw32-make.exe, DO NOT include the file name of cmake_install.cmake only the directory in which is resides. If I remember correctly this should build the libraries for you.
I did that and nothing happened,,,,

did I use the wrong param in the CMD ?

mingw32-make -C D:\Package\Box2DBuild
Cmake doesn't compile anything, it generates makefiles and projects. After cmake generates change directory to where you had it generate the files. There run
mingw32-make
Assuming that is your the output directory I mentioned above and the location of the "cmake_install.cmake" file, then that's pretty much what I did.
Topic archived. No new replies allowed.