g++: error: unrecognized command line option ‘-stdlib=libc++’ #1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello there,
I want to install this application because it, maybe, will be my solution to finally disable my dedicated GPU without blacklisting or modesetting something.
OS: Kubuntu 19.10.
I found this error message while creating makefile:
Thanks in advice!
Sorry for late reply, I hadn't checked for messages, I am aware of this, all you need to do is open file "clangxx.inc" in a text editor and remove "-stdlib=libc++" from line 2, so currently you would have this:
QMAKE_CXXFLAGS += -stdlib=libc++ -std=c++11 -nostdinc++ # -stdlib=libc++ -I/usr/lib/llvm-7/include/c++/v1 -L/usr/lib/llvm-7/lib -lc++ -Wl,-rpath,/usr/lib/llvm-7/lib
replace that with:
QMAKE_CXXFLAGS += -std=c++11 -nostdinc++
That should do if all of the dependencies are met. I will be creating an AppImage very soon, I am just working on a different really cool project (nearly done) which would be open source.
Also, I just updated Device Manager 4 Linux, fixing a search issue, please redownload the project.
Let me know whether this fixes your issue.
Also, do not disable anything on start up before first trying it out for the current session as shown in the video. Also, if you mess something up, make sure you know how to fix it as I won't be able to assist you.
Another thing, you can run the binary from a terminal emulator if you want to see what's happening and what scripts are about to run. This allows you to check things out before agreeing to message boxes to proceed.
I hope this helps.
@neolinux.tech
I've edited "clangxx.inc" this is his build:
That's one of the dependencies that's required.
You need to install libsigc++-2.0-dev.
I will be creating an official AppImage soon so you won't have to worry about compiling it manually. Sorry for the delays for this. I am just busy with a different project right now but when I am done with it, I will be releasing both projects at the same time.
-.-"
The compiler is complaining it cannot find the following:
<sigc++/signal.h>
Type
find /usr -name "signal.h" | grep sigc++
and post the output.On my system, this is what it returns:
/usr/include/sigc++-2.0/sigc++/signal.h
You would need to add the path to
/usr/include/sigc++-2.0/sigc++
but without thesigc++
as an include path to the compiler. You can do this by openinglibcxx.inc
in a text editor and adding it there.Delete the last two lines starting with
#
inlibcxx.inc
and then if your path tosigc++/signal.h
is/usr/include/sigc++-2.0
, you would add the following:INCLUDEPATH += /usr/include/sigc++-2.0 \
So your
libcxx.inc
would look like this:If you give me the output of
find /usr -name "signal.h" | grep sigc++
I will try to show you how yourlibcxx.inc
should look.Hello @neolinux.tech, thank you for your support. I very appreciate that.
This is my
find /usr -name "signal.h" | grep sigc++
output:/usr/include/sigc++-2.0/sigc++/signal.h
.This is my libcxx.inc output:
Then:
It complains it cannot find a header file named list but that's weird because my version of signal.h does not have references to that file.
Which Linux distribution are you using? I can install it in a VM and then install sigc++ and see what it installs. I want to try to duplicate the error.
Btw, you should not be running make by itself with
sudo
I'm sorry @neolinux.tech for my inactivity, I will wait the AppImage for more compatibility. My Distro is Kubuntu 19.10. Have a nice day.