Quantcast

Build problem : beginner

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Build problem : beginner

TomGratte
Hello,

I'm a beginner with cmake, and I did not find answers whether in the cmake documentation or in the archive of the mailing list.

I run a Ubuntu 64 bits and want to use a program.

I've downloaded the .tar.gz file, then extracted it. The structure of the extracted files is :

usr/local/ ->

bin/, include/, lib64/, share/

- In bin/, there are executable files.
- In include/, there are .h files.
- In lib64, I have :
.:
cmtk

./cmtk:
cmtk
lib
libcmtkBase.a
libcmtkGPU.a
libcmtkIO.a
libcmtkNumerics.a
libcmtkPipeline.a
libcmtkQt.a
libcmtkRecon.a
libcmtkRegistration.a
libcmtkSegmentation.a
libcmtksqlite3.a
libcmtkSystem.a
libD4CMTK.a
libmxml.a
libNrrdIO.a

./cmtk/cmtk:
CMTKConfig.cmake

./cmtk/lib:
CMTKLibraryDepends.cmake
UseCMTK.cmake


- And in share/, some documentation.

I tried to use cmake on the .cmake files, but it does not work. What should I do to be able to use this software ? Is it already built ? Why is there not a CMakeLists.txt file in the file I've downloaded ? It must be stupid questions, that is why feel free to redirect me to a helpful tutorial if you think I need some.

(the software I try to use link)

Thank you

Best Regards,

Tom
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Build problem : beginner

Yuri Timenkov
It is pre-built library, that is you don't need to compile it. However it is CMake-aware, therefore you can use it in your program putting find_library(CMTK) into your CMakeLists.txt.

So to use this in your program you should start writing CMakeLists.txt file (as described in tutorial). The .cmake files provided with this CMTK are CMake modules which are used to determine library location, version and other parameters. Also I suppose CMTK documentation has some clues on its usage, please refer to it.

Regards,
Yuri

On Sun, Mar 27, 2011 at 3:29 AM, TomGratte <[hidden email]> wrote:
Hello,

I'm a beginner with cmake, and I did not find answers whether in the cmake
documentation or in the archive of the mailing list.

I run a Ubuntu 64 bits and want to use a program.

I've downloaded the .tar.gz file, then extracted it. The structure of the
extracted files is :

usr/local/ ->

bin/, include/, lib64/, share/

- In bin/, there are executable files.
- In include/, there are .h files.
- In lib64, I have :
.:
cmtk

./cmtk:
cmtk
lib
libcmtkBase.a
libcmtkGPU.a
libcmtkIO.a
libcmtkNumerics.a
libcmtkPipeline.a
libcmtkQt.a
libcmtkRecon.a
libcmtkRegistration.a
libcmtkSegmentation.a
libcmtksqlite3.a
libcmtkSystem.a
libD4CMTK.a
libmxml.a
libNrrdIO.a

./cmtk/cmtk:
CMTKConfig.cmake

./cmtk/lib:
CMTKLibraryDepends.cmake
UseCMTK.cmake

- And in share/, some documentation.

I tried to use cmake on the .cmake files, but it does not work. What should
I do to be able to use this software ? Is it already built ? Why is there
not a CMakeLists.txt file in the file I've downloaded ? It must be stupid
questions, that is why feel free to redirect me to a helpful tutorial if you
think I need some.

(the software I try to use  http://www.nitrc.org/projects/cmtk/ link )

Thank you

Best Regards,

Tom

--
View this message in context: http://cmake.3232098.n2.nabble.com/Build-problem-beginner-tp6211511p6211511.html
Sent from the CMake mailing list archive at Nabble.com.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Build problem : beginner

Martin O'Brien
In reply to this post by TomGratte
I can't say for certain without seeing all of it, but it sure doesn't look
like there's any source code there, so I would assume that it's a binary
distribution.

Either way, those '*.cmake' files aren't what cmake uses directly to build
things.  You would need a 'CMakeLists.txt' file, which probably includes
those other files somehow.


Good luck,

mm

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of
TomGratte
Sent: Saturday, March 26, 2011 7:30 PM
To: [hidden email]
Subject: [CMake] Build problem : beginner

Hello,

I'm a beginner with cmake, and I did not find answers whether in the cmake
documentation or in the archive of the mailing list.

I run a Ubuntu 64 bits and want to use a program.

I've downloaded the .tar.gz file, then extracted it. The structure of the
extracted files is :

usr/local/ ->

bin/, include/, lib64/, share/

- In bin/, there are executable files.
- In include/, there are .h files.
- In lib64, I have :
.:
cmtk

./cmtk:
cmtk
lib
libcmtkBase.a
libcmtkGPU.a
libcmtkIO.a
libcmtkNumerics.a
libcmtkPipeline.a
libcmtkQt.a
libcmtkRecon.a
libcmtkRegistration.a
libcmtkSegmentation.a
libcmtksqlite3.a
libcmtkSystem.a
libD4CMTK.a
libmxml.a
libNrrdIO.a

./cmtk/cmtk:
CMTKConfig.cmake

./cmtk/lib:
CMTKLibraryDepends.cmake
UseCMTK.cmake

- And in share/, some documentation.

I tried to use cmake on the .cmake files, but it does not work. What should
I do to be able to use this software ? Is it already built ? Why is there
not a CMakeLists.txt file in the file I've downloaded ? It must be stupid
questions, that is why feel free to redirect me to a helpful tutorial if you
think I need some.

(the software I try to use  http://www.nitrc.org/projects/cmtk/ link )

Thank you

Best Regards,

Tom

--
View this message in context:
http://cmake.3232098.n2.nabble.com/Build-problem-beginner-tp6211511p6211511.
html
Sent from the CMake mailing list archive at Nabble.com.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
Loading...