Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

build fails #40

@dsethz

Description

@dsethz

Hey,

I have been trying to install gpr_toolsand I am stuck at building the app in VS. I am not really familiar with C/C++ so fixing this issue may be trivial, but I have the following log (sorry for the log dump, not sure what is important to you):

1>------ Build started: Project: argument_parser, Configuration: Debug Win32 ------
2>------ Build started: Project: cJSON, Configuration: Debug Win32 ------
2>cl : Command line warning D9002: ignoring unknown option '-std=c99'
2>cJSON.c
2>cJSON_Utils.c
2>C:\Users\schidani\Desktop\gpr\source\app\common\cJSON\cJSON_Utils.c(23): warning C4068: unknown pragma
2>C:\Users\schidani\Desktop\gpr\source\app\common\cJSON\cJSON_Utils.c(29): warning C4068: unknown pragma
2>Generating Code...
2>cJSON.vcxproj -> C:\Users\schidani\Desktop\gpr\build\source\app\common\cJSON\Debug\cJSON.lib
2>Done building project "cJSON.vcxproj".
3>------ Build started: Project: common, Configuration: Debug Win32 ------
3>gpr_allocator.c
3>gpr_buffer.c
3>log.c
3>timer.c
3>Generating Code...
3>gpr_buffer_auto.cpp
3>common.vcxproj -> C:\Users\schidani\Desktop\gpr\build\source\lib\common\Debug\common.lib
4>------ Build started: Project: dng_sdk, Configuration: Debug Win32 ------
1>argument_parser.cpp
1>program_options_lite.cpp
1>Generating Code...
1>argument_parser.vcxproj -> C:\Users\schidani\Desktop\gpr\build\source\app\common\argument_parser\Debug\argument_parser.lib
5>------ Build started: Project: expat_lib, Configuration: Debug Win32 ------
5>cl : Command line warning D9002: ignoring unknown option '-std=c99'
5>xmlparse.c
5>xmlrole.c
5>xmltok.c
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(234): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(241): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(393): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(400): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(506): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(515): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(538): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(653): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(699): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(726): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(750): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(896): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(906): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(925): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(932): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(1155): error C2065: 'fallthrough': undeclared identifier
5>C:\Users\schidani\Desktop\gpr\source\lib\expat_lib\xmltok.c(632): error C2065: 'fallthrough': undeclared identifier
5>C:\Users\schidani\Desktop\gpr\source\lib\expat_lib\xmltok.c(644): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(234): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(241): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(393): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(400): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(506): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(515): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(538): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(653): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(699): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(726): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(750): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(896): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(906): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(925): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(932): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(1155): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(234): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(241): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(393): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(400): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(506): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(515): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(538): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(653): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(699): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(726): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(750): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(896): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(906): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(925): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(932): error C2065: 'fallthrough': undeclared identifier
5>c:\users\schidani\desktop\gpr\source\lib\expat_lib\xmltok_impl.c(1155): error C2065: 'fallthrough': undeclared identifier
5>C:\Users\schidani\Desktop\gpr\source\lib\expat_lib\xmltok.c(1543): error C2065: 'fallthrough': undeclared identifier
5>xmltok_impl.c
5>xmltok_ns.c
5>Generating Code...
5>Done building project "expat_lib.vcxproj" -- FAILED.
6>------ Build started: Project: gpr_sdk, Configuration: Debug Win32 ------
6>gpr.cpp
6>C:\Users\schidani\Desktop\gpr\source\lib\gpr_sdk\private\gpr.cpp(90): warning C4244: '=': conversion from 'float' to 'int', possible loss of data
6>C:\Users\schidani\Desktop\gpr\source\lib\gpr_sdk\private\gpr.cpp(692): warning C4244: '=': conversion from 'real64' to 'float_t', possible loss of data
6>C:\Users\schidani\Desktop\gpr\source\lib\gpr_sdk\private\gpr.cpp(693): warning C4244: '=': conversion from 'real64' to 'float_t', possible loss of data
6>C:\Users\schidani\Desktop\gpr\source\lib\gpr_sdk\private\gpr.cpp(694): warning C4244: '=': conversion from 'real64' to 'float_t', possible loss of data
6>C:\Users\schidani\Desktop\gpr\source\lib\gpr_sdk\private\gpr.cpp(702): warning C4244: '=': conversion from 'const real64' to 'int32_t', possible loss of data
6>C:\Users\schidani\Desktop\gpr\source\lib\gpr_sdk\private\gpr.cpp(703): warning C4244: '=': conversion from 'const real64' to 'int32_t', possible loss of data
6>C:\Users\schidani\Desktop\gpr\source\lib\gpr_sdk\private\gpr.cpp(704): warning C4244: '=': conversion from 'const real64' to 'int32_t', possible loss of data
6>C:\Users\schidani\Desktop\gpr\source\lib\gpr_sdk\private\gpr.cpp(705): warning C4244: '=': conversion from 'const real64' to 'int32_t', possible loss of data
6>C:\Users\schidani\Desktop\gpr\source\lib\gpr_sdk\private\gpr.cpp(711): warning C4244: '=': conversion from 'const real64' to 'int32_t', possible loss of data
6>C:\Users\schidani\Desktop\gpr\source\lib\gpr_sdk\private\gpr.cpp(798): warning C4244: '=': conversion from 'uint64' to 'uint32_t', possible loss of data
6>C:\Users\schidani\Desktop\gpr\source\lib\gpr_sdk\private\gpr.cpp(1446): warning C4244: 'initializing': conversion from 'uint64' to 'size_t', possible loss of data
6>C:\Users\schidani\Desktop\gpr\source\lib\gpr_sdk\private\gpr.cpp(1840): warning C4305: 'return': truncation from 'int' to 'bool'
6>gpr_exif_info.cpp
6>gpr_image_writer.cpp
6>gpr_profile_info.cpp
6>gpr_read_image.cpp
6>gpr_tuning_info.cpp
6>gpr_utils.cpp
6>Generating Code...
6>gpr_sdk.vcxproj -> C:\Users\schidani\Desktop\gpr\build\source\lib\gpr_sdk\Debug\gpr_sdk.lib
6>Done building project "gpr_sdk.vcxproj".
7>------ Build started: Project: md5_lib, Configuration: Debug Win32 ------
7>cl : Command line warning D9002: ignoring unknown option '-std=c99'
7>md5.c
7>md5_lib.vcxproj -> C:\Users\schidani\Desktop\gpr\build\source\lib\md5_lib\Debug\md5_lib.lib
7>Done building project "md5_lib.vcxproj".
8>------ Build started: Project: tiny_jpeg, Configuration: Debug Win32 ------
8>cl : Command line warning D9002: ignoring unknown option '-std=c99'
8>jpeg.c
8>tiny_jpeg.vcxproj -> C:\Users\schidani\Desktop\gpr\build\source\lib\tiny_jpeg\Debug\tiny_jpeg.lib
8>Done building project "tiny_jpeg.vcxproj".
9>------ Build started: Project: vc5_common, Configuration: Debug Win32 ------
4>dng_1d_function.cpp
4>dng_1d_table.cpp
4>dng_abort_sniffer.cpp
4>dng_area_task.cpp
4>dng_bad_pixels.cpp
4>dng_bottlenecks.cpp
4>dng_camera_profile.cpp
4>dng_color_space.cpp
4>dng_color_spec.cpp
4>dng_date_time.cpp
4>dng_exceptions.cpp
4>dng_exif.cpp
4>dng_file_stream.cpp
4>dng_filter_task.cpp
4>dng_fingerprint.cpp
4>dng_gain_map.cpp
4>dng_globals.cpp
4>dng_host.cpp
4>dng_hue_sat_map.cpp
4>dng_ifd.cpp
4>Generating Code...
4>Compiling...
4>dng_image.cpp
4>dng_image_writer.cpp
4>dng_info.cpp
4>dng_iptc.cpp
4>dng_jpeg_image.cpp
4>dng_lens_correction.cpp
4>dng_linearization_info.cpp
4>dng_lossless_jpeg.cpp
4>dng_matrix.cpp
9>cl : Command line warning D9002: ignoring unknown option '-std=c99'
4>dng_memory.cpp
4>dng_memory_stream.cpp
9>bitstream.c
9>codec.c
9>companding.c
9>image.c
9>logcurve.c
9>stream.c
9>syntax.c
9>utilities.c
9>wavelet.c
9>Generating Code...
9>vc5_common.vcxproj -> C:\Users\schidani\Desktop\gpr\build\source\lib\vc5_common\Debug\vc5_common.lib
4>dng_misc_opcodes.cpp
9>Done building project "vc5_common.vcxproj".
10>------ Build started: Project: vc5_decoder, Configuration: Debug Win32 ------
4>dng_mosaic_info.cpp
10>cl : Command line warning D9002: ignoring unknown option '-std=c99'
10>codebooks.c
4>dng_mutex.cpp
10>component.c
10>decoder.c
4>dng_negative.cpp
10>dequantize.c
10>inverse.c
10>parameters.c
10>raw.c
10>syntax.c
10>vc5_decoder.c
10>vlc.c
10>wavelet.c
10>Generating Code...
4>dng_opcode_list.cpp
4>dng_opcodes.cpp
4>dng_orientation.cpp
4>dng_parse_utils.cpp
4>dng_pixel_buffer.cpp
4>Generating Code...
4>Compiling...
10>vc5_decoder.vcxproj -> C:\Users\schidani\Desktop\gpr\build\source\lib\vc5_decoder\Debug\vc5_decoder.lib
4>dng_point.cpp
10>Done building project "vc5_decoder.vcxproj".
11>------ Build started: Project: vc5_encoder, Configuration: Debug Win32 ------
4>dng_preview.cpp
11>cl : Command line warning D9002: ignoring unknown option '-std=c99'
4>dng_pthread.cpp
11>codebooks.c
11>component.c
11>encoder.c
11>forward.c
11>parameters.c
11>raw.c
11>sections.c
11>syntax.c
11>vc5_encoder.c
11>vlc.c
11>Generating Code...
4>dng_rational.cpp
4>dng_read_image.cpp
11>vc5_encoder.vcxproj -> C:\Users\schidani\Desktop\gpr\build\source\lib\vc5_encoder\Debug\vc5_encoder.lib
11>Done building project "vc5_encoder.vcxproj".
12>------ Build started: Project: xmp_core, Configuration: Debug Win32 ------
12>ExpatAdapter.cpp
4>dng_rect.cpp
4>dng_ref_counted_block.cpp
4>dng_reference.cpp
4>dng_render.cpp
4>dng_resample.cpp
4>dng_shared.cpp
12>ParseRDF.cpp
4>dng_simple_image.cpp
4>dng_spline.cpp
4>dng_stream.cpp
4>dng_string.cpp
4>dng_string_list.cpp
4>dng_tag_types.cpp
12>UnicodeConversions.cpp
4>dng_temperature.cpp
4>dng_tile_iterator.cpp
4>dng_tone_curve.cpp
4>Generating Code...
12>WXMPIterator.cpp
4>Compiling...
4>dng_utils.cpp
4>dng_validate.cpp
4>dng_xmp.cpp
12>WXMPMeta.cpp
4>dng_xmp_sdk.cpp
4>dng_xy_coord.cpp
4>Generating Code...
12>WXMPUtils.cpp
12>XML_Node.cpp
12>XMPCore_Impl.cpp
12>XMPIterator.cpp
12>XMPMeta-GetSet.cpp
12>XMPMeta-Parse.cpp
12>XMPMeta-Serialize.cpp
12>XMPMeta.cpp
12>XMPUtils-FileInfo.cpp
12>XMPUtils.cpp
12>XMP_LibUtils.cpp
12>C:\Users\schidani\Desktop\gpr\source\lib\xmp_core\XMP_LibUtils.cpp(421): warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
12>C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(1961): note: see declaration of '_snprintf'
12>C:\Users\schidani\Desktop\gpr\source\lib\xmp_core\XMP_LibUtils.cpp(504): warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
12>C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(1961): note: see declaration of '_snprintf'
12>Generating Code...
4>dng_sdk.vcxproj -> C:\Users\schidani\Desktop\gpr\build\source\lib\dng_sdk\Debug\dng_sdk.lib
13>------ Build started: Project: vc5_decoder_app, Configuration: Debug Win32 ------
12>xmp_core.vcxproj -> C:\Users\schidani\Desktop\gpr\build\source\lib\xmp_core\Debug\xmp_core.lib
12>Done building project "xmp_core.vcxproj".
14>------ Build started: Project: gpr_tools, Configuration: Debug Win32 ------
14>gpr_parse_utils.cpp
13>main.cpp
14>gpr_print_utils.cpp
13>vc5_decoder_app.vcxproj -> C:\Users\schidani\Desktop\gpr\build\source\app\vc5_decoder_app\Debug\vc5_decoder_app.exe
15>------ Build started: Project: vc5_encoder_app, Configuration: Debug Win32 ------
14>main.cpp
14>Generating Code...
15>main.cpp
14>main_c.c
15>vc5_encoder_app.vcxproj -> C:\Users\schidani\Desktop\gpr\build\source\app\vc5_encoder_app\Debug\vc5_encoder_app.exe
14>LINK : fatal error LNK1104: cannot open file '..\..\lib\expat_lib\Debug\expat_lib.lib'
14>Done building project "gpr_tools.vcxproj" -- FAILED.
16>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug Win32 ------
16>Project not selected to build for this solution configuration 
========== Build: 13 succeeded, 2 failed, 0 up-to-date, 1 skipped ==========

My system:
Windows Server 2022 Standard
Visual Studio 2017 Professional (trial version)

Please let me know if you require more information.

Thank you,
dsethz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions