How to add wrapper to Qt



  • Hello,

    I tried to add a wrapped to Qt but I don't know how it's possible.
    I work on windows 10 (64 bits) with Qt Creator 3.6.0 based on Qt 5.5.1.
    I write my project with C++.

    For my project I work with Fits file.
    My goal is: visualised images include in fits file with horizontal slider. (200 images)

    During my research I found the library I need (I think).
    It’s: https://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
    I add it with right click on my project / "add library" / external library.
    Now I want to add wrapper named CCFits to use it easily in C++.
    https://heasarc.gsfc.nasa.gov/docs/software/fitsio/ccfits/

    Please help me :)
    P.S: Sorry for my English isn’t my maternal language.



  • This post is deleted!




  • Thank,

    I follow the first link and the step 3.2.2.
    I think I completed the step 1 to 3.
    I'm not sure the step 4 worked because i've an error :

    C:\Users\Julie\Documents\InstallationProgrammeInformatique\CCfits\CCfits.build>nmake
    
    Microsoft (R) Program Maintenance Utility Version 14.10.25019.0
    Copyright (C) Microsoft Corporation. Tous droits réservés.
    
    NMAKE : fatal error U1064: MAKEFILE introuvable et aucune cible spécifiée
    Stop.
    

    Know i've the next log file :

    The system is: Windows - 10.0.15063 - AMD64
    Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
    Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86/cl.exe 
    Build flags: 
    Id flags:  
    
    The output was:
    0
    Compilateur d'optimisation Microsoft (R) C/C++ versionÿ19.10.25019 pour x86
    Copyright (C) Microsoft Corporation. Tous droits r‚serv‚s.
    
    CMakeCCompilerId.c
    Microsoft (R) Incremental Linker Version 14.10.25019.0
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
    /out:CMakeCCompilerId.exe 
    CMakeCCompilerId.obj 
    
    
    Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CMakeCCompilerId.exe"
    
    Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CMakeCCompilerId.obj"
    
    The C compiler identification is MSVC, found in "C:/Users/Julie/Documents/InstallationProgrammeInformatique/CCfits/CCfits.build/CMakeFiles/3.9.0-rc3/CompilerIdC/CMakeCCompilerId.exe"
    
    Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
    Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86/cl.exe 
    Build flags: 
    Id flags:  
    
    The output was:
    0
    Compilateur d'optimisation Microsoft (R) C/C++ versionÿ19.10.25019 pour x86
    Copyright (C) Microsoft Corporation. Tous droits r‚serv‚s.
    
    CMakeCXXCompilerId.cpp
    Microsoft (R) Incremental Linker Version 14.10.25019.0
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
    /out:CMakeCXXCompilerId.exe 
    CMakeCXXCompilerId.obj 
    
    
    Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CMakeCXXCompilerId.exe"
    
    Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CMakeCXXCompilerId.obj"
    
    The CXX compiler identification is MSVC, found in "C:/Users/Julie/Documents/InstallationProgrammeInformatique/CCfits/CCfits.build/CMakeFiles/3.9.0-rc3/CompilerIdCXX/CMakeCXXCompilerId.exe"
    
    Determining if the C compiler works passed with the following output:
    Change Dir: C:/Users/Julie/Documents/InstallationProgrammeInformatique/CCfits/CCfits.build/CMakeFiles/CMakeTmp
    
    Run Build Command:"nmake" "/NOLOGO" "cmTC_643f5\fast"
    	"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\nmake.exe" -f CMakeFiles\cmTC_643f5.dir\build.make /nologo -L                  CMakeFiles\cmTC_643f5.dir\build
    
    Building C object CMakeFiles/cmTC_643f5.dir/testCCompiler.c.obj
    
    	C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX86\x86\cl.exe @C:\Users\JULIEG~1\AppData\Local\Temp\nm9349.tmp
    
    testCCompiler.c
    
    Linking C executable cmTC_643f5.exe
    
    	"C:\Users\Julie\Documents\InstallationProgrammeInformatique\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_643f5.dir --manifests  -- C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX86\x86\link.exe /nologo @CMakeFiles\cmTC_643f5.dir\objects1.rsp @C:\Users\JULIEG~1\AppData\Local\Temp\nm951F.tmp
    
    
    
    Detecting C compiler ABI info compiled with the following output:
    Change Dir: C:/Users/Julie/Documents/InstallationProgrammeInformatique/CCfits/CCfits.build/CMakeFiles/CMakeTmp
    
    Run Build Command:"nmake" "/NOLOGO" "cmTC_375c9\fast"
    	"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\nmake.exe" -f CMakeFiles\cmTC_375c9.dir\build.make /nologo -L                  CMakeFiles\cmTC_375c9.dir\build
    
    Building C object CMakeFiles/cmTC_375c9.dir/CMakeCCompilerABI.c.obj
    
    	C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX86\x86\cl.exe @C:\Users\JULIEG~1\AppData\Local\Temp\nm9C90.tmp
    
    CMakeCCompilerABI.c
    
    Linking C executable cmTC_375c9.exe
    
    	"C:\Users\Julie\Documents\InstallationProgrammeInformatique\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_375c9.dir --manifests  -- C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX86\x86\link.exe /nologo @CMakeFiles\cmTC_375c9.dir\objects1.rsp @C:\Users\JULIEG~1\AppData\Local\Temp\nm9CFE.tmp
    
    
    
    Determining if the CXX compiler works passed with the following output:
    Change Dir: C:/Users/Julie/Documents/InstallationProgrammeInformatique/CCfits/CCfits.build/CMakeFiles/CMakeTmp
    
    Run Build Command:"nmake" "/NOLOGO" "cmTC_c8152\fast"
    	"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\nmake.exe" -f CMakeFiles\cmTC_c8152.dir\build.make /nologo -L                  CMakeFiles\cmTC_c8152.dir\build
    
    Building CXX object CMakeFiles/cmTC_c8152.dir/testCXXCompiler.cxx.obj
    
    	C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX86\x86\cl.exe @C:\Users\JULIEG~1\AppData\Local\Temp\nmA00A.tmp
    
    testCXXCompiler.cxx
    
    Linking CXX executable cmTC_c8152.exe
    
    	"C:\Users\Julie\Documents\InstallationProgrammeInformatique\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_c8152.dir --manifests  -- C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX86\x86\link.exe /nologo @CMakeFiles\cmTC_c8152.dir\objects1.rsp @C:\Users\JULIEG~1\AppData\Local\Temp\nmA079.tmp
    
    
    
    Detecting CXX compiler ABI info compiled with the following output:
    Change Dir: C:/Users/Julie/Documents/InstallationProgrammeInformatique/CCfits/CCfits.build/CMakeFiles/CMakeTmp
    
    Run Build Command:"nmake" "/NOLOGO" "cmTC_96c2d\fast"
    	"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\nmake.exe" -f CMakeFiles\cmTC_96c2d.dir\build.make /nologo -L                  CMakeFiles\cmTC_96c2d.dir\build
    
    Building CXX object CMakeFiles/cmTC_96c2d.dir/CMakeCXXCompilerABI.cpp.obj
    
    	C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX86\x86\cl.exe @C:\Users\JULIEG~1\AppData\Local\Temp\nmA327.tmp
    
    CMakeCXXCompilerABI.cpp
    
    Linking CXX executable cmTC_96c2d.exe
    
    	"C:\Users\Julie\Documents\InstallationProgrammeInformatique\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_96c2d.dir --manifests  -- C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX86\x86\link.exe /nologo @CMakeFiles\cmTC_96c2d.dir\objects1.rsp @C:\Users\JULIEG~1\AppData\Local\Temp\nmA396.tmp
    
    
    
    
    
    Detecting CXX [] compiler features compiled with the following output:
    Change Dir: C:/Users/Julie/Documents/InstallationProgrammeInformatique/CCfits/CCfits.build/CMakeFiles/CMakeTmp
    
    Run Build Command:"nmake" "/NOLOGO" "cmTC_1c2b0\fast"
    	"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\nmake.exe" -f CMakeFiles\cmTC_1c2b0.dir\build.make /nologo -L                  CMakeFiles\cmTC_1c2b0.dir\build
    
    Building CXX object CMakeFiles/cmTC_1c2b0.dir/feature_tests.cxx.obj
    
    	C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX86\x86\cl.exe @C:\Users\JULIEG~1\AppData\Local\Temp\nmA77D.tmp
    
    feature_tests.cxx
    
    Linking CXX executable cmTC_1c2b0.exe
    
    	"C:\Users\Julie\Documents\InstallationProgrammeInformatique\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_1c2b0.dir --manifests  -- C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX86\x86\link.exe /nologo @CMakeFiles\cmTC_1c2b0.dir\objects1.rsp @C:\Users\JULIEG~1\AppData\Local\Temp\nmA7FB.tmp
    
    
    
        Feature record: CXX_FEATURE:1cxx_aggregate_default_initializers
        Feature record: CXX_FEATURE:1cxx_alias_templates
        Feature record: CXX_FEATURE:1cxx_alignas
        Feature record: CXX_FEATURE:1cxx_alignof
        Feature record: CXX_FEATURE:1cxx_attributes
        Feature record: CXX_FEATURE:1cxx_attribute_deprecated
        Feature record: CXX_FEATURE:1cxx_auto_type
        Feature record: CXX_FEATURE:1cxx_binary_literals
        Feature record: CXX_FEATURE:1cxx_constexpr
        Feature record: CXX_FEATURE:1cxx_contextual_conversions
        Feature record: CXX_FEATURE:1cxx_decltype
        Feature record: CXX_FEATURE:1cxx_decltype_auto
        Feature record: CXX_FEATURE:1cxx_default_function_template_args
        Feature record: CXX_FEATURE:1cxx_defaulted_functions
        Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers
        Feature record: CXX_FEATURE:1cxx_delegating_constructors
        Feature record: CXX_FEATURE:1cxx_deleted_functions
        Feature record: CXX_FEATURE:1cxx_digit_separators
        Feature record: CXX_FEATURE:1cxx_enum_forward_declarations
        Feature record: CXX_FEATURE:1cxx_explicit_conversions
        Feature record: CXX_FEATURE:1cxx_extended_friend_declarations
        Feature record: CXX_FEATURE:1cxx_extern_templates
        Feature record: CXX_FEATURE:1cxx_final
        Feature record: CXX_FEATURE:1cxx_func_identifier
        Feature record: CXX_FEATURE:1cxx_generalized_initializers
        Feature record: CXX_FEATURE:1cxx_generic_lambdas
        Feature record: CXX_FEATURE:1cxx_inheriting_constructors
        Feature record: CXX_FEATURE:1cxx_inline_namespaces
        Feature record: CXX_FEATURE:1cxx_lambdas
        Feature record: CXX_FEATURE:1cxx_lambda_init_captures
        Feature record: CXX_FEATURE:1cxx_local_type_template_args
        Feature record: CXX_FEATURE:1cxx_long_long_type
        Feature record: CXX_FEATURE:1cxx_noexcept
        Feature record: CXX_FEATURE:1cxx_nonstatic_member_init
        Feature record: CXX_FEATURE:1cxx_nullptr
        Feature record: CXX_FEATURE:1cxx_override
        Feature record: CXX_FEATURE:1cxx_range_for
        Feature record: CXX_FEATURE:1cxx_raw_string_literals
        Feature record: CXX_FEATURE:1cxx_reference_qualified_functions
        Feature record: CXX_FEATURE:1cxx_return_type_deduction
        Feature record: CXX_FEATURE:1cxx_right_angle_brackets
        Feature record: CXX_FEATURE:1cxx_rvalue_references
        Feature record: CXX_FEATURE:1cxx_sizeof_member
        Feature record: CXX_FEATURE:1cxx_static_assert
        Feature record: CXX_FEATURE:1cxx_strong_enums
        Feature record: CXX_FEATURE:1cxx_template_template_parameters
        Feature record: CXX_FEATURE:1cxx_thread_local
        Feature record: CXX_FEATURE:1cxx_trailing_return_types
        Feature record: CXX_FEATURE:1cxx_unicode_literals
        Feature record: CXX_FEATURE:1cxx_uniform_initialization
        Feature record: CXX_FEATURE:1cxx_unrestricted_unions
        Feature record: CXX_FEATURE:1cxx_user_literals
        Feature record: CXX_FEATURE:1cxx_variable_templates
        Feature record: CXX_FEATURE:1cxx_variadic_macros
        Feature record: CXX_FEATURE:1cxx_variadic_templates
    
    
    Detecting CXX [] compiler features compiled with the following output:
    Change Dir: C:/Users/Julie/Documents/InstallationProgrammeInformatique/CCfits/CCfits.build/CMakeFiles/CMakeTmp
    
    Run Build Command:"nmake" "/NOLOGO" "cmTC_e3042\fast"
    	"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\nmake.exe" -f CMakeFiles\cmTC_e3042.dir\build.make /nologo -L                  CMakeFiles\cmTC_e3042.dir\build
    
    Building CXX object CMakeFiles/cmTC_e3042.dir/feature_tests.cxx.obj
    
    	C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX86\x86\cl.exe @C:\Users\JULIEG~1\AppData\Local\Temp\nmAC30.tmp
    
    feature_tests.cxx
    
    Linking CXX executable cmTC_e3042.exe
    
    	"C:\Users\Julie\Documents\InstallationProgrammeInformatique\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_e3042.dir --manifests  -- C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX86\x86\link.exe /nologo @CMakeFiles\cmTC_e3042.dir\objects1.rsp @C:\Users\JULIEG~1\AppData\Local\Temp\nmAC9E.tmp
    
    
    
        Feature record: CXX_FEATURE:1cxx_aggregate_default_initializers
        Feature record: CXX_FEATURE:1cxx_alias_templates
        Feature record: CXX_FEATURE:1cxx_alignas
        Feature record: CXX_FEATURE:1cxx_alignof
        Feature record: CXX_FEATURE:1cxx_attributes
        Feature record: CXX_FEATURE:1cxx_attribute_deprecated
        Feature record: CXX_FEATURE:1cxx_auto_type
        Feature record: CXX_FEATURE:1cxx_binary_literals
        Feature record: CXX_FEATURE:1cxx_constexpr
        Feature record: CXX_FEATURE:1cxx_contextual_conversions
        Feature record: CXX_FEATURE:1cxx_decltype
        Feature record: CXX_FEATURE:1cxx_decltype_auto
        Feature record: CXX_FEATURE:1cxx_default_function_template_args
        Feature record: CXX_FEATURE:1cxx_defaulted_functions
        Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers
        Feature record: CXX_FEATURE:1cxx_delegating_constructors
        Feature record: CXX_FEATURE:1cxx_deleted_functions
        Feature record: CXX_FEATURE:1cxx_digit_separators
        Feature record: CXX_FEATURE:1cxx_enum_forward_declarations
        Feature record: CXX_FEATURE:1cxx_explicit_conversions
        Feature record: CXX_FEATURE:1cxx_extended_friend_declarations
        Feature record: CXX_FEATURE:1cxx_extern_templates
        Feature record: CXX_FEATURE:1cxx_final
        Feature record: CXX_FEATURE:1cxx_func_identifier
        Feature record: CXX_FEATURE:1cxx_generalized_initializers
        Feature record: CXX_FEATURE:1cxx_generic_lambdas
        Feature record: CXX_FEATURE:1cxx_inheriting_constructors
        Feature record: CXX_FEATURE:1cxx_inline_namespaces
        Feature record: CXX_FEATURE:1cxx_lambdas
        Feature record: CXX_FEATURE:1cxx_lambda_init_captures
        Feature record: CXX_FEATURE:1cxx_local_type_template_args
        Feature record: CXX_FEATURE:1cxx_long_long_type
        Feature record: CXX_FEATURE:1cxx_noexcept
        Feature record: CXX_FEATURE:1cxx_nonstatic_member_init
        Feature record: CXX_FEATURE:1cxx_nullptr
        Feature record: CXX_FEATURE:1cxx_override
        Feature record: CXX_FEATURE:1cxx_range_for
        Feature record: CXX_FEATURE:1cxx_raw_string_literals
        Feature record: CXX_FEATURE:1cxx_reference_qualified_functions
        Feature record: CXX_FEATURE:1cxx_return_type_deduction
        Feature record: CXX_FEATURE:1cxx_right_angle_brackets
        Feature record: CXX_FEATURE:1cxx_rvalue_references
        Feature record: CXX_FEATURE:1cxx_sizeof_member
        Feature record: CXX_FEATURE:1cxx_static_assert
        Feature record: CXX_FEATURE:1cxx_strong_enums
        Feature record: CXX_FEATURE:1cxx_template_template_parameters
        Feature record: CXX_FEATURE:1cxx_thread_local
        Feature record: CXX_FEATURE:1cxx_trailing_return_types
        Feature record: CXX_FEATURE:1cxx_unicode_literals
        Feature record: CXX_FEATURE:1cxx_uniform_initialization
        Feature record: CXX_FEATURE:1cxx_unrestricted_unions
        Feature record: CXX_FEATURE:1cxx_user_literals
        Feature record: CXX_FEATURE:1cxx_variable_templates
        Feature record: CXX_FEATURE:1cxx_variadic_macros
        Feature record: CXX_FEATURE:1cxx_variadic_templates
    
    
    Detecting CXX [] compiler features compiled with the following output:
    Change Dir: C:/Users/Julie/Documents/InstallationProgrammeInformatique/CCfits/CCfits.build/CMakeFiles/CMakeTmp
    
    Run Build Command:"nmake" "/NOLOGO" "cmTC_0139d\fast"
    	"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\nmake.exe" -f CMakeFiles\cmTC_0139d.dir\build.make /nologo -L                  CMakeFiles\cmTC_0139d.dir\build
    
    Building CXX object CMakeFiles/cmTC_0139d.dir/feature_tests.cxx.obj
    
    	C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX86\x86\cl.exe @C:\Users\JULIEG~1\AppData\Local\Temp\nmB170.tmp
    
    feature_tests.cxx
    
    Linking CXX executable cmTC_0139d.exe
    
    	"C:\Users\Julie\Documents\InstallationProgrammeInformatique\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_0139d.dir --manifests  -- C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX86\x86\link.exe /nologo @CMakeFiles\cmTC_0139d.dir\objects1.rsp @C:\Users\JULIEG~1\AppData\Local\Temp\nmB1FD.tmp
    
    
    
        Feature record: CXX_FEATURE:1cxx_aggregate_default_initializers
        Feature record: CXX_FEATURE:1cxx_alias_templates
        Feature record: CXX_FEATURE:1cxx_alignas
        Feature record: CXX_FEATURE:1cxx_alignof
        Feature record: CXX_FEATURE:1cxx_attributes
        Feature record: CXX_FEATURE:1cxx_attribute_deprecated
        Feature record: CXX_FEATURE:1cxx_auto_type
        Feature record: CXX_FEATURE:1cxx_binary_literals
        Feature record: CXX_FEATURE:1cxx_constexpr
        Feature record: CXX_FEATURE:1cxx_contextual_conversions
        Feature record: CXX_FEATURE:1cxx_decltype
        Feature record: CXX_FEATURE:1cxx_decltype_auto
        Feature record: CXX_FEATURE:1cxx_default_function_template_args
        Feature record: CXX_FEATURE:1cxx_defaulted_functions
        Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers
        Feature record: CXX_FEATURE:1cxx_delegating_constructors
        Feature record: CXX_FEATURE:1cxx_deleted_functions
        Feature record: CXX_FEATURE:1cxx_digit_separators
        Feature record: CXX_FEATURE:1cxx_enum_forward_declarations
        Feature record: CXX_FEATURE:1cxx_explicit_conversions
        Feature record: CXX_FEATURE:1cxx_extended_friend_declarations
        Feature record: CXX_FEATURE:1cxx_extern_templates
        Feature record: CXX_FEATURE:1cxx_final
        Feature record: CXX_FEATURE:1cxx_func_identifier
        Feature record: CXX_FEATURE:1cxx_generalized_initializers
        Feature record: CXX_FEATURE:1cxx_generic_lambdas
        Feature record: CXX_FEATURE:1cxx_inheriting_constructors
        Feature record: CXX_FEATURE:1cxx_inline_namespaces
        Feature record: CXX_FEATURE:1cxx_lambdas
        Feature record: CXX_FEATURE:1cxx_lambda_init_captures
        Feature record: CXX_FEATURE:1cxx_local_type_template_args
        Feature record: CXX_FEATURE:1cxx_long_long_type
        Feature record: CXX_FEATURE:1cxx_noexcept
        Feature record: CXX_FEATURE:1cxx_nonstatic_member_init
        Feature record: CXX_FEATURE:1cxx_nullptr
        Feature record: CXX_FEATURE:1cxx_override
        Feature record: CXX_FEATURE:1cxx_range_for
        Feature record: CXX_FEATURE:1cxx_raw_string_literals
        Feature record: CXX_FEATURE:1cxx_reference_qualified_functions
        Feature record: CXX_FEATURE:1cxx_return_type_deduction
        Feature record: CXX_FEATURE:1cxx_right_angle_brackets
        Feature record: CXX_FEATURE:1cxx_rvalue_references
        Feature record: CXX_FEATURE:1cxx_sizeof_member
        Feature record: CXX_FEATURE:1cxx_static_assert
        Feature record: CXX_FEATURE:1cxx_strong_enums
        Feature record: CXX_FEATURE:1cxx_template_template_parameters
        Feature record: CXX_FEATURE:1cxx_thread_local
        Feature record: CXX_FEATURE:1cxx_trailing_return_types
        Feature record: CXX_FEATURE:1cxx_unicode_literals
        Feature record: CXX_FEATURE:1cxx_uniform_initialization
        Feature record: CXX_FEATURE:1cxx_unrestricted_unions
        Feature record: CXX_FEATURE:1cxx_user_literals
        Feature record: CXX_FEATURE:1cxx_variable_templates
        Feature record: CXX_FEATURE:1cxx_variadic_macros
        Feature record: CXX_FEATURE:1cxx_variadic_templates
    
    
    Detecting CXX [] compiler features compiled with the following output:
    Change Dir: C:/Users/Julie/Documents/InstallationProgrammeInformatique/CCfits/CCfits.build/CMakeFiles/CMakeTmp
    
    Run Build Command:"nmake" "/NOLOGO" "cmTC_23090\fast"
    	"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\nmake.exe" -f CMakeFiles\cmTC_23090.dir\build.make /nologo -L                  CMakeFiles\cmTC_23090.dir\build
    
    Building CXX object CMakeFiles/cmTC_23090.dir/feature_tests.cxx.obj
    
    	C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX86\x86\cl.exe @C:\Users\JULIEG~1\AppData\Local\Temp\nmB652.tmp
    
    feature_tests.cxx
    
    Linking CXX executable cmTC_23090.exe
    
    	"C:\Users\Julie\Documents\InstallationProgrammeInformatique\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_23090.dir --manifests  -- C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX86\x86\link.exe /nologo @CMakeFiles\cmTC_23090.dir\objects1.rsp @C:\Users\JULIEG~1\AppData\Local\Temp\nmB6B0.tmp
    
    
    
        Feature record: CXX_FEATURE:1cxx_aggregate_default_initializers
        Feature record: CXX_FEATURE:1cxx_alias_templates
        Feature record: CXX_FEATURE:1cxx_alignas
        Feature record: CXX_FEATURE:1cxx_alignof
        Feature record: CXX_FEATURE:1cxx_attributes
        Feature record: CXX_FEATURE:1cxx_attribute_deprecated
        Feature record: CXX_FEATURE:1cxx_auto_type
        Feature record: CXX_FEATURE:1cxx_binary_literals
        Feature record: CXX_FEATURE:1cxx_constexpr
        Feature record: CXX_FEATURE:1cxx_contextual_conversions
        Feature record: CXX_FEATURE:1cxx_decltype
        Feature record: CXX_FEATURE:1cxx_decltype_auto
        Feature record: CXX_FEATURE:1cxx_default_function_template_args
        Feature record: CXX_FEATURE:1cxx_defaulted_functions
        Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers
        Feature record: CXX_FEATURE:1cxx_delegating_constructors
        Feature record: CXX_FEATURE:1cxx_deleted_functions
        Feature record: CXX_FEATURE:1cxx_digit_separators
        Feature record: CXX_FEATURE:1cxx_enum_forward_declarations
        Feature record: CXX_FEATURE:1cxx_explicit_conversions
        Feature record: CXX_FEATURE:1cxx_extended_friend_declarations
        Feature record: CXX_FEATURE:1cxx_extern_templates
        Feature record: CXX_FEATURE:1cxx_final
        Feature record: CXX_FEATURE:1cxx_func_identifier
        Feature record: CXX_FEATURE:1cxx_generalized_initializers
        Feature record: CXX_FEATURE:1cxx_generic_lambdas
        Feature record: CXX_FEATURE:1cxx_inheriting_constructors
        Feature record: CXX_FEATURE:1cxx_inline_namespaces
        Feature record: CXX_FEATURE:1cxx_lambdas
        Feature record: CXX_FEATURE:1cxx_lambda_init_captures
        Feature record: CXX_FEATURE:1cxx_local_type_template_args
        Feature record: CXX_FEATURE:1cxx_long_long_type
        Feature record: CXX_FEATURE:1cxx_noexcept
        Feature record: CXX_FEATURE:1cxx_nonstatic_member_init
        Feature record: CXX_FEATURE:1cxx_nullptr
        Feature record: CXX_FEATURE:1cxx_override
        Feature record: CXX_FEATURE:1cxx_range_for
        Feature record: CXX_FEATURE:1cxx_raw_string_literals
        Feature record: CXX_FEATURE:1cxx_reference_qualified_functions
        Feature record: CXX_FEATURE:1cxx_return_type_deduction
        Feature record: CXX_FEATURE:1cxx_right_angle_brackets
        Feature record: CXX_FEATURE:1cxx_rvalue_references
        Feature record: CXX_FEATURE:1cxx_sizeof_member
        Feature record: CXX_FEATURE:1cxx_static_assert
        Feature record: CXX_FEATURE:1cxx_strong_enums
        Feature record: CXX_FEATURE:1cxx_template_template_parameters
        Feature record: CXX_FEATURE:1cxx_thread_local
        Feature record: CXX_FEATURE:1cxx_trailing_return_types
        Feature record: CXX_FEATURE:1cxx_unicode_literals
        Feature record: CXX_FEATURE:1cxx_uniform_initialization
        Feature record: CXX_FEATURE:1cxx_unrestricted_unions
        Feature record: CXX_FEATURE:1cxx_user_literals
        Feature record: CXX_FEATURE:1cxx_variable_templates
        Feature record: CXX_FEATURE:1cxx_variadic_macros
        Feature record: CXX_FEATURE:1cxx_variadic_templates
    
    

    Thanks for your help :)



  • did you chose "NMake Makefiles" as generator.

    on the terminal (from the folder of the sources) you should run something like (Windows, MSVC2013 x86, Qt 5.9):

    pushd C:\
    set PATH=C:\Program Files\CMake\bin;%PATH%
    CALL "C:/Qt/5.9/msvc2013/bin/qtenv2.bat"
    CALL "C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/vcvarsall.bat"
    popd
    echo on
    mkdir build
    cd build
    cmake -G "NMake Makefiles" -DCMAKE_DEBUG_POSTFIX=d -DCMAKE_INSTALL_PREFIX="C:\CCfits" -DCMAKE_BUILD_TYPE=DEBUG ../
    nmake
    nmake install
    cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX="C:\CCfits" -DCMAKE_BUILD_TYPE=RELEASE ../
    nmake
    nmake install
    

    this should place the built library in "C:\CCfits"



  • Hey,

    I tried to follow your instruction :

    C:\Users\Julie G\Documents\InstallationProgrammeInformatique\CCfits>pushd C:\
    
    C:\>set PATH=C:\Users\"Julie G"\Documents\InstallationProgrammeInformatique\CMake\bin;%PATH%
    
    C:\>CALL "C:/Qt/5.5/mingw492_32/bin/qtenv2.bat"
    
    C:\>echo off
    Setting up environment for Qt usage...
    
    C:\Qt\5.5\mingw492_32>CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" X64
    
    'wmic' n’est pas reconnu en tant que commande interne
    ou externe, un programme exécutable ou un fichier de commandes.
    **********************************************************************
    ** Visual Studio 2017 Developer Command Prompt v15.0
    ** Copyright (c) 2017 Microsoft Corporation
    **********************************************************************
    [vcvarsall.bat] Environment initialized for: 'x64'
    
    C:\Qt\5.5\mingw492_32>popd
    
    C:\Users\Julie G\Documents\InstallationProgrammeInformatique\CCfits>echo on
    
    C:\Users\Julie G\Documents\InstallationProgrammeInformatique\CCfits>mkdir build
    
    C:\Users\Julie G\Documents\InstallationProgrammeInformatique\CCfits>cd build
    
    C:\Users\Julie G\Documents\InstallationProgrammeInformatique\CCfits\build>cmake -G "NMake Makefiles" -DCMAKE_DEBUG_POSTFIX=d -DCMAKE_INSTALL_PREFIX="C:\Users\"Julie G"\Documents\InstallationProgrammeInformatique\CCfits" -DCMAKE_BUILD_TYPE=DEBUG ../
    
    CMake Error: The source directory "C:/Users/Julie G/Documents/InstallationProgrammeInformatique/CCfits/build" does not appear to contain CMakeLists.txt.
    Specify --help for usage, or press the help button on the CMake GUI.
    
    C:\Users\Julie G\Documents\InstallationProgrammeInformatique\CCfits\build>cmake -G "NMake Makefiles" -DCMAKE_DEBUG_POSTFIX=d -DCMAKE_INSTALL_PREFIX="C:\Users\"Julie G"\Documents\InstallationProgrammeInformatique\CCfits\CCfits" -DCMAKE_BUILD_TYPE=DEBUG ../
    
    CMake Error: The source directory "C:/Users/Julie G/Documents/InstallationProgrammeInformatique/CCfits/build" does not appear to contain CMakeLists.txt.
    Specify --help for usage, or press the help button on the CMake GUI.
    
    C:\Users\Julie G\Documents\InstallationProgrammeInformatique\CCfits\build>cd ../CCfits
    
    C:\Users\Julie G\Documents\InstallationProgrammeInformatique\CCfits\CCfits>cmake -G "NMake Makefiles" -DCMAKE_DEBUG_POSTFIX=d -DCMAKE_INSTALL_PREFIX="C:\Users\"Julie G"\Documents\InstallationProgrammeInformatique\CCfits" -DCMAKE_BUILD_TYPE=DEBUG ../
    -- The C compiler identification is MSVC 19.10.25019.0
    -- The CXX compiler identification is MSVC 19.10.25019.0
    -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/cl.exe
    -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/cl.exe -- broken
    CMake Error at C:/Users/Julie G/Documents/InstallationProgrammeInformatique/CMake/share/cmake-3.9/Modules/CMakeTestCCompiler.cmake:51 (message):
      The C compiler "C:/Program Files (x86)/Microsoft Visual
      Studio/2017/Community/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/cl.exe" is
      not able to compile a simple test program.
    
      It fails with the following output:
    
       Change Dir: C:/Users/Julie G/Documents/InstallationProgrammeInformatique/CCfits/CCfits/CMakeFiles/CMakeTmp
    
      Run Build Command:"nmake" "/NOLOGO" "cmTC_9c3ab\fast"
    
            "C:\Program Files (x86)\Microsoft Visual
      Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\nmake.exe"
      -f CMakeFiles\cmTC_9c3ab.dir\build.make /nologo -L
      CMakeFiles\cmTC_9c3ab.dir\build
    
      Building C object CMakeFiles/cmTC_9c3ab.dir/testCCompiler.c.obj
    
            C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX64\x64\cl.exe
      @C:\Users\JULIEG~1\AppData\Local\Temp\nm1458.tmp
    
      testCCompiler.c
    
      Linking C executable cmTC_9c3ab.exe
    
            "C:\Users\Julie
      G\Documents\InstallationProgrammeInformatique\CMake\bin\cmake.exe" -E
      vs_link_exe --intdir=CMakeFiles\cmTC_9c3ab.dir --manifests --
      C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX64\x64\link.exe
      /nologo @CMakeFiles\cmTC_9c3ab.dir\objects1.rsp
      @C:\Users\JULIEG~1\AppData\Local\Temp\nm167C.tmp
    
      RC Pass 1 failed to run.
    
      NMAKE : fatal error U1077: '"C:\Users\Julie
      G\Documents\InstallationProgrammeInformatique\CMake\bin\cmake.exe"'á:
      code retour '0xffffffff'
    
      Stop.
    
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
      Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\nmake.exe"'á:
      code retour '0x2'
    
      Stop.
    
    
      CMake will not be able to correctly generate this project.
    Call Stack (most recent call first):
      CMakeLists.txt:1 (PROJECT)
    
    
    -- Configuring incomplete, errors occurred!
    See also "C:/Users/Julie G/Documents/InstallationProgrammeInformatique/CCfits/CCfits/CMakeFiles/CMakeOutput.log".
    See also "C:/Users/Julie G/Documents/InstallationProgrammeInformatique/CCfits/CCfits/CMakeFiles/CMakeError.log".
    
    
    


  • Yesterday I did :

    C:\Users\Julie G\Documents\InstallationProgrammeInformatique\CCfits-2.5.tar\build>cmake.exe -G "NMake Makefiles" -DCMAKE_PREFIX_PATH=C:\Users\Julie G\Documents\InstallationProgrammeInformatique\cfitsio_MSVC_64bit_DLL_3410 ..\CCfits
    -- The C compiler identification is MSVC 19.10.25019.0
    -- The CXX compiler identification is MSVC 19.10.25019.0
    -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/cl.exe
    -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/cl.exe -- broken
    CMake Error at C:/Users/Julie G/Documents/InstallationProgrammeInformatique/CMake/share/cmake-3.9/Modules/CMakeTestCCompiler.cmake:51 (message):
      The C compiler "C:/Program Files (x86)/Microsoft Visual
      Studio/2017/Community/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/cl.exe" is
      not able to compile a simple test program.
    
      It fails with the following output:
    
       Change Dir: C:/Users/Julie G/Documents/InstallationProgrammeInformatique/CCfits-2.5.tar/build/CMakeFiles/CMakeTmp
    
    
    
      Run Build Command:"nmake" "/NOLOGO" "cmTC_e789d\fast"
    
            "C:\Program Files (x86)\Microsoft Visual
      Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\nmake.exe"
      -f CMakeFiles\cmTC_e789d.dir\build.make /nologo -L
      CMakeFiles\cmTC_e789d.dir\build
    
      Building C object CMakeFiles/cmTC_e789d.dir/testCCompiler.c.obj
    
    
            C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX64\x64\cl.exe
      @C:\Users\JULIEG~1\AppData\Local\Temp\nmF2CC.tmp
    
      testCCompiler.c
    
      Linking C executable cmTC_e789d.exe
    
            "C:\Users\Julie
      G\Documents\InstallationProgrammeInformatique\CMake\bin\cmake.exe" -E
      vs_link_exe --intdir=CMakeFiles\cmTC_e789d.dir --manifests --
      C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX64\x64\link.exe
      /nologo @CMakeFiles\cmTC_e789d.dir\objects1.rsp
      @C:\Users\JULIEG~1\AppData\Local\Temp\nmF424.tmp
    
      RC Pass 1 failed to run.
    
      NMAKE : fatal error U1077: '"C:\Users\Julie
      G\Documents\InstallationProgrammeInformatique\CMake\bin\cmake.exe"'á:
      code retour '0xffffffff'
    
      Stop.
    
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
      Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\nmake.exe"'á:
      code retour '0x2'
    
      Stop.
    
    
      CMake will not be able to correctly generate this project.
    Call Stack (most recent call first):
      CMakeLists.txt:1 (PROJECT)
    
    
    -- Configuring incomplete, errors occurred!
    See also "C:/Users/Julie G/Documents/InstallationProgrammeInformatique/CCfits-2.5.tar/build/CMakeFiles/CMakeOutput.log".
    See also "C:/Users/Julie G/Documents/InstallationProgrammeInformatique/CCfits-2.5.tar/build/CMakeFiles/CMakeError.log".
    

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.