Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSVC 2017 No known features for CXX compiler "MSVC" version 19.16.27035.0. #1536

Closed
hdhog opened this issue Jan 29, 2020 · 6 comments
Closed

Comments

@hdhog
Copy link

hdhog commented Jan 29, 2020

Debug configure and build success. Release configure error:

CMake version 3.12 integrated to Visual Studio 2017

-- Configuring done
1> CMake Error in src/CMakeLists.txt:
1> -- Build files have been written to: C:/Users/larchenkosv/CMakeBuilds/56033705-3abb-8136-a6f7-b409d79cec36/build/x64-Release-static
1>   No known features for CXX compiler
1> 
1>   "MSVC"
1> 
1>   version 19.16.27035.0.
1> 
1> 
find_package(fmt CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME} 
	PRIVATE 	
		fmt::fmt fmt::fmt-header-only
)
@vitaut
Copy link
Contributor

vitaut commented Feb 2, 2020

Does e571128 fix the issue?

@hdhog
Copy link
Author

hdhog commented Feb 3, 2020

it's working! thanks!

@vitaut
Copy link
Contributor

vitaut commented Feb 7, 2020

Fixed in 43e9b29. Thanks for reporting.

@vitaut vitaut closed this as completed Feb 7, 2020
@compuword
Copy link

Good afternoon,

I'm having the same difficulty as the one reported above, but I didn't understand which instruction I should replace, I'm going to put the lines I have in the CmakeLists file

if (MSVC)
list(APPEND CUDA_NVCC_FLAGS "-Xcompiler=-bigobj")
else()

list(APPEND CUDA_NVCC_FLAGS "-Xcompiler=-mf16c") #original Line

list(APPEND CUDA_NVCC_FLAGS "-gencode=arch=compute_86,code=\"sm_86,compute_86\"") #New Line
list(APPEND CUDA_NVCC_FLAGS "-Xcompiler=-Wno-float-conversion")
list(APPEND CUDA_NVCC_FLAGS "-Xcompiler=-fno-strict-aliasing")
list(APPEND CUDA_NVCC_FLAGS "-Xcompiler=-fPIC")

image

@compuword
Copy link

My Video card is Quadro K4000, driver is updated and cuda sdk is install, i Seek this tutorial: https://thedronetrainer.com/nerf/

@vitaut
Copy link
Contributor

vitaut commented Sep 18, 2022

@compuword, this looks unrelated to {fmt}, please report to Nvidia.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants