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

Compile Error #4

Closed
dermarder opened this issue Nov 10, 2014 · 15 comments
Closed

Compile Error #4

dermarder opened this issue Nov 10, 2014 · 15 comments

Comments

@dermarder
Copy link

Hey!
Im get an error when i try to compile PersonalHomeKit on my Raspberry Pi.
Can anyone help me?

Thank you very much.

gcc -O0 -w -o ed25519.o -c ed25519-donna/ed25519.c
In file included from ed25519-donna/ed25519.c:19:0:
ed25519-donna/ed25519-randombytes.h:83:26: fatal error: openssl/rand.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
makefile:27: recipe for target 'ed25519.o' failed
make: *** [ed25519.o] Error 1

@elvisimprsntr
Copy link

Did you follow the instructions on the wiki page?

E

On Nov 10, 2014, at 15:21, dermarder notifications@github.com wrote:

Hey!
Im get an error when i try to compile PersonalHomeKit on my Raspberry Pi.
Can anyone help me?

Thank you very much.

gcc -O0 -w -o ed25519.o -c ed25519-donna/ed25519.c
In file included from ed25519-donna/ed25519.c:19:0:
ed25519-donna/ed25519-randombytes.h:83:26: fatal error: openssl/rand.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
makefile:27: recipe for target 'ed25519.o' failed
make: *** [ed25519.o] Error 1


Reply to this email directly or view it on GitHub.

@dermarder
Copy link
Author

Yes, i did.

I installed OpenSSL, avahi and clang.
Then i configured the Configuration.h file following the instructions from the readme file.

Any ideas?

@elvisimprsntr
Copy link

Actually don't need clang since the repo switch to gcc/g++

Based on that I know you didn't follow the instructions for installing on a RPi. You need to update gcc to 4.8. I also recommend not making any changes to the repo, and compile as is first.

https://gist.github.com/86315ed3855cf72ed63e

@dermarder
Copy link
Author

Oh, my fault!
I had no idea that a wiki exists.
Thank you very much

@dermarder dermarder reopened this Nov 10, 2014
@dermarder
Copy link
Author

Well, i did all the Steps and now im getting this error:

gcc -O0 -w -o ed25519.o -c ed25519-donna/ed25519.c
In file included from ed25519-donna/ed25519.c:19:0:
ed25519-donna/ed25519-randombytes.h:83:26: fatal error: openssl/rand.h: Datei oder Verzeichnis nicht gefunden
#include <openssl/rand.h>
^
compilation terminated.
makefile:27: recipe for target 'ed25519.o' failed
make: *** [ed25519.o] Error 1

Can you help me?
Thanks

@elvisimprsntr
Copy link

Did you clone the repo and compile before making any changes?

E

On Nov 10, 2014, at 16:02, dermarder notifications@github.com wrote:

Well, i did all the Steps and now im getting this error:

gcc -O0 -w -o ed25519.o -c ed25519-donna/ed25519.c
In file included from ed25519-donna/ed25519.c:19:0:
ed25519-donna/ed25519-randombytes.h:83:26: fatal error: openssl/rand.h: Datei oder Verzeichnis nicht gefunden
#include
^
compilation terminated.
makefile:27: recipe for target 'ed25519.o' failed
make: *** [ed25519.o] Error 1

Can you help me?
Thanks


Reply to this email directly or view it on GitHub.

@dermarder
Copy link
Author

Yes, i deleted the whole folder and did all the steps explained in the wiki.
The configuration file is untouched.

@elvisimprsntr
Copy link

Try cloning an old commit from yesterday. I'll try the new commit once I get home

E

On Nov 10, 2014, at 16:11, dermarder notifications@github.com wrote:

Yes, i deleted the whole folder and did all the steps explained in the wiki.
The configuration file is untouched.


Reply to this email directly or view it on GitHub.

@elvisimprsntr
Copy link

I had no trouble compiling the latest commit.

Post results from the following commands.
uname -a
gcc --version
g++ --version

UPDATE

openssl version
avahi-daemon --version

@etwmc
Copy link
Owner

etwmc commented Nov 12, 2014

dermarder: Do you still have compile problem?

@dermarder
Copy link
Author

Yes im still having the problem.

pi@pi ~ $ uname -a
Linux pi 3.12.28+ #709 PREEMPT Mon Sep 8 15:28:00 BST 2014 armv6l GNU/Linux

pi@pi ~ $ gcc --version
gcc (Raspbian 4.8.2-21~rpi3rpi1) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

pi@pi ~ $ g++ --version
g++ (Raspbian 4.8.2-21~rpi3rpi1) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

pi@pi ~ $ openssl version
OpenSSL 1.0.1e 11 Feb 2013

pi@pi ~ $ avahi-daemon --version
avahi-daemon 0.6.31

@etwmc
Copy link
Owner

etwmc commented Nov 12, 2014

Eng translate:
ed25519-donna/ed25519-randombytes.h:83:26: fatal error: openssl/rand.h: File or directory not found
So your openssl is missing a header. Try reinstall openssl?
P.S. In Ubuntu, OpenSSL update to 1.0.1f

@dermarder
Copy link
Author

I reinstalled openssl but im still getting the error, any other ideas?
thanks for your help
EDIT:
using a old commit doesn't work aswell

@dermarder
Copy link
Author

It works now!
I had to install the libssl-dev package via apt-get.
Thank you very much for your help.

@elvisimprsntr
Copy link

Updated the wiki link instructions.

https://github.com/etwmc/PersonalHomeKit/wiki

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