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

Add compile instructions #1

Closed
NicoHood opened this issue Jan 20, 2016 · 5 comments
Closed

Add compile instructions #1

NicoHood opened this issue Jan 20, 2016 · 5 comments

Comments

@NicoHood
Copy link
Contributor

I am trying to compile this on arm. It would be nice to add a litle note how to download and compile it. what dependencies are required? Also I currently got problems with the submodule:

$ git submodule update --init --recursive
Cloning into 'libserialport'...
The authenticity of host 'github.com (192.30.252.130)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.252.130' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Clone of '[email protected]:facchinm/libserialport.git' into submodule path 'libserialport' failed

It would be nice if you can add ARM builds natively from arduino too.

NicoHood referenced this issue in NicoHood/listSerialPortsC Jan 20, 2016
Also related to #1

Then you can use to sync the submodule again:
```
git submodule sync
git submodule init
git submodule update
```
@NicoHood
Copy link
Contributor Author

On x64 I had to install sudo apt-get install libc6-dev-i386 to get rid of some warnings. However the 32bit configure still failed.

facchinm pushed a commit that referenced this issue Jan 21, 2016
Also related to #1

Then you can use to sync the submodule again:
```
git submodule sync
git submodule init
git submodule update
```
@facchinm
Copy link
Member

Hi Nico, I merged some of your commits and a added proper README
Feel free to test it in your Ubuntu environment!
In the meanwhile, I've uploaded version 1.0.7 with ARM binary included 😄

@NicoHood
Copy link
Contributor Author

Thx for those fixes! I will try it. If it does not work, I will comment again.

Where did you upload it? You should tag the versions on github and also provide the binaries as well. Or link to the arduino.cc download page. I am a bit confused because the latest git only has 1.0.5, not 1.0.7.

Did you also had a look into the arduino-builder arm package? Only a small folder structure change is required to make the package working. It would be extremely nice if you can fix this as well.

@NicoHood
Copy link
Contributor Author

I still got the configure: error: C compiler cannot create executables error. I installed all suggested packages on x64.

@facchinm
Copy link
Member

Very strange problem... I fired up an Ubuntu minimal VM to understand all the requirement and it works great. I believe it's a problem related with multilibs but, not being an Ubuntu user, I can't help more than that, sorry.

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

2 participants