{"action":"created","issue":{"url":"https://api.github.com/repos/olikraus/u8glib/issues/439","repository_url":"https://api.github.com/repos/olikraus/u8glib","labels_url":"https://api.github.com/repos/olikraus/u8glib/issues/439/labels{/name}","comments_url":"https://api.github.com/repos/olikraus/u8glib/issues/439/comments","events_url":"https://api.github.com/repos/olikraus/u8glib/issues/439/events","html_url":"https://github.com/olikraus/u8glib/issues/439","id":184151039,"number":439,"title":"Impossible to get this working in Atmel Studio","user":{"login":"MCUdude","id":3238730,"avatar_url":"https://avatars.githubusercontent.com/u/3238730?v=3","gravatar_id":"","url":"https://api.github.com/users/MCUdude","html_url":"https://github.com/MCUdude","followers_url":"https://api.github.com/users/MCUdude/followers","following_url":"https://api.github.com/users/MCUdude/following{/other_user}","gists_url":"https://api.github.com/users/MCUdude/gists{/gist_id}","starred_url":"https://api.github.com/users/MCUdude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MCUdude/subscriptions","organizations_url":"https://api.github.com/users/MCUdude/orgs","repos_url":"https://api.github.com/users/MCUdude/repos","events_url":"https://api.github.com/users/MCUdude/events{/privacy}","received_events_url":"https://api.github.com/users/MCUdude/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-20T07:07:54Z","updated_at":"2016-10-24T05:37:45Z","closed_at":null,"body":"Hi!\r\nI've been using the u8glib library for my Arduino projects for a long time, and it's allways been easy to set up. I'm slowly migrating to Atmel Studio 7 instead, and wanted to create a project where I'm using u8glib. I've loaded up the \"HelloWorld\" example, and added u8glib to the Solution explorer, so that Atmel studio is able to find the library. I've also added the correct #include path.\r\n\r\nHere's the error message\r\n```\r\ncannot find -lu8g.h  \r\nrecipe for target 'OLED2.elf' failed  \r\nId returned 1 exit status\r\n```\r\n\r\nWhat is this, and how can it be solved? Your guide for Atmel Studio 6 (on google code) contains just a whole bunch of dead pictures, and should be hosted on Github instead.\r\n\r\nhere's the code (main.c)\r\n``` c\r\n#include <avr/io.h>\r\n#include <avr/interrupt.h>\r\n#include <avr/sfr_defs.h>\r\n#include \"u8glib/src/u8g.h\"\r\n\r\nu8g_t u8g;\r\n\r\nvoid sysInit(void)\r\n{\r\n\t/* select minimal prescaler (max system speed) */\r\n\tCLKPR = 0x80;\r\n\tCLKPR = 0x00;\r\n}\r\n\r\nvoid lcdSetup()\r\n{\r\n\tu8g_InitSPI(&u8g, &u8g_dev_ssd1306_128x64_sw_spi, PN(1, 2) /* PB2 */, PN(1, 3) /* PB3 */, PN(1, 4) /* PB4 */, PN(1, 5) /* PB5 */, PN(1, 6) /* PB6 */);\r\n}\r\n\r\nvoid draw(void)\r\n{\r\n\tu8g_SetFont(&u8g, u8g_font_6x10);\r\n\tu8g_DrawStr(&u8g, 0, 15, \"Hello World!\");\r\n}\r\n\r\n\r\nint main(void)\r\n{\t\r\n\t// Power the LCD using PB0 and PB1\r\n\tDDRB |= _BV(PB0) | _BV(PB1);\r\n\tPORTB |= _BV(PB0);\r\n\tPORTB &= ~_BV(PB1);\r\n\t\r\n\t// Init LCD\r\n\tsysInit();\r\n\tlcdSetup();\r\n\t\r\n    /* Replace with your application code */\r\n    while (1) \r\n    {\r\n\t\tu8g_FirstPage(&u8g);\r\n\t\tdo\r\n\t\t{\r\n\t\t\tdraw();\r\n\t\t} while ( u8g_NextPage(&u8g) );\r\n\t\tu8g_Delay(100);\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/olikraus/u8glib/issues/comments/255651875","html_url":"https://github.com/olikraus/u8glib/issues/439#issuecomment-255651875","issue_url":"https://api.github.com/repos/olikraus/u8glib/issues/439","id":255651875,"user":{"login":"olikraus","id":1084992,"avatar_url":"https://avatars.githubusercontent.com/u/1084992?v=3","gravatar_id":"","url":"https://api.github.com/users/olikraus","html_url":"https://github.com/olikraus","followers_url":"https://api.github.com/users/olikraus/followers","following_url":"https://api.github.com/users/olikraus/following{/other_user}","gists_url":"https://api.github.com/users/olikraus/gists{/gist_id}","starred_url":"https://api.github.com/users/olikraus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olikraus/subscriptions","organizations_url":"https://api.github.com/users/olikraus/orgs","repos_url":"https://api.github.com/users/olikraus/repos","events_url":"https://api.github.com/users/olikraus/events{/privacy}","received_events_url":"https://api.github.com/users/olikraus/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T05:37:45Z","updated_at":"2016-10-24T05:37:45Z","body":"looks like a atmel studio issue.\r\n-lu8g.h is for sure wrong. Maybe -lu8g works\r\nI once had created a tutorial for this, but since shutdown of googlecode this is broken and i never found time to fix this. also the pics are there somewhere but not linked correctly\r\nhttps://github.com/olikraus/m2tklib/wiki/as6\r\n\r\n"}}
{"actor":{"display_login":"olikraus"}}