Git Product home page Git Product logo

Comments (1)

DapDeveloper avatar DapDeveloper commented on August 27, 2024

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

from cura-build-environment.

Related Issues (20)

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.