[MINC-development] compiling Display from github

Jason Lerch jason at phenogenomics.ca
Mon Nov 5 15:02:15 EST 2012


Answered my own question - this lets libminc build:

cmake -DCMAKE_INSTALL_PREFIX=/usr/local/minc2 -DCMAKE_CXX_FLAGS="-I/home/jason/git/libminc/ezminc" CMakeLists.txt

Jason

On 2012-11-05, at 3:00 PM, Jason Lerch <jason at phenogenomics.ca> wrote:

> Related cmake question - how does one get it to accept CPPFLAGS (or other similar environment variables)? And how can I get cmake/make to show me the actual arguments used by gcc/g++?
> 
> Thanks,
> 
> Jason
> 
> On 2012-11-05, at 2:55 PM, Jason Lerch <jason at phenogenomics.ca> wrote:
> 
>> libminc (git master) lets me run cmake without issues then bombs here during make:
>> 
>> Linking C executable test_arg_parse
>> Linking C executable mincapi
>> [ 88%] Built target test_arg_parse
>> Scanning dependencies of target test_mconv
>> [ 89%] Building C object testdir/CMakeFiles/test_mconv.dir/test_mconv.c.o
>> [ 89%] Built target mincapi
>> Scanning dependencies of target test_speed
>> [ 90%] Linking C executable test_mconv
>> Building C object testdir/CMakeFiles/test_speed.dir/test_speed.c.o
>> Linking C executable test_speed
>> [ 90%] Built target test_mconv
>> Scanning dependencies of target test_xfm
>> [ 91%] Building C object testdir/CMakeFiles/test_xfm.dir/test_xfm.c.o
>> Linking C executable test_xfm
>> [ 91%] Built target test_speed
>> Scanning dependencies of target fuzzy_volume_similarity
>> [ 92%] Building CXX object ezminc/examples/CMakeFiles/fuzzy_volume_similarity.dir/fuzzy_volume_similarity.cpp.o
>> /home/jason/git/libminc/ezminc/examples/fuzzy_volume_similarity.cpp:15:23: fatal error: minc_1_rw.h: No such file or directory
>> compilation terminated.
>> make[2]: *** [ezminc/examples/CMakeFiles/fuzzy_volume_similarity.dir/fuzzy_volume_similarity.cpp.o] Error 1
>> make[1]: *** [ezminc/examples/CMakeFiles/fuzzy_volume_similarity.dir/all] Error 2
>> make[1]: *** Waiting for unfinished jobs....
>> [ 92%] Built target test_xfm
>> make: *** [all] Error 2
>> 
>> Any hints? I'll dig into it if not.
>> 
>> Jason
>> 
>> On 2012-11-05, at 2:44 PM, "Vladimir S. FONOV" <vladimir.fonov at gmail.com> wrote:
>> 
>>> Hello,
>>> 
>>> use libminc ( https://github.com/BIC-MNI/libminc ) I just convert all CMakeLists to use that instead of minc.
>>> 
>>> I think, basically what you see on the screen is your config.log
>>> 
>>> On 12-11-05 02:35 PM, Jason Lerch wrote:
>>>> Thanks Jordi and Vlad for the cmake tips! Onwards in my attempt to demonstrate my ignorance: tried to build minc from git master, and cmake produces the following:
>>>> 
>>>> <snip>
>>>> -- Looking for include file pwd.h - found
>>>> -- Found BISON: /usr/bin/bison (found version "2.5")
>>>> -- Found FLEX: /usr/bin/flex (found version "2.5.35")
>>>> CMake Error at progs/CMakeLists.txt:191 (INSTALL):
>>>> install FILES given directory "/home/jason/git/minc/progs/minchistory" to
>>>> install.
>>>> 
>>>> 
>>>> CMake Error at progs/CMakeLists.txt:196 (INSTALL):
>>>> install PROGRAMS given directory "/home/jason/git/minc/progs/mincpik" to
>>>> install.
>>>> 
>>>> 
>>>> -- Configuring incomplete, errors occurred!
>>>> 
>>>> (same error whether I type 'cmake CMakeLists.txt' or whether I add the -DCMAKE_INSTALL_PREFIX)
>>>> 
>>>> Is there an equivalent of config.log to see what it's trying to do? Does that error ring any bells?
>>>> 
>>>> Jason
>>>> 
>>>> 
>>>> On 2012-11-05, at 1:54 PM, "Vladimir S. FONOV" <vladimir.fonov at gmail.com> wrote:
>>>> 
>>>>> Hello,
>>>>> 
>>>>> On 12-11-05 01:42 PM, Jordi Gutiérrez Hermoso wrote:
>>>>>> Basically, you can use -D to set any CMake variable.
>>>>>> 
>>>>>>> and our --with-build-path?
>>>>>> 
>>>>>> This I don't know, but if you do "ccmake ." in your build directory,
>>>>>> you'll get an ncurses interface for setting other CMake variables.
>>>>>> They're mostly documented in the giant cmake manpage.
>>>>> 
>>>>> Basically each MINC package which provides a library (libminc,ebtks,bicpl etc) creates a configuration file, and you have to specify it's location using CMAKE variables. So, there is no direct equivalent to with-build-path anymore.
>>>>> 
>>>>> --
>>>>> Best regards,
>>>>> 
>>>>> Vladimir S. FONOV ~ vladimir.fonov <at> gmail.com
>>>>> _______________________________________________
>>>>> MINC-development mailing list
>>>>> MINC-development at bic.mni.mcgill.ca
>>>>> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-development
>>>> 
>>>> _______________________________________________
>>>> MINC-development mailing list
>>>> MINC-development at bic.mni.mcgill.ca
>>>> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-development
>>>> 
>>> 
>>> 
>>> -- 
>>> Best regards,
>>> 
>>> Vladimir S. FONOV ~ vladimir.fonov <at> gmail.com
>>> _______________________________________________
>>> MINC-development mailing list
>>> MINC-development at bic.mni.mcgill.ca
>>> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-development
>> 
>> _______________________________________________
>> MINC-development mailing list
>> MINC-development at bic.mni.mcgill.ca
>> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-development
> 
> _______________________________________________
> MINC-development mailing list
> MINC-development at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-development



More information about the MINC-development mailing list