etwmc / Personal-HomeKit-HAP

This project will provide source code to build a HomeKit support accessories.
MIT License
236 stars 84 forks source link

Compile Error #4

Closed dermarder closed 9 years ago

dermarder commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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

dermarder commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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

elvisimprsntr commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

dermarder: Do you still have compile problem?

dermarder commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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

elvisimprsntr commented 9 years ago

Updated the wiki link instructions.

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