Re: [CMake] False.lib error while linking

2011-06-01 Thread AMARNATH, Balachandar
(BLAS_${_library}_LIBRARY NAMES ${_library} PATHS /usr/local/lib 
/usr/lib /usr/local/lib64 /usr/lib64 ENV LD_LIBRARY_PATH )
c:/Users/BAAMARNA5617/Programs/CMake 
2.8/share/cmake-2.8/Modules/FindBLAS.cmake(96):  
mark_as_advanced(BLAS_${_library}_LIBRARY )
c:/Users/BAAMARNA5617/Programs/CMake 
2.8/share/cmake-2.8/Modules/FindBLAS.cmake(97):  set(BLAS_LIBRARIES 
${BLAS_LIBRARIES} ${BLAS_${_library}_LIBRARY} )
c:/Users/BAAMARNA5617/Programs/CMake 
2.8/share/cmake-2.8/Modules/FindBLAS.cmake(98):  set(_libraries_work 
${BLAS_${_library}_LIBRARY} )
c:/Users/BAAMARNA5617/Programs/CMake 
2.8/share/cmake-2.8/Modules/FindBLAS.cmake(65):  set(_combined_name 
${_combined_name}_${_library} )
c:/Users/BAAMARNA5617/Programs/CMake 
2.8/share/cmake-2.8/Modules/FindBLAS.cmake(67):  if(_libraries_work )
c:/Users/BAAMARNA5617/Programs/CMake 
2.8/share/cmake-2.8/Modules/FindBLAS.cmake(68):  if(WIN32 )
c:/Users/BAAMARNA5617/Programs/CMake 
2.8/share/cmake-2.8/Modules/FindBLAS.cmake(69):  if(BLA_STATIC )
c:/Users/BAAMARNA5617/Programs/CMake 
2.8/share/cmake-2.8/Modules/FindBLAS.cmake(72):  
find_library(BLAS_${_library}_LIBRARY NAMES ${_library} PATHS ENV LIB )
c:/Users/BAAMARNA5617/Programs/CMake 
2.8/share/cmake-2.8/Modules/FindBLAS.cmake(78):  if(APPLE )
c:/Users/BAAMARNA5617/Programs/CMake 
2.8/share/cmake-2.8/Modules/FindBLAS.cmake(88):  if(BLA_STATIC )
c:/Users/BAAMARNA5617/Programs/CMake 
2.8/share/cmake-2.8/Modules/FindBLAS.cmake(91):  
find_library(BLAS_${_library}_LIBRARY NAMES ${_library} PATHS /usr/local/lib 
/usr/lib /usr/local/lib64 /usr/lib64 ENV LD_LIBRARY_PATH )
c:/Users/BAAMARNA5617/Programs/CMake 
2.8/share/cmake-2.8/Modules/FindBLAS.cmake(96):  
mark_as_advanced(BLAS_${_library}_LIBRARY )
c:/Users/BAAMARNA5617/Programs/CMake 
2.8/share/cmake-2.8/Modules/FindBLAS.cmake(97):  set(BLAS_LIBRARIES 
${BLAS_LIBRARIES} ${BLAS_${_library}_LIBRARY} )
c:/Users/BAAMARNA5617/Programs/CMake 
2.8/share/cmake-2.8/Modules/FindBLAS.cmake(98):  set(_libraries_work 
${BLAS_${_library}_LIBRARY} )
c:/Users/BAAMARNA5617/Programs/CMake 
2.8/share/cmake-2.8/Modules/FindBLAS.cmake(101):  if(_libraries_work )
c:/Users/BAAMARNA5617/Programs/CMake 
2.8/share/cmake-2.8/Modules/FindBLAS.cmake(114):  if(NOT _libraries_work )
c:/Users/BAAMARNA5617/Programs/CMake 
2.8/share/cmake-2.8/Modules/FindBLAS.cmake(115):  set(BLAS_LIBRARIES FALSE )
c:/Users/BAAMARNA5617/Programs/CMake 
2.8/share/cmake-2.8/Modules/FindBLAS.cmake(401):  if(NOT BLAS_LIBRARIES )
c:/Users/BAAMARNA5617/Programs/CMake 
2.8/share/cmake-2.8/Modules/FindBLAS.cmake(402):  
check_fortran_libraries(BLAS_LIBRARIES BLAS sgemm  mkl;guide 
${CMAKE_THREAD_LIBS_INIT};${LM} )

**

 This, I believe, due to missing of libguide40 library which is required by 
FindBLAS.cmake module. Because of this, LAPACK_LIBRARIES are also set to FALSE. 
They are linked to 'mpf' library through 
target_link_libraries(${LAPACK_LIBRARIES} ${BLAS_LIBRARIES} ...). By the way, i 
use Intel MKL for blas and lapack libraries.

Regards
Balachandar


-Original Message-
From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of 
Bill Hoffman
Sent: 31 May 2011 22:03
To: cmake@cmake.org
Subject: Re: [CMake] False.lib error while linking

On 5/31/2011 7:04 AM, AMARNATH, Balachandar wrote:
 Hi,
 When i compile MPF package using CMAKE/NMAKE with Intel C and fortran as
 Compilers (in windows) , also with Intel MPI and MKL library, i get an
 error while linking,
 *
 -LIBPATH:C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build
 FALSE.lib
 C:\Program Files\Intel\MPI\4.0.2.005\ia32\lib\impi.lib
 user32.lib
 /MANIFEST
 LINK : fatal error LNK1181: cannot open input file 'FALSE.lib'
 LINK failed. with 1181
 
 Any clue about this? Further, Intel MKL library does not contain
 libguide40 library which is required by FindBLAS.cmake module. Any clue
 on how to tackle this?
 Many thanks
 Balachandar

Sounds like there is FALSE in some library name used.  I would check
your CMakeCache.txt.  Another thing you can do is run cmake --trace and
see where FALSE shows up in an add_library.

 The information in this e-mail is confidential. The contents may not be 
 disclosed or used by anyone other than the addressee. Access to this e-mail 
 by anyone else is unauthorised.
 If you are not the intended recipient, please notify Airbus immediately and 
 delete this e-mail.
 Airbus cannot accept any responsibility for the accuracy or completeness of 
 this e-mail as it has been sent over public networks. If you have any 
 concerns over the content of this message or its Accuracy or Integrity, 
 please contact Airbus immediately.
 All outgoing e-mails from Airbus are checked using regularly updated virus 
 scanning software but you should take whatever measures you deem to be 
 appropriate to ensure that this message and any attachments are virus free.


You realize this is going to a public archived mailing list right?

-Bill

[CMake] False.lib error while linking

2011-05-31 Thread AMARNATH, Balachandar
Hi,

 When i compile MPF package using CMAKE/NMAKE with Intel C and fortran as 
Compilers (in windows) , also with Intel MPI and MKL library, i get an error 
while linking,


*
-LIBPATH:C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build
FALSE.lib
C:\Program Files\Intel\MPI\4.0.2.005\ia32\lib\impi.lib
user32.lib
/MANIFEST
LINK : fatal error LNK1181: cannot open input file 'FALSE.lib'
LINK failed. with 1181



Any clue about this? Further, Intel MKL library does not contain libguide40 
library which is required by FindBLAS.cmake module.  Any clue on how to tackle 
this?


Many thanks
Balachandar


The information in this e-mail is confidential. The contents may not be 
disclosed or used by anyone other than the addressee. Access to this e-mail by 
anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and 
delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of 
this e-mail as it has been sent over public networks. If you have any concerns 
over the content of this message or its Accuracy or Integrity, please contact 
Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus 
scanning software but you should take whatever measures you deem to be 
appropriate to ensure that this message and any attachments are virus free.

___
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

[CMake] Fortran issue

2011-05-19 Thread AMARNATH, Balachandar
Hi,

I am trying to build MPF package in windows using intel compilers and i end up 
with the following error.


***Check for working Fortran compiler using: Visual 
Studio 10
Check for working C compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working Fortran compiler using: Visual Studio 10
Check for working Fortran compiler using: Visual Studio 10 -- broken
CMake Error at C:/Users/BAAMARNA5617/Programs/CMake 
2.8/share/cmake-2.8/Modules/CMakeTestFortranCompiler.cmake:40 (MESSAGE):
The Fortran compiler C:/Program
Files/Intel/ComposerXE-2011/bin/ia32/ifort.exe is not able to compile a
simple test program.
It fails with the following output:
Change Dir: C:/Users/BAAMARNA5617/Projects/CMAKE/mpf_build/CMakeFiles/CMakeTmp
Run Build Command:C:\WINNT\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
cmTryCompileExec.vcxproj /p:Configuration=Debug
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.1]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
Build started 19/05/2011 11:42:19.
Project
C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj
 on node 1 (default targets).
InitializeBuildStatus:
Creating cmTryCompileExec.dir\Debug\cmTryCompileExec.unsuccessfulbuild 
because AlwaysCreate was specified.
ManifestResourceCompile:
C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /nologo 
/focmTryCompileExec.dir\Debug\cmTryCompileExec.exe.embed.manifest.res 
cmTryCompileExec.dir\Debug\cmTryCompileExec_manifest.rc
Link:
C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\link.exe 
/ERRORREPORT:QUEUE 
/OUT:C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe
 /VERSION:0.0 /INCREMENTAL /NOLOGO user32.lib /MANIFEST 
/ManifestFile:cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.intermediate.manifest
 /MANIFESTUAC:level='asInvoker' uiAccess='false' /DEBUG 
/PDB:C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.pdb
 /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT 
/IMPLIB:C:/Users/BAAMARNA5617/Projects/CMAKE/mpf_build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.lib
 /MACHINE:X86 
cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.embed.manifest.res /debug
LINK : error LNK2001: unresolved external symbol _mainCRTStartup
[C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe
: fatal error LNK1120: 1 unresolved externals
[C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
Done Building Project
C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj
(default targets) -- FAILED.
Build FAILED.
C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj
(default target) (1) -
(Link target) -
LINK : error LNK2001: unresolved external symbol _mainCRTStartup 
[C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe
 : fatal error LNK1120: 1 unresolved externals 
[C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
0 Warning(s)
2 Error(s)
Time Elapsed 00:00:00.35
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:22 (project)
Configuring incomplete, errors occurred!
***

Any hint in this error would be gr8 help. :)


With thanks and regards
Bala


The information in this e-mail is confidential. The contents may not be 
disclosed or used by anyone other than the addressee. Access to this e-mail by 
anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and 
delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of 
this e-mail as it has been sent over public networks. If you have any concerns 
over the content of this message or its Accuracy or Integrity, please contact 
Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus 
scanning software but you should take whatever measures you deem to be 
appropriate to ensure that this message and any attachments are virus free.

___
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

[CMake] Issue using cmake with mingw

2011-05-10 Thread AMARNATH, Balachandar
Hi,


I am trying to compile (cross) a library in linux (debian) under mingw. I have 
installed the mingw packages for debian (gcc-mingw32, mingw32-binutils, 
mingw32-runtime) and have specified i586-mingw32-gcc, i586-mingw32-c++ and 
i586-mingw32-gfortran as my c, cxx and fortran compiler (present in /usr/bin). 
My software also uses blas, lapack and openmpi library which i have installed 
in /usr location.  While configuring, i get this following error


CMake Error at /usr/share/cmake-2.8/Modules/FindBLAS.cmake:456 (message):
 A required library with BLAS API not found. Please specify library location
Call Stack (most recent call first):
 CMakeLists.txt:46 (FIND_PACKAGE).


I do have libblas.so in my /usr/lib but still it throws me this error. Further, 
if i don't use mingw environment and specify /usr/bin/gcc, /usr/bin/c++ and 
/usr/bin/gfortran as my compiler options, i don't get this error.

Any clue on this would be great help


With thanks and regards
Balachandar









The information in this e-mail is confidential. The contents may not be 
disclosed or used by anyone other than the addressee. Access to this e-mail by 
anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and 
delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of 
this e-mail as it has been sent over public networks. If you have any concerns 
over the content of this message or its Accuracy or Integrity, please contact 
Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus 
scanning software but you should take whatever measures you deem to be 
appropriate to ensure that this message and any attachments are virus free.

___
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

[CMake] Issue with LIST command

2011-04-26 Thread AMARNATH, Balachandar
Hi

 I have a following piece of cmake commands in my CMakeLists.txt file which is 
not working with windows but working fine in debian.

IF (NOT WITH_MUMPS)
   LIST(REMOVE_ITEM c_source_files ${mumps_srcs})
ENDIF(NOT WITH_MUMPS)

Any clue in this ?


Regards
Bala


The information in this e-mail is confidential. The contents may not be 
disclosed or used by anyone other than the addressee. Access to this e-mail by 
anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and 
delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of 
this e-mail as it has been sent over public networks. If you have any concerns 
over the content of this message or its Accuracy or Integrity, please contact 
Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus 
scanning software but you should take whatever measures you deem to be 
appropriate to ensure that this message and any attachments are virus free.

___
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

[CMake] Hi.. a New bie question

2011-04-07 Thread AMARNATH, Balachandar
Hi all,

 I want to create a library out of several sources distributed in various 
directory structures. It seems, i need to specify name of all sources to 
ADD_LIBRARY command. Is there any other way to do it ? Keeping CMakeLists.txt 
file in every sub directory will really help as i need to create library out of 
all sources not with the sources of a single directory?. In this case, however, 
how to get the list of source files in my main CMakeLists.txt file so as to 
pass this to ADD_LIBRARY command. Can anyone out there to help me in this ?

With thanks and regards
Bala



The information in this e-mail is confidential. The contents may not be 
disclosed or used by anyone other than the addressee. Access to this e-mail by 
anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and 
delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of 
this e-mail as it has been sent over public networks. If you have any concerns 
over the content of this message or its Accuracy or Integrity, please contact 
Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus 
scanning software but you should take whatever measures you deem to be 
appropriate to ensure that this message and any attachments are virus free.

___
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