{"action":"opened","issue":{"url":"https://api.github.com/repos/serge-rgb/milton/issues/93","repository_url":"https://api.github.com/repos/serge-rgb/milton","labels_url":"https://api.github.com/repos/serge-rgb/milton/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/serge-rgb/milton/issues/93/comments","events_url":"https://api.github.com/repos/serge-rgb/milton/issues/93/events","html_url":"https://github.com/serge-rgb/milton/issues/93","id":341407420,"node_id":"MDU6SXNzdWUzNDE0MDc0MjA=","number":93,"title":"Error Linux (Mint/Ubuntu) compilation ","user":{"login":"xbelanch","id":23429,"node_id":"MDQ6VXNlcjIzNDI5","avatar_url":"https://avatars2.githubusercontent.com/u/23429?v=4","gravatar_id":"","url":"https://api.github.com/users/xbelanch","html_url":"https://github.com/xbelanch","followers_url":"https://api.github.com/users/xbelanch/followers","following_url":"https://api.github.com/users/xbelanch/following{/other_user}","gists_url":"https://api.github.com/users/xbelanch/gists{/gist_id}","starred_url":"https://api.github.com/users/xbelanch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xbelanch/subscriptions","organizations_url":"https://api.github.com/users/xbelanch/orgs","repos_url":"https://api.github.com/users/xbelanch/repos","events_url":"https://api.github.com/users/xbelanch/events{/privacy}","received_events_url":"https://api.github.com/users/xbelanch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-16T06:54:36Z","updated_at":"2018-07-16T06:54:36Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI get this error when I'm trying to compile Milton in Linux Mint:\r\n\r\n```\r\nScanning dependencies of target Milton\r\n[ 80%] Building CXX object CMakeFiles/Milton.dir/src/unity.cc.o\r\n[100%] Linking CXX executable Milton\r\nCMakeFiles/Milton.dir/src/unity.cc.o: In function `gl::load()':\r\nunity.cc:(.text+0x2206c): undefined reference to `platform_get_gl_proc'\r\nunity.cc:(.text+0x2207f): undefined reference to `platform_get_gl_proc'\r\nunity.cc:(.text+0x22092): undefined reference to `platform_get_gl_proc'\r\nunity.cc:(.text+0x220a5): undefined reference to `platform_get_gl_proc'\r\nunity.cc:(.text+0x220b8): undefined reference to `platform_get_gl_proc'\r\nCMakeFiles/Milton.dir/src/unity.cc.o:unity.cc:(.text+0x220cb): more undefined references to `platform_get_gl_proc' follow\r\nCMakeFiles/Milton.dir/src/unity.cc.o: In function `arena_free(Arena*)':\r\nunity.cc:(.text+0x25607): undefined reference to `platform_deallocate_internal'\r\nCMakeFiles/Milton.dir/src/unity.cc.o: In function `arena_pop(Arena*)':\r\nunity.cc:(.text+0x25764): undefined reference to `platform_deallocate_internal'\r\nCMakeFiles/Milton.dir/src/unity.cc.o: In function `milton_reset_canvas(Milton*)':\r\nunity.cc:(.text+0x2aabf): undefined reference to `platform_deallocate_internal'\r\nCMakeFiles/Milton.dir/src/unity.cc.o: In function `milton_main':\r\nunity.cc:(.text+0x7e602): undefined reference to `platform_setup_cursor'\r\nunity.cc:(.text+0x7ebea): undefined reference to `platform_deinit'\r\nunity.cc:(.text+0x7ec2e): undefined reference to `platform_deallocate_internal'\r\n../third_party/SDL2-2.0.8/build/linux64/lib/libSDL2.a(SDL_sndioaudio.c.o): In function `SNDIO_Init':\r\nSDL_sndioaudio.c:(.text+0xa3): undefined reference to `sio_open'\r\nSDL_sndioaudio.c:(.text+0xb1): undefined reference to `sio_close'\r\nSDL_sndioaudio.c:(.text+0xbf): undefined reference to `sio_setpar'\r\nSDL_sndioaudio.c:(.text+0xcd): undefined reference to `sio_getpar'\r\nSDL_sndioaudio.c:(.text+0xdb): undefined reference to `sio_start'\r\nSDL_sndioaudio.c:(.text+0xe9): undefined reference to `sio_stop'\r\nSDL_sndioaudio.c:(.text+0xf7): undefined reference to `sio_read'\r\nSDL_sndioaudio.c:(.text+0x105): undefined reference to `sio_write'\r\nSDL_sndioaudio.c:(.text+0x113): undefined reference to `sio_nfds'\r\nSDL_sndioaudio.c:(.text+0x121): undefined reference to `sio_pollfd'\r\nSDL_sndioaudio.c:(.text+0x12f): undefined reference to `sio_revents'\r\nSDL_sndioaudio.c:(.text+0x13d): undefined reference to `sio_eof'\r\nSDL_sndioaudio.c:(.text+0x14b): undefined reference to `sio_initpar'\r\ncollect2: error: ld returned 1 exit status\r\nCMakeFiles/Milton.dir/build.make:140: recipe for target 'Milton' failed\r\nmake[2]: *** [Milton] Error 1\r\nCMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/Milton.dir/all' failed\r\nmake[1]: *** [CMakeFiles/Milton.dir/all] Error 2\r\nMakefile:83: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n```\r\nAbout the undefined references to SDL_sndioaudio I found this thread at Stackoverflow: https://stackoverflow.com/questions/41608136/sdl-sndioaudio-c-undefined-reference-to-sio\r\n\r\nMaybe the CMakeLists.txt lacks a sndio link flag?\r\n\r\nThanks in advance,\r\n"}}
{"actor":{"display_login":"xbelanch"}}