Git Product home page Git Product logo

cura-build-environment's People

Contributors

alekseisasin avatar awhiemstra avatar casperlamboo avatar darrell666 avatar diegopradogesto avatar evtrados avatar ghostkeeper avatar ianpaschal avatar jackha avatar jellespijker avatar joeydelarago avatar konskarm avatar lipufei avatar lorenzoromagnoli avatar nallath avatar probonopd avatar rburema avatar sedwards2009 avatar thopiekar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cura-build-environment's Issues

PyQt build fails on mac if DYLD_LIBRARY_PATH is set in CONFIGURE_COMMAND

In pyqt.cmake, if DYLD_LIBRARY_PATH is set in the CONFIGURE_COMMAND, build fails with an sqlite3 error.

Querying qmake about your Qt installation...
dyld: Symbol not found: _sqlite3_intarray_bind
Referenced from: /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
Expected in: /Users/harsha/Documents/cura4-env/env_py/lib/libsqlite3.dylib
in /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
Error: PyQt5 requires Qt v5.0 or later. You seem to be using v3. Use the
--qmake flag to specify the correct version of qmake.

However, removing "DYLD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib" from pyqt_command builds successfully.

set(pyqt_command
    ${Python3_EXECUTABLE} configure.py
    --sysroot ${CMAKE_INSTALL_PREFIX}
    --qmake ${CMAKE_INSTALL_PREFIX}/bin/qmake
    --sip ${CMAKE_INSTALL_PREFIX}/bin/sip
    --confirm-license
)

OSX build failed: CMakeLists - unknown component CACHE

Following the instructions on your README.md with OSX 10.11.6, Xcode 7.3, xcode-select 2343, cmake 3.10.0 and openssl 0.9.8zh... Looks like issue may have migrated from the earlier/combined project, as seen in Issue #109.

Note for your documentation: I had to chmod a+x env_osx.sh to allow this to work, otherwise, you get the classic "Permission denied" error message. Alternately when attempting with sudo without first changing the attributes: "command not found".

Back to the issue at hand:

macbook:build me$ cmake .. -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is AppleClang 7.3.0.7030029
-- The CXX compiler identification is AppleClang 7.3.0.7030029
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- 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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:6 (get_filename_component):
  get_filename_component unknown component CACHE

-- Building for OSX
-- Configuring incomplete, errors occurred!
See also "/Users/me/src/cura-build-environment/build/CMakeFiles/CMakeOutput.log".

The CACHE reference is from line 6 of CMakeLists.txt:

# This should care that our CMAKE_INSTALL_PREFIX is absolute at the end...
get_filename_component(CMAKE_INSTALL_PREFIX
                       ${CMAKE_INSTALL_PREFIX}
                       ABSOLUTE
                       CACHE FORCE)

My CMake v3.10 get_filename_component() appears to include a CACHE option from the linked documentation.

Not sure if I am expected to drop CACHE from that statement and retry... or not.

No errors are seen in the indicated CMakeOutput.log, for what it's worth.

CMakeOutput.log
CMakeLists.txt
CMakeCache.txt

Cl: command line warning D9002: ignore the unknown option '-m64'"

I compiled the entire file is successful!

The last lines of code
[ 97%] Completed 'Savitar'
[ 99%] Built target Savitar
[100%] Installing SciPy
Requirement already satisfied: scipy==0.19.0 from http://software.ultimaker.com/cura-binary-dependencies/scipy-0.19.0-cp35-cp35m-win_amd64.whl in d:\cura_2.5\cura-build-environment-master\build\release\lib\site-packages
Requirement already satisfied: numpy>=1.8.2 in d:\cura_2.5\cura-build-environment-master\build\release\lib\site-packages (from scipy==0.19.0)
[100%] Built target SciPy
[100%] Built target projects

Everything feels very perfect!
As a result, when I was testing!

It's strange! Arcus isn't 64 bit! (my system is win7 x64)
So I found it

Cl: command line warning D9002: ignore the unknown option '-m64'"
When I build the entire project

no module named pip

