Dominik Szczerba | 1 Aug 2009 09:28
Picon
Favicon

QT_QTCORE_LIBRARY_DEBUG-NOTFOUND

Hi,

I want to build vtk with cmake using QT in debug mode on linux. I have 
tried both installing the system QT debug symbols package (Ubuntu) as 
well as compiling QT myself with (debug-and-release mode), but cmake 
keeps displaying:

QT_QTCORE_LIBRARY_DEBUG-NOTFOUND

My CMAKE_BUILD_TYPE is DEBUG. How can I force the use of QT debug version?

- Dominik

--

-- 
d o m i n i k   s z c z e r b a ,   p h d . . . . . . . . . . .
c o m p u t a t i o n a l   l i f e   s c i e n c e   g r o u p
. . . . . . . i t ' i s   r e s e a r c h   f o u n d a t i o n
. . . . . . . . . . . . . . . . . . . . http://www.itis.ethz.ch

_______________________________________________
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

(Continue reading)

Dominik Szczerba | 1 Aug 2009 13:03
Picon
Favicon

Re: QT_QTCORE_LIBRARY_DEBUG-NOTFOUND

Michael Wild wrote:
> On 1. Aug, 2009, at 9:28, Dominik Szczerba wrote:
> 
>> Hi,
>>
>> I want to build vtk with cmake using QT in debug mode on linux. I  
>> have tried both installing the system QT debug symbols package  
>> (Ubuntu) as well as compiling QT myself with (debug-and-release  
>> mode), but cmake keeps displaying:
>>
>> QT_QTCORE_LIBRARY_DEBUG-NOTFOUND
>>
>> My CMAKE_BUILD_TYPE is DEBUG. How can I force the use of QT debug  
>> version?
>>
>> - Dominik
>>
> 
> I don't know about the "proper" solution, but you can always set these  
> paths in the cache, either using the -D flag, by simply editing  
> CMakeCache.txt or using one of the interactive interfaces...

Yes, true, but actually there are several of them and I was wondering 
what is wrong here.

> 
> BTW: Why are you cross-posting this to vtkusers?

Because the compilation is actually concerned with VTK and there might 
be something to check there as well.
(Continue reading)

Brad King | 1 Aug 2009 14:44
Favicon
Gravatar

Re: CMakeCache changing due to PDB

Ashwin Chandra wrote:
> Notice the pdb file changed in case. I think what is happening is that 
> the compiler is generating the pdb file in all lower case on the first 
> build run and when doing a second build run, it somehow knows the file 
> is in lowercase now and it updates the build.make files (which in turn 
> tells cmake and visual studio compiler to do the linking phase over 
> again).  Note that a third or more builds work fine (no relinking).

Good analysis.

> Is there anyway to have the build.make file always generate the pdb 
> section in lowercase? Where does it get the case of the file anyway?

CMake generates the rules using the case of the logical target name.
However, most paths that CMake processes on Windows go through a
"get actual case" function which tries to preserve the case of the
file as seen on disk.  The first time the file doesn't exist, so
CMake just uses the case it intends.  The second time the file does
exist, so the "get actual case" works and switches the case.

It's kind of the compiler's fault for not preserving the case it
is given in the /Fd option, but it is up to CMake to deal with it.
We'll have to be more careful about which paths go through the
"get actual case" function.  Only files that are inputs to the
build should go through it, while files generated by the build
should not.  Please submit this here:

http://www.cmake.org/Bug

Thanks,
(Continue reading)

Dominik Szczerba | 1 Aug 2009 19:42
Picon
Favicon

Re: [CMake] QT_QTCORE_LIBRARY_DEBUG-NOTFOUND

Yes indeed, I was confused by Windows where one has separate libs e.g. 
QtCore and QtCored. Still, I do not have any /usr/lib/libQt*debug files 
(I DID install the qt-dbg pacgages) but the symbols are somehow there in 
the debugger backtrace despite debug versions NOTFOUND. It's a quite 
confusing. But many thanks for clarifications!
-- Dominik

