Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Can't build 32-bit Cura (Windows 10 32-bit) #22

Closed
Mzt-t opened this issue Dec 1, 2015 · 18 comments
Closed

Can't build 32-bit Cura (Windows 10 32-bit) #22

Mzt-t opened this issue Dec 1, 2015 · 18 comments

Comments

@Mzt-t
Copy link

Mzt-t commented Dec 1, 2015

What I've installed:

How I try to build:

  1. Clone the cura-build repository to C:/Users/Mesut/Desktop/cura-build
  2. Run env_win32.bat from C:/Users/Mesut/Desktop/cura-build
  3. Create a "build" directory inside cura-build (C:/Users/Mesut/Desktop/cura-build/build)
  4. Run CMake-GUI
  5. "Where is the source code" set to C:/Users/Mesut/Desktop/cura-build,
  6. "Where to build the binaries" set to C:/Users/Mesut/Desktop/cura-build/build
  7. Choose "MinGW Makefiles" Generator with default options
  8. Generate
  9. Open cmd.exe, run "mingw32-make" inside the C:/Users/Mesut/Desktop/cura-build folder
  10. Wait for it to build...

I get this error after ~10 minutes:

[100%] Linking CXX executable protoc.exe
[100%] Built target protoc
[  7%] Performing install step for 'Protobuf'
[ 39%] Built target libprotobuf
[ 52%] Built target libprotobuf-lite
[ 98%] Built target libprotoc
[100%] Built target protoc
Install the project...
-- Install configuration: "Release"
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/lib/libprotobuf-lite.a
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/lib/libprotobuf.a
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/lib/libprotoc.a
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/bin/protoc.exe
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/any.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/any.pb.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/api.pb.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/arena.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/arenastring.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/compiler/code_generator.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/compiler/command_line_interface.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/compiler/cpp/cpp_generator.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/compiler/csharp/csharp_generator.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/compiler/csharp/csharp_names.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/compiler/importer.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/compiler/java/java_generator.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/compiler/java/java_names.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/compiler/javanano/javanano_generator.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/compiler/objectivec/objectivec_generator.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/compiler/objectivec/objectivec_helpers.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/compiler/parser.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/compiler/plugin.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/compiler/plugin.pb.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/compiler/python/python_generator.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/compiler/ruby/ruby_generator.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/descriptor.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/descriptor.pb.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/descriptor_database.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/duration.pb.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/dynamic_message.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/empty.pb.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/extension_set.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/field_mask.pb.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/generated_enum_reflection.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/generated_enum_util.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/generated_message_reflection.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/generated_message_util.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/io/coded_stream.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/io/gzip_stream.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/io/printer.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/io/strtod.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/io/tokenizer.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/io/zero_copy_stream.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/io/zero_copy_stream_impl.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/io/zero_copy_stream_impl_lite.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/map.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/map_entry.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/map_entry_lite.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/map_field.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/map_field_inl.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/map_field_lite.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/map_type_handler.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/message.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/message_lite.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/metadata.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/reflection.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/reflection_ops.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/repeated_field.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/repeated_field_reflection.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/service.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/source_context.pb.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/struct.pb.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/atomic_sequence_num.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/atomicops.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/atomicops_internals_power.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/atomicops_internals_arm64_gcc.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/atomicops_internals_arm_gcc.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/atomicops_internals_arm_qnx.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/atomicops_internals_atomicword_compat.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/atomicops_internals_generic_gcc.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/atomicops_internals_macosx.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/atomicops_internals_mips_gcc.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/atomicops_internals_pnacl.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/atomicops_internals_solaris.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/atomicops_internals_tsan.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/atomicops_internals_x86_gcc.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/atomicops_internals_x86_msvc.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/bytestream.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/callback.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/casts.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/common.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/fastmem.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/hash.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/logging.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/macros.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/mutex.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/once.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/platform_macros.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/port.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/scoped_ptr.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/shared_ptr.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/singleton.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/status.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/stl_util.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/stringpiece.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/template_util.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/stubs/type_traits.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/text_format.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/timestamp.pb.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/type.pb.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/unknown_field_set.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/util/field_comparator.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/util/field_mask_util.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/util/json_util.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/util/message_differencer.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/util/time_util.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/util/type_resolver.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/util/type_resolver_util.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/wire_format.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/wire_format_lite.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/wire_format_lite_inl.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/wrappers.pb.h
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/descriptor.proto
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/any.proto
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/api.proto
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/duration.proto
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/empty.proto
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/field_mask.proto
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/source_context.proto
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/struct.proto
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/timestamp.proto
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/type.proto
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/wrappers.proto
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/include/google/protobuf/compiler/plugin.proto
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/lib/cmake/protobuf/protobuf-targets.cmake
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/lib/cmake/protobuf/protobuf-targets-release.cmake
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/lib/cmake/protobuf/protobuf-config.cmake
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/lib/cmake/protobuf/protobuf-config-version.cmake
-- Installing: C:/Users/Mesut/Desktop/cura-build/build/inst/lib/cmake/protobuf/protobuf-module.cmake
[  8%] Completed 'Protobuf'
[  8%] Built target Protobuf
Scanning dependencies of target Python
[  8%] Built target Python
Scanning dependencies of target Protobuf-python
[  9%] Creating directories for 'Protobuf-python'
[ 10%] Performing download step (git clone) for 'Protobuf-python'
Cloning into 'Protobuf-python'...
Checking out files: 100% (1223/1223), done.
Your branch is up-to-date with 'origin/master'.
Already on 'master'
[ 11%] Performing update step for 'Protobuf-python'
Current branch master is up to date.
[ 12%] Performing copy-libproto step for 'Protobuf-python'
[ 13%] No patch step for 'Protobuf-python'
[ 14%] No configure step for 'Protobuf-python'
[ 15%] Performing build step for 'Protobuf-python'
'$CC' is not recognized as an internal or external command,
operable program or batch file.
running build
running build_py
Generating google/protobuf/descriptor_pb2.py...
protoc is not installed nor found in ../src.  Please compile it or install the binary package.
CMakeFiles\Protobuf-python.dir\build.make:112: recipe for target 'Protobuf-python-prefix/src/Protobuf-python-stamp/Protobuf-python-build' failed
mingw32-make[2]: *** [Protobuf-python-prefix/src/Protobuf-python-stamp/Protobuf-python-build] Error -1
CMakeFiles\Makefile2:255: recipe for target 'CMakeFiles/Protobuf-python.dir/all' failed
mingw32-make[1]: *** [CMakeFiles/Protobuf-python.dir/all] Error 2
Makefile:148: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
@ashwinprasadme
Copy link

you need to get protoc3 precompiled binary from HERE and add the exe to your MinGW PATH to fix this, even i have been trying to build, i have gotten a lil further, but still not completed.. but lets see where it goes

@Ghostkeeper
Copy link
Contributor

One issue I've encountered pretty often is that the Perl environment was defined before the MinGW and Python environment in the %PATH%. Perl has a few binaries with the same name (and same functionality) but a different version.

@Mzt-t
Copy link
Author

Mzt-t commented Dec 2, 2015

'$CC' is not recognized as an internal or external command,
operable program or batch file.
running build
running build_py
running build_ext
building 'google.protobuf.pyext._message' extension
error: Unable to find vcvarsall.bat
CMakeFiles\Protobuf-python.dir\build.make:112: recipe for target 'Protobuf-python-prefix/src/Protobuf-python-stamp/Protobuf-python-build' failed
mingw32-make[2]: *** [Protobuf-python-prefix/src/Protobuf-python-stamp/Protobuf-python-build] Error 1
CMakeFiles\Makefile2:255: recipe for target 'CMakeFiles/Protobuf-python.dir/all' failed
mingw32-make[1]: *** [CMakeFiles/Protobuf-python.dir/all] Error 2
Makefile:148: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

I got a bit further! Also changed path priority like you said.
I get a vcvarsall.bat not found, I think i'm missing visual studio 2010. I thought mingw32 had the ability to compile c++ so it's a bit confusing. Is there something that I might be missing here?

@ashwinprasadme
Copy link

http://filehippo.com/download_visualc_2010_express_edition/

Install this to fix this issue, not sure why Mingw can't handle it !
Someone should look into it

On Wed, Dec 2, 2015, 15:57 mpbomil notifications@github.com wrote:

'$CC' is not recognized as an internal or external command,
operable program or batch file.
running build
running build_py
running build_ext
building 'google.protobuf.pyext._message' extension
error: Unable to find vcvarsall.bat
CMakeFiles\Protobuf-python.dir\build.make:112: recipe for target 'Protobuf-python-prefix/src/Protobuf-python-stamp/Protobuf-python-build' failed
mingw32-make[2]: *** [Protobuf-python-prefix/src/Protobuf-python-stamp/Protobuf-python-build] Error 1
CMakeFiles\Makefile2:255: recipe for target 'CMakeFiles/Protobuf-python.dir/all' failed
mingw32-make[1]: *** [CMakeFiles/Protobuf-python.dir/all] Error 2
Makefile:148: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

I got a bit further! Also changed path priority like you said.
I get a vcvarsall.bat not found, I think i'm missing visual studio 2010. I
thought mingw32 had the ability to compile c++ so it's a bit confusing. Is
there something that I might be missing here?


Reply to this email directly or view it on GitHub
#22 (comment)
.

@KurtLoeffler
Copy link

I'm working from a clean windows 10 installation and have installed all of the things listed in the original post. After installing vs2010 express the Protobuf-python still fails.

Issue 1

in setup.py:154:
extra_compile_args = ['-Wno-write-strings', '-Wno-invalid-offsetof']
Those arguments are not valid with cl.exe? Compilation fails. Removing them and leaving extra_compile_args empty successfully compiles the obj files.

Issue 2

Immediately after the previous issue when it trys to link, it fails because of a missing library file.

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:../src/.libs /LIBPATH:C:\Python34\libs /LIBPATH:C:\Python34\PCbuild protobuf.lib /EXPORT:PyInit__message build\temp.win32-3.4\Release\google/protobuf/pyext\descriptor.obj build\temp.win32-3.4\Release\google/protobuf/pyext\descriptor_containers.obj build\temp.win32-3.4\Release\google/protobuf/pyext\descriptor_pool.obj build\temp.win32-3.4\Release\google/protobuf/pyext\extension_dict.obj build\temp.win32-3.4\Release\google/protobuf/pyext\message.obj build\temp.win32-3.4\Release\google/protobuf/pyext\message_map_container.obj build\temp.win32-3.4\Release\google/protobuf/pyext\repeated_composite_container.obj build\temp.win32-3.4\Release\google/protobuf/pyext\repeated_scalar_container.obj build\temp.win32-3.4\Release\google/protobuf/pyext\scalar_map_container.obj /OUT:build\lib.win32-3.4\google\protobuf\pyext\_message.pyd /IMPLIB:build\temp.win32-3.4\Release\google/protobuf/pyext\_message.lib /MANIFESTFILE:build\temp.win32-3.4\Release\google/protobuf/pyext\_message.pyd.manifest
LINK : fatal error LNK1181: cannot open input file 'protobuf.lib'
CMakeFiles\Protobuf-python.dir\build.make:112: recipe for target 'Protobuf-python-prefix/src/Protobuf-python-stamp/Protobuf-python-build' failed
CMakeFiles\Makefile2:292: recipe for target 'CMakeFiles/Protobuf-python.dir/all' failed
Makefile:148: recipe for target 'all' failed

The initial makefile was created with cmake -G "MinGW Makefiles" ..

@Ghostkeeper
Copy link
Contributor

You are creating MinGW makefiles and then proceed to compile with Visual Studio? CMake should have Visual Studio generators.

All of Ultimaker's C++ code is designed to be compiled with GCC and MinGW. Protobuf is not Ultimaker's though, and should work with Visual Studio too. Perhaps they can help you out over at the Protobuf repository? Keep in mind that trying to link CuraEngine to Protobuf will probably give linker errors later on, if you try to compile the one with Visual Studio and the other with MinGW.

@KurtLoeffler
Copy link

The build scripts are invoking the visual studio compiler. Specifically the Protobuf-python repository. All I do is mingw32-make from the build directory. From your response I take it that VS compiler should not be used at all during the build process. If VS 2010 is not installed Protobuf-python still fails with the error in mpbomil's second comment.

@nallath
Copy link
Member

nallath commented Dec 7, 2015

Well, we never tested it with VS2010. You could try to get it to work, but we simply can't help you there as we don't have any experience with getting Cura to build with any kind of VS compiler.

@ashwinprasadme
Copy link

isnt there any other quick fix to build a distribute exe for those(for now,including me) who are just changing the GUI?

@Mzt-t
Copy link
Author

Mzt-t commented Dec 7, 2015

Didn't get it to work on windows, I've installed Ubuntu now and building went smooth as butter, maybe you could do that for now.

@ashwinprasadme
Copy link

Yeah! Ubuntu was sweet for me too! That's actually done.. Hit a dead end
with windows!! :(

On Mon, Dec 7, 2015, 16:31 mpbomil notifications@github.com wrote:

Didn't get it to work on windows, I've installed Ubuntu now and building
went smooth as butter, maybe you could do that for now.


Reply to this email directly or view it on GitHub
#22 (comment)
.

@Ghostkeeper
Copy link
Contributor

The GUI is largely dependent on the QML files, which should not be packaged into the executable. If you modify those you can go far with the GUI, without having to compile or package the executable again.

@ashwinprasadme
Copy link

This might be too much to ask, but can anybody who has successfully built the package help us make one if i provide a git with modified code?

The need to distribute custom packages is huge for us, even toh currently it's just UI modification..

Obviously we won't stop at that, we've contributed to the marlin firmware and cura is the last option as a host for us to integrate the features, please help

@nallath
Copy link
Member

nallath commented Dec 11, 2015

Sorry, I don't have any other build scripts other than these. We use these scripts to create our releases. Could be that @awhiemstra has some tips for you.

@Ghostkeeper
Copy link
Contributor

I was having the same problem as @mpbomil 19 days ago: Unable to find vcvarsall.bat

I've gotten a little further by adding --compiler=mingw32 to line 253 of cura-build's CMakeLists.txt:

set(build_command ${PYTHON_EXECUTABLE} setup.py build --cpp_implementation --compiler=mingw32)

It's currently working on Qt. Hasn't failed yet!

@Ghostkeeper
Copy link
Contributor

I'll just dump problems I've encountered here and their solutions.

If you get an error that it can't find Qt while it's preparing PyQt, make sure you execute the env_win32.bat script from within the directory you're building in, which is not necessarily the folder where the batch script itself is at.

@Ghostkeeper
Copy link
Contributor

Numpy mentions that it can only be built using the gfortran compiler from MSVC. I've just resorted to installing numpy and scipy with pip and disabling BUILD_NUMPY and BUILD_SCIPY in CMake. Disabling only Numpy but not Scipy doesn't work, which is probably a mistake in the CMakeLists.txt of cura-build. With that I could finally successfully build.

Running the thing though results in python.exe crashing.

@LipuFei
Copy link
Contributor

LipuFei commented Aug 13, 2019

Closing this issue due to inactivity.

@LipuFei LipuFei closed this as completed Aug 13, 2019
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

6 participants