SimpleIDE Spin Libraries ?
ratronic
Posts: 1,451
I have just set up a new uSD card for the Pi B+. Everything I have had working in the past is working fine. I then installed SimpleIDE-0-9-45 on the Pi and it comes up with the
"Hello World" program in C like it did my last install. I then transfered a Spin folder called 'center' that is an unzipped archived Spin project file from my computer. Then I set the
compiler type to Spin and loaded the top Spin program from the folder. With the top Spin program displayed on the screen I then clicked 'Set Project to Current tab' and I could see the rest
of the objects in the folder in the 'Project Manager' window. After I clicked on 'Build Project' it started compiling and got past the top spin program but then comes up with the error -
'fullduplexserial.spin: error : Can not find/open file'. I looked in the /opt/parallax/spin folder and it is there and in the folder I'm compiling from. I know I'm getting brain dead in
my old age but I know I must have missed a step. The 'center' folder resides in /home/pi/. Can anybody help me out?
Here is how the SimpleIDE Properties is set -
SimpleIDE Properties - Spin Folders
Spin Compiler - /opt/parallax/spin/
Library Folder - /opt/parallax/spin/
Workspace Folder - /home/pi/SimpleIDE/
"Hello World" program in C like it did my last install. I then transfered a Spin folder called 'center' that is an unzipped archived Spin project file from my computer. Then I set the
compiler type to Spin and loaded the top Spin program from the folder. With the top Spin program displayed on the screen I then clicked 'Set Project to Current tab' and I could see the rest
of the objects in the folder in the 'Project Manager' window. After I clicked on 'Build Project' it started compiling and got past the top spin program but then comes up with the error -
'fullduplexserial.spin: error : Can not find/open file'. I looked in the /opt/parallax/spin folder and it is there and in the folder I'm compiling from. I know I'm getting brain dead in
my old age but I know I must have missed a step. The 'center' folder resides in /home/pi/. Can anybody help me out?
Here is how the SimpleIDE Properties is set -
SimpleIDE Properties - Spin Folders
Spin Compiler - /opt/parallax/spin/
Library Folder - /opt/parallax/spin/
Workspace Folder - /home/pi/SimpleIDE/
zip
21K
Comments
Also, don't compile in /opt/parralax/spin unless you are root . Compile in /home/pi/SimpleIDE
the Spin compiler is located in /opt/parallax/bin/openspin - not as I put in post #1. The rest is the same as in post#1. Also I can build and load the Propeller with a simple (no other objects) Spin program.
Edit: I have tried to compile with the center folder located in /home/pi/SimpleIDE/ and tried setting the workspace folder to /home/pi/SimpleIDE/center/.
The Compiler Type is set to Spin and the GCC folders are set as below
SimpleIDE Properties - GCC Folders
GCC Compiler - /opt/parallax/bin/propeller-elf-gcc
Library folder - /home/pi/SimpleIDE/Learn/Simple Libraries
workspace Folder - /home/pi/SimpleIDE/
Ok, so I guess the Spin Library Folder is indeed /opt/parallax/spin/
One gotcha may be that Linux is case sensitive. Make sure the case of fullduplexserial.spin in your Spin program matches what's on the drive ... if I recall correctly, the spelling is FullDuplexSerial.spin ? No?
fullduplexserial. The 'center' file I posted above loads with the Prop tool. I will start having to pay attention with case matching with SimpleIDE objects(everything!). I have placed the 'center' folder in the/home/pi/SimpleIDE/ directory and left the Workspace folder set to
the same and also with /home/pi/SimpleIDE/center/. Which way is the proper way - my guess would be to leave the Workspace folder set to /home/pi/SimpleIDE/ ?
Please don't confuse SimpleIDE with the compiler. SimpleIDE is just an editor and compile manager. The compiler in this case is openspin.
I added your code in my Linux Mint SimpleIDE and fixed the case of the objects and was able to build with no problems.
my older written Spin programs to the Pi. But thanks to you I now know what to correct to get them working on the Pi. Thanks again - Dave