Ultracopier icon indicating copy to clipboard operation
Ultracopier copied to clipboard

can not build in Linux

Open adcdam opened this issue 2 years ago • 7 comments

How can i fix this?

QtCore -I. -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o FacilityEngine.o FacilityEngine.cpp
FacilityEngine.cpp: En la función miembro ‘virtual void* FacilityEngine::prepareOpusAudio(const std::string&, QBuffer&) const’:
FacilityEngine.cpp:301:25: error: ‘QCoreApplication’ no se ha declarado
  301 |         QString appPath=QCoreApplication::applicationDirPath();
      |                         ^~~~~~~~~~~~~~~~
make: *** [Makefile:2857: FacilityEngine.o] Error 1

adcdam avatar Sep 16 '22 04:09 adcdam

Hi, Can you details me what you try compile and how? missing: #include <QCoreApplication>

alphaonex86 avatar Sep 16 '22 11:09 alphaonex86

For me it is similar: OS: Ubuntu 22.04 1.)

sudo apt install make gcc qtmultimedia5-dev libogg-dev libopus-dev libgl1-mesa-dev

2.) Download zip of Master 3.) Extracting 4.) change to folder 5.) building

find ./ -name '*.ts' -exec lrelease {} \;
qmake ultracopier.pro
make -j$(nproc)

6.) Error message

In file included from libogg/bitwise.c:21:
/usr/include/string.h:26:10: fatal error: bits/libc-header-start.h: No such file or directory
   26 | #include <bits/libc-header-start.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from libogg/framing.c:23:
/usr/include/stdlib.h:26:10: fatal error: bits/libc-header-start.h: No such file or directory
   26 | #include <bits/libc-header-start.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from opusfile/internal.h:31,
                 from opusfile/info.c:16:
/usr/include/stdlib.h:26:10: fatal error: bits/libc-header-start.h: No such file or directory
   26 | #include <bits/libc-header-start.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from opusfile/internal.h:31,
                 from opusfile/internal.c:16:
/usr/include/stdlib.h:26:10: fatal error: bits/libc-header-start.h: No such file or directory
   26 | #include <bits/libc-header-start.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from opusfile/internal.h:31,
                 from opusfile/opusfile.c:21:
/usr/include/stdlib.h:26:10: fatal error: bits/libc-header-start.h: No such file or directory
   26 | #include <bits/libc-header-start.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:10274: bitwise.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:10310: info.o] Error 1
make: *** [Makefile:10289: framing.o] Error 1
make: *** [Makefile:10351: opusfile.o] Error 1
In file included from libopus/silk/SigProc_FIX.h:40,
                 from libopus/silk/ana_filt_bank_1.c:32:
/usr/include/string.h:26:10: fatal error: bits/libc-header-start.h: No such file or directory
   26 | #include <bits/libc-header-start.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:10328: internal.o] Error 1
make: *** [Makefile:10416: ana_filt_bank_1.o] Error 1
In file included from opusfile/internal.h:31,
                 from opusfile/stream.c:21:
/usr/include/stdlib.h:26:10: fatal error: bits/libc-header-start.h: No such file or directory
   26 | #include <bits/libc-header-start.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:10372: stream.o] Error 1
In file included from libopus/silk/SigProc_FIX.h:40,
                 from libopus/silk/inner_prod_aligned.c:32:
/usr/include/string.h:26:10: fatal error: bits/libc-header-start.h: No such file or directory
   26 | #include <bits/libc-header-start.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:10460: inner_prod_aligned.o] Error 1

StefanPofahl avatar May 07 '23 05:05 StefanPofahl

Try after: apt-get install build-essential gcc automake bc libncurses-dev flex bison libssl-dev

alphaonex86 avatar May 07 '23 13:05 alphaonex86

Thanks! Unfortunatly, the error message is still the same.

StefanPofahl avatar May 08 '23 04:05 StefanPofahl

Maybe this can help: https://askubuntu.com/questions/1387067/usr-include-stdio-h2710-fatal-error-bits-libc-header-start-h-no-such-file Else insert as the first line other-pro/ultracopier-core.pro: DEFINES += NOAUDIO this will try compile with audio

alphaonex86 avatar May 08 '23 11:05 alphaonex86

Thanks, for the tip! - Now it looks a bit more promissing during compilation, but it was not successfull at the end ... :-( The error message is now:

In file included from lib/qt-tar-xz/xz_config.h:22,
                 from lib/qt-tar-xz/xz_private.h:53,
                 from lib/qt-tar-xz/xz_crc32.c:18:
/usr/include/stdlib.h:26:10: fatal error: bits/libc-header-start.h: No such file or directory
   26 | #include <bits/libc-header-start.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:12500: xz_crc32.o] Error 1
make: *** Waiting for unfinished jobs....

Could it make sense to specify upfront the correct python-skript interpreter? I have Julia installed on my machine, and it seems, as if the python interpreter included in Julia is taken ...

StefanPofahl avatar May 08 '23 19:05 StefanPofahl

Same seam be same error, but this part is needed. python have not link to this project because this proyecto don't have part into python

alphaonex86 avatar May 08 '23 21:05 alphaonex86