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

install error #98

Open
huilin-al opened this issue Sep 16, 2020 · 8 comments
Open

install error #98

huilin-al opened this issue Sep 16, 2020 · 8 comments

Comments

@huilin-al
Copy link

/usr/include/c++/9/cstdlib:75:15: fatal error: stdlib.h: 没有那个文件或目录
75 | #include_next <stdlib.h>
| ^~~~~~~~~~
compilation terminated.
make: *** [Makefile:1234:main.o] 错误 1

@drelo
Copy link

drelo commented Sep 24, 2020

Hi, I am using Fedora and Qt and I got the same error. Any way to handle this? Thanks.

@huilin-al
Copy link
Author

Hi,This is due to the fact that gcc7 has been included in the libstdc .h for better optimization, C Library's header file stdlib.h uses Include_next, and include_next is sensitive to the gcc system header file path.
Solve:Add the following next line to the bandage.pro file QMAKE_CFLAGS_ISYSTEM -I.

@drelo
Copy link

drelo commented Sep 25, 2020 via email

@huilin-al
Copy link
Author

Can you show me all your installation steps so that I know which step you take is different from mine, and my bandage can compile normally by additioning a line.

@drelo
Copy link

drelo commented Sep 28, 2020

Thanks for your help. Sorry for the late reply I didn't have access to this machine and the graphical interface during the weekend,
I am using Qt Creator 4.13.1 and I used git clone https://github.com/rrwick/Bandage.git to download Bandage, I edited the .pro file as in the attachment [I just changed the extension] and then I opened the Qt software and I noticed the same info 'Extra characters after text expression'

I am using Fedora 32. Let me know any additional details needed for this.

Bandage.pro.txt

The Qt editor highlights the extra line How can I fix this?

bandage

@huilin-al
Copy link
Author

hi,I installed it like this
sudo apt-get update
sudo apt-get install build-essential git qtbase5-dev libqt5svg5-dev
git clone https://github.com/rrwick/Bandage.git
export QT_SELECT=5
qmake
make
In the bandage.pro file, add the following line QMAKE_CFLAGS_ISYSTEM = -I
sudo make install
Bandage --help
I don't know if I can help you

@AdamVS
Copy link

AdamVS commented Nov 14, 2020

adding the line (below) to the bandage.pro file works for me to correct the stdlib.h fatal error (in Ubuntu 18.04)
QMAKE_CFLAGS_ISYSTEM = -I

@matthewstuartedwards
Copy link

I was having the stdlib.h No such file error as well.

For me, commenting the unix:INCLUDEPATH += /usr/include/ from the Bandage.pro file fixed the problem for me. Re-run qmake after making the change, then make.

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

4 participants