Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not build in Linux #71

Open
adcdam opened this issue Sep 16, 2022 · 7 comments
Open

can not build in Linux #71

adcdam opened this issue Sep 16, 2022 · 7 comments

Comments

@adcdam
Copy link

adcdam commented Sep 16, 2022

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

@alphaonex86
Copy link
Owner

alphaonex86 commented Sep 16, 2022

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

@StefanPofahl
Copy link

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

@alphaonex86
Copy link
Owner

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

@StefanPofahl
Copy link

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

@alphaonex86
Copy link
Owner

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

@StefanPofahl
Copy link

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 ...

@alphaonex86
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants