Skip to content

How to compile the example in windows? #14

@Kaju-Bubanja

Description

@Kaju-Bubanja

I am trying to compile the example on windows using clion and vs19, which according to windows should work. vs15, vs17 and vs19 all have compatible libs. Now I have following CMakeLists.txt:

cmake_minimum_required(VERSION 2.8.9)
project (zcam)

include_directories(include)

add_executable(ssp_test example/libssp_test.cpp)

target_link_libraries(ssp_test lib/win_x64_vs2017/libsspd)

But I get following error:

LINK : fatal error LNK1104: cannot open file 'lib\win_x64_vs2017\libsspd.lib'
NMAKE : fatal error U1077: '"C:\Program Files\JetBrains\CLion 2020.1.2\bin\cmake\win\bin\cmake.exe"' : return code '0xffffffff'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x86\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x86\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x86\nmake.exe"' : return code '0x2'
Stop.

Could you provide an example CMakeLists.txt or some instructions how to build the example?

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