[Mrtrix-discussion] mrtrix compiler with codeblocks

Donald Tournier d.tournier at brain.org.au
Tue Mar 31 15:00:24 PDT 2009


Hi Zhenming,

Glad you got CodeWorks set up. I'm not sure about the first error, I'm
guessing it's related to the other errors. It looks like there's a few
files included in the MRtrix release that are not needed -  there's a
few ideas that I tried, but that I never really had time to finish.
The "src/dialog/window.*" files are among them, as is the
"src/dwi/sdeconv/mcmc.cpp". I suggest you try to simply move them out
of the MRtrix folder, and see if the whole release still builds (using
./build). If everything builds OK, then you can simply delete them.

Hope that helps.

Donald.


On Wed, Apr 1, 2009 at 6:37 AM, Zhenming Yuan <zhenming.yuan at gmail.com> wrote:
> Hi Donald,
>
>
> Thank you for your help.
> Yes, I'm interested in developing applications based on MRtrix.
> Actually, I have import the project into CodeBlocks.
> After I setup the relative searching directories, almost files can be
> compiled correctly.
>
> But there are three problems:
> 1)in lib/app.h
> when compile this file, CodeBlocks report
> ../lib/app.h|105|error: ‘const char** MR::App::command_description’ is
> protected|
> ......
> So, I note the protected:, it will compiler correct.
> 2)in dialog/window.cpp
> when compile this file, CodeBlocks report
> App::gui_icon not defined
> 3)in dwi/sdeconv/mcmc.cpp
> cannot find "MCMC_spherical_deconvolution.h"
>
> However I can use ./build provided by MRtrix to compile the project
> successfully.
> Could you give some suggestions?
>
> Best,
> Zhenming
>
>
>
> --------------------------------------------------
> From: "Donald Tournier" <d.tournier at brain.org.au>
> Sent: Tuesday, March 31, 2009 11:39 AM
> To: "Zhenming Yuan" <zhenming.yuan at gmail.com>
> Cc: <mrtrix-discussion at www.nitrc.org>
> Subject: Re: [Mrtrix-discussion] mrtrix compiler with codeblocks
>
>> Hi Zhenming,
>>
>> I guess you're interested in developing applications based on the
>> MRtrix codebase? If not, there should be no need to set it up in
>> CodeBlocks. Otherwise, I have no experience with CodeBlocks, or with
>> any particular IDE: I only use vi and the command-line. But if you can
>> set up CodeBlocks to issue the ./build command to compile an
>> application, then that should work. You can provide as an argument to
>> ./build the actual target that you're trying to build, be it the final
>> executable, or any of the intermediate object files. I don't know if
>> that helps.
>>
>> Another option is to run ./build with the -verbose option: that will
>> tell you exactly what commands are being issued to compile the source.
>> If you can get CodeBlocks to reproduce those commands, then that
>> should work.
>>
>> Hope that helps. Good luck!
>>
>> Donald.
>>
>>
>> 2009/3/31 Zhenming Yuan <zhenming.yuan at gmail.com>:
>>>
>>> Hi all,
>>>
>>> I want to build mrtrix with codeblocks.
>>> But I found it is difficult to setup a project in codeblocks.
>>> Could you help me to setup it? Especially the dependence lib and files
>>> setups.
>>> Thanks a lot.
>>> Best,
>>>
>>> Zhenming Yuan
>>> _______________________________________________
>>> Mrtrix-discussion mailing list
>>> Mrtrix-discussion at www.nitrc.org
>>> http://www.nitrc.org/mailman/listinfo/mrtrix-discussion
>>>
>>>
>>
>>
>>
>> --
>> Jacques-Donald Tournier (PhD)
>> Brain Research Institute, Melbourne, Australia
>> Tel: +61 (0)3 9496 4078
>
>



-- 
Jacques-Donald Tournier (PhD)
Brain Research Institute, Melbourne, Australia
Tel: +61 (0)3 9496 4078


More information about the Mrtrix-discussion mailing list