Ultimaker / libArcus

Communication library between internal components for Ultimaker software

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building on Windows

masklu opened this issue · comments

When I try to configure in cmake, I got this error:

Administrator@WIN-GDGB8ICI8VS /c/mingw/msys/1.0/local/libArcus-2.4/build
$ cmake ..
-- Building for: Visual Studio 14 2015
-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio 14.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio 14.0/VC/bin/cl.exe
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio 14.0/VC/bin/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: C:/MinGW/msys/1.0/local/protobuf-3.0.0/src/.libs/libprotobuf.a (found suitable version "3.0.0", minimum required is "3.0.0")
-- Found PythonInterp: C:/python35/python.exe (found suitable version "3.5.3", minimum required is "3.4.0")
-- Found PythonLibs: C:/python35/libs/python35.lib (found suitable version "3.5.3", minimum required is "3.4.0")
CMake Error at cmake/FindSIP.cmake:64 (MESSAGE):
Could not find SIP
Call Stack (most recent call first):
CMakeLists.txt:22 (find_package)

-- Configuring incomplete, errors occurred!
See also "C:/MinGW/msys/1.0/local/libArcus-2.4/build/CMakeFiles/CMakeOutput.log".

Administrator@WIN-GDGB8ICI8VS /c/mingw/msys/1.0/local/libArcus-2.4/build
$ pip3 list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in yo
ur pip.conf under the [list] section) to disable this warning.
pip (9.0.1)
setuptools (28.8.0)
sip (4.19.2)

When I try to set PYTHON_SITE_PACKAGES_DIR the error still exists.

Do you have SIP installed? You can get it here: https://www.riverbankcomputing.com/software/sip/download

@Ghostkeeper ,when I installing SIP I get this error
$ make install
make[1]: Entering directory /c/mingw/msys/1.0/local/sip-4.19.2/sipgen' /bin/sh: -c: line 1: syntax error: unexpected end of file make[1]: *** [install] Error 2 make[1]: Leaving directory /c/mingw/msys/1.0/local/sip-4.19.2/sipgen'
make: *** [install] Error 2

Hi,I solve the problem and got another problem

Administrator@WIN-GDGB8ICI8VS /c/mingw-w64/mingw32/msys/local/libArcus-2.4/build
$ mingw32-make
[ 27%] Built target Arcus
Scanning dependencies of target python_module_Arcus
[ 31%] Building CXX object CMakeFiles/python_module_Arcus.dir/python/sipArcuspart0.cpp.obj
[ 36%] Building CXX object CMakeFiles/python_module_Arcus.dir/python/sipArcuspart1.cpp.obj
[ 40%] Building CXX object CMakeFiles/python_module_Arcus.dir/python/sipArcuspart2.cpp.obj
[ 45%] Building CXX object CMakeFiles/python_module_Arcus.dir/python/sipArcuspart3.cpp.obj
[ 50%] Building CXX object CMakeFiles/python_module_Arcus.dir/python/sipArcuspart4.cpp.obj
[ 54%] Building CXX object CMakeFiles/python_module_Arcus.dir/python/sipArcuspart5.cpp.obj
[ 59%] Building CXX object CMakeFiles/python_module_Arcus.dir/python/sipArcuspart6.cpp.obj
[ 63%] Building CXX object CMakeFiles/python_module_Arcus.dir/python/sipArcuspart7.cpp.obj
[ 68%] Building CXX object CMakeFiles/python_module_Arcus.dir/python/PythonMessage.cpp.obj
mingw32-make[2]: *** No rule to make target 'C:/MinGW/msys/1.0/local/protobuf-3.0.0/src/.libs/libprotobuf.a', needed by 'Arcus.pyd'. Stop.
CMakeFiles\Makefile2:103: recipe for target 'CMakeFiles/python_module_Arcus.dir/all' failed
mingw32-make[1]: *** [CMakeFiles/python_module_Arcus.dir/all] Error 2
Makefile:150: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

thanks,all problem solved

If you can share what you did to solve it, perhaps that helps someone in the future!

@masklu
I am getting the same error of
$ make install
make[1]: Entering directory /c/mingw/msys/1.0/local/sip-4.19.2/sipgen' /bin/sh: -c: line 1: syntax error: unexpected end of file make[1]: *** [install] Error 2 make[1]: Leaving directory/c/mingw/msys/1.0/local/sip-4.19.2/sipgen'
make: *** [install] Error 2

do you remember how you fixed this?

@ewurman-dm
like this Makefile
install:
#@$(MAKE) -C sipgen install
#@$(MAKE) -C siplib install
#@if not exist c:\python35\Lib\site-packages mkdir c:\python35\Lib\site-packages
#copy /y sipconfig.py c:\python35\Lib\site-packages\sipconfig.py
#copy /y c:\mingw\msys\1.0\local\sip-4.19.2\sipdistutils.py c:\python35\Lib\site-packages\sipdistutils.py
I just copy the file follow install command ,like copy sipdistutils.py to c:\python35\Lib\site-packages
also in sipgen and siplib have Makefile and need to do the install command by yourself
I don't think it's a good way ,but it work,and I hope my broken English can tell clearly

commented

i have the same problem that "could not find sip" on widow cmake such like
image
and is that in window of your problem? why is there "$"

@woshisuchao install sip with Source Packages

Please see #68. Don't post your issue it on every single ticket around.