Tag Archives: vs2019

[Solved] CMake Error Cannot specify link libraries for target “variational“ which is not built by this projec

For errors:

CMake Error at D:\VSA_paper\VSA\CMakeLists.txt:48 (target_link_libraries):
1> [CMake] Cannot specify link libraries for target “variational” which is not built by this project.

 

All the information found said target_link_libraries is not placed behind add_executable, but not mine
the following is the code segment where the error is located

add_executable(${PROJECT_NAME}_bin ${SRCFILES}  ${HEAD_FILES} ${RCC_FILES} ${WRAP_FILES}  "gauss.h" "developable_degree.h")
target_link_libraries(${PROJECT_NAME} Qt5::Widgets Qt5::Core Qt5::Gui)
target_link_libraries(${PROJECT_NAME}_bin igl::core igl::opengl_glfw)
target_link_libraries(${PROJECT_NAME}_bin OpenMesh)

From the error “Cannot specify link libraries for target “variational” which is not built by this project.” You can see that the project name “variant” is wrong and should be “variant_bin”.

The solution is to add the missing “_bin” after ${project_name} in the above code segment. The modified result is as follows:

add_executable(${PROJECT_NAME}_bin ${SRCFILES}  ${HEAD_FILES} ${RCC_FILES} ${WRAP_FILES}  "gauss.h" "developable_degree.h")
#add Qt5
target_link_libraries(${PROJECT_NAME}_bin Qt5::Widgets Qt5::Core Qt5::Gui)
target_link_libraries(${PROJECT_NAME}_bin igl::core igl::opengl_glfw)
target_link_libraries(${PROJECT_NAME}_bin OpenMesh)

Error C1083 error msb3075 in UE4 generated by vs2019 debug editor

Problem Description:
psallocator. H (40): fatal error C1083: TypeInfo. H: no such file or directory
error msb3075 shadercompileworker win64 development “- waitmutex – frommsbuild” has exited with code 5. Verify that you have sufficient permissions to run this command

Solutions:
1. Run as an administrator (possibly redundant steps)
2. Delete the code # include & lt; TypeInfo. H & gt;

Visual studio 2019 + OpenGL environment configuration

Using the

    gl.hglu.hglaux.h

Download Directory:
https://download.csdn.net/download/boyinc0de/11171372
in

 
The following:

Include directory corresponding to downloaded files, unzipped include folder
The library directory corresponds to the downloaded files and the unzipped Library folder
 
VS2019 may report an error.
1> Glaux. Lib (tk.obj) : error LNK2019: Cannot resolve external symbol _sscanf, which is referenced in the function _GetRegistrySysColors@8
1> Glaux. Lib (tk.obj) : error LNK2019: Unresolvable external symbol _vsprintf, which is referenced in the function _PrintMessage
VS2015 compilation will cause this problem, the solution is in the project properties ->; The linker – & gt; Input – & gt; Add a dependency legacy_stdio_defines.lib to the attached dependency;
Here’s a reference:
https://blog.csdn.net/qqsqqsqqs318/article/details/58156094
 
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
In later experiments, we used the GLUT library, and I put the configuration procedure in the following:
https://www.jianshu.com/p/be32da974d8c
PS: I just put the.dll file in the Debug folder of the project where the.exe is located. I don’t want to copy everything to the system files
 

After vs2019 is installed, the original vs2017 project cannot compile various error reports

The MFC project does not report an error when compiling VS2017, but it will report the following error when opening the project after upgrading VS2019.
The platform toolset used by the project under VS2017 is Visual Studio 2017-Windows XP(x141_XP) (although marked deprecated, it is still installable)
The problem was resolved after installing the platform toolset used by the original project. Many components of VS2019 need to be checked before installation.
1. Misdescription:

2. Solutions:
1). Platform toolset installation
Tools (T) → Get Tools and Features (T), open Visual Studio Installer, select Modify → Single Component, and check the component you want to install.

1). Right-click Solution → Properties → General → Modify the Platform toolset and select the toolset used by the original project.