Help!
panama23445
Posts: 9
I got into robotics earlier this year and i have progressed to, what I think is a novice state. I currently only have the Activity Bot kit with a propeller 8-core chip. Everything has been great and I have learned a lot, but when my friends asked me to use more advanced multi-core I have been derailed in my education. My current project is a modified version of the Polite-Bot activity provided on Parallax's website. I have gotten the original code to work and have even modified my bot to say different things. My friends thought it would be cool if we could play a song or something while the bot is roaming around but before it detects anything.
This is my code thus far:
#include "simpletools.h" // Include header files
#include "ping.h"
#include "wavplayer.h" // Must be 0.9 or later, 10-31-2013
#include "abdrive.h" // Must be 0.5.5 or later, 10-31-2013
void driveandturn();
void background();
int main() // Main function
{
int DO = 22, CLK = 23, DI = 24, CS = 25; // SD I/O pins
sd_mount(DO, CLK, DI, CS); // Mount SD card
wav_volume(10); // Set volume here, 1-10
cog_run(&background, 40);
//freqout(4, 2000, 2000); // Reset indicator
drive_setRampStep(10);
// 10 ticks/sec / 20 ms
while(1)
{
drive_ramp(128, 128); // Forward 128 ticks/second
//while(ping_cm(6) >= 20) pause(5); // Drive until object in range
drive_speed(0, 0) ; // Then stop
wav_play("excuseme1.wav"); // Play wav file named in string
pause(4000); // Time to speak & let obstacle move
if(ping_cm(6) < 21) // If obstacle is still there
{
wav_play("****.wav"); // Play wav file named in string
pause(1000); // Time to speak before moving
int turn = rand() % 2; // Turn in a random direction
if(turn == 1) // If turn is odd (1)
drive_speed(48, -48); // rotate right
else // else if turn is even (0)
drive_speed(-48, 48); // rotate left
while(ping_cm(6) < 20); // Turn till object not in view
}
else
{
wav_play("thankyou.wav"); // Play wav file named in string
pause(1000); // Time to speak before moving
}
}
}
void background(){
wav_play("flirtinwithdisater.wav");
pause(500000);
}
I keep having the same error(s) and I have tried debugging them on my own to no avail.
Here are the errors:
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lfdserial
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -labdrive
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lwavplayer
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lping
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lsimplei2c
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lsimpletext
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lsimpletools
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lfdserial
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -labdrive
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lwavplayer
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lping
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lsimplei2c
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lsimpletext
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lfdserial
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -labdrive
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lwavplayer
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lping
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lsimplei2c
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lfdserial
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -labdrive
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lwavplayer
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lping
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lfdserial
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -labdrive
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lwavplayer
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lfdserial
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -labdrive
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lfdserial
It keeps telling me: propeller-elf-gcc.exe Error: 1
Any help or comments that might possible help or solve this question would be greatly appreciated
This is my code thus far:
#include "simpletools.h" // Include header files
#include "ping.h"
#include "wavplayer.h" // Must be 0.9 or later, 10-31-2013
#include "abdrive.h" // Must be 0.5.5 or later, 10-31-2013
void driveandturn();
void background();
int main() // Main function
{
int DO = 22, CLK = 23, DI = 24, CS = 25; // SD I/O pins
sd_mount(DO, CLK, DI, CS); // Mount SD card
wav_volume(10); // Set volume here, 1-10
cog_run(&background, 40);
//freqout(4, 2000, 2000); // Reset indicator
drive_setRampStep(10);
// 10 ticks/sec / 20 ms
while(1)
{
drive_ramp(128, 128); // Forward 128 ticks/second
//while(ping_cm(6) >= 20) pause(5); // Drive until object in range
drive_speed(0, 0) ; // Then stop
wav_play("excuseme1.wav"); // Play wav file named in string
pause(4000); // Time to speak & let obstacle move
if(ping_cm(6) < 21) // If obstacle is still there
{
wav_play("****.wav"); // Play wav file named in string
pause(1000); // Time to speak before moving
int turn = rand() % 2; // Turn in a random direction
if(turn == 1) // If turn is odd (1)
drive_speed(48, -48); // rotate right
else // else if turn is even (0)
drive_speed(-48, 48); // rotate left
while(ping_cm(6) < 20); // Turn till object not in view
}
else
{
wav_play("thankyou.wav"); // Play wav file named in string
pause(1000); // Time to speak before moving
}
}
}
void background(){
wav_play("flirtinwithdisater.wav");
pause(500000);
}
I keep having the same error(s) and I have tried debugging them on my own to no avail.
Here are the errors:
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lfdserial
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -labdrive
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lwavplayer
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lping
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lsimplei2c
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lsimpletext
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lsimpletools
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lfdserial
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -labdrive
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lwavplayer
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lping
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lsimplei2c
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lsimpletext
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lfdserial
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -labdrive
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lwavplayer
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lping
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lsimplei2c
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lfdserial
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -labdrive
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lwavplayer
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lping
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lfdserial
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -labdrive
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lwavplayer
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lfdserial
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -labdrive
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lfdserial
It keeps telling me: propeller-elf-gcc.exe Error: 1
Any help or comments that might possible help or solve this question would be greatly appreciated
Comments
GCC Folders
GCC Compiler
C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/bin/propeller-elf-gcc.exe
Library Folder
C:/Users/YourUserName/Documents/SimpleIDE/Learn/Simple Libraries/
Workspace Folder
C:/Users/YourUserName/Documents/SimpleIDE/
Spin Folders
Spin Compiler
C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/bin/openspin.exe
Library Folder
C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/spin/
Workspace Folder
C:/Users/YourUserName/Documents/SimpleIDE/
General
Loader Folder
C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/propeller-load/