Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Can't build this at all #4

Open
thiagoribeirodamotta opened this issue May 31, 2019 · 0 comments
Open

Can't build this at all #4

thiagoribeirodamotta opened this issue May 31, 2019 · 0 comments

Comments

@thiagoribeirodamotta
Copy link

thiagoribeirodamotta commented May 31, 2019

I've got no idea what I'm doing wrong, but I can't seem to build this project at all.

Windows 10 x64
Visual Studio 2017
Matlab 2019a

Tried with latest cmake (3.14) and 3.10.3, with boost 1.70 and 1.63.

Most of the time I'm getting the following error message:
Error copying file "D:/Projects/Misc/deltille-master/build3/matlab/mexmat/src/MexMat-stamp/MexMat-gitinfo.txt" to "D:/Projects/Misc/deltille-master/build3/matlab/mexmat/src/MexMat-stamp/MexMat-gitclone-lastrun.txt".

Also got a few unresolved external errors on the following functions:
1-mexCreateMexFunction
2-mexDestroyMexFunction
3-mexFunctionAdapter

Even got errors on CmakeList.txt and had to comment out some lines of code and manually add the libraries later on:
find_package(Boost REQUIRED COMPONENTS filesystem program_options system)

add_library(boost INTERFACE IMPORTED)
#set_target_properties(boost PROPERTIES

INTERFACE_INCLUDE_DIRECTORIES "${Boost_INCLUDE_DIRS}"

INTERFACE_LINK_LIBRARIES "${Boost_LIBRARIES}")

add_executable(deltille_detector DeltilleDetector.cpp)
target_link_libraries(deltille_detector deltille boost)

install(TARGETS deltille_detector DESTINATION ${CMAKE_INSTALL_BINDIR})

So I would avoid getting this error:
CMake Error at apps/CMakeLists.txt:4 (set_target_properties):
Property INTERFACE_LINK_LIBRARIES may not contain link-type keyword
"optimized". The INTERFACE_LINK_LIBRARIES property may contain
configuration-sensitive generator-expressions which may be used to specify
per-configuration rules.

Have anyone actually compiled and built lately? Can anyone give me a hand?

Thank you.

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

No branches or pull requests

1 participant