c++config.h is missing

Discuss running non-Linux applications and plugins on Linux, for example via wine

Moderators: MattKingUSA, khz

Post Reply
User avatar
LinMusGuy
Established Member
Posts: 551
Joined: Wed Feb 27, 2019 9:33 pm
Has thanked: 22 times
Been thanked: 2 times

c++config.h is missing

Post by LinMusGuy »

This is where building Carla went wrong:

Code: Select all

make wine32
make -C source/jackbridge wine32
make[1]: Entering directory '/home/bart/SomeProgs/Carla-build/Carla-main/source/jackbridge'
Compiling JackBridge1.cpp (wine32)
In file included from ../includes/CarlaDefines.h:92:0,
                 from JackBridge.hpp:32,
                 from JackBridge1.cpp:17:
/usr/include/c++/7/cstddef:49:10: fatal error: bits/c++config.h: No such file or directory
 #include <bits/c++config.h>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
winegcc: gcc failed
Makefile:233: recipe for target '../../build/jackbridge/Release/JackBridge1.cpp.wine32.o' failed
make[1]: *** [../../build/jackbridge/Release/JackBridge1.cpp.wine32.o] Error 2
make[1]: Leaving directory '/home/bart/SomeProgs/Carla-build/Carla-main/source/jackbridge'
Makefile:363: recipe for target 'wine32' failed
make: *** [wine32] Error 2
How to solve it?
User avatar
LinMusGuy
Established Member
Posts: 551
Joined: Wed Feb 27, 2019 9:33 pm
Has thanked: 22 times
Been thanked: 2 times

Re: c++config.h is missing

Post by LinMusGuy »

no-file.png
no-file.png (49.03 KiB) Viewed 11276 times

Indeed - the c++config.h file is missing. But there is a warning file instead, is that relevant? I have Linux Mint 19.3 Tricia.
tavasti
Established Member
Posts: 2047
Joined: Tue Feb 16, 2016 6:56 am
Location: Kangasala, Finland
Has thanked: 369 times
Been thanked: 208 times
Contact:

Re: c++config.h is missing

Post by tavasti »

I seem to have it from these packages:

Code: Select all

$ dpkg -S  c++config
libsigc++-2.0-dev:amd64: /usr/lib/x86_64-linux-gnu/sigc++-2.0/include/sigc++config.h
g++-mingw-w64-x86-64: /usr/lib/gcc/x86_64-w64-mingw32/7.3-posix/include/c++/x86_64-w64-mingw32/bits/c++config.h
lib32stdc++-7-dev: /usr/include/x86_64-linux-gnu/c++/7/32/bits/c++config.h
g++-mingw-w64-i686: /usr/lib/gcc/i686-w64-mingw32/7.3-win32/include/c++/i686-w64-mingw32/bits/c++config.h
libstdc++-7-dev:amd64: /usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h
g++-mingw-w64-x86-64: /usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/include/c++/x86_64-w64-mingw32/bits/c++config.h
g++-mingw-w64-i686: /usr/lib/gcc/i686-w64-mingw32/7.3-posix/include/c++/i686-w64-mingw32/bits/c++config.h
libx32stdc++-7-dev: /usr/include/x86_64-linux-gnu/c++/7/x32/bits/c++config.h
And because you are compiling carla, most likely those mingw packages are also relevant. Ubuntu 18.04

Linux veteran & Novice musician

Latest track: https://www.youtube.com/watch?v=ycVrgGtrBmM

User avatar
LinMusGuy
Established Member
Posts: 551
Joined: Wed Feb 27, 2019 9:33 pm
Has thanked: 22 times
Been thanked: 2 times

Re: c++config.h is missing

Post by LinMusGuy »

I have tried everything I could find on the internet now, but I still don't know how get the correct c++config.h file back. I have also reproduced the very same problem on my laptop computer. So maybe there isn't even supposed be such a c++config.h file there?

What do you suggest that I try next?
tavasti
Established Member
Posts: 2047
Joined: Tue Feb 16, 2016 6:56 am
Location: Kangasala, Finland
Has thanked: 369 times
Been thanked: 208 times
Contact:

Re: c++config.h is missing

Post by tavasti »

LinMusGuy wrote: Tue Apr 27, 2021 8:11 pm I have tried everything I could find on the internet now, but I still don't know how get the correct c++config.h file back. I have also reproduced the very same problem on my laptop computer. So maybe there isn't even supposed be such a c++config.h file there?

What do you suggest that I try next?
Because it fails on building wine32 stuff, in sure relates to wine32-development or g++-mingw-w64-i686 packages. Maybe packages missing, or paths in configure/makefile/somewhere wrong.

And I have dim memory that when I was compiling carla myself, I had to edit Makefile between compiling win32 and win64 gateways. At least on those times, there was no instructions how that should be built. Are you sure you can't use pre-built packages?

Linux veteran & Novice musician

Latest track: https://www.youtube.com/watch?v=ycVrgGtrBmM

j_e_f_f_g
Established Member
Posts: 2032
Joined: Fri Aug 10, 2012 10:48 pm
Been thanked: 357 times

Re: c++config.h is missing

Post by j_e_f_f_g »

LinMusGuy wrote: What do you suggest that I try next?
sfizz

Author of BackupBand at https://sourceforge.net/projects/backupband/files/
My fans show their support by mentioning my name in their signature.

User avatar
LinMusGuy
Established Member
Posts: 551
Joined: Wed Feb 27, 2019 9:33 pm
Has thanked: 22 times
Been thanked: 2 times

Re: c++config.h is missing

Post by LinMusGuy »

The strange thing here is that VST3 plugins generated by Camomile are not working in my Carla stand-alone (Failed to load file. Unknown file extension), but do work in Carla Patchbay inside LMMS AppImage...
Last edited by LinMusGuy on Wed Apr 28, 2021 11:10 am, edited 1 time in total.
tavasti
Established Member
Posts: 2047
Joined: Tue Feb 16, 2016 6:56 am
Location: Kangasala, Finland
Has thanked: 369 times
Been thanked: 208 times
Contact:

Re: c++config.h is missing

Post by tavasti »

j_e_f_f_g wrote: Wed Apr 28, 2021 9:21 am
LinMusGuy wrote: What do you suggest that I try next?
sfizz
That doesn't run any plugins, and most likely compiling sfz support for carla does not need win32

Linux veteran & Novice musician

Latest track: https://www.youtube.com/watch?v=ycVrgGtrBmM

User avatar
LinMusGuy
Established Member
Posts: 551
Joined: Wed Feb 27, 2019 9:33 pm
Has thanked: 22 times
Been thanked: 2 times

Re: c++config.h is missing

Post by LinMusGuy »

I build Carla from the git repository using "sudo" everywhere, and now at least I can run (some) VST3 plugins again. But there was still one remaining error:

Code: Select all

Compiling CarlaStandalone.cpp (posix32 bridge)
Linking carla-bridge-posix32
/usr/bin/ld: skipping incompatible //usr/lib/x86_64-linux-gnu/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible //usr/lib/x86_64-linux-gnu/libX11.a when searching for -lX11
/usr/bin/ld: cannot find -lX11
/usr/bin/ld: skipping incompatible //usr/lib/x86_64-linux-gnu/libfreetype.so when searching for -lfreetype
/usr/bin/ld: skipping incompatible //usr/lib/x86_64-linux-gnu/libfreetype.a when searching for -lfreetype
/usr/bin/ld: cannot find -lfreetype
/usr/bin/ld: skipping incompatible //usr/lib/x86_64-linux-gnu/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible //usr/lib/x86_64-linux-gnu/libX11.a when searching for -lX11
/usr/bin/ld: cannot find -lX11
/usr/bin/ld: skipping incompatible //usr/lib/x86_64-linux-gnu/libXext.so when searching for -lXext
/usr/bin/ld: skipping incompatible //usr/lib/x86_64-linux-gnu/libXext.a when searching for -lXext
/usr/bin/ld: cannot find -lXext
/usr/bin/ld: skipping incompatible //usr/lib/x86_64-linux-gnu/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible //usr/lib/x86_64-linux-gnu/libX11.a when searching for -lX11
/usr/bin/ld: cannot find -lX11
collect2: error: ld returned 1 exit status
Makefile:275: recipe for target '../../bin/carla-bridge-posix32' failed
make[1]: *** [../../bin/carla-bridge-posix32] Error 1
make[1]: Leaving directory '/home/bart/Carla/source/bridges-plugin'
Makefile:259: recipe for target 'posix32' failed
make: *** [posix32] Error 2

Oh yes - and I removed Clang as I read that that might cause some trouble.
oddy.o.lynx
Established Member
Posts: 115
Joined: Sat Jun 30, 2018 2:54 am
Has thanked: 22 times
Been thanked: 22 times

Re: c++config.h is missing

Post by oddy.o.lynx »

I would recommend not using sudo to build, leave that for installation only

your problem is you are building 32 bit and it is looking in 64 bit libraries...

you'll need to enable multilib and get the required multilib c++ libs and other dependencies...
spamatica
Established Member
Posts: 573
Joined: Mon Feb 08, 2010 10:38 am
Has thanked: 80 times
Been thanked: 97 times

Re: c++config.h is missing

Post by spamatica »

Old thread but thought I would comment for future readers.

Installing g++-multilib worked here on Kubuntu 20.04. Wasn't building the same package but wine related so probably similar.
MusE DAW
Post Reply