Skip to content

anyone tried in Windows? #11

Open
Open
@duocang

Description

@duocang

I have the problem to update the CMakeLists.txt:

cmake_minimum_required(VERSION 3.7)
project(tf_detector_example)

set(CMAKE_CXX_STANDARD 11)

set(SOURCE_FILES main.cpp utils.cpp utils.h)
add_executable(tf_detector_example ${SOURCE_FILES})

# OpenCV libs
set(OpenCV_DIR "C:/opencv/build/x64/vc15/lib")

message("OpenCV_FOUND='${OpenCV_FOUND}'")
find_package(OpenCV REQUIRED)
include_directories( ${OpenCV_INCLUDE_DIRS} )
message("These are my opencv libs: /n'${OpenCV_LIBS}'" )
target_link_libraries(tf_detector_example ${OpenCV_LIBS})


# ==================== PATHS TO SPECIFY! ==================== #

# Eigen lib headers
include_directories("C:/eigen_337")

# TensorFlow headers
include_directories("C:/Users/tf_compile/tf_vs2015_cmake")
include_directories("C:/Users/tf_compile/tf_vs2015_cmake/tensorflow")
include_directories("C:/Users/tf_compile/tf_vs2015_cmake/tensorflow/contrib/cmake/build/Release")
include_directories("C:/Users/tf_compile/tf_vs2015_cmake/third_party")

# Link TensorFlow libs
target_link_libraries(tf_detector_example "C:/Users/tf_compile/tf_vs2015_cmake/tensorflow/contrib/cmake/build/Release/tensorflow.dll")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions