OkapiLib / OkapiLib-legacy

A PROS API & Documentation for programming Vex robots
https://okapilib.github.io/OkapiLib/
GNU Affero General Public License v3.0
8 stars 1 forks source link

I can compile successfully, but I can't write it to MCU. #3

Open 3038922 opened 6 years ago

3038922 commented 6 years ago

ares@ubuntu:~/vex/oklib$ sudo make all CPC -I../include -I../src opcontrol.cpp ~/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-g++ -I../include -I../src -c -Wall -pedantic -Wextra -Wconversion -Wno-implicit-fallthrough -Wmissing-include -dirs -mthumb -mcpu=cortex-m3 -mlittle-endian -mfloat-abi=soft -O2 -ffunction-sections -fsigned-char -fomit-frame-pointer -fsingle-precision-constant -std=c++ 14 -fno-exceptions -fno-rtti -felide-constructors -o ../bin/_bin_opcontrol.o opcontrol.cpp CPC -I../include -I../src init.cpp ~/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-g++ -I../include -I../src -c -Wall -pedantic - 14 -fno-exceptions -fno-rtti -felide-constructors -o ../bin/_bin_init.o init.cpp CPC -I../include -I../src auto.cpp

.{......}

in/_bin_control_velMath.o ./bin/_bin_control_velPid.o ./bin/_bin_init.o ./bin/_bin_odometry_odomMath.o ./bin/_bin_odometry_odometry.o ./bin/_bin_opcontrol.o . /bin/_bin_util_timer.o ./firmware/libpros.a -lgcc -lm to bin/output.elf text data bss dec hex filename 33152 1076 4220 38448 9630 ./bin/output.elf ~/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-objcopy ./bin/output.elf -O binary ./bin/output.bin

3038922 commented 6 years ago

ares@ubuntu:~/vex/oklib$ sudo pros mut Invoking make in /home/ares/vex/oklib... rm -f ./bin/output.elf rm -rf ./bin CPC -I../include -I../src opcontrol.cpp ~/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-g++ -I../include -I../src -c -Wall -pedantic -Wextra -Wconversion -Wno-implicit-fallthrough -Wmissing-include -dirs -mthumb -mcpu=cortex-m3 -mlittle-endian -mfloat-abi=soft -O2 -ffunction-sections -fsigned-char -fomit-frame-pointer -fsingle-precision-constant -std=c++

14 -fno-exceptions -fno-rtti -felide-constructors -o ../bin/_bin_opcontrol.o opcontrol.cpp CPC -I../include -I../src init.cpp ~/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-g++ -I../include -I../src -c -Wall -pedantic -Wextra -Wconversion -Wno-implicit-fallthrough -Wmissing-include -dirs -mthumb -mcpu=cortex-m3 -mlittle-endian -mfloat-abi=soft -O2 -ffunction-sections -fsigned-char -fomit-frame-pointer -fsingle-precision-constant -std=c++ 14 -fno-exceptions -fno-rtti -felide-constructors -o ../bin/_bin_init.o init.cpp CPC -I../include -I../src auto.cpp ~/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-g++ -I../include -I../src -c -Wall -pedantic -Wextra -Wconversion -Wno-implicit-fallthrough -Wmissing-include -dirs -mthumb -mcpu=cortex-m3 -mlittle-endian -mfloat-abi=soft -O2 -ffunction-sections -fsigned-char -fomit-frame-pointer -fsingle-precision-constant -std=c++ 14 -fno-exceptions -fno-rtti -felide-constructors -o ../bin/_bin_auto.o auto.cpp CPC -I../include -I../src util/timer.cpp ~/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-g++ -I../include -I../src -c -Wall -pedantic -Wextra -Wconversion -Wno-implicit-fallthrough -Wmissing-include -dirs -mthumb -mcpu=cortex-m3 -mlittle-endian -mfloat-abi=soft -O2 -ffunction-sections -fsigned-char -fomit-frame-pointer -fsingle-precision-constant -std=c++ 14 -fno-exceptions -fno-rtti -felide-constructors -o ../bin/_bin_util_timer.o util/timer.cpp CPC -I../include -I../src chassis/chassisController.cpp {....} You can quickly open files with the Fuzzy Finder. Try it by using Ctrl+T  updating: include/API.h (deflated 73%) updating: include/control/ (stored 0%) updating: include/control/velPid.h (deflated 69%) updating: include/control/velMath.h (deflated 65%) updating: include/control/genericController.h (deflated 60%) updating: include/control/pid.h (deflated 72%) updating: include/control/controlObject.h (deflated 62%) updating: include/control/nsPid.h (deflated 52%) updating: include/util/ (stored 0%) updating: include/util/timer.h (deflated 68%) updating: include/util/mathUtil.h (deflated 55%) updating: include/odometry/ (stored 0%) updating: include/odometry/odometry.h (deflated 69%) updating: include/odometry/odomMath.h (deflated 70%) updating: include/chassis/ (stored 0%)  updating: include/chassis/odomChassisController.h (deflated 67%) updating: include/chassis/chassisController.h (deflated 72%) updating: include/chassis/chassisModel.h (deflated 88%) updating: include/main.h (deflated 59%) updating: include/device/ (stored 0%) updating: include/device/quadEncoder.h (deflated 47%) updating: include/device/potentiometer.h (deflated 56%) updating: include/device/motor.h (deflated 78%) updating: include/device/button.h (deflated 72%) updating: include/device/rangeFinder.h (deflated 59%) updating: include/device/ime.h (deflated 58%) updating: include/device/rotarySensor.h (deflated 40%) updating: include/filter/ (stored 0%) updating: include/filter/avgFilter.h (deflated 50%) updating: include/filter/filter.h (deflated 50%) updating: include/filter/demaFilter.h (deflated 61%) updating: include/filter/emaFilter.h (deflated 56%) updating: template.pros (deflated 65%) ====:: PROS Flasher vNone ::==== No binary was found! Ensure you are in a built PROS project (run make) or specify the file with the -f flag

Octogonapus commented 6 years ago

Are you trying to use OkapiLib or develop OkapiLib? If you are just trying to use it, then you should grab this: https://github.com/OkapiLib/StarterProject

3038922 commented 6 years ago

https://github.com/OkapiLib/StarterProject The API in this is different from the API in oklib-master. It seems to be a little old.I thought I was going to recompile oklib-master. and PAL/PAL.h: No such file or directory. starterProject Omission PAL