From: Ting Y. <yao...@gm...> - 2009-04-29 07:49:58
|
hi, sorry to disturb you. VXL is new to me and I have a problem when i used it, that is, how to debug my codes with the Makefile generated by the CMake? I will appreciate if you can give me a help. Thank you for your help! bests, moyini |
From: Antonio G. C. <A.G...@de...> - 2009-04-29 08:38:51
|
There is a key in CmakeCache.txt: //Choose the type of build, options are: None(CMAKE_CXX_FLAGS or // CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel. CMAKE_BUILD_TYPE:STRING= Antonio Ting Yao escribió: > > hi, > sorry to disturb you. VXL is new to me and I have a problem when i > used it, that is, > how to debug my codes with the Makefile generated by the CMake? I will > appreciate if you can give me a help. > Thank you for your help! > > > > > > bests, > moyini > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > ------------------------------------------------------------------------ > > _______________________________________________ > Vxl-users mailing list > Vxl...@li... > https://lists.sourceforge.net/lists/listinfo/vxl-users > |
From: Xiaowen P. <dor...@ya...> - 2009-04-29 09:12:25
|
Will there be a more comfortable way? Modifying CmakeCache each time is such a boring thing. Doris. ________________________________ 发件人: Antonio Garrido Carrillo <A.G...@de...> 收件人: Ting Yao <yao...@gm...> 抄送: vxl...@li... 已发送: 2009/4/29(周三), 下午4:19:13 主题: Re: [Vxl-users] how to debug my code? There is a key in CmakeCache.txt: //Choose the type of build, options are: None(CMAKE_CXX_FLAGS or // CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel. CMAKE_BUILD_TYPE:STRING= Antonio Ting Yao escribió: > > hi, > sorry to disturb you. VXL is new to me and I have a problem when i > used it, that is, > how to debug my codes with the Makefile generated by the CMake? I will > appreciate if you can give me a help. > Thank you for your help! > > > > > > bests, > moyini > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > ------------------------------------------------------------------------ > > _______________________________________________ > Vxl-users mailing list > Vxl...@li... > https://lists.sourceforge.net/lists/listinfo/vxl-users > ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Vxl-users mailing list Vxl...@li... https://lists.sourceforge.net/lists/listinfo/vxl-users ___________________________________________________________ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ |
From: Ian S. <ian...@st...> - 2009-04-29 10:03:19
|
Doris and moyini - Please include more information when asking for help. See the vxl list policy http://vxl.sourceforge.net/vxl-users-policy.html. I assume you are using some form of Unix-y make. On my Linux systems I maintain two build trees, a Debug build and a RelwithDebInfo build, in the following directory arrangement code | -- vxl | | | -- src (source tree) | | | -- dbg (debug build tree - | | CMAKE_BUILD_TYPE:STRING=Debug ) | | | -- opt (optimised build - | CMAKE_BUILD_TYPE:STRING=RelwithDebInfo ) | -- local etc. Ian. Xiaowen Pan wrote: > > Will there be a more comfortable way? Modifying CmakeCache each time is such a boring thing. > > Doris. > > ------------------------------------------------------------------------ > *发件人:* Antonio Garrido Carrillo <A.G...@de...> > *收件人:* Ting Yao <yao...@gm...> > *抄送:* vxl...@li... > *已发送:* 2009/4/29(周三), 下午4:19:13 > *主题:* Re: [Vxl-users] how to debug my code? > > > There is a key in CmakeCache.txt: > > //Choose the type of build, options are: None(CMAKE_CXX_FLAGS or > // CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel. > CMAKE_BUILD_TYPE:STRING= > > Antonio > > Ting Yao escribió: > > > > hi, > > sorry to disturb you. VXL is new to me and I have a problem when i > > used it, that is, > > how to debug my codes with the Makefile generated by the CMake? I will > > appreciate if you can give me a help. > > Thank you for your help! > > > > > > > > > > bests, > > moyini > > |
From: Ting Y. <yao...@gm...> - 2009-04-29 11:02:22
|
Thanks all! There is also a simple way, just add SET(CMAKE_BUILD_TYPE Debug) in the CMakeLists.txt, you can debug the code. 2009/4/29 Ian Scott <ian...@st...> > Doris and moyini - Please include more information when asking for help. > See the vxl list policy http://vxl.sourceforge.net/vxl-users-policy.html. > > I assume you are using some form of Unix-y make. > > On my Linux systems I maintain two build trees, a Debug build and a > RelwithDebInfo build, in the following directory arrangement > > code > | > -- vxl > | | > | -- src (source tree) > | | > | -- dbg (debug build tree - > | | CMAKE_BUILD_TYPE:STRING=Debug ) > | | > | -- opt (optimised build - > | CMAKE_BUILD_TYPE:STRING=RelwithDebInfo ) > | > -- local > etc. > > > Ian. > > Xiaowen Pan wrote: > > > > Will there be a more comfortable way? Modifying CmakeCache each > time is such a boring thing. > > > > Doris. > > > > ------------------------------------------------------------------------ > > *发件人:* Antonio Garrido Carrillo <A.G...@de...> > > *收件人:* Ting Yao <yao...@gm...> > > *抄送:* vxl...@li... > > *已发送:* 2009/4/29(周三), 下午4:19:13 > > *主题:* Re: [Vxl-users] how to debug my code? > > > > > > There is a key in CmakeCache.txt: > > > > //Choose the type of build, options are: None(CMAKE_CXX_FLAGS or > > // CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel. > > CMAKE_BUILD_TYPE:STRING= > > > > Antonio > > > > Ting Yao escribió: > > > > > > hi, > > > sorry to disturb you. VXL is new to me and I have a problem when i > > > used it, that is, > > > how to debug my codes with the Makefile generated by the CMake? I > will > > > appreciate if you can give me a help. > > > Thank you for your help! > > > > > > > > > > > > > > bests, > > > moyini > > > > > > > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Vxl-users mailing list > Vxl...@li... > https://lists.sourceforge.net/lists/listinfo/vxl-users > |
From: Miguel A. Figueroa-V. <mi...@ie...> - 2009-04-29 12:45:48
|
2009/4/29 Ting Yao: > 2009/4/29 Ian Scott: [...] >> On my Linux systems I maintain two build trees, a Debug build and a >> RelwithDebInfo build, in the following directory arrangement >> >> code >> | >> -- vxl >> | | >> | -- src (source tree) >> | | >> | -- dbg (debug build tree - >> | | CMAKE_BUILD_TYPE:STRING=Debug ) >> | | >> | -- opt (optimised build - >> | CMAKE_BUILD_TYPE:STRING=RelwithDebInfo ) >> | >> -- local >> etc. [...] > There is also a simple way, just add SET(CMAKE_BUILD_TYPE Debug) in the > CMakeLists.txt, you can debug the code. Hello Ting, I don't think this is a good idea because, then you need to change the CMakeLists.txt file to be able to run in optimized mode. What is usually done is that you create a structure like what Ian described and then you have two different builds an optimized and one for debugging (so that you don't have to build from scratch everytime you decide to switch). You could have just one build, but even then it is not a good idea to put the "SET(CMAKE_BUILD_TYPE Debug)" in the CMakeLists.txt file. What you want to do is (assuming Ian's file structure): cd .../vxl/dbg cmake -DCMAKE_BUILD_TYPE:STRING=Debug ../vxl If you also want to create the optimized build: cd ../opt cmake -DCMAKE_BUILD_TYPE:STRING=Release ../vxl Note that you can also set the CMAKE_BUILD_TYPE variable using a gui (cmake-gui or ccmake). Note also that normally the CMakeCache.txt file isn't manually edited, you use the gui tools or the command line for that. Hope that helps. --Miguel |