Skip to content

Build Issues on Windows using Visual Studio 2019 #90

@tedtalksbits

Description

@tedtalksbits

Description

Encountered multiple build errors when trying to compile the tinyphone project on Windows using Visual Studio 2019.

Steps to Reproduce

  1. Open Visual Studio 2019.
  2. Clone the repository.
  3. Click on tinyphone.sln to open the solution.
  4. Right-click on the Solution 'tinyphone' and build.

Expected Behavior

The project builds without errors.

Actual Behavior

Received multiple errors during the build process.

Error Details

Error 1: Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use

/MD[d].
File: afx.h
Line: 24

Error 2: CMake Error running 'C:/Program Files (x86)/Microsoft Visual

Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe'. Error: ninja: error: build.ninja:743: multiple rules generate src/bcg729.lib [-w dupbuild=err].

Error 3: Cannot open include file: 'statsd.hpp': No such file or directory.

Project: statsd-cpp
File: statsd.cpp
Line: 12

Error 4: Cannot open include file: 'wcautil.h': No such file or directory.

Project: installer-actions
File: actions.cpp
Line: 5

Error 5: Cannot open include file: 'wcautil.h': No such file or directory.

Project: installer-actions
File: LogResult.cpp
Line: 6

Environment

  • OS: Windows 10
  • Visual Studio 2019 v 16,11.34
  • Components
    • C++ MFC for latest v142 build tools (x86 and x64)

Any help or guidance on resolving these build issues would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions