1> CMake generation started for configuration: 'Qt-Debug-Linux'.

1> Found cmake executable at /usr/bin/cmake.

1> /usr/bin/cmake -G "Ninja"   
-DCMAKE_PREFIX_PATH:STRING="/opt/Qt/6.8.0/gcc_64" 
-DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_SYSTEM_NAME:STRING="Linux"   
/home/amonra/.vs/DSS/CMakeLists.txt;

1> [CMake] WIN32 is set to , LINUX is set to 1

1> [CMake] System Name is: Linux, prefix path: /opt/Qt/6.8.0/gcc_64

1> [CMake] x64 architecture in use

1> [CMake] CMAKE_SOURCE_DIR: /home/amonra/.vs/DSS

1> [CMake] CMAKE_VS_PLATFORM_NAME: x64

1> [CMake] CMAKE_BUILD_TYPE: Debug

1> [CMake] CMAKE_INSTALL_PREFIX set to: /home/amonra/.vs/DSS/Linux/x64/Debug

1> [CMake] -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) 

1> [CMake] -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) 

1> [CMake] Configuring project: DeepSkyStacker

1> [CMake] -- Link libraries: 
Qt6::CoreQt6::CoreQt6::WidgetsQt6::NetworkDeepSkyStackerKernellibrawZClass$<$<CONFIG:Debug>:tiff.aexiv2.aexpat.az.acfitsio.a>$<$<CONFIG:Release>:tiff.aexiv2.aexpat.az.acfitsio.a>

1> [CMake] Qt Deploy Bin Dir: .

1> [CMake] Qt Deploy Lib Dir: .

1> [CMake] Target filename:$<TARGET_FILE_NAME:DeepSkyStacker>

1> [CMake] executable_path: ./$<TARGET_FILE_NAME:DeepSkyStacker>

1> [CMake] deploy tools options arg: .


David

 

From: Tiff <[email protected]> On Behalf Of David C. Partridge via 
Tiff
Sent: 10 November 2024 06:37
To: [email protected]
Subject: Re: [Tiff] Question about linking with libtiff

 

The target was Linux, not Windows 

 

David

 

From: Bob Friesenhahn <[email protected] 
<mailto:[email protected]> > 
Sent: 09 November 2024 19:03
To: David C. Partridge <[email protected] 
<mailto:[email protected]> >
Subject: Re: [Tiff] Question about linking with libtiff

 

If your target is WIN32 (you did not say what target you are building for), 
then I see logic in the cmake text you sent which specifically adds "libtiff".

Bob

On Nov 9, 2024, at 11:17 AM, "David C. Partridge via Tiff" 
<[email protected] <mailto:[email protected]> > wrote:

I’m not explicitly specifying libtiff as a dependency in the CMakeLists.txt for 
my project.

################################################################################

# Dependencies

################################################################################

# Link with other targets.

target_link_libraries(DeepSkyStacker PRIVATE

    Qt6::Core

    Qt6::Widgets

    Qt6::Network

               DeepSkyStackerKernel

    libraw

    ZClass

)

if(WIN32)

target_link_libraries(DeepSkyStacker PRIVATE

    libtiff

)

message (FATAL_ERROR "WIN32 add libtiff" )

endif()

 

if(WIN32)

set(DEBUG_DEPENDENCIES exiv2d zlibstaticd cfitsio)

set(RELEASE_DEPENDENCIES exiv2 zlibstatic cfitsio)

else()

set(DEBUG_DEPENDENCIES tiff.a exiv2.a expat.a z.a cfitsio.a)

set(RELEASE_DEPENDENCIES tiff.a exiv2.a expat.a z.a cfitsio.a)

endif()

 

set(ADDITIONAL_LIBRARY_DEPENDENCIES

    "$<$<CONFIG:Debug>:${DEBUG_DEPENDENCIES}>"

    "$<$<CONFIG:Release>:${RELEASE_DEPENDENCIES}>"

)

 

if(WIN32)

set(ADDITIONAL_LIBRARY_DEPENDENCIES ${ADDITIONAL_LIBRARY_DEPENDENCIES}

    user32

    psapi

    htmlhelp

)

endif()

 

target_link_libraries(${PROJECT_NAME} PRIVATE 
"${ADDITIONAL_LIBRARY_DEPENDENCIES}")

get_target_property(OUT ${PROJECT_NAME} LINK_LIBRARIES)

message(STATUS "Link libraries: " ${OUT})

and the configure step outputs this:

1> [CMake] Configuring project: DeepSkyStacker

1> [CMake] -- Link libraries: 
Qt6::CoreQt6::CoreQt6::WidgetsQt6::NetworkDeepSkyStackerKernellibrawZClass$<$<CONFIG:Debug>:tiff.aexiv2.aexpat.az.acfitsio.a>$<$<CONFIG:Release>:tiff.aexiv2.aexpat.az.acfitsio.a>

 

Which looks correct to me.  But when I get to the link step of my build, the 
critical part of the link command reads:

-Bstatic  -ltiff  -lexiv2  -lexpat  -lz  -lcfitsio  … stuff deleted …   
-llibtiff

So where is that -llibtiff coming from?? Is there something in the headers that 
could cause that?

 

Thanks, David

 

 



  _____  


Tiff mailing list
[email protected] <mailto:[email protected]> 
https://lists.osgeo.org/mailman/listinfo/tiff

_______________________________________________
Tiff mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/tiff

Reply via email to