Hi,
Sorry for bumping this topic but I have the same issue.
I tried the last option, by doing this:
-DCMAKE_INCLUDE_PATH=/usr/include/c++/4.4.4/fstream
But it doesn't work. The error I get is:
Saving configuration results in config.cache... done.
cmake -DINSTDIR:STRING=/home/ircd/services -DDEFUMASK:STRING=077 -DCMAKE_BUILD_TYPE:STRING=RELEASE -DUSE_PCH:BOOLEAN=ON -DCMAKE_INCLUDE_PATH=/usr/include/c++/4.4.4/fstream ..
CMake Error at cmake/Anope.cmake:411 (message):
static_fileserver.cpp needs header file fstream but we were unable to
locate that header file! Check that the header file is within the search
path of your OS.
Call Stack (most recent call first):
modules/CMakeLists.txt:103 (calculate_depends)
modules/webcpanel/CMakeLists.txt:1 (build_subdir)
-- Configuring incomplete, errors occurred!
See also "/home/ircd/anope-2.0.4-source/build/CMakeFiles/CMakeOutput.log".
See also "/home/ircd/anope-2.0.4-source/build/CMakeFiles/CMakeError.log".
Now cd build, then run make to build Anope.
CentOS 6, new Anope version
cmake version 2.8.12.2
gcc (GCC) 4.4.7
Edit:
I just reinstalled to Ubuntu with the following versions:
ircd@irc:~/anope-2.0.4-source$ cmake --version
cmake version 2.8.12.2
ircd@irc:~/anope-2.0.4-source$ gcc --version
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
But also the same error...