Author Topic: Arduino: libraries are missing  (Read 31448 times)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Arduino: libraries are missing
« Reply #15 on: June 20, 2016, 09:53:28 am »
Some changes that got it to compile; but, it then gets a link error of "wiring.c:(.text.delay+0x26): undefined reference to `yield'".
You need to add hooks.c to the project.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Arduino: libraries are missing
« Reply #16 on: June 20, 2016, 01:43:50 pm »
Thank you; I have now gotten edited wizard code and project to build on Windows using Arduino 1.6.9.

I had to remove "-x c++" for other compiler options after doing your fix below.

Some changes that got it to compile; but, it then gets a link error of "wiring.c:(.text.delay+0x26): undefined reference to `yield'".
You need to add hooks.c to the project.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Arduino: libraries are missing
« Reply #17 on: June 20, 2016, 08:57:03 pm »
Post a patch if you think your work could be integrated into the repo.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Arduino: libraries are missing
« Reply #18 on: June 21, 2016, 02:38:11 am »
Post a patch if you think your work could be integrated into the repo.

I still have work to do before submitting a patch.

Need to add version page 1.0 or 1.5/1.6
Any idea if it should be 1.5 or 1.6? I plan to use 1.6; since I have NOT found an good 1.5 to test on Debian Linux.

Need to add code that makes the Wizard works for Windows PCs.

NOTE: I think I have found all the differences between the 4 things I am testing
1. Windows and Arduino 1.0.6
2. Windows and Arduino 1.6.9
3. Debian Linux and Arduino 1.0.5
4. Debian Linux and Arduino 1.6.? (Self Built Arduino)

I will do an Git pull request; when, I get it done. But, likely be a couple of weeks.
Unless I feel too bad to do my paid coding work.

Tim S.

« Last Edit: June 21, 2016, 02:46:57 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Arduino: libraries are missing
« Reply #19 on: June 21, 2016, 07:37:19 am »
I still have work to do before submitting a patch.
Ether you post a patch today or your work is wasted, because I'm going to work on the wizard tonight.
I plan to do major changes, so merging might be tough.

Need to add version page 1.0 or 1.5/1.6
Any idea if it should be 1.5 or 1.6? I plan to use 1.6; since I have NOT found an good 1.5 to test on Debian Linux.
I see no reason to support 1.0 or 1.5.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Arduino: libraries are missing
« Reply #20 on: June 21, 2016, 07:21:08 pm »
Edit: Just noticed your post was from yesterday; so, I was likely too late on my pull request.

I just did a pull request; I have NOT had time to double check the changes; they break 1.0.5 usage.

I had to add an "/src" sub folder to the HID include to get Wizard created project Windows 1.6.9 to build.
(Linux did NOT need the sub folder). Also had to do several other changes that I forget what they were.

Tim S.

I still have work to do before submitting a patch.
Ether you post a patch today or your work is wasted, because I'm going to work on the wizard tonight.
I plan to do major changes, so merging might be tough.

Need to add version page 1.0 or 1.5/1.6
Any idea if it should be 1.5 or 1.6? I plan to use 1.6; since I have NOT found an good 1.5 to test on Debian Linux.
I see no reason to support 1.0 or 1.5.
« Last Edit: June 21, 2016, 08:18:33 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Arduino: libraries are missing
« Reply #21 on: June 21, 2016, 10:08:47 pm »
Edit: Just noticed your post was from yesterday; so, I was likely too late on my pull request.
It is not too late. Why remove the -x c++ option? What error does it fix?

I had to add an "/src" sub folder to the HID include to get Wizard created project Windows 1.6.9 to build.
(Linux did NOT need the sub folder). Also had to do several other changes that I forget what they were.
It is required on my linux, too. Don't know why you think it is not.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Arduino: libraries are missing
« Reply #22 on: June 21, 2016, 10:12:29 pm »
On windows the C code was having some link errors; that was one of the things I tried to fix the error.
It might or might NOT be needed; feel free to skip it.

In Arduino 1.0.5 and Windows; I had to do "-lc -lm -lc" and that got rid of a weird link error.

Tim S.

Edit: Just noticed your post was from yesterday; so, I was likely too late on my pull request.
It is not too late. Why remove the -x c++ option? What error does it fix?

I had to add an "/src" sub folder to the HID include to get Wizard created project Windows 1.6.9 to build.
(Linux did NOT need the sub folder). Also had to do several other changes that I forget what they were.
It is required on my linux, too. Don't know why you think it is not.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Arduino: libraries are missing
« Reply #23 on: June 22, 2016, 09:21:13 am »
I hope you know that the second -lc is redundant. As far as I can see the wizard adds -lm and the compiler should add -lc automagically, but who knows.

p.s. Why are you top posting in the forum too? In an email I can sort of accept it, but in the forum?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Arduino: libraries are missing
« Reply #24 on: June 22, 2016, 10:26:51 am »
I hope you know that the second -lc is redundant. As far as I can see the wizard adds -lm and the compiler should add -lc automagically, but who knows.

p.s. Why are you top posting in the forum too? In an email I can sort of accept it, but in the forum?

Sorry, the other forum I post a lot on requires top posting.

It fixes the linking issue on Windows when using the Arduino 1.0.6 AVR compiler. Found the solution in an internet post.

Tim S.
« Last Edit: June 22, 2016, 10:28:57 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org