Re: [CMake] Building boost app on Mac OS

2009-01-20 Thread Philip Lowman
On Tue, Jan 20, 2009 at 2:11 PM, kafou nmento wrote: > Hi all! > I am on Mac OS and I want to build a boost app with CMake. I did the same > on windows and it works fine. > But it doesn't work on Mac OS. To help us troubleshoot this and confirm that the issue hasn't already been resolved, pleas

Re: [CMake] FIND_PATH FIND_LIBRARY

2009-01-20 Thread Alexander Neundorf
On Tuesday 20 January 2009, Vandenbroucke Sander wrote: > Hi, > > I'm trying to set up a cross-compilation build system using CMake. ... > What am I doing wrong here? I started my Vdwos.cmake from eCos.cmake so > I think those statements should work? Can you post your complete Vdwos.cmake file ? D

Re: [CMake] Building boost app on Mac OS

2009-01-20 Thread Michael Jackson
On Jan 20, 2009, at 2:11 PM, kafou nmento wrote: Hi all! I am on Mac OS and I want to build a boost app with CMake. I did the same on windows and it works fine. But it doesn't work on Mac OS. The configure on CMake goes well but the build fails at the includes of boost headers. For examp

[CMake] Building boost app on Mac OS

2009-01-20 Thread kafou nmento
Hi all! I am on Mac OS and I want to build a boost app with CMake. I did the same  on windows and it works fine. But it doesn't work on Mac OS. The configure on CMake goes well but the build fails at the includes of boost headers. For example, at the line #include I got an error. It sounds like

Re: [CMake] Why the ui_header.h can not be found in Qt project when I add a share lib?

2009-01-20 Thread Michael Jackson
When on Windows making a GUI application MFC (I think) has its own special "main" instead of the normal "main" that everyone else uses. Qt has an implementation of this and the If() statement below makes sure that if you are on windows your program will link in this special "main". If you d

Re: [CMake] Why the ui_header.h can not be found in Qt project when I add a share lib?

2009-01-20 Thread Kermit Mei
Michael Jackson wrote: TARGET_LINK_LIBRARIES( gtc GUI ${QT_LIBRARIES} ) Also BEFORE the FindPackage(Qt4) add the following line: IF (WIN32) SET (QT_USE_QTMAIN TRUE) It works. But what's the meaning here? I hope you can give me some links. I googled it, but I can't find enough answers for

Re: [CMake] Why the ui_header.h can not be found in Qt project when I add a share lib?

2009-01-20 Thread John Drescher
On Tue, Jan 20, 2009 at 1:12 PM, Kermit Mei wrote: > Clinton Stimpson wrote: >> >> How about using ${GUI_UIS} instead of ${SAMPLE_UIS}, which is undefined. >> >> Clint > > Hmm, thank you. I had repired some erros, and the GUI.so can be created. > > But the new troubles come: > You do not appear t

Re: [CMake] Why the ui_header.h can not be found in Qt project when I add a share lib?

2009-01-20 Thread Michael Jackson
TARGET_LINK_LIBRARIES( gtc GUI ${QT_LIBRARIES} ) Also BEFORE the FindPackage(Qt4) add the following line: IF (WIN32) SET (QT_USE_QTMAIN TRUE) ENDIF (WIN32) _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwar

Re: [CMake] Why the ui_header.h can not be found in Qt project when I add a share lib?

2009-01-20 Thread Kermit Mei
Clinton Stimpson wrote: How about using ${GUI_UIS} instead of ${SAMPLE_UIS}, which is undefined. Clint Hmm, thank you. I had repired some erros, and the GUI.so can be created. But the new troubles come: $ make [ 20%] Generating ui_gotocelldialog.h [ 40%] Generating moc_gotocelldialog.cxx Sc

Re: [CMake] Why the ui_header.h can not be found in Qt project when I add a share lib?

2009-01-20 Thread Clinton Stimpson
How about using ${GUI_UIS} instead of ${SAMPLE_UIS}, which is undefined. Clint Kermit Mei wrote: Hello,I'm a novice for cmake. I'm trying to run a qt-project like this: $ tree . |-- CMakeLists.txt |-- build |-- gui //I want creat a share lib here. | |-- CMakeLists.txt | |-- gotocelldialog.cpp

[CMake] Why the ui_header.h can not be found in Qt project when I add a share lib?

2009-01-20 Thread Kermit Mei
Hello,I'm a novice for cmake. I'm trying to run a qt-project like this: $ tree . |-- CMakeLists.txt |-- build |-- gui //I want creat a share lib here. | |-- CMakeLists.txt | |-- gotocelldialog.cpp | |-- gotocelldialog.h | `-- gotocelldialog.ui `-- main.cpp 2 directories, 6 files The CMakeList

Re: [CMake] Wrong LOCATION_ property value with MACOSX_BUNDLE option set

2009-01-20 Thread Nicolas Desprès
I have reported an issue on the bug tracker and submitted a patch: http://public.kitware.com/Bug/view.php?id=8406 Cheers, On Tue, Jan 20, 2009 at 1:02 AM, Nicolas Desprès wrote: > I forgot to mention that setting CMAKE_BUILD_TYPE by either Debug or > Release does not change the problem. > > I e

[CMake] FIND_PATH FIND_LIBRARY

2009-01-20 Thread Vandenbroucke Sander
Hi, I'm trying to set up a cross-compilation build system using CMake. I followed the following instructions: http://www.vtk.org/Wiki/CMake_Cross_Compiling My toolchain file: # the name of the target operating system SET(CMAKE_SYSTEM_NAME Vdwos) # which C and C++ compiler to use SET(CMAKE_C

Re: [CMake] Recompile with different flags

2009-01-20 Thread Adam Weiss
Due to proprietary information issues I can't go into detail, but I can give a vague description. Our company started in Ada now is transitioning to C++. The older employees don't really want to learn and tend to code the C++ in the style of Ada and avoid using any of the features like polymorphi

Re: [CMake] Problem with FindBoost

2009-01-20 Thread Rodolfo Lima
Philip Lowman escreveu: > Thanks, I think it's fixed. Could you give it a try now? Thanks Philip, it works now. > Also, to answer your earlier question, if you're sure it's a bug, yes > it's best to report it on the bugtracker. Here's a bug for this issue I Yes, I usually create bug reports, b

Re: [CMake] Recompile with different flags

2009-01-20 Thread Mike Arthur
On Monday 19 January 2009 20:02:34 Adam Weiss wrote: > I have a set of source files that are compiled and built into a library. > Works great. > Now I want to recompile those same files with a compiler flag added into > another library. Don't ask, this is how it has to be. Purely for intellectual