when run the make file, I got error like this:
Ignoring ensurepip failure: pip 8.1.1 requires SSL/TLS
[ 38%] Performing ensurepip step for 'Python'
Ignoring ensurepip failure: pip 8.1.1 requires SSL/TLS
[ 39%] Performing upgrade_packages step for 'Python'
/home/ying/cura-build-environment-master/build/../env/bin/python3: No module named pip
CMakeFiles/Python.dir/build.make:129: recipe for target 'Python-prefix/src/Python-stamp/Python-upgrade_packages' failed
make[2]: *** [Python-prefix/src/Python-stamp/Python-upgrade_packages] Error 1
CMakeFiles/Makefile2:301: recipe for target 'CMakeFiles/Python.dir/all' failed
make[1]: *** [CMakeFiles/Python.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

any suggestion? Thanks in advance?

Linking CXX shared library Savitar.so

/usr/bin/ld: /usr/local/lib/libpython3.5m.a(ceval.o): relocation R_X86_64_PC32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
CMakeFiles/python_module_Savitar.dir/build.make:310: recipe for target 'Savitar.so' failed

is there any thing Missing ??

screen-shot

Build Issue OSX Mojave: Cannot compute size of size_t

I am building on OSX Mojave, everything is working fine until I get to building Python. When I do I am getting the following:
checking size of size_t... configure: error: in "/Users/Zach/Desktop/Hydra/cura-build-environment-master/build/Python-prefix/src/Python": configure: error: cannot compute sizeof (size_t) See "config.log" for more details make[2]: *** [Python-prefix/src/Python-stamp/Python-configure] Error 7 make[1]: *** [CMakeFiles/Python.dir/all] Error 2

I am very new to this kind of development so if any more information is needed let me know. Any help resolving this issue would be very appreciated! I'm attaching the config.log
config.log

env win32.bat bug

call "C:\Program Files\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86

shoule be:

call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86

Compiling Qt 5.10.1 fails with GCC 9

See commit https://codereview.qt-project.org/c/qt/qtbase/+/245425 and the used diff file below

From a52d7861edfb5956de38ba80015c4dd0b596259b Mon Sep 17 00:00:00 2001
From: Allan Sandfeld Jensen <[email protected]>
Date: Tue, 13 Nov 2018 16:00:23 +0100
Subject: [PATCH] Fix compile issue with gcc 9

It appears messenne_twisters in the latest libstdc++ has one more
requirement before it is willing to construct with our
SystemGenerator struct as an sseq provider.

Change-Id: If38151d1fa6f40a80274acc26d9ed6b4ac6049fe
Reviewed-by: Giuseppe D'Angelo <[email protected]>
Reviewed-by: Thiago Macieira <[email protected]>
---

diff --git a/src/corelib/global/qrandom.cpp b/src/corelib/global/qrandom.cpp
index 23e5e49..03534cf 100644
--- a/src/corelib/global/qrandom.cpp
+++ b/src/corelib/global/qrandom.cpp
@@ -218,6 +218,7 @@
 #endif // Q_OS_WINRT
 
     static SystemGenerator &self();
+    typedef quint32 result_type;
     void generate(quint32 *begin, quint32 *end) Q_DECL_NOEXCEPT_EXPR(FillBufferNoexcept);
 
     // For std::mersenne_twister_engine implementations that use something

Build fails on win64

When running nmake, most stuff works but PySerial fails to install and I can't get past that.

Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
Copyright (C) Microsoft Corporation.  All rights reserved.

[  6%] Built target OpenSSL
[ 14%] Built target Python
[ 14%] Performing install step for 'PySerial'
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: option --single-version-externally-managed not recognized
NMAKE : fatal error U1077: 'C:\Users\Mark\GitHub\cura-build-environment\build\$INSTALL_DIR\bin\python.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.

If, however, I cd to PySerial-prefix\src\PySerial and run 'setup.py install' the install appears to work

When I then try to continue by typing 'nmake' from the build location, it trys again to install PySerial and fails as before (it must not recognize the install I did manually.

sqlite3 build fails due to wrong automake version

When running on a Arch based distro, building fails because the version of automake is hardcoded in the Makefile. Removing the version -1.15 from line 251 AUTOMAKE = ${SHELL} /home/peer23peer/projects/Cura/cura-build-environment/build/sqlite3-prefix/src/sqlite3/missing automake-1.15 allows the build to continue.

Error while building on windows finding micaut.dll.mui

I tried building on a newly installed windows but I got the same error so I reinstalled the older 1809 as asked for, but the same error persists.
Here's what the output looks like:

PS C:\Windows\system32> docker pull ultimaker/cura-build-environment
Using default tag: latest
latest: Pulling from ultimaker/cura-build-environment
75f829a71a1c: Pull complete
000f65b344e8: Pull complete
bceaaf80f4a6: Pull complete
f69296dd68b2: Pull complete
633267254979: Pull complete
dcca9bf457cc: Pull complete
cbfd56246533: Pull complete
Digest: sha256:098fc04a4f18437b037f157be888a06fb0c3a3b07db1548a044c9083fb197806
Status: Downloaded newer image for ultimaker/cura-build-environment:latest
docker.io/ultimaker/cura-build-environment:latest
PS C:\Windows\system32> cd C:\Users\howler\cura\cura-build-environment\
PS C:\Users\howler\cura\cura-build-environment> docker build -t build-env -f docker/windows/Dockerfile.vs2015 .
[+] Building 229.4s (5/14)
 => [internal] load build definition from Dockerfile.vs2015                                                                                                                                         0.1s
 => => transferring dockerfile: 2.37kB                                                                                                                                                              0.0s
 => [internal] load .dockerignore                                                                                                                                                                   0.1s
 => => transferring context: 47B                                                                                                                                                                    0.0s
 => [internal] load metadata for mcr.microsoft.com/windows/servercore:1809-amd64                                                                                                                    2.0s
 => ERROR [ 1/10] FROM mcr.microsoft.com/windows/servercore:1809-amd64@sha256:ea59e234726dc50e67b67ec14eb77fc96094dbce61c71f2bda6e82b8caf787aa                                                    227.2s
 => => resolve mcr.microsoft.com/windows/servercore:1809-amd64@sha256:ea59e234726dc50e67b67ec14eb77fc96094dbce61c71f2bda6e82b8caf787aa                                                              0.0s
 => => sha256:ea59e234726dc50e67b67ec14eb77fc96094dbce61c71f2bda6e82b8caf787aa 886B / 886B                                                                                                          0.0s
 => => sha256:5c1f582f60a9895cf4d66595d265ec88225efd6a33e90edfd1a2ff161991ce50 559B / 559B                                                                                                          0.0s
 => => sha256:4612f6d0b889cad0ed0292fae3a0b0c8a9e49aff6dea8eb049b2386d9b07986f 1.72GB / 1.72GB                                                                                                    174.7s
 => => sha256:aa4f58cd6da1aaf1a0b44d443bd88e7fbe5b0a6f193995a1a61d6bd63990f314 672.54MB / 672.54MB                                                                                                 57.1s
 => => extracting sha256:4612f6d0b889cad0ed0292fae3a0b0c8a9e49aff6dea8eb049b2386d9b07986f                                                                                                          40.2s
 => => extracting sha256:aa4f58cd6da1aaf1a0b44d443bd88e7fbe5b0a6f193995a1a61d6bd63990f314                                                                                                          10.6s
 => [internal] load build context                                                                                                                                                                   0.1s
 => => transferring context: 117.25kB                                                                                                                                                               0.0s
------
 > [ 1/10] FROM mcr.microsoft.com/windows/servercore:1809-amd64@sha256:ea59e234726dc50e67b67ec14eb77fc96094dbce61c71f2bda6e82b8caf787aa:
------
failed to register layer: Error processing tar file(exit status 1): link /Files/Program Files/common files/Microsoft Shared/Ink/en-US/micaut.dll.mui /Files/Program Files (x86)/common files/Microsoft Shared/ink/en-US/micaut.dll.mui: no such file or directory
-----

The path seems kinda weird. Not sure how I should go about this

Build step for 'Arcus-MinGW'('InetPton' was not declared in this scope)

When running nmake I get the error:

arcusbuilderror

The code in the PlatformSocket.cpp file where InetPton is located:

#include "PlatformSocket_p.h"

    #ifdef _WIN32
        #include <winsock2.h>
        #include <ws2tcpip.h>
    #else
        #include <sys/types.h>
        #include <sys/socket.h>
        #include <sys/time.h>
        #include <netinet/in.h>
        #include <arpa/inet.h>
        #include <unistd.h>
        #include <signal.h>
        #include <errno.h>
    #endif

    // Create a sockaddr_in structure from an address and port.
    sockaddr_in createAddress(const std::string& address, int port)
    {
        sockaddr_in a;
        a.sin_family = AF_INET;

    #ifdef _WIN32
        InetPton(AF_INET, address.c_str(), &(a.sin_addr)); //Note: Vista and 
higher only.
    #else
        ::inet_pton(AF_INET, address.c_str(), &(a.sin_addr));
    #endif
        a.sin_port = htons(port);
        return a;
    }

Dockerfile is broken

The Dockerfile in the Cura project doesn't build a container that is able to execute Cura.

Reproduce by:

git clone https://github.com/Ultimaker/Cura.git
cd Cura
docker build -t cura .
docker run cura

The last command fails with:

$ docker run cura
Error in sys.excepthook:
Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 665, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/srv/cura/Cura/cura/CuraApplication.py", line 48, in <module>
    from cura.API import CuraAPI
  File "/srv/cura/Cura/cura/API/__init__.py", line 9, in <module>
    from cura.API.Account import Account
  File "/srv/cura/Cura/cura/API/Account.py", line 11, in <module>
    from cura.OAuth2.AuthorizationService import AuthorizationService
  File "/srv/cura/Cura/cura/OAuth2/AuthorizationService.py", line 12, in <module>
    from cura.OAuth2.AuthorizationHelpers import AuthorizationHelpers
  File "/srv/cura/Cura/cura/OAuth2/AuthorizationHelpers.py", line 9, in <module>
    import requests
  File "/usr/local/lib/python3.5/site-packages/requests/__init__.py", line 43, in <module>
    import urllib3
ImportError: No module named 'urllib3'

Original exception was:
Traceback (most recent call last):
  File "cura_app.py", line 129, in <module>
    from cura.CuraApplication import CuraApplication
  File "/srv/cura/Cura/cura/CuraApplication.py", line 48, in <module>
    from cura.API import CuraAPI
  File "/srv/cura/Cura/cura/API/__init__.py", line 9, in <module>
    from cura.API.Account import Account
  File "/srv/cura/Cura/cura/API/Account.py", line 11, in <module>
    from cura.OAuth2.AuthorizationService import AuthorizationService
  File "/srv/cura/Cura/cura/OAuth2/AuthorizationService.py", line 12, in <module>
    from cura.OAuth2.AuthorizationHelpers import AuthorizationHelpers
  File "/srv/cura/Cura/cura/OAuth2/AuthorizationHelpers.py", line 9, in <module>
    import requests
  File "/usr/local/lib/python3.5/site-packages/requests/__init__.py", line 43, in <module>
    import urllib3
ImportError: No module named 'urllib3'

This was reported in Cura Issue 4950. I think the real Issue is here in the build environment.

I already tried to install urllib3 inside the container by yum install -y python-urllib3, but it didn't work. (Same error message.)

Via Google I found that the urllib3 Centos 7 is very old and the only proper way to install a working version there is using pip. (I didn't verify yet if this is correct.)

Ubuntu - Problems with --single-version-externally-managed building Python-Six

Hello!

I am trying to build up a Linux build environment, and am wanting to use the Cura build environment, but in Ubuntu 17.04 and 16.10, I run into the following error:

`[ 12%] Performing install step for 'PythonSix'
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

error: option --single-version-externally-managed not recognized
CMakeFiles/PythonSix.dir/build.make:73: recipe for target 'PythonSix-prefix/src/PythonSix-stamp/PythonSix-install' failed
make[2]: *** [PythonSix-prefix/src/PythonSix-stamp/PythonSix-install] Error 1
CMakeFiles/Makefile2:141: recipe for target 'CMakeFiles/PythonSix.dir/all' failed
make[1]: *** [CMakeFiles/PythonSix.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
`
For kicks I removed that option for Python-Six, and it built fine, but hung up on the next package (cx_freeze). The files seem to be using the newly compiled Python.

Everything I am finding online points to setuptools being outdated. I downloaded setuptools online, and used the compiled python3 binary to install it, and it was successful with the installation and is now continuing the build of the environment.

Long story short.. something appears to be wrong with setuptools, or it isn't getting installed.

Docker - how to use the environment for building

Hello,

Sorry for the very dumb question.. but I followed the instructions for setting up the docker image, but from there I am not sure how to build in the environment. I created a container using the image and ran bash.. but cmake isn't in the paths or in the filesystem, so I can't kick off the build process. Is there some sort of a walk through on building using it?

Again, sorry for the dumb question (I haven't used docker before)...

[master] help needed to build on Windows

I am trying to build on a Windows 10 VM using the 2017 VS Community edition. I have altered env_win64.bat to have this:

call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"

And I have also added this:

set VCTargetsPath=C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140

The python build fails with these messages:

C:\Users\burto\cura\cura-build-environment\build\Python-prefix\src\Python>msbuild "C:\Users\burto\cura\cura-build-environment\build\Python-prefix\src\Python\PCbuild\pcbuild.proj" /t:Build  /nologo /v:m /p:Configuration=Release /p:Platform=x64 /p:IncludeExternals=true /p:IncludeSSL=true /p:IncludeTkinter=false /p:UseTestMarker=
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140\Microsoft.Cpp.Current.targets(64,5): error MSB4062: The "SetEnv"
 task could not be loaded from the assembly C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140\Microsoft.Build.CppT
asks.Common.dll. Could not load file or assembly 'Microsoft.Build.Utilities.Core, Version=14.0.0.0, Culture=neutral, Pu
blicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the
<UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contain
s a public class that implements Microsoft.Build.Framework.ITask. [C:\Users\burto\cura\cura-build-environment\build\Pyt
hon-prefix\src\Python\PCbuild\pythoncore.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140\Microsoft.Cpp.Current.targets(64,5): error MSB4062: The "SetEnv"
 task could not be loaded from the assembly C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140\Microsoft.Build.CppT
asks.Common.dll. Could not load file or assembly 'Microsoft.Build.Utilities.Core, Version=14.0.0.0, Culture=neutral, Pu
blicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the
<UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contain
s a public class that implements Microsoft.Build.Framework.ITask. [C:\Users\burto\cura\cura-build-environment\build\Pyt
hon-prefix\src\Python\PCbuild\python3dll.vcxproj]

Any idea how to fix this?

Compile issue at Protobuf-MinGW ('strdup' was not declared)

when running nmake I get the error:

D:\cura-build-environment-master\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\
src\google\protobuf\compiler\subprocess.cc:118:43: error: 'strdup' was not decla
red in this scope
   char* name_copy = strdup(program.c_str());

I assume its because STRICT_ANSI is set, but I'm unsure how to best deal with the issue. Is there an option on CMAKE, etc. I remember in the past when running cmake in msys2 I got a warning about windows compatibility and setting an environmental variable to use some old mode, but I can't find/remember that info or whether it is relevant to fixing this issue. Any suggestions?
^

Win64 Build with protobuf-mingw build errors

I am seeing a build error that I will continue to try and figure out, but I could use some help.

Here is the output:

-- Build files have been written to: D:/proj/cura-build-environment/build/Protobuf-MinGW-prefix/src/Protobuf-MinGW-build
[ 43%] Performing build step for 'Protobuf-MinGW'
Scanning dependencies of target libprotobuf-lite
[ 1%] Building CXX object CMakeFiles/libprotobuf-lite.dir/D_/proj/cura-build-environment/build/Protobuf-MinGW-prefix/src/Protobuf-MinGW/src/google/protobuf/arena.cc.obj
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:42:29: error: 'SequenceNumber' in namespace 'google::protobuf::internal' does not name a type
google::protobuf::internal::SequenceNumber Arena::lifecycle_id_generator_;
^~~~~~~~~~~~~~
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:55:28: error: 'ThreadCache' in 'class google::protobuf::Arena' does not name a type
GOOGLE_THREAD_LOCAL Arena::ThreadCache Arena::thread_cache_ = { -1, NULL };
^~~~~~~~~~~
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:58:6: error: no declaration matches 'void google::protobuf::Arena::Init()'
void Arena::Init() {
^~~~~
In file included from D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:31:
D:/proj/install/include/google/protobuf/arena.h:275:8: note: candidate is: 'void google::protobuf::Arena::Init(const google::protobuf::ArenaOptions&)'
void Init(const ArenaOptions& options) {
^~~~
D:/proj/install/include/google/protobuf/arena.h:248:34: note: 'class google::protobuf::Arena' defined here
class PROTOBUF_EXPORT alignas(8) Arena final {
^~~~~
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:91:1: error: redefinition of 'google::protobuf::Arena::~Arena()'
Arena::~Arena() {
^~~~~
In file included from D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:31:
D:/proj/install/include/google/protobuf/arena.h:269:3: note: 'google::protobuf::Arena::~Arena()' previously defined here
~Arena() {
^
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:100:8: error: redefinition of 'google::protobuf::uint64 google::protobuf::Arena::Reset()'
uint64 Arena::Reset() {
^~~~~
In file included from D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:31:
D:/proj/install/include/google/protobuf/arena.h:374:28: note: 'google::protobuf::uint64 google::protobuf::Arena::Reset( ' previously defined here
PROTOBUF_NOINLINE uint64 Reset() {
^~~~~
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:106:8: error: no declaration matches 'google::protobuf::uint64 google::protobuf::Arena::ResetInternal()'
uint64 Arena::ResetInternal() {
^~~~~
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:106:8: note: no functions named 'google::protobuf::uint64 google::protobuf::Arena::ResetInternal()'
In file included from D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:31:
D:/proj/install/include/google/protobuf/arena.h:248:34: note: 'class google::protobuf::Arena' defined here
class PROTOBUF_EXPORT alignas(8) Arena final {
^~~~~
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:118:8: error: 'Block' in 'class google::protobuf::Arena' does not name a type
Arena::Block* Arena::NewBlock(void* me, Block* my_last_block, size_t n,
^~~~~
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:146:22: error: variable or field 'AddBlock' declared void
void Arena::AddBlock(Block* b) {
^~~~~
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:146:22: error: 'Block' was not declared in this scope
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:146:22: note: suggested alternative: 'alloca'
void Arena::AddBlock(Block* b) {
^~~~~
alloca
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:146:29: error: 'b' was not declared in this scope
void Arena::AddBlock(Block* b) {
^
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:151:30: error: variable or field 'AddBlockInternal' declared void
void Arena::AddBlockInternal(Block* b) {
^~~~~
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:151:30: error: 'Block' was not declared in this scope
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:151:30: note: suggested alternative: 'alloca'
void Arena::AddBlockInternal(Block* b) {
^~~~~
alloca
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:151:37: error: 'b' was not declared in this scope
void Arena::AddBlockInternal(Block* b) {
^
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:160:6: error: no declaration matches 'void google::protobuf::Arena::AddListNode(void*, void ()(void))'
void Arena::AddListNode(void* elem, void (cleanup)(void)) {
^~~~~
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:160:6: note: no functions named 'void google::protobuf::Arena::AddListNode(void*, void ()(void))'
In file included from D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:31:
D:/proj/install/include/google/protobuf/arena.h:248:34: note: 'class google::protobuf::Arena' defined here
class PROTOBUF_EXPORT alignas(8) Arena final {
^~~~~
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:169:7: error: no declaration matches 'void* google::protobuf::Arena::AllocateAligned(const std::type_info*, size_t)'
void* Arena::AllocateAligned(const std::type_info* allocated, size_t n) {
^~~~~
In file included from D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:31:
D:/proj/install/include/google/protobuf/arena.h:695:9: note: candidate is: 'void* google::protobuf::Arena::AllocateAligned(size_t)'
void* AllocateAligned(size_t n) {
^~~~~~~~~~~~~~~
D:/proj/install/include/google/protobuf/arena.h:248:34: note: 'class google::protobuf::Arena' defined here
class PROTOBUF_EXPORT alignas(8) Arena final {
^~~~~
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:201:29: error: 'void* google::protobuf::Arena::AllocFromBlock' is not a static data member of 'class google::protobuf::Arena'
void* Arena::AllocFromBlock(Block* b, size_t n) {
^~~~~
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:201:29: error: 'Block' was not declared in this scope
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:201:29: note: suggested alternative: 'alloca'
void* Arena::AllocFromBlock(Block* b, size_t n) {
^~~~~
alloca
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:201:36: error: 'b' was not declared in this scope
void* Arena::AllocFromBlock(Block* b, size_t n) {
^
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:201:46: error: expected primary-expression before 'n'
void* Arena::AllocFromBlock(Block* b, size_t n) {
^
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:201:47: error: expression list treated as compound expression in initializer [-fpermissive]
void* Arena::AllocFromBlock(Block* b, size_t n) {
^
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:210:7: error: no declaration matches 'void* google::protobuf::Arena::SlowAlloc(size_t)'
void* Arena::SlowAlloc(size_t n) {
^~~~~
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:210:7: note: no functions named 'void* google::protobuf::Arena::SlowAlloc(size_t)'
In file included from D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:31:
D:/proj/install/include/google/protobuf/arena.h:248:34: note: 'class google::protobuf::Arena' defined here
class PROTOBUF_EXPORT alignas(8) Arena final {
^~~~~
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:225:8: error: redefinition of 'google::protobuf::uint64 google::protobuf::Arena::SpaceAllocated() const'
uint64 Arena::SpaceAllocated() const {
^~~~~
In file included from D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:31:
D:/proj/install/include/google/protobuf/arena.h:354:10: note: 'google::protobuf::uint64 google::protobuf::Arena::SpaceAllocated() const' previously defined here
uint64 SpaceAllocated() const { return impl_.SpaceAllocated(); }
^~~~~~~~~~~~~~
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:235:8: error: redefinition of 'google::protobuf::uint64 google::protobuf::Arena::SpaceUsed() const'
uint64 Arena::SpaceUsed() const {
^~~~~
In file included from D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:31:
D:/proj/install/include/google/protobuf/arena.h:359:10: note: 'google::protobuf::uint64 google::protobuf::Arena::SpaceUsed() const' previously defined here
uint64 SpaceUsed() const { return impl_.SpaceUsed(); }
^~~~~~~~~
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:245:1: error: 'pair' does not name a type
pair<uint64, uint64> Arena::SpaceAllocatedAndUsed() const {
^~~~
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:258:8: error: no declaration matches 'google::protobuf::uint64 google::protobuf::Arena::FreeBlocks()'
uint64 Arena::FreeBlocks() {
^~~~~
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:258:8: note: no functions named 'google::protobuf::uint64 google::protobuf::Arena::FreeBlocks()'
In file included from D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:31:
D:/proj/install/include/google/protobuf/arena.h:248:34: note: 'class google::protobuf::Arena' defined here
class PROTOBUF_EXPORT alignas(8) Arena final {
^~~~~
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:293:6: error: no declaration matches 'void google::protobuf::Arena::CleanupList()'
void Arena::CleanupList() {
^~~~~
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:293:6: note: no functions named 'void google::protobuf::Arena::CleanupList()'
In file included from D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:31:
D:/proj/install/include/google/protobuf/arena.h:248:34: note: 'class google::protobuf::Arena' defined here
class PROTOBUF_EXPORT alignas(8) Arena final {
^~~~~
D:\proj\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW\src\google\protobuf\arena.cc:303:8: error: 'Block' in 'class google::protobuf::Arena' does not name a type
Arena::Block* Arena::FindBlock(void* me) {
^~~~~
mingw32-make.EXE[2]: *** [CMakeFiles\libprotobuf-lite.dir\build.make:63: CMakeFiles/libprotobuf-lite.dir/D_/proj/cura-build-environment/build/Protobuf-MinGW-prefix/src/Protobuf-MinGW/src/google/protobuf/arena.cc.obj] Error 1
mingw32-make.EXE[1]: *** [CMakeFiles\Makefile2:81: CMakeFiles/libprotobuf-lite.dir/all] Error 2
mingw32-make.EXE: *** [Makefile:129: all] Error 2
NMAKE : fatal error U1077: '"C:\Program Files\mingw-w64\x86_64-8.1.0-win32-seh-rt_v6-rev0\mingw64\bin\mingw32-make.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.

No CMAKE_Fortran_COMPILER could be found.

when I do
cmake .. -DCMAKE_INSTALL_PREFIX=/home/ying/cura-build -DCMAKE_BUILD_TYPE=Release
I have this error:
-- Building for Linux
-- The Fortran compiler identification is unknown
CMake Error at projects/openblas.cmake:3 (enable_language):
No CMAKE_Fortran_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment
variable "FC" or the CMake cache entry CMAKE_Fortran_COMPILER to the full
path to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
CMakeLists.txt:42 (include)

-- Configuring incomplete, errors occurred!
See also "/home/ying/source/build/CMakeFiles/CMakeOutput.log".
See also "/home/ying/source/build/CMakeFiles/CMakeError.log".

Can anyone help me for that? Thanks in advance.
I have Ubuntu 18.04

Ubuntu 16.0464 bit system cannot generate arcus.pyd

[ 40%] Built target AppImageKit
[ 40%] Built target PythonSix
[ 40%] Built target PyQt
[ 40%] Built target PythonNetifaces
[ 40%] Built target PythonZeroconf
[ 40%] Built target SciPy
[ 40%] Built target PySerial
[ 40%] Performing update step for 'Arcus'
[ 40%] Performing configure step for 'Arcus'
-- Found SIP version: 4.19.1
-- Configuring done
-- Generating done
-- Build files have been written to: /home/build/cura-build-environment-master/build/Arcus-prefix/src/Arcus-build
[ 40%] Performing build step for 'Arcus'
[ 35%] Built target Arcus
[100%] Built target python_module_Arcus
[ 40%] Performing install step for 'Arcus'
[ 35%] Built target Arcus
[100%] Built target python_module_Arcus
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /home/build/cura-build-environment-master/build/release/lib/python3/dist-packages/Arcus.so
-- Up-to-date: /home/build/cura-build-environment-master/build/release/lib/libArcus.a
-- Up-to-date: /home/build/cura-build-environment-master/build/release/include/Arcus/Socket.h
-- Up-to-date: /home/build/cura-build-environment-master/build/release/include/Arcus/SocketListener.h
-- Up-to-date: /home/build/cura-build-environment-master/build/release/include/Arcus/Types.h
-- Up-to-date: /home/build/cura-build-environment-master/build/release/include/Arcus/ArcusExport.h
-- Up-to-date: /home/build/cura-build-environment-master/build/release/include/Arcus/MessageTypeStore.h
-- Up-to-date: /home/build/cura-build-environment-master/build/release/include/Arcus/Error.h
-- Up-to-date: /home/build/cura-build-environment-master/build/release/lib/cmake/Arcus/Arcus-targets.cmake
-- Installing: /home/build/cura-build-environment-master/build/release/lib/cmake/Arcus/Arcus-targets-release.cmake
-- Up-to-date: /home/build/cura-build-environment-master/build/release/lib/cmake/Arcus/ArcusConfig.cmake
-- Up-to-date: /home/build/cura-build-environment-master/build/release/lib/cmake/Arcus/ArcusConfigVersion.cmake
[ 40%] Completed 'Arcus'
[ 40%] Built target Arcus
[ 40%] Built target projects

Yes you will find I compile arcus. but do not know why he did not generate a python .PYD?
So it is another module "Savitar", but I think their problems are so consistent, please!

Qt Feature Failed

Hi,
When building on Ubuntu, I have this error (when trying to build Qt).

ERROR: Feature 'pkg-config' was enabled, but the pre-condition 'tests.pkg-config' failed.
ERROR: Feature 'xcb' was enabled, but the pre-condition 'libs.xcb' failed.
ERROR: Feature 'opengl-desktop' was enabled, but the pre-condition '(config.win32 && !config.winrt && !features.opengles2 && (config.msvc || libs.opengl))
                          || (!config.watchos && !config.win32 && libs.opengl)' failed.
ERROR: Feature 'system-freetype' was enabled, but the pre-condition 'features.freetype && libs.freetype' failed.
ERROR: Feature 'fontconfig' was enabled, but the pre-condition '!config.win32 && !config.darwin && features.system-freetype && libs.fontconfig' failed.
ERROR: The OpenGL functionality tests failed!
You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.

I searched a lot but didn't find a solution. Does anyone knows how to fix this?

Windows Build issue with Arcus (cura_build_environment)

Hi,
I am not able to solve this issue regarding windows environment setup build
here's the error that i'm facing -
[ 45%] Performing build step for 'Arcus'

Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
Copyright (C) Microsoft Corporation. All rights reserved.

[ 5%] Building CXX object CMakeFiles/Arcus.dir/src/Socket.cpp.obj
cl : Command line warning D9002 : ignoring unknown option '-m64'
Socket.cpp
c:\curaenv\build\arcus-prefix\src\arcus\src\Socket_p.h(40): fatal error C1083: Cannot open include file: 'google/protobuf/message.h': No such file or directory
NMAKE : fatal error U1077: 'C:\PROGRA2\MICROS1.0\VC\bin\amd64\cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.

If some one can help me with this issue that would be great.
i am using windows64bit and vc2015 as per mentioned in the instructions.
i tried turning firewall off and giving write permissions to temp folder but that is not working.

These are the files that are already built
[ 0%] Built target OpenBLAS
[ 18%] Built target Python
[ 30%] Built target Protobuf
[ 41%] Built target Sip
[ 42%] Performing update step for 'Arcus'

Installing slycot on Anaconda3 for python 3.8 usage in Windows 10.

I’m trying to install slycot on Anaconda3. I downloaded gfortran for FORTRAN compiler and it’s still not working. I’ve pasted below what error pops up on my window. Please help I’ve been googling for a while and I can’t figure it out!

(base) PS C:\Users\kakis> pip install slycot
Collecting slycot
Using cached slycot-0.4.0.0.tar.gz (1.5 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Requirement already satisfied: numpy in c:\users\kakis\anaconda3\lib\site-packages (from slycot) (1.18.1)
Building wheels for collected packages: slycot
Building wheel for slycot (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\kakis\anaconda3\python.exe' 'C:\Users\kakis\anaconda3\lib\site-packages\pip_vendor\pep517_in_process.py' build_wheel 'C:\Users\kakis\AppData\Local\Temp\tmp234sqtun'
cwd: C:\Users\kakis\AppData\Local\Temp\pip-install-dqnc0dl6\slycot
Complete output (58 lines):
Not searching for unused variables given on the command line.
-- The C compiler identification is MSVC 19.16.27026.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- The Fortran compiler identification is Flang
CMake Error at CMakeLists.txt:4 (ENABLE_LANGUAGE):
The CMAKE_Fortran_COMPILER:

  C:/Users/kakis/anaconda3/Library/bin/flang.exe

is not a full path to an existing compiler tool.

Tell CMake where to find the compiler by setting either the environment
variable "FC" or the CMake cache entry CMAKE_Fortran_COMPILER to the full
path to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!
See also "C:/Users/kakis/AppData/Local/Temp/pip-install-dqnc0dl6/slycot/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/kakis/AppData/Local/Temp/pip-install-dqnc0dl6/slycot/_cmake_test_compile/build/CMakeFiles/CMakeError.log".
FC ('-DCMAKE_Fortran_COMPILER=', 'C:/Users/kakis/anaconda3/Library/bin/flang.exe')
F2PY ('-DF2PY_EXECUTABLE=', 'C:/Users/kakis/anaconda3/Scripts/f2py.exe')
NUMPY_INCLUDE ('-DNumPy_INCLUDE_DIR=', 'C:/Users/kakis/anaconda3/Include')
['-DSLYCOT_VERSION:STRING=0.4.0', '-DGIT_REVISION:STRING=ac0944b363a6cfcc0c3d5128cdd484d74173aa3b', '-DISRELEASE:STRING=True', '-DFULL_VERSION=0.4.0.gitac0944b', '-GNMake Makefiles', '-DCMAKE_Fortran_COMPILER=C:/Users/kakis/anaconda3/Library/bin/flang.exe', '-DF2PY_EXECUTABLE=C:/Users/kakis/anaconda3/Scripts/f2py.exe', '-DNumPy_INCLUDE_DIR=C:/Users/kakis/anaconda3/Include', '-DCMAKE_Fortran_SIMULATE_VERSION=5.0.0', '-DCMAKE_Fortran_COMPILER_ID=Flang', '-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON']


-- Trying "NMake Makefiles (Visual Studio 15 2017 v141)" generator






--







-- Trying "NMake Makefiles (Visual Studio 15 2017 v141)" generator - failure


scikit-build could not get a working generator for your system. Aborting build.

Building windows wheels for Python 3.7 requires Microsoft Visual Studio 2017.
Get it with "Visual Studio 2017":

https://visualstudio.microsoft.com/vs/


ERROR: Failed building wheel for slycot
Failed to build slycot
ERROR: Could not build wheels for slycot which use PEP 517 and cannot be installed directly

Qt-everywhere-opensource-src

Someone should submit a pull request replacing the Qt-everywhere-src-5.8.0.tar.xz links with Qt-everywhere-opensource-src-5.8.0.tar.xz, as this is the current link on the server

sqlite3 configure fails due to a wrong version of libtool

When building on a Arch based machine, where the libtool 2.4.6+gb88cebd5-10 is installed (provided by the base-devel group) the configure command fails and complains about aclocal.m4 not generated with the correct version.

Running aclocal solves this problem.

Compiling Qt 5.10.1 with glibc 2.31-1 fails

linux/stat.h:56:8: error: redefinition of 'struct statx_timestamp'
bits/statx.h:25:8: note: previous definition of 'struct statx_timestamp'
qfilesystemengine_unix.cpp:110:12: error: 'int renameat2(int, const char*, int, const char*, unsigned int)' was declared 'extern' and later 'static' [-fpermissive]

See issue Ultimaker/Cura#7076 and https://codereview.qt-project.org/c/qt/qtbase/+/236308/2

Applied the following changes to src/corelib/global/qconfig-bootstrapped.h in qtbase

97c97,101
< #define QT_FEATURE_renameat2 -1
---
> +ifdef __GLIBC_PREREQ
> + define QT_FEATURE_renameat2 (__GLIBC_PREREQ(2, 28) ? 1 : -1)
> +else
> + define QT_FEATURE_renameat2 -1
> +endif
100c104,108
< #define QT_FEATURE_statx -1
---
> +ifdef __GLIBC_PREREQ
> + define QT_FEATURE_statx (__GLIBC_PREREQ(2, 28) ? 1 : -1)
> +else
> + define QT_FEATURE_statx -1
> +endif

Applied the following changes to src/corelib/io/qfilesystemengine_unix.cpp in qtbase

105,106c105,106
< #  if !QT_CONFIG(statx) && defined(SYS_statx) && QT_HAS_INCLUDE(<linux/stat.h>)
< #    include <linux/stat.h>
---
> #if !QT_CONFIG(statx) && defined(SYS_statx)
> #   include <linux/stat.h>

build fails on aarch64/arm64 (zlib and OpenSSL)

./projects/zlib.cmake contains a platform dependent setting '--64'.

if(BUILD_OS_OSX OR BUILD_OS_LINUX)
    ExternalProject_Add(zlib
        URL https://www.zlib.net/zlib-1.2.11.tar.gz
        URL_HASH SHA256=c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1
        CONFIGURE_COMMAND ./configure --64 --prefix=${CMAKE_INSTALL_PREFIX}
        BUILD_COMMAND make
        INSTALL_COMMAND make install
        BUILD_IN_SOURCE 1
    )
endif()

When doing a native 64 bit build on aarch64 (rpi4 8GB) the configure command fails.
Removing '--64' allows the zlib build to continue.

OpenSSL :
in the file projects/openssl.cmake we find

 elseif(BUILD_OS_LINUX)
    set(_openssl_os linux-x86_64 enable-ec_nistp_64_gcc_128)
    set(_openssl_args no-ssl2 no-ssl3 no-zlib shared enable-cms)

When changed to :

 elseif(BUILD_OS_LINUX)
    set(_openssl_os linux-aarch64 enable-ec_nistp_64_gcc_128)
    set(_openssl_args no-zlib shared enable-cms)

that can build too.

Looks like a small set of changes to be able to build it on the Raspberry Pi 4 64bit and possibly other Aarch64 platforms.

It's still building and i hope to be able to report back on the results.

Could NOT find Python MacOS

Hello,
I'm trying to build cura-build-environment on my MAC and I have this error. Apparently it doesn't find Python3. However, at the begining of the build, Python3.5.2 was successfully built. I checked again and Python 3 is installed (and so is Python2) on my MAC.
Does Anyone knows how to fix this ?
Thanks

[ 76%] Performing configure step for 'Arcus'
CMake Warning (dev) at CMakeLists.txt:19 (set):
  implicitly converting '' to 'STRING' type.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at /usr/local/Cellar/cmake/3.14.4/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Python3 (missing: Development) (found suitable version
  "3.5.2", minimum required is "3.4")
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.14.4/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/Cellar/cmake/3.14.4/share/cmake/Modules/FindPython/Support.cmake:1177 (find_package_handle_standard_args)
  /usr/local/Cellar/cmake/3.14.4/share/cmake/Modules/FindPython3.cmake:181 (include)
  cmake/FindSIP.cmake:53 (find_package)
  CMakeLists.txt:38 (find_package)

Cannot build on macOS Mojave

#51 is still happening as of today
Tried on two mac computers, both on mojave with clean install.
Tested different solution, xcode / brew update and install.

This issue is different from #69

docker pull fails

docker fails when trying to install the cura-build-environment container from docker hub:

>> docker pull --all-tags ultimaker/cura-build-environment   
Error response from daemon: repository ultimaker/cura-build-environment not found: name unknown: repository name not known to registry

Next step after building this?

Newbie question: I've built this project successfully. What's my next step?

The README says "This environment can be used in combination with the cura-build repository to produce Cura executables for all three supported platforms.". But cura-build seems to be set up to build the same Cura dependencies as cura-build-environment, rather than use the stuff built by cura-build-environment. Seems like I'm missing something really basic.

No CMAKE_Fortran_COMPILER could be found

Upon entering 'cmake ..', I get the following error message:

-- The Fortran compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_Fortran_COMPILER could be found.

-- Configuring incomplete, errors occurred!
See also "C:/Users/anous/MultiNest/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/anous/MultiNest/build/CMakeFiles/CMakeError.log"

When I open the CMakeError.log file, here's what I find:
Compiling the Fortran compiler identification source file "CMakeFortranCompilerId.F" failed.
Compiler:
Build flags:
Id flags:

How do I resolve this? I was trying to use cmake to install MultiNest using these instructions.

Can't seem to get it to work. I'm not sure what other information I can give but please do ask whatever you need to help me resolve this issue.

Debug make fails on OSX: SciPy - library dfftpack has Fortran sources but no Fortran compiler found

Following the instructions on your README.md with OSX 10.11.6, Xcode 7.3, xcode-select 2343, cmake 3.10.0 and openssl 0.9.8zh...

$ cmake ../.. -DCMAKE_INSTALL_PREFIX=fullPathToBuildDebugFolder -DCMAKE_BUILD_TYPE=Debug  -DINCLUDE_DEVEL=ON
$ make
... TWO HOURS LATER ...
copying scipy/_lib/six.py -> build/lib.macosx-10.11-x86_64-3.5/scipy/_lib
running build_clib
customize UnixCCompiler
customize UnixCCompiler using build_clib
customize Gnu95FCompiler
Could not locate executable gfortran
Could not locate executable f95
customize NAGFCompiler
customize AbsoftFCompiler
Could not locate executable f90
Could not locate executable f77
customize IBMFCompiler
Could not locate executable xlf90
Could not locate executable xlf
customize IntelFCompiler
Could not locate executable ifort
Could not locate executable ifc
customize GnuFCompiler
Could not locate executable g77
customize G95FCompiler
Could not locate executable g95
customize PGroupFCompiler
Could not locate executable pgfortran
don't know how to compile Fortran code on platform 'posix'
building 'dfftpack' library
error: library dfftpack has Fortran sources but no Fortran compiler found
make[2]: *** [SciPy-prefix/src/SciPy-stamp/SciPy-build] Error 1
make[1]: *** [CMakeFiles/SciPy.dir/all] Error 2
make: *** [all] Error 2

Pretty frustrating, given the time this script ran.

Linux:No module named pip

I tried to build cura-build-environment on Linux machine(Lubuntu, Ubuntu and Debian9).
When is compiling Python package generate an error that the pip module is not installed.
I tried to change the version of python to be installed on python.cmake (3.5.2,3.5.4,3.5.7) but nothing, the error persist. In OS is installed pip.
Thanks

Could not extract tarball filename from url:

CMake Error at /usr/share/cmake-2.8/Modules/ExternalProject.cmake:1401 (message):
Could not extract tarball filename from url:
https://download.qt.io/archive/qt/5.10/5.10.1/single/qt-everywhere-src-5.10.1.tar.xz
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/ExternalProject.cmake:1805 (_ep_add_download_command)
projects/qt.cmake:74 (ExternalProject_Add)
CMakeLists.txt:42 (include)

I can use this link with "wget" on terminal, but it will call error if i straightly use Cmake.

build errors with Linux

When i try to build cura-build-environment with Lubuntu(cmake 3.6) i have this error:

utente@utente-pc:/media/utente/Backups/git/cura-build-environment/build$ sudo make
[sudo] password di utente:
[ 7%] Built target xz
[ 8%] Performing download step (download, verify and extract) for 'Qt'
-- verifying file...
file='/media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/qt-everywhere-src-5.10.1.tar.xz'
-- File already exists and hash match (skip download):
file='/media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/qt-everywhere-src-5.10.1.tar.xz'
MD5='7e167b9617e7bd64012daaacb85477af'
-- extracting...
src='/media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/qt-everywhere-src-5.10.1.tar.xz'
dst='/media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/Qt'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 9%] No patch step for 'Qt'
[ 10%] No update step for 'Qt'
[ 11%] Performing configure step for 'Qt'

  • cd qtbase
  • /media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/Qt/qtbase/configure -top-level -release -prefix /media/utente/Backups/git/cura-build-environment/build/install -archdatadir /media/utente/Backups/git/cura-build-environment/build/install/lib -datadir /media/utente/Backups/git/cura-build-environment/build/install/share -opensource -confirm-license -nomake examples -nomake tests -nomake tools -no-cups -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sql-tds -skip qtconnectivity -skip qtdoc -skip qtlocation -skip qtmultimedia -skip qtscript -skip qtsensors -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtandroidextras -skip qtactiveqt -skip qttools -skip qtxmlpatterns -skip qt3d -skip qtcanvas3d -skip qtserialport -skip qtwayland -skip qtgamepad -skip qtscxml -no-gtk -no-rpath -qt-xcb
    Creating qmake...
    /media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/Qt/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:101:12: error: ‘int renameat2(int, const char*, int, const char*, unsigned int)’ was declared ‘extern’ and later ‘static’ [-fpermissive]
    static int renameat2(int oldfd, const char oldpath, int newfd, const char newpath, unsigned flags)
    ^~~~~~~~~
    In file included from /usr/include/c++/8/cstdio:42,
    from /usr/include/c++/8/ext/string_conversions.h:43,
    from /usr/include/c++/8/bits/basic_string.h:6391,
    from /usr/include/c++/8/string:52,
    from /media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/Qt/qtbase/include/QtCore/../../src/corelib/tools/qbytearray.h:52,
    from /media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/Qt/qtbase/include/QtCore/qbytearray.h:1,
    from /media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/Qt/qtbase/include/QtCore/../../src/corelib/tools/qstring.h:49,
    from /media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/Qt/qtbase/include/QtCore/qstring.h:1,
    from /media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/Qt/qtbase/include/QtCore/../../src/corelib/io/qiodevice.h:50,
    from /media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/Qt/qtbase/include/QtCore/qiodevice.h:1,
    from /media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/Qt/qtbase/include/QtCore/../../src/corelib/io/qfiledevice.h:43,
    from /media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/Qt/qtbase/include/QtCore/qfiledevice.h:1,
    from /media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/Qt/qtbase/src/corelib/io/qfile.h:44,
    from /media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/Qt/qtbase/src/corelib/io/qfilesystemengine_p.h:54,
    from /media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/Qt/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:43:
    /usr/include/stdio.h:164:12: note: previous declaration of ‘int renameat2(int, const char
    , int, const char
    , unsigned int)’
    extern int renameat2 (int __oldfd, const char __old, int __newfd,
    ^~~~~~~~~
    In file included from /media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/Qt/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:106:
    /usr/include/linux/stat.h:56:8: error: redefinition of ‘struct statx_timestamp’
    struct statx_timestamp {
    ^~~~~~~~~~~~~~~
    In file included from /usr/include/x86_64-linux-gnu/sys/stat.h:446,
    from /media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/Qt/qtbase/mkspecs/linux-g++/qplatformdefs.h:75,
    from /media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/Qt/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:42:
    /usr/include/x86_64-linux-gnu/bits/statx.h:25:8: note: previous definition of ‘struct statx_timestamp’
    struct statx_timestamp
    ^~~~~~~~~~~~~~~
    In file included from /media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/Qt/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:106:
    /usr/include/linux/stat.h:99:8: error: redefinition of ‘struct statx’
    struct statx {
    ^~~~~
    In file included from /usr/include/x86_64-linux-gnu/sys/stat.h:446,
    from /media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/Qt/qtbase/mkspecs/linux-g++/qplatformdefs.h:75,
    from /media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/Qt/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:42:
    /usr/include/x86_64-linux-gnu/bits/statx.h:36:8: note: previous definition of ‘struct statx’
    struct statx
    ^~~~~
    /media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/Qt/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:107:12: error: ‘int statx(int, const char
    , int, unsigned int, statx*)’ was declared ‘extern’ and later ‘static’ [-fpermissive]
    static int statx(int dirfd, const char pathname, int flag, unsigned mask, struct statx statxbuf)
    ^~~~~
    In file included from /usr/include/x86_64-linux-gnu/sys/stat.h:446,
    from /media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/Qt/qtbase/mkspecs/linux-g++/qplatformdefs.h:75,
    from /media/utente/Backups/git/cura-build-environment/build/Qt-prefix/src/Qt/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:42:
    /usr/include/x86_64-linux-gnu/bits/statx.h:87:5: note: previous declaration of ‘int statx(int, const char
    , int, unsigned int, statx
    )’
    int statx (int __dirfd, const char *__restrict __path, int __flags,
    ^~~~~
    make[3]: *** [Makefile:429: qfilesystemengine_unix.o] Error 1
    make[2]: *** [CMakeFiles/Qt.dir/build.make:109: Qt-prefix/src/Qt-stamp/Qt-configure] Error 2
    make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/Qt.dir/all] Error 2
    make: *** [Makefile:84: all] Error 2

How can i fix it ?
Thanks

Problem with PythonSix

Hi,
wanted to build the environment build for cura-build. Get the trouble:
$cmake ..
fine
$sudo make
sudo needed for PythonSix because of following error by using only make:
/usr/local/bin/python3: can't open file 'setup.py': [Errno 13] Permission denied
using sudo make:
error: option --single-version-externally-managed not recognized
CMakeFiles/PythonSix.dir/build.make:73: recipe for target 'PythonSix-prefix/src/PythonSix-stamp/PythonSix-install' failed
etc.
Some say it is a trouble with setuptools of python. Installed it to python2.7, python3.5 (python is up to date). Strange is, that bevor starting this environment build I already had installed python3.5 and QT to /usr/lib/, which is for debian the standard installation dir. But the environmental-build wants to build python and qt anyway into /usr/local/ ... . Why does it not recognize the already installed python/qt? The cura-build recognizes it in the building process (of course not finishing it, because of dependencies).
Someone have ideas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.