{"id":216,"date":"2014-03-07T06:02:28","date_gmt":"2014-03-06T18:02:28","guid":{"rendered":"http:\/\/www.herbert.org.nz\/?p=216"},"modified":"2014-03-07T06:02:28","modified_gmt":"2014-03-06T18:02:28","slug":"buliding-simavr-on-os-10-9-mavericks-with-crosspackavr","status":"publish","type":"post","link":"https:\/\/www.herbert.org.nz\/?p=216","title":{"rendered":"Buliding simavr on OS 10.9 (Mavericks) with CrosspackAVR"},"content":{"rendered":"<p>A brief howto build <a href=\"https:\/\/github.com\/buserror-uk\/simavr\" target=\"_blank\">simavr<\/a> using <a href=\"http:\/\/www.obdev.at\/products\/crosspack\/index.html\" target=\"_blank\">CrosspackAVR avr-gcc toolchain<\/a><\/p>\n<p>First download the source to simavr from <a href=\"https:\/\/github.com\/buserror-uk\/simavr\" title=\"SIMAVR\" target=\"_blank\">here<\/a><\/p>\n<p><code>git clone https:\/\/github.com\/buserror-uk\/simavr.git<\/code><\/p>\n<p>Using <a href=\"http:\/\/brew.sh\" title=\"Homebrew\" target=\"_blank\">Homebrew<\/a> install libelf (thanks to post <a href=\"https:\/\/groups.google.com\/forum\/#!topic\/simavr\/V7cKMV3fxKw\" target=\"_blank\">here<\/a> by Robert Nees):<br \/>\n<code>brew install libelf<\/code><\/p>\n<p>I needed to make symbolic links to the libelf header files:<br \/>\n<code>cd \/usr\/local\/include<br \/>\nln -s libelf\/* .<\/code><\/p>\n<p>Edit the Makefile.common in the simavr git repo you&#8217;ve downloaded and change the following lines:<br \/>\n<code>AVR_ROOT    := \"\/usr\/local\/CrossPack-AVR\/\"<br \/>\nAVR_INC  := ${AVR_ROOT}\/avr\/<br \/>\nAVR      := ${AVR_ROOT}\/bin\/avr-<br \/>\n# Thats for MacPorts libelf<br \/>\nifeq (${shell test -d \/usr\/local && echo Exists}, Exists)<br \/>\nIPATH    += \/usr\/local\/include<br \/>\nLFLAGS      = -L\/usr\/local\/lib<\/code><\/p>\n<p>Then just make and make install and you are done! Now to figure out how to use it.<\/p>\n<p>For your reference, here&#8217;s my make output:<br \/>\n<code>\/Library\/Developer\/CommandLineTools\/usr\/bin\/make -C simavr RELEASE=0<br \/>\nCONF obj-x86_64-apple-darwin13.0.0\/cores.deps<br \/>\nWARNING cores\/sim_mega324.c did not compile, check your avr-gcc toolchain<br \/>\n\/Library\/Developer\/CommandLineTools\/usr\/bin\/make obj config<br \/>\nmake[2]: Nothing to be done for `obj'.<br \/>\nCONF sim_core_decl.h<br \/>\n\/Library\/Developer\/CommandLineTools\/usr\/bin\/make libsimavr run_avr<br \/>\nCC sim\/sim_avr.c<br \/>\nCC sim\/sim_core.c<br \/>\nCC sim\/sim_cycle_timers.c<br \/>\nCC sim\/sim_elf.c<br \/>\nCC sim\/sim_gdb.c<br \/>\nCC sim\/sim_hex.c<br \/>\nCC sim\/sim_interrupts.c<br \/>\nCC sim\/sim_io.c<br \/>\nCC sim\/sim_irq.c<br \/>\nCC sim\/sim_vcd_file.c<br \/>\nCC sim\/avr_adc.c<br \/>\nCC sim\/avr_bitbang.c<br \/>\nCC sim\/avr_eeprom.c<br \/>\nCC sim\/avr_extint.c<br \/>\nCC sim\/avr_flash.c<br \/>\nCC sim\/avr_ioport.c<br \/>\nCC sim\/avr_lin.c<br \/>\nCC sim\/avr_spi.c<br \/>\nCC sim\/avr_timer.c<br \/>\nCC sim\/avr_twi.c<br \/>\nCC sim\/avr_uart.c<br \/>\nCC sim\/avr_usb.c<br \/>\nCC sim\/avr_watchdog.c<br \/>\nCORE cores\/sim_90usb162.c<br \/>\nCORE cores\/sim_mega128.c<br \/>\nCORE cores\/sim_mega1280.c<br \/>\nCORE cores\/sim_mega1281.c<br \/>\nCORE cores\/sim_mega1284.c<br \/>\nCORE cores\/sim_mega128rfa1.c<br \/>\nCORE cores\/sim_mega16.c<br \/>\nCORE cores\/sim_mega164.c<br \/>\nCORE cores\/sim_mega168.c<br \/>\nCORE cores\/sim_mega16m1.c<br \/>\nCORE cores\/sim_mega2560.c<br \/>\nCORE cores\/sim_mega32.c<br \/>\nCORE cores\/sim_mega328.c<br \/>\nCORE cores\/sim_mega48.c<br \/>\nCORE cores\/sim_mega644.c<br \/>\nCORE cores\/sim_mega8.c<br \/>\nCORE cores\/sim_mega88.c<br \/>\nCORE cores\/sim_megax.c<br \/>\nCORE cores\/sim_megax4.c<br \/>\nCORE cores\/sim_megax8.c<br \/>\nCORE cores\/sim_megaxm1.c<br \/>\nCORE cores\/sim_tiny13.c<br \/>\nCORE cores\/sim_tiny2313.c<br \/>\nCORE cores\/sim_tiny24.c<br \/>\nCORE cores\/sim_tiny25.c<br \/>\nCORE cores\/sim_tiny44.c<br \/>\nCORE cores\/sim_tiny45.c<br \/>\nCORE cores\/sim_tiny84.c<br \/>\nCORE cores\/sim_tiny85.c<br \/>\nCORE cores\/sim_tinyx4.c<br \/>\nCORE cores\/sim_tinyx5.c<br \/>\nAR obj-x86_64-apple-darwin13.0.0\/libsimavr.a<br \/>\nCC sim\/run_avr.c<br \/>\nLD obj-x86_64-apple-darwin13.0.0\/run_avr.elf<br \/>\nln -sf obj-x86_64-apple-darwin13.0.0\/run_avr.elf run_avr<br \/>\n\/Library\/Developer\/CommandLineTools\/usr\/bin\/make -C tests RELEASE=0<br \/>\nAVR-CC atmega48_disabled_timer.c<br \/>\n    171\t      0\t      0\t    171\t     ab\tatmega48_disabled_timer.axf<br \/>\nAVR-CC atmega48_enabled_timer.c<br \/>\n    177\t      0\t      0\t    177\t     b1\tatmega48_enabled_timer.axf<br \/>\nAVR-CC atmega48_watchdog_test.c<br \/>\n    371\t     82\t      6\t    459\t    1cb\tatmega48_watchdog_test.axf<br \/>\nAVR-CC atmega644_adc_test.c<br \/>\n   2038\t    160\t     22\t   2220\t    8ac\tatmega644_adc_test.axf<br \/>\nAVR-CC atmega88_coroutine.c<br \/>\n    703\t     36\t    159\t    898\t    382\tatmega88_coroutine.axf<br \/>\nAVR-CC atmega88_example.c<br \/>\n   1746\t    118\t      6\t   1870\t    74e\tatmega88_example.axf<br \/>\nAVR-CC atmega88_timer16.c<br \/>\n    334\t      0\t      2\t    336\t    150\tatmega88_timer16.axf<br \/>\nAVR-CC atmega88_uart_echo.c<br \/>\n   1872\t     68\t     88\t   2028\t    7ec\tatmega88_uart_echo.axf<br \/>\nAVR-CC attiny85_crash_gdb.c<br \/>\n     97\t      0\t      0\t     97\t     61\tattiny85_crash_gdb.axf<br \/>\nTST obj-x86_64-apple-darwin13.0.0\/test_atmega48_disabled_timer.tst<br \/>\nTST obj-x86_64-apple-darwin13.0.0\/test_atmega48_enabled_timer.tst<br \/>\nTST obj-x86_64-apple-darwin13.0.0\/test_atmega48_watchdog_test.tst<br \/>\nTST obj-x86_64-apple-darwin13.0.0\/test_atmega644_adc_test.tst<br \/>\nTST obj-x86_64-apple-darwin13.0.0\/test_atmega88_example.tst<br \/>\nTST obj-x86_64-apple-darwin13.0.0\/test_atmega88_timer16.tst<br \/>\nTST obj-x86_64-apple-darwin13.0.0\/test_atmega88_uart_echo.tst<br \/>\n\/Library\/Developer\/CommandLineTools\/usr\/bin\/make -C examples RELEASE=0<br \/>\nuname: illegal option -- o<br \/>\nusage: uname [-amnprsv]<br \/>\nfor bi in board_hd77480 board_i2ctest board_ledramp board_simduino board_timer_64led; do \/Library\/Developer\/CommandLineTools\/usr\/bin\/make -C $bi; done<br \/>\nAVR-CC atmega48_charlcd.c<br \/>\n   2073\t     14\t      5\t   2092\t    82c\tatmega48_charlcd.axf<br \/>\nCC ..\/parts\/ac_input.c<br \/>\nCC ..\/parts\/hd44780.c<br \/>\nCC ..\/parts\/hd44780_glut.c<br \/>\ncharlcd.c:103:5: warning: 'glutSwapBuffers' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n    glutSwapBuffers();<br \/>\n    ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:448:22: note: 'glutSwapBuffers' declared here<br \/>\nextern void APIENTRY glutSwapBuffers(void) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\ncharlcd.c:111:2: warning: 'glutTimerFunc' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutTimerFunc(1000\/64, timerCB, 0);<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:514:22: note: 'glutTimerFunc' declared here<br \/>\nextern void APIENTRY glutTimerFunc(unsigned int millis, void (*func)(int value), int value) OPENGL_DEPRECATED(10...<br \/>\n                     ^<br \/>\ncharlcd.c:112:2: warning: 'glutPostRedisplay' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutPostRedisplay();<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:444:22: note: 'glutPostRedisplay' declared here<br \/>\nextern void APIENTRY glutPostRedisplay(void) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\ncharlcd.c:125:2: warning: 'glutDisplayFunc' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutDisplayFunc(displayCB);             \/* set window's display callback *\/<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:505:22: note: 'glutDisplayFunc' declared here<br \/>\nextern void APIENTRY glutDisplayFunc(void (*func)(void)) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\ncharlcd.c:126:2: warning: 'glutKeyboardFunc' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutKeyboardFunc(keyCB);                \/* set window's key callback *\/<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:507:22: note: 'glutKeyboardFunc' declared here<br \/>\nextern void APIENTRY glutKeyboardFunc(void (*func)(unsigned char key, int x, int y)) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\ncharlcd.c:127:2: warning: 'glutTimerFunc' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutTimerFunc(1000 \/ 24, timerCB, 0);<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:514:22: note: 'glutTimerFunc' declared here<br \/>\nextern void APIENTRY glutTimerFunc(unsigned int millis, void (*func)(int value), int value) OPENGL_DEPRECATED(10...<br \/>\n                     ^<br \/>\ncharlcd.c:231:2: warning: 'glutInit' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutInit(&argc, argv);          \/* initialize GLUT system *\/<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:431:22: note: 'glutInit' declared here<br \/>\nextern void APIENTRY glutInit(int *argcp, char **argv) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\ncharlcd.c:237:2: warning: 'glutInitDisplayMode' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE);<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:432:22: note: 'glutInitDisplayMode' declared here<br \/>\nextern void APIENTRY glutInitDisplayMode(unsigned int mode) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\ncharlcd.c:238:2: warning: 'glutInitWindowSize' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutInitWindowSize(w * pixsize, h * pixsize);           \/* width=400pixels height=500pixels *\/<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:437:22: note: 'glutInitWindowSize' declared here<br \/>\nextern void APIENTRY glutInitWindowSize(int width, int height) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\ncharlcd.c:239:11: warning: 'glutCreateWindow' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        window = glutCreateWindow(\"Press 'q' to quit\"); \/* create window *\/<br \/>\n                 ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:441:21: note: 'glutCreateWindow' declared here<br \/>\nextern int APIENTRY glutCreateWindow(const char *title) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                    ^<br \/>\ncharlcd.c:246:2: warning: 'glutMainLoop' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutMainLoop();<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:438:22: note: 'glutMainLoop' declared here<br \/>\nextern void APIENTRY glutMainLoop(void) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\n11 warnings generated.<br \/>\nCC charlcd.c<br \/>\nLD obj-x86_64-apple-darwin13.0.0\/charlcd.elf<br \/>\ncharlcd done<br \/>\nAVR-CC atmega1280_i2ctest.c<br \/>\n    941\t     16\t     12\t    969\t    3c9\tatmega1280_i2ctest.axf<br \/>\nCC i2ctest.c<br \/>\nCC ..\/..\/examples\/parts\/i2c_eeprom.c<br \/>\nLD obj-x86_64-apple-darwin13.0.0\/i2ctest.elf<br \/>\ni2ctest done<br \/>\nAVR-CC atmega48_ledramp.c<br \/>\n   1839\t     32\t     11\t   1882\t    75a\tatmega48_ledramp.axf<br \/>\nCC ..\/parts\/button.c<br \/>\nledramp.c:85:5: warning: 'glutSwapBuffers' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n    glutSwapBuffers();<br \/>\n    ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:448:22: note: 'glutSwapBuffers' declared here<br \/>\nextern void APIENTRY glutSwapBuffers(void) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\nledramp.c:118:2: warning: 'glutTimerFunc' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutTimerFunc(1000\/64, timerCB, 0);<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:514:22: note: 'glutTimerFunc' declared here<br \/>\nextern void APIENTRY glutTimerFunc(unsigned int millis, void (*func)(int value), int value) OPENGL_DEPRECATED(10...<br \/>\n                     ^<br \/>\nledramp.c:122:3: warning: 'glutPostRedisplay' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n                glutPostRedisplay();<br \/>\n                ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:444:22: note: 'glutPostRedisplay' declared here<br \/>\nextern void APIENTRY glutPostRedisplay(void) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\nledramp.c:214:2: warning: 'glutInit' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutInit(&argc, argv);          \/* initialize GLUT system *\/<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:431:22: note: 'glutInit' declared here<br \/>\nextern void APIENTRY glutInit(int *argcp, char **argv) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\nledramp.c:216:2: warning: 'glutInitDisplayMode' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE);<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:432:22: note: 'glutInitDisplayMode' declared here<br \/>\nextern void APIENTRY glutInitDisplayMode(unsigned int mode) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\nledramp.c:217:2: warning: 'glutInitWindowSize' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutInitWindowSize(8 * pixsize, 1 * pixsize);           \/* width=400pixels height=500pixels *\/<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:437:22: note: 'glutInitWindowSize' declared here<br \/>\nextern void APIENTRY glutInitWindowSize(int width, int height) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\nledramp.c:218:11: warning: 'glutCreateWindow' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        window = glutCreateWindow(\"Glut\");      \/* create window *\/<br \/>\n                 ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:441:21: note: 'glutCreateWindow' declared here<br \/>\nextern int APIENTRY glutCreateWindow(const char *title) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                    ^<br \/>\nledramp.c:227:2: warning: 'glutDisplayFunc' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutDisplayFunc(displayCB);             \/* set window's display callback *\/<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:505:22: note: 'glutDisplayFunc' declared here<br \/>\nextern void APIENTRY glutDisplayFunc(void (*func)(void)) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\nledramp.c:228:2: warning: 'glutKeyboardFunc' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutKeyboardFunc(keyCB);                \/* set window's key callback *\/<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:507:22: note: 'glutKeyboardFunc' declared here<br \/>\nextern void APIENTRY glutKeyboardFunc(void (*func)(unsigned char key, int x, int y)) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\nledramp.c:229:2: warning: 'glutTimerFunc' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutTimerFunc(1000 \/ 24, timerCB, 0);<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:514:22: note: 'glutTimerFunc' declared here<br \/>\nextern void APIENTRY glutTimerFunc(unsigned int millis, void (*func)(int value), int value) OPENGL_DEPRECATED(10...<br \/>\n                     ^<br \/>\nledramp.c:235:2: warning: 'glutMainLoop' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutMainLoop();<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:438:22: note: 'glutMainLoop' declared here<br \/>\nextern void APIENTRY glutMainLoop(void) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\n11 warnings generated.<br \/>\nCC ledramp.c<br \/>\nLD obj-x86_64-apple-darwin13.0.0\/ledramp.elf<br \/>\nledramp done<br \/>\nAVR-CC atmega328p_dummy_blinky.c<br \/>\n    333\t     66\t      6\t    405\t    195\tatmega328p_dummy_blinky.axf<br \/>\nCC ..\/parts\/button.c<br \/>\nCC ..\/parts\/uart_pty.c<br \/>\nsimduino.c:94:5: warning: 'glutSwapBuffers' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n    glutSwapBuffers();<br \/>\n    ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:448:22: note: 'glutSwapBuffers' declared here<br \/>\nextern void APIENTRY glutSwapBuffers(void) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\nsimduino.c:127:2: warning: 'glutTimerFunc' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutTimerFunc(1000\/64, timerCB, 0);<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:514:22: note: 'glutTimerFunc' declared here<br \/>\nextern void APIENTRY glutTimerFunc(unsigned int millis, void (*func)(int value), int value) OPENGL_DEPRECATED(10...<br \/>\n                     ^<br \/>\nsimduino.c:248:2: warning: 'glutInit' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutInit(&argc, argv);          \/* initialize GLUT system *\/<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:431:22: note: 'glutInit' declared here<br \/>\nextern void APIENTRY glutInit(int *argcp, char **argv) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\nsimduino.c:250:2: warning: 'glutInitDisplayMode' is deprecated: first deprecated in OS X 10.9<br \/>\n      [-Wdeprecated-declarations]<br \/>\n        glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE);<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:432:22: note: 'glutInitDisplayMode' declared here<br \/>\nextern void APIENTRY glutInitDisplayMode(unsigned int mode) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\nsimduino.c:251:2: warning: 'glutInitWindowSize' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutInitWindowSize(8 * pixsize, 1 * pixsize);           \/* width=400pixels height=500pixels *\/<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:437:22: note: 'glutInitWindowSize' declared here<br \/>\nextern void APIENTRY glutInitWindowSize(int width, int height) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\nsimduino.c:252:11: warning: 'glutCreateWindow' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        window = glutCreateWindow(\"Glut\");      \/* create window *\/<br \/>\n                 ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:441:21: note: 'glutCreateWindow' declared here<br \/>\nextern int APIENTRY glutCreateWindow(const char *title) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                    ^<br \/>\nsimduino.c:261:2: warning: 'glutDisplayFunc' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutDisplayFunc(displayCB);             \/* set window's display callback *\/<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:505:22: note: 'glutDisplayFunc' declared here<br \/>\nextern void APIENTRY glutDisplayFunc(void (*func)(void)) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\nsimduino.c:262:2: warning: 'glutKeyboardFunc' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutKeyboardFunc(keyCB);                \/* set window's key callback *\/<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:507:22: note: 'glutKeyboardFunc' declared here<br \/>\nextern void APIENTRY glutKeyboardFunc(void (*func)(unsigned char key, int x, int y)) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\nsimduino.c:263:2: warning: 'glutTimerFunc' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutTimerFunc(1000 \/ 24, timerCB, 0);<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:514:22: note: 'glutTimerFunc' declared here<br \/>\nextern void APIENTRY glutTimerFunc(unsigned int millis, void (*func)(int value), int value) OPENGL_DEPRECATED(10...<br \/>\n                     ^<br \/>\nsimduino.c:269:2: warning: 'glutMainLoop' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutMainLoop();<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:438:22: note: 'glutMainLoop' declared here<br \/>\nextern void APIENTRY glutMainLoop(void) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\n10 warnings generated.<br \/>\nCC simduino.c<br \/>\nLD obj-x86_64-apple-darwin13.0.0\/simduino.elf<br \/>\nsimduino done<br \/>\nrm atmega328p_dummy_blinky.axf<br \/>\nAVR-CC atmega168_timer_64led.c<br \/>\n   1860\t     20\t     53\t   1933\t    78d\tatmega168_timer_64led.axf<br \/>\nCC ..\/parts\/button.c<br \/>\nCC ..\/parts\/hc595.c<br \/>\ntimer_64led.c:149:5: warning: 'glutSwapBuffers' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n    glutSwapBuffers();<br \/>\n    ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:448:22: note: 'glutSwapBuffers' declared here<br \/>\nextern void APIENTRY glutSwapBuffers(void) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\ntimer_64led.c:183:2: warning: 'glutTimerFunc' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutTimerFunc(1000\/64, timerCB, 0);<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:514:22: note: 'glutTimerFunc' declared here<br \/>\nextern void APIENTRY glutTimerFunc(unsigned int millis, void (*func)(int value), int value) OPENGL_DEPRECATED(10...<br \/>\n                     ^<br \/>\ntimer_64led.c:187:3: warning: 'glutPostRedisplay' is deprecated: first deprecated in OS X 10.9<br \/>\n      [-Wdeprecated-declarations]<br \/>\n                glutPostRedisplay();<br \/>\n                ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:444:22: note: 'glutPostRedisplay' declared here<br \/>\nextern void APIENTRY glutPostRedisplay(void) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\ntimer_64led.c:335:2: warning: 'glutInit' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutInit(&argc, argv);          \/* initialize GLUT system *\/<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:431:22: note: 'glutInit' declared here<br \/>\nextern void APIENTRY glutInit(int *argcp, char **argv) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\ntimer_64led.c:340:2: warning: 'glutInitDisplayMode' is deprecated: first deprecated in OS X 10.9<br \/>\n      [-Wdeprecated-declarations]<br \/>\n        glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE);<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:432:22: note: 'glutInitDisplayMode' declared here<br \/>\nextern void APIENTRY glutInitDisplayMode(unsigned int mode) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\ntimer_64led.c:341:2: warning: 'glutInitWindowSize' is deprecated: first deprecated in OS X 10.9<br \/>\n      [-Wdeprecated-declarations]<br \/>\n        glutInitWindowSize(w * pixsize, h * pixsize);           \/* width=400pixels height=500pixels *\/<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:437:22: note: 'glutInitWindowSize' declared here<br \/>\nextern void APIENTRY glutInitWindowSize(int width, int height) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\ntimer_64led.c:342:11: warning: 'glutCreateWindow' is deprecated: first deprecated in OS X 10.9<br \/>\n      [-Wdeprecated-declarations]<br \/>\n        window = glutCreateWindow(\"Press 0, 1, 2 or q\");        \/* create window *\/<br \/>\n                 ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:441:21: note: 'glutCreateWindow' declared here<br \/>\nextern int APIENTRY glutCreateWindow(const char *title) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                    ^<br \/>\ntimer_64led.c:351:2: warning: 'glutDisplayFunc' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutDisplayFunc(displayCB);             \/* set window's display callback *\/<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:505:22: note: 'glutDisplayFunc' declared here<br \/>\nextern void APIENTRY glutDisplayFunc(void (*func)(void)) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\ntimer_64led.c:352:2: warning: 'glutKeyboardFunc' is deprecated: first deprecated in OS X 10.9<br \/>\n      [-Wdeprecated-declarations]<br \/>\n        glutKeyboardFunc(keyCB);                \/* set window's key callback *\/<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:507:22: note: 'glutKeyboardFunc' declared here<br \/>\nextern void APIENTRY glutKeyboardFunc(void (*func)(unsigned char key, int x, int y)) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\ntimer_64led.c:353:2: warning: 'glutTimerFunc' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutTimerFunc(1000 \/ 24, timerCB, 0);<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:514:22: note: 'glutTimerFunc' declared here<br \/>\nextern void APIENTRY glutTimerFunc(unsigned int millis, void (*func)(int value), int value) OPENGL_DEPRECATED(10...<br \/>\n                     ^<br \/>\ntimer_64led.c:359:2: warning: 'glutMainLoop' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]<br \/>\n        glutMainLoop();<br \/>\n        ^<br \/>\n\/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h:438:22: note: 'glutMainLoop' declared here<br \/>\nextern void APIENTRY glutMainLoop(void) OPENGL_DEPRECATED(10_0, 10_9);<br \/>\n                     ^<br \/>\n11 warnings generated.<br \/>\nCC timer_64led.c<br \/>\nLD obj-x86_64-apple-darwin13.0.0\/timer_64led.elf<br \/>\ntimer_64led done<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A brief howto build simavr using CrosspackAVR avr-gcc toolchain First download the source to simavr from here git clone https:\/\/github.com\/buserror-uk\/simavr.git Using Homebrew install libelf (thanks to post here by Robert Nees): brew install libelf I needed to make symbolic links &hellip; <a href=\"https:\/\/www.herbert.org.nz\/?p=216\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-216","post","type-post","status-publish","format-standard","hentry","category-avr"],"_links":{"self":[{"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=\/wp\/v2\/posts\/216","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=216"}],"version-history":[{"count":3,"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=\/wp\/v2\/posts\/216\/revisions"}],"predecessor-version":[{"id":219,"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=\/wp\/v2\/posts\/216\/revisions\/219"}],"wp:attachment":[{"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}