Ultimaker / libArcus

Communication library between internal components for Ultimaker software

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build in windows erro

woshisuchao opened this issue · comments

commented

image
how can i solve it...

Did you change the way in which it is linking? I see some mismatches of MT and MD. Maybe try a clean and complete rebuild.

I have solve the problem as follow:

cmake -G "NMake Makefiles" ^
More? -DCMAKE_BUILD_TYPE=Release ^
More? -DCMAKE_INSTALL_PREFIX=../../../../install ^
More? -DCMAKE_CXX_FLAGS_RELEASE=/MT ^
More? ../..
-- The C compiler identification is MSVC 19.13.26129.0
-- The CXX compiler identification is MSVC 19.13.26129.0
-- Check for working C compiler: D:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: D:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx64/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: D:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx64/x64/cl.exe
-- Check for working CXX compiler: D:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx64/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Protobuf: D:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.13.26128/lib/x64/libprotobuf.lib (found suitable version "3.6.1", minimum required is "3.0.0")
-- Found PythonInterp: D:/Users/JockJo/AppData/Local/Programs/Python/Python36/python.exe (found suitable version "3.6.5", minimum required is "3.4.0")
-- Found PythonLibs: D:/Users/JockJo/AppData/Local/Programs/Python/Python36/libs/python36.lib (found suitable version "3.6.5", minimum required is "3.4.0")
-- Found Sip: D:/Users/JockJo/AppData/Local/Programs/Python/Python36/sip.exe (found version "4.19.2")
-- Configuring done
-- Generating done
-- Build files have been written to: D:/documents/libArcus/build/release