Closed jeandudey closed 9 years ago
Hi Jean, I'm looking forward to examining what you did in detail. However, give me a few days, as I'm currently scrambling to fix some serious problems in convolution networking.
I like the directory hierarchy; that helps organize the files.
I'm not very familiar with either the Microsoft world or with CMake, so forgive me for asking some dumb questions:
Thanks, that helps. I like the concept. I'll experiment some more with the work you did and learn more about it.
@jeandudey, using your work as inspiration, I tried making my own branch using CMake. I would love to get your feedback on it.
I tested it by building and running unitTest and neural2d on the digits demo on Linux with GNU and Clang, and on Cygwin (GNU), and in Windows using the Visual Studio 2013 Community Edition.
If I did anything silly, let me know. I'm still a CMake noob.
Details:
The README.md file has been revised with new build instructions as shown below. If there are any errors or if I can explain anything more clearly, let me know.
We use CMake to configure the build system. First get the source code from the Gitub repository. If using the command line, the command is:
git clone https://github.com/davidrmiller/neural2d
That will put the source code tree into a directory named neural2d.
If you are using the CMake graphical interface, run it and set the "source" directory to the neural2d top directory, and set the binary output directory to a build directory under that, then click Configure and Generate. For example:
If you are using CMake from the command line, cd to the neural2d top level directory, make a build directory, then run cmake from there:
git clone https://github.com/davidrmiller/neural2d
cd neural2d
mkdir build
cd build
cmake ..
make
There is no "install" step. After the neural2d program is compiled, you can execute it or open the project file from the build directory.
On Windows, by default CMake generates a Microsoft Visual Studio project file in the build directory. On Linux and Cygwin, CMake generates a Makefile that you can use to compile neural2d. You can specify a different CMake generator with the -G option, for example:
cmake -G "Visual Studio 11 2012" ..
To get a list of available CMake generators:
cmake --help
If you get errors when compiling the integrated webserver, you can build neural2d without webserver support by running CMake with the -DWEBSERVER=OFF option, like this:
cmake -DWEBSERVER=OFF ..
Wow! you re good to be new to CMake;, the work you did with CMake is good and runs good, i tested it on Cygwin, MSYS, MSYS2, Visual Studio and everything works well!
About the README.md: Everything is good but you can use the install command to have a "make install" like command for the project.
@jeandudey, thanks so much for the kind feedback, and for doing all that testing, and for doing the initial CMake conversion. You have helped make neural2d a better program.
:+1:
Experimental CMake build system.
Solves #9 #10.
What do you think about it?