Closed surchs closed 5 years ago
What OS, version, compiler, cmake parameters ?
create a separate building directory, set build type ( CMAKE_BUILD_TYPE ) to Release
Unless I misunderstand, that's already what I am doing
git clone --recursive git://github.com/BIC-MNI/minc-toolkit.git minc-toolkit
cd minc-toolkit
mkdir build && cd build
ccmake .. # Enter the location of all dependencies, if not detected automatically ...,
make && make test && make install
This is the instruction I am following. I now also set the CMAK_BUILD_TYPE flag explicitly to Release. I still get an error:
Makefile:553: recipe for target 'h5tools_dump.lo' failed
make[5]: *** [h5tools_dump.lo] Error 1
Makefile:497: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
Makefile:539: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
CMakeFiles/HDF5.dir/build.make:111: recipe for target 'HDF5-prefix/src/HDF5-stamp/HDF5-build' failed
make[2]: *** [HDF5-prefix/src/HDF5-stamp/HDF5-build] Error 2
CMakeFiles/Makefile2:130: recipe for target 'CMakeFiles/HDF5.dir/all' failed
make[1]: *** [CMakeFiles/HDF5.dir/all] Error 2
Makefile:146: recipe for target 'all' failed
make: *** [all] Error 2
Should I save the entire log?
That would help, together with output of cmake -LA .
Here is the cmake log and the log of the make command.
I am getting the same error - here is a longer tail of my log.
Running Gentoo, and using the x86_64-pc-linux-gnu-4.9.2
compiler from gcc.
It seems the error is starting here:
[01m[Kh5tools_dump.c:635:9:[m[K [01;31m[Kerror: [m[Kexpected expression before '[01m[K/[m[K' token
//HGOTO_ERROR(dimension_break, H5E_tools_min_id_g, "Could not allocate buffer for ptdata");
Looks like maybe some typo in your code?
Looks like your compiler might be choking on a "//" comment in that C source file. Which compiler are you using?
The offending file is part of HDF5, which we use but don't provide ourselves. As a workaround, you could separately install a version of HDF5 for your OS, and enable the USE_SYSTEM_HDF5 option in the CMake build.
Looks to me like problems with character encoding, @TheChymera are you running a non-english base system?
@rdvincent see above post for my compiler
@gdevenyi English, UTF-8
Looks like this error was fixed in HDF5 version 1.8.13 - I will update to the latest HDF5 - hopefully that would be enough
@TheChymera @surchs - can you try to build the latest develop branch ?
@vfonov
sci-libs/hdf5-1.8.15_p1 builds nicely here on my end. Currently trying to see if I can set CMake to unbundle that,
the current develop branch now fails for me on both Ubuntu 12.04 and CentOS 6.6, with the same error:
dsets.cpp: In function ‘herr_t test_create(H5::H5File&)’: dsets.cpp:128:34: error: ‘class H5::DataSet’ has no member named ‘getObjName’
Did you start with a fresh build directory?
No. Trying again.
Ok. that was it. sorry.
how to solve this error
Makefile:1219: recipe for target '../out/gcc-debug//src/inet/linklayer/ieee80211 mesh/locator/LocatorModule.o' failed make[1]: * [../out/gcc-debug//src/inet/linklayer/ieee80211mesh/locator/Locator Module.o] Error 1 make[1]: Leaving directory '/c/omnetpp-4.6/inetmanet-2.0-inetmanet-3.0/src' Makefile:4: recipe for target 'all' failed make: * [all] Error 2
Here is how I fixed this for myself. Not sure if this will work for everyone. My int main() was returning a 1 at the end. I changed this to be "return 0;" Then the error went away. Not sure why, maybe someone with more experience could explain this.
Hmm... I think our problem was with older version of HDF5 that was resolved using newer one.
The following worked for me when I ran into this error:
make clean ./configure CFLAGS=-fPIC CXXFLAGS=-fPIC make
@vfonov hi i have this error how can I solve it? Makefile:51: recipe for target 'src/Makefile' failed make: *** [src/Makefile] Error 1
@sepideh9191 please open a seperate issue and provide full description of how you acquired the source, how you configured the build, and the full output log of the compile.
Original reporter is long gone, closing
@surchs gdevenyi i appreciate the time that you devoted. excuse me i did not understand so mush.
how to solve this plz make: *** [Makefile:95: out/gcc-release//inet] Error 1
@colzez Please don't hijack other threads. Open a new issues with full details of how you obtained the source, configured it, and built it, including OS and compiler versions and full logs.
Hi,
I just tried to build the toolkit following the instructions on the git page. It failed with the following error messages:
Any suggestions?