Clinton Stimpson wrote:
> On 08/01/2009 01:28 AM, Dominik Szczerba wrote:
>> Hi,
>>
>> I want to build vtk with cmake using QT in debug mode on linux. I have 
>> tried both installing the system QT debug symbols package (Ubuntu) as 
>> well as compiling QT myself with (debug-and-release mode), but cmake 
>> keeps displaying:
>>
>> QT_QTCORE_LIBRARY_DEBUG-NOTFOUND
>>
>> My CMAKE_BUILD_TYPE is DEBUG. How can I force the use of QT debug 
>> version?
>>
>> - Dominik
>>
> 
> Qt typically gives a .debug file for debug symbols.  So that would be a 
> libQtCore.so and libQtCore.so.debug instead of libQtCore.so and 
> libQtCored.so.  Its fine for QT_QTCORE_LIBRARY_DEBUG to be NOTFOUND, if 
> you have a .debug file.  Or if you configured Qt with -debug and it gave 
> you a debug library with the name of a release library, you can ignore 
> that QT_QTCORE_LIBRARY_DEBUG is NOTFOUND.
(Continue reading)

Pau Garcia i Quiles | 1 Aug 2009 20:04
Favicon

Re: QT_QTCORE_LIBRARY_DEBUG-NOTFOUND

Hello,

Check /usr/lib/debug/usr/lib

On Sat, Aug 1, 2009 at 7:42 PM, Dominik Szczerba<dominik@...> wrote:
> Yes indeed, I was confused by Windows where one has separate libs e.g.
> QtCore and QtCored. Still, I do not have any /usr/lib/libQt*debug files (I
> DID install the qt-dbg pacgages) but the symbols are somehow there in the
> debugger backtrace despite debug versions NOTFOUND. It's a quite confusing.
> But many thanks for clarifications!
> -- Dominik
>
> Clinton Stimpson wrote:
>>
>> On 08/01/2009 01:28 AM, Dominik Szczerba wrote:
>>>
>>> Hi,
>>>
>>> I want to build vtk with cmake using QT in debug mode on linux. I have
>>> tried both installing the system QT debug symbols package (Ubuntu) as well
>>> as compiling QT myself with (debug-and-release mode), but cmake keeps
>>> displaying:
>>>
>>> QT_QTCORE_LIBRARY_DEBUG-NOTFOUND
>>>
>>> My CMAKE_BUILD_TYPE is DEBUG. How can I force the use of QT debug
>>> version?
>>>
>>> - Dominik
>>>
(Continue reading)

Dominik Szczerba | 1 Aug 2009 20:35
Picon
Favicon

Re: [CMake] QT_QTCORE_LIBRARY_DEBUG-NOTFOUND

Many thanks, I did not know that... (But then again, how could I?) That 
explains NOTFOUND, if a human user can not find it... But as posted 
before, accepting NOTFOUND with no action like 
-DQT_QTCORE_LIBRARY_DEBUG=/usr/lib/libQtCore.so.4.5.0 I still get the 
debugging symbols in the backtrace. I have no *.debug files mentioned 
before... I do not like this because it leaves me uncertain if I am 
doing the right thing or confusing the debugger (and yes, at the moment 
my backtrace is rather enigmatic). I will probably compile QT myself and 
recompile my VTK build to have a bigger control.
Many thanks for valuable remarks,
Dominik

Pau Garcia i Quiles wrote:
> Hello,
> 
> Check /usr/lib/debug/usr/lib
> 
> On Sat, Aug 1, 2009 at 7:42 PM, Dominik Szczerba<dominik <at> itis.ethz.ch> wrote:
>> Yes indeed, I was confused by Windows where one has separate libs e.g.
>> QtCore and QtCored. Still, I do not have any /usr/lib/libQt*debug files (I
>> DID install the qt-dbg pacgages) but the symbols are somehow there in the
>> debugger backtrace despite debug versions NOTFOUND. It's a quite confusing.
>> But many thanks for clarifications!
>> -- Dominik
>>
>> Clinton Stimpson wrote:
>>> On 08/01/2009 01:28 AM, Dominik Szczerba wrote:
>>>> Hi,
>>>>
>>>> I want to build vtk with cmake using QT in debug mode on linux. I have
(Continue reading)

motes motes | 2 Aug 2009 00:07
Picon

How to use FIND_PACKAGE(xxx) ?

I am building an application with cmake that depends on the Elastix  library:

http://elastix.isi.uu.nl/about.php

I have already build Elastix. I am trying to do the following in a CMakeLists.txt file:

------------------------------------------------------------------------------------------------------------------------------------
# Find Elastix
FIND_PACKAGE(ELASTIX REQUIRED)
IF( ELASTIX_FOUND )
  INCLUDE( ${ELASTIX_USE_FILE} )
ELSE( ELASTIX_FOUND )
  MESSAGE( FATAL_ERROR "Cannot build without ELASTIX.  Please set ELASTIX_DIR." )
ENDIF( ELASTIX_FOUND )


# I need to use the following:
INCLUDE_DIRECTORIES(${ELASTIX_SRC}/Core/Kernel)
INCLUDE_DIRECTORIES(${ELASTIX_SRC}/Core/Configuration)
INCLUDE_DIRECTORIES(${ELASTIX_SRC}/Core/ComponentBaseClasses)

LINK_DIRECTORIES(G:/diku/speciale/local/lib/GnuWin32/src/zlib/1.2.3/zlib-1.2.3)
LINK_DIRECTORIES(${ELASTIX_BUILD})
LINK_DIRECTORIES(${ELASTIX_BUILD}/Components/Optimizers/StandardGradientDescent)
------------------------------------------------------------------------------------------------------------------------------------

But this does not work since ELASTIX_SRC and  ELASTIX_BUILD are not defined. I defined those manually earlier but is there no way to include the Elastix library in a more generic way?

_______________________________________________
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
alexis lameire | 2 Aug 2009 00:29
Picon
Favicon

Re: How to use FIND_PACKAGE(xxx) ?



Date: Sun, 2 Aug 2009 00:07:02 +0200
From: mort.motes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
To: cmake-wChDC6UyXvPYtjvyW6yDsg@public.gmane.org
Subject: [CMake] How to use FIND_PACKAGE(xxx) ?

I am building an application with cmake that depends on the Elastix  library:

http://elastix.isi.uu.nl/about.php

I have already build Elastix. I am trying to do the following in a CMakeLists.txt file:

------------------------------------------------------------------------------------------------------------------------------------
# Find Elastix
FIND_PACKAGE(ELASTIX REQUIRED)
IF( ELASTIX_FOUND )
  INCLUDE( ${ELASTIX_USE_FILE} )
ELSE( ELASTIX_FOUND )
  MESSAGE( FATAL_ERROR "Cannot build without ELASTIX.  Please set ELASTIX_DIR." )
ENDIF( ELASTIX_FOUND )


# I need to use the following:
INCLUDE_DIRECTORIES(${ELASTIX_SRC}/Core/Kernel)
INCLUDE_DIRECTORIES(${ELASTIX_SRC}/Core/Configuration)
INCLUDE_DIRECTORIES(${ELASTIX_SRC}/Core/ComponentBaseClasses)

LINK_DIRECTORIES(G:/diku/speciale/local/lib/GnuWin32/src/zlib/1.2.3/zlib-1.2.3)
LINK_DIRECTORIES(${ELASTIX_BUILD})
LINK_DIRECTORIES(${ELASTIX_BUILD}/Components/Optimizers/StandardGradientDescent)
------------------------------------------------------------------------------------------------------------------------------------

But this does not work since ELASTIX_SRC and  ELASTIX_BUILD are not defined. I defined those manually earlier but is there no way to include the Elastix library in a more generic way?

to use find package an another developper must have creat findxxx.cmake macro !
this library is not yet implemented and you must creat manualy the findxxx.cmake script and distribut it with your program !

Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows Live ? Lancez-vous !
_______________________________________________
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
motes motes | 2 Aug 2009 00:31
Picon

Re: How to use FIND_PACKAGE(xxx) ?

Yeah I realized that it does not exists for Elastix, but it exists for ITK though. Maybe the Elastix developer will include it in a future release.

On Sun, Aug 2, 2009 at 12:29 AM, alexis lameire <alexisis-pristontale-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:


Date: Sun, 2 Aug 2009 00:07:02 +0200
From: mort.motes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
To: cmake-wChDC6UyXvPYtjvyW6yDsg@public.gmane.org
Subject: [CMake] How to use FIND_PACKAGE(xxx) ?


I am building an application with cmake that depends on the Elastix  library:

http://elastix.isi.uu.nl/about.php

I have already build Elastix. I am trying to do the following in a CMakeLists.txt file:

------------------------------------------------------------------------------------------------------------------------------------
# Find Elastix
FIND_PACKAGE(ELASTIX REQUIRED)
IF( ELASTIX_FOUND )
  INCLUDE( ${ELASTIX_USE_FILE} )
ELSE( ELASTIX_FOUND )
  MESSAGE( FATAL_ERROR "Cannot build without ELASTIX.  Please set ELASTIX_DIR." )
ENDIF( ELASTIX_FOUND )


# I need to use the following:
INCLUDE_DIRECTORIES(${ELASTIX_SRC}/Core/Kernel)
INCLUDE_DIRECTORIES(${ELASTIX_SRC}/Core/Configuration)
INCLUDE_DIRECTORIES(${ELASTIX_SRC}/Core/ComponentBaseClasses)

LINK_DIRECTORIES(G:/diku/speciale/local/lib/GnuWin32/src/zlib/1.2.3/zlib-1.2.3)
LINK_DIRECTORIES(${ELASTIX_BUILD})
LINK_DIRECTORIES(${ELASTIX_BUILD}/Components/Optimizers/StandardGradientDescent)
------------------------------------------------------------------------------------------------------------------------------------

But this does not work since ELASTIX_SRC and  ELASTIX_BUILD are not defined. I defined those manually earlier but is there no way to include the Elastix library in a more generic way?

to use find package an another developper must have creat findxxx.cmake macro !
this library is not yet implemented and you must creat manualy the findxxx.cmake script and distribut it with your program !

Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows Live ? Lancez-vous !

_______________________________________________
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
alexis lameire | 2 Aug 2009 00:33
Picon
Favicon

Re: How to use FIND_PACKAGE(xxx) ?



Date: Sun, 2 Aug 2009 00:31:31 +0200
Subject: Re: [CMake] How to use FIND_PACKAGE(xxx) ?
From: mort.motes <at> gmail.com
To: alexisis-pristontale-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org
CC: cmake-wChDC6UyXvPYtjvyW6yDsg@public.gmane.org

Yeah I realized that it does not exists for Elastix, but it exists for ITK though. Maybe the Elastix developer will include it in a future release.

On Sun, Aug 2, 2009 at 12:29 AM, alexis lameire <alexisis-pristontale-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:


Date: Sun, 2 Aug 2009 00:07:02 +0200
From: mort.motes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
To: cmake-wChDC6UyXvPYtjvyW6yDsg@public.gmane.org
Subject: [CMake] How to use FIND_PACKAGE(xxx) ?


I am building an application with cmake that depends on the Elastix  library:

http://elastix.isi.uu.nl/about.php

I have already build Elastix. I am trying to do the following in a CMakeLists.txt file:

------------------------------------------------------------------------------------------------------------------------------------
# Find Elastix
FIND_PACKAGE(ELASTIX REQUIRED)
IF( ELASTIX_FOUND )
  INCLUDE( ${ELASTIX_USE_FILE} )
ELSE( ELASTIX_FOUND )
  MESSAGE( FATAL_ERROR "Cannot build without ELASTIX.  Please set ELASTIX_DIR." )
ENDIF( ELASTIX_FOUND )


# I need to use the following:
INCLUDE_DIRECTORIES(${ELASTIX_SRC}/Core/Kernel)
INCLUDE_DIRECTORIES(${ELASTIX_SRC}/Core/Configuration)
INCLUDE_DIRECTORIES(${ELASTIX_SRC}/Core/ComponentBaseClasses)

LINK_DIRECTORIES(G:/diku/speciale/local/lib/GnuWin32/src/zlib/1.2.3/zlib-1.2.3)
LINK_DIRECTORIES(${ELASTIX_BUILD})
LINK_DIRECTORIES(${ELASTIX_BUILD}/Components/Optimizers/StandardGradientDescent)
------------------------------------------------------------------------------------------------------------------------------------

But this does not work since ELASTIX_SRC and  ELASTIX_BUILD are not defined. I defined those manually earlier but is there no way to include the Elastix library in a more generic way?

to use find package an another developper must have creat findxxx.cmake macro !
this library is not yet implemented and you must creat manualy the findxxx.cmake script and distribut it with your program !

Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows Live ? Lancez-vous !

_______________________________________________
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

don't top quote when you replay :)
ans if possible quotting all text it's easyest for the another people reading :)

Votre correspondant a choisi Hotmail et profite d'un stockage quasiment illimité. Créez un compte Hotmail gratuitement !
_______________________________________________
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

Gmane