[B]gcc -o teensyload teensy_loader_cli.c [/B]
Undefined symbols for architecture x86_64:
"_hard_reboot", referenced from:
_main in teensy_loader_cli-585e4e.o
(maybe you meant: _hard_reboot_device)
"_soft_reboot", referenced from:
_main in teensy_loader_cli-585e4e.o
(maybe you meant: _soft_reboot_device)
"_teensy_close", referenced from:
_main in teensy_loader_cli-585e4e.o
"_teensy_open", referenced from:
_main in teensy_loader_cli-585e4e.o
"_teensy_write", referenced from:
_main in teensy_loader_cli-585e4e.o
_boot in teensy_loader_cli-585e4e.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[B]make[/B]
i586-mingw32msvc-gcc -O2 -Wall -s -DUSE_WIN32 -o teensy_loader_cli.exe teensy_loader_cli.c -lhid -lsetupapi
make: i586-mingw32msvc-gcc: No such file or directory
make: *** [teensy_loader_cli.exe] Error 1
[B]gcc -O2 -Wall -s -DUSE_WIN32 -o teensy_loader_cli.exe teensy_loader_cli.c -lhid -lsetupapi[/B]
teensy_loader_cli.c:358:10: fatal error: 'windows.h' file not found
#include <windows.h>
^
1 error generated.
Looking for a rule with intermediate file `makefile.sh'.
Avoiding implicit rule recursion.
Trying pattern rule with stem `makefile.sh'.
Trying implicit prerequisite `makefile.sh,v'.
Trying pattern rule with stem `makefile.sh'.
Trying implicit prerequisite `RCS/makefile.sh,v'.
Trying pattern rule with stem `makefile.sh'.
Trying implicit prerequisite `RCS/makefile.sh'.
Trying pattern rule with stem `makefile.sh'.
Trying implicit prerequisite `s.makefile.sh'.
Trying pattern rule with stem `makefile.sh'.
Trying implicit prerequisite `SCCS/s.makefile.sh'.
No implicit rule found for `makefile'.
Finished prerequisites of target file `makefile'.
No need to remake target `makefile'.
Updating goal targets....
Considering target file `clean'.
File `clean' does not exist.
Finished prerequisites of target file `clean'.
Must remake target `clean'.
rm -f teensy_loader_cli teensy_loader_cli.exe
CreateProcess(C:\WinAVR\utils\bin\rm.exe,rm -f teensy_loader_cli teensy_loader_c
li.exe,...)
Putting child 0x01cf31b0 (clean) PID 30376032 on the chain.
Live child 0x01cf31b0 (clean) PID 30376032
Main thread handle = 0x00000070
Reaping winning child 0x01cf31b0 PID 30376032
Removing child 0x01cf31b0 PID 30376032 from chain.
Successfully remade target file `clean'.
Sorry, use ARDUINO IDE + Teensyduino. MUCH less problems, MUCH more fun.Sorry absolute newbee
Can you tell me how to compile the teensy_loader_cli with Arduino IDE? If not I think I'll need to go on with winavr.
Anyone else who can help?
For a specific use I need to use the cli.
Anyone who can help me compiling it? I'm stuck at the mentioned point.
Sorry, I am not a MAC developer, except I do use it as a 2ndary development machine, but all of my work has been to build for or on other boards, like Arduino and remote to linux boards like Odroids or UP or...you do not need teensy_loader_cli when using Arduino IDE, All is build in with Teensyduino.
WinAvr? - Again that is an old version of the GCC stuff to build programs that run on an AVR processor.On my mac everything works. I'm now on windows and use the make file that's included with the windows option uncommented together with winavr.
Sorry, I am not a MAC developer, except I do use it as a 2ndary development machine, but all of my work has been to build for or on other boards, like Arduino and remote to linux boards like Odroids or UP or...
But I can say that you can not use Arduino IDE to build a native app for the MAC, that builds apps that run on the Arduino boards.
I assume that when you are using the GCC compiler that, it was installed as part of XCode on your MAC? Also are you running the current version of XCode?
Sorry, but that is about all I know on MAC development.
I was able to compile it. Installed MingW and ran this command: mingw32-gcc.exe -O2 -Wall -s -DUSE_WIN32 -o teensy_loader_cli.exe teensy_loader_cli.c -lhid -lsetupapi
Unfortunatly Teens 3.2 is not supported for windows CLI. Is there a specific reason? Anything planned in the near future?