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

Problems during make: missing file #24

Open
tcimoli opened this issue Aug 21, 2017 · 11 comments
Open

Problems during make: missing file #24

tcimoli opened this issue Aug 21, 2017 · 11 comments

Comments

@tcimoli
Copy link

tcimoli commented Aug 21, 2017

Hello,
I have downloaded the zipped project and unzipped it.
Then, upon running "make all", I get the error:

g++ -std=c++14 -c -o Disassm.o Disassm.cpp
In file included from Disassm.cpp:18:0:
Porosity.h:22:36: fatal error: boost/dynamic_bitset.hpp: No such file or directory
compilation terminated.
: recipe for target 'Disassm.o' failed
make: *** [Disassm.o] Error 1


Operative system: Ubuntu 16.04 LTS

@tcimoli tcimoli changed the title Problems during make Problems during make: missing file Aug 21, 2017
@tcimoli
Copy link
Author

tcimoli commented Aug 21, 2017

Actually, upon further investigation, it seems that the whole directory "boost", needed by Porosity.h, is missing.

@braydonf
Copy link

braydonf commented Aug 21, 2017

You need to have boost installed, however, the necessary boost version (> 1.58) isn't included in Ubuntu 16.04 LTS, so apt-get install libboost-all-dev won't install the necessary version.

So boost will need to be installed or built from source, I added details here.

@tcimoli
Copy link
Author

tcimoli commented Aug 22, 2017

Thank you.
I followed your instructions. As a minor, you wrote "./bootstap.sh" instead of "./bootstrap.sh ".
The /b2 install went fine.

But then, from which directory do I have to run ./autogen.sh +./configure + make ?

@braydonf
Copy link

I added autotools build to my branch, so the root of that repo.

@tcimoli
Copy link
Author

tcimoli commented Aug 28, 2017

I do not have any file called autogen.sh or configure or make in the libbost pakage. What are they referred to? Also I have checked at the installation guide provided with libbost (index.html) and there is no mention of them. I do not understand what they are.

To make a different try, I have just added a link to libbost to my porosity directory:
.....porosity-master/porosity/porosity/ln -s ~/boost_1_64_0 boost
and now, the porosity make works.

Are the ./autogen.sh +./configure + make really necessary?

@braydonf
Copy link

They are in my branch here https://github.com/braydonf/porosity

@tcimoli
Copy link
Author

tcimoli commented Aug 29, 2017

Oh, I see. But they are not in the zip I downloaded.
I thought it was the same, to download the zip or the branch version -- a part from keeping updated obviously.

Is the zip package any different? Do you advise to download the branch version?

@tcimoli
Copy link
Author

tcimoli commented Aug 29, 2017

Also, I think it might be useful to mention that './autogen.sh' +'./configure' + 'make' is referred to porosity and not to boost. (here https://github.com/braydonf/porosity#debian-ubuntu-1604)

@tcimoli
Copy link
Author

tcimoli commented Aug 29, 2017

I noticed that the repo you mention https://github.com/braydonf/porosity is not the one we are right now https://github.com/comaeio/porosity and they contain different files.

Why are there two ? Which one is the right one?

@samholmes
Copy link

How do I install boost on macOS?

@tuancm
Copy link

tuancm commented Dec 1, 2017

All I had to do before running make is to install boost on macOS:
brew install boost

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