{"action":"created","issue":{"url":"https://api.github.com/repos/smiths/swhs/issues/26","repository_url":"https://api.github.com/repos/smiths/swhs","labels_url":"https://api.github.com/repos/smiths/swhs/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/smiths/swhs/issues/26/comments","events_url":"https://api.github.com/repos/smiths/swhs/issues/26/events","html_url":"https://github.com/smiths/swhs/issues/26","id":166661983,"number":26,"title":"CCode preparations issue","user":{"login":"Sodaaaa","id":19175468,"avatar_url":"https://avatars.githubusercontent.com/u/19175468?v=3","gravatar_id":"","url":"https://api.github.com/users/Sodaaaa","html_url":"https://github.com/Sodaaaa","followers_url":"https://api.github.com/users/Sodaaaa/followers","following_url":"https://api.github.com/users/Sodaaaa/following{/other_user}","gists_url":"https://api.github.com/users/Sodaaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/Sodaaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sodaaaa/subscriptions","organizations_url":"https://api.github.com/users/Sodaaaa/orgs","repos_url":"https://api.github.com/users/Sodaaaa/repos","events_url":"https://api.github.com/users/Sodaaaa/events{/privacy}","received_events_url":"https://api.github.com/users/Sodaaaa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-20T19:27:39Z","updated_at":"2016-07-20T20:12:32Z","closed_at":null,"body":"I built cvode from the command line using the following commands which seem to work:\r\n$ cd swhs/Program/CCode/CVODE\r\n$ tar xzf cvode-2.8.2.tar.gz\r\n$ mkdir builddir instdir\r\n$ cd builddir\r\n$ cmake -DCMAKE_INSTALL_PREFIX=/Users/username/swhs/Program/CCode/CVODE/instdir \\\r\n -DEXAMPLE_INSTALL_PATH=/Users/username/swhs/Program/CCode/CVODE/instdir/examples \\\r\n ../cvode-2.8.2\r\n$ make\r\n$ make install\r\n\r\nBut after completing the preparations for running the code, typing \"make\" gives an error as below,\r\n$ make\r\ngcc -std=gnu99 main.c load_params.c verify_params.c energy1.c energy2.c energy3.c verify_output.c output.c plot.c -I /usr/local/include -I /opt/local/include -I include -L /usr/local/lib -L /opt/local/lib -lsundials_cvode -lsundials_nvecserial -o swhs\r\nld: warning: directory not found for option '-L/opt/local/lib'\r\nld: library not found for -lsundials_cvode\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\nmake: *** [swhs] Error 1\r\n\r\nAnd I've listed below the files/directories that some of the folders currently contain (I'm using option1): \r\n![screen shot 2016-07-21 at 3 17 52 am](https://cloud.githubusercontent.com/assets/19175468/16999754/35a9e616-4ef2-11e6-9f73-c62ac2522f50.png)\r\n--/CCode\r\n![screen shot 2016-07-21 at 3 17 02 am](https://cloud.githubusercontent.com/assets/19175468/16999772/4d9c87e2-4ef2-11e6-9b24-57ff4b0e949a.png)\r\n--/CCode/CVODE\r\n![screen shot 2016-07-21 at 3 18 19 am](https://cloud.githubusercontent.com/assets/19175468/16999787/60de040c-4ef2-11e6-8965-df42fdce3718.png)\r\n--/CCode/CVODE/instdir\r\n![screen shot 2016-07-21 at 3 17 23 am](https://cloud.githubusercontent.com/assets/19175468/16999853/a489aae4-4ef2-11e6-848f-9a009728e0cb.png)\r\n--/CCode/lib\r\n![screen shot 2016-07-21 at 3 17 36 am](https://cloud.githubusercontent.com/assets/19175468/16999868/b0366526-4ef2-11e6-9023-0a4c698ba060.png)\r\n--/CCode/include\r\n"},"comment":{"url":"https://api.github.com/repos/smiths/swhs/issues/comments/234067536","html_url":"https://github.com/smiths/swhs/issues/26#issuecomment-234067536","issue_url":"https://api.github.com/repos/smiths/swhs/issues/26","id":234067536,"user":{"login":"bmaclach","id":18634568,"avatar_url":"https://avatars.githubusercontent.com/u/18634568?v=3","gravatar_id":"","url":"https://api.github.com/users/bmaclach","html_url":"https://github.com/bmaclach","followers_url":"https://api.github.com/users/bmaclach/followers","following_url":"https://api.github.com/users/bmaclach/following{/other_user}","gists_url":"https://api.github.com/users/bmaclach/gists{/gist_id}","starred_url":"https://api.github.com/users/bmaclach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmaclach/subscriptions","organizations_url":"https://api.github.com/users/bmaclach/orgs","repos_url":"https://api.github.com/users/bmaclach/repos","events_url":"https://api.github.com/users/bmaclach/events{/privacy}","received_events_url":"https://api.github.com/users/bmaclach/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T20:12:32Z","updated_at":"2016-07-20T20:12:32Z","body":"It looks like you used the makefile from the \"Makefiles\" folder, which is my fault because I had an error in my Readme file that encouraged using that one. Given the file structure layout you chose (option 1 in the Readme), you should use the makefile that was in the directory originally. However, if you follow Spencer's suggestion above about writing to the /usr folder, then the makefile you used will actually be more appropriate.\r\n\r\nAlso, I believe there is a mistake in Spencer's comment (but correct me if I'm wrong). The folder where the libraries are located is --/CCode/lib, not --/CCode/CVODE/instdir (The labels for the folder appear below their respective image, not above). That is why the LIB_DIRS variable in the original makefile is set to -L lib."}}
{"actor":{"display_login":"bmaclach"}}