A newbie that needs help
-
@Leonard-Stroman You can use the Raspberry if it has enough storage. However, compilation on the Raspberry Pi might be very slow due to its limited resources. Be prepared to spend up to 24 hours to compile the toolchain alone! Compilation of the actual packages should be much more manageable.
-
Hello,
Step 6b: Compile Individual Packages , what is the package name? In the setting up cross-compile environment of Omega....Can somebody push me in the right direction, I'm sitting here at a stalemate!
-
Hi @Leonard-Stroman, the name of the package is the package that you are creating. Unless you are trying to compile another open source project that's been written for OpenWRT/Omega. Did you write a software in C/C++ that you would like to compile?
-
All I'm doing is what you told me to do earlier in this post . Im at step 6b: Compile Individual Packages, ,,, make tool/install (done), ,,,,,make toolchain/install (done)
I'm at make package /<package name>/ compile ,,,,, what is the package name?
-
Hi @Leonard-Stroman, the package name is defined by you. You will need to write that package in C/C++ and also define the Makefile so that the cross-compiler will know how to compile your code into binary.
-
Ok, if I have already named the package, I'm not aware when or what I named it ...
And if I have to name it now, how do I go about doing it ?
-
Hi @Leonard-Stroman, sorry about the confusion, I might have been unclear. It's not a package that you have defined previously. It is something that you need to create before you start the cross-compile process. Cross-compile simply converts the code which you have written into the binary that allows you to run on the Omega. But you will have to write the code to tell the Omega what you want it to do.
Does that make sense?
-
Ok, how do I write the code for the cross compiler to then transfer into binary for the onion omega ?
I've done coding with raspberry pi and arduino, but that was code that was already written?With the omega do I have to write the whole code from beginning to end or is there a cheat sheet that allow me to just fill in the blanks ?
Either way where do I begin?
-
@Leonard-Stroman What language did you write the code for Raspberry Pi? Would you be able to put up snippets of the code to give us a sense of what you are trying to get the Omega to do? We will be able to help you better this way.
-
-
@Leonard-Stroman That makes it much easier. Code written in Python don't need to be compiled because it is an interpreted language. You simply need to install
python
on the Omega, copy the code over to the Omega, and it should be able to run. The only thing you will need to wait for is our python wrapper for the PWM expansion driver. We should be releasing that in the next couple of weeks.