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

ArchLinuxArm Support #157

Open
like-a-bause opened this issue Jun 10, 2013 · 6 comments
Open

ArchLinuxArm Support #157

like-a-bause opened this issue Jun 10, 2013 · 6 comments

Comments

@like-a-bause
Copy link

Hey,
i would like to run oF on my Rasbery Pi using Arch Linux Arm. I installed the dependencies with a stripped down version of the normal archlinux/install_dependencies.sh script. Compiling OF works fine, but currently the hello_world example doesn't compile. I hop to get it working.
I would like to make a pull request for the dependencie scripts and help in whatever issues come along, getting oF running on ArchlinuxArm.
As suggested in the Guidelines I opened an issue first.

@bakercp
Copy link
Member

bakercp commented Jun 10, 2013

Sounds great. If you want to add your setup instructions to the wiki, I'm sure others will also be able to help troubleshoot the hello_world example.

@danzeeeman
Copy link
Member

Wonderful! Please follow the openFrameworks Code Contribution Workflow
guide here
https://github.com/openframeworks/openFrameworks/wiki/Code-Contribution-Workflow,
Once you get everything into a pull request I'll try to repeat your steps
and bring up a board with Arch to see if everything works or we'll see what
issues you are hitting.

Can you add a bit more details about what isn't compiling? Please use the
GitHub's Gist to add command line logs or code snippets so we can try to
get to the bottom of your issue. https://gist.github.com/

I look forward to seeing this work on Arch!

On Mon, Jun 10, 2013 at 9:53 AM, Christopher Baker <[email protected]

wrote:

Sounds great. If you want to add your setup instructions to the wiki, I'm
sure others will also be able to help troubleshoot the hello_world example.


Reply to this email directly or view it on GitHubhttps://github.com//issues/157#issuecomment-19199651
.

"I believe in science. Unlike mathematical theorems, scientific results
can't be proved. They can only be tested again and again, until only a fool
would not believe them.

I cannot prove that electrons exist, but I believe fervently in their
existence. And if you don't believe in them, I have a high voltage cattle
prod I'm willing to apply as an argument on their behalf. Electrons speak
for themselves."

-- Seth Lloyd: Quantum Mechanical Engineer, MIT

/.

@like-a-bause
Copy link
Author

after getting all dependencies, oF compiles fine. running "make" in apps/devApps/raspberry_pi_hello_world/ i get:

Compiling raspberrypi_hello_world for Release
make[1]: *** No rule to make target `obj/linuxarmv6l/Release/src/main.o', needed by `bin/raspberrypi_hello_world'.  Stop.
make: *** [Release] Error 2

Output of running make with MAKEFILE_DEBUG defined:

https://gist.github.com/aspeteRakete/5756143

underdoeg told me on IRC, that there were issues on arch with the makeskipts and double Slashes, which Debian didn't care about, but arch does. So i changed the the diff from the following commit:
openframeworks@aebb079

After that make gives the following:

/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../crt1.o: In function `_start':
:(.text+0x34): undefined reference to `main'
collect2: error: ld returned 1 exit status
make[1]: *** [bin/raspberrypi_hello_world] Error 1
make: *** [Release] Error 2

The MakeFile Debug Output:
https://gist.github.com/aspeteRakete/5756229

What I noticed is this: https://gist.github.com/aspeteRakete/5756229#file-gistfile1-txt-L1179
still double slashes in there. This could be the problem. I started to poke around in the Makefiles, but my Makefile-Kung-Fu isn't that good.

@bakercp
Copy link
Member

bakercp commented Jun 11, 2013

Good to know @aspeteRakete -- the current state of the makefiles on the RPI branch is in flux. Basically @arturoc cherry picked the new makefile system developed in this branch and took them over to the main branch in advance of merging the entire Raspberry Pi branch w/ the main oF branch. Thus, my continued work on the makefile system (and @underdoeg 's slash fixes) are currently over in the main branch. I doubt we'll backport them to this branch, but luckily the plan is to bring the Raspberry Pi branch into the core oF repository in the next two weeks.

As for an immediate solution, I'll take a look at this and see if it is a makefile problem on arch-linux or some other issue. Could you post a copy of your dependencies install script on gist (or wherever you like) and any tips you have for getting the RPi arch linux image prepped to reproduce where you currently are with your work?

@like-a-bause
Copy link
Author

Hey @bakercp,
Here you can find the install_codecs.sh (copied from archlinux folder), the install_dependencies.sh (copied from archlinux folder and removed automatic compilation) and a complete list of the packages installed on my archlinux system.
As I said the library itself compiles fine after running the dependencies script. I don't know if something is missing in the script that was already installed manually.
I made a backup of the system, so I willl try it out if any of you has suggestion on how to fix this. But right now I think i will try out the Raspbian Image, since 2 weeks is quite a lot time, and i wanted to run visuals on the Pi in a week.
As the #archlinux channel bot says: "arch will not hold your hand". But I just need someone to hold my hand from time to time. ;)

@bakercp
Copy link
Member

bakercp commented Jun 12, 2013

Yeah, if you are on a deadline, then def use the raspbian branch for now. It's been well-proven at this point :)

Thanks for the scripts. I'll check them out.

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