{"action":"opened","issue":{"url":"https://api.github.com/repos/nativelibs4java/nativelibs4java/issues/564","labels_url":"https://api.github.com/repos/nativelibs4java/nativelibs4java/issues/564/labels{/name}","comments_url":"https://api.github.com/repos/nativelibs4java/nativelibs4java/issues/564/comments","events_url":"https://api.github.com/repos/nativelibs4java/nativelibs4java/issues/564/events","html_url":"https://github.com/nativelibs4java/nativelibs4java/issues/564","id":70528918,"number":564,"title":"Timing out on parsing ","user":{"login":"aaronkhoo","id":1539182,"avatar_url":"https://avatars.githubusercontent.com/u/1539182?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronkhoo","html_url":"https://github.com/aaronkhoo","followers_url":"https://api.github.com/users/aaronkhoo/followers","following_url":"https://api.github.com/users/aaronkhoo/following{/other_user}","gists_url":"https://api.github.com/users/aaronkhoo/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronkhoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronkhoo/subscriptions","organizations_url":"https://api.github.com/users/aaronkhoo/orgs","repos_url":"https://api.github.com/users/aaronkhoo/repos","events_url":"https://api.github.com/users/aaronkhoo/events{/privacy}","received_events_url":"https://api.github.com/users/aaronkhoo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-23T22:28:38Z","updated_at":"2015-04-23T22:28:38Z","closed_at":null,"body":"I've been trying to use jnaerator to create a Java interface for some functionality in dlib (http://dlib.net/). The command I've been trying is:\r\n\r\njava -Xmx1g -jar jnaerator-0.12-shaded.jar -o . -v -library libdlib image_processing/correlation_tracker.h -runtime BridJ -mode StandaloneJar \r\n\r\nHowever, this results in the following:\r\n\r\n```\r\nAuto-configuring parser...\r\nApr 23, 2015 2:53:55 PM com.ochafik.lang.jnaerator.JNAeratorConfigUtils getProp\r\nINFO: [environment] JNAERATOR_INCLUDE_PATH=.:/usr/include:/usr/local/include:/usr/include/c++/4.2.1:/usr/include/c++/4.2.1/tr1\r\nApr 23, 2015 2:53:55 PM com.ochafik.lang.jnaerator.JNAeratorConfigUtils getProp\r\nINFO: [environment] JNAERATOR_FRAMEWORKS_PATH=/System/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks:/System/Library/Frameworks/ApplicationServices.framework/Versions/Current/Frameworks:/System/Library/Frameworks:/Library/Frameworks:/Local/Library/Frameworks/:/Users/akhoo/Library/Frameworks\r\nos.arch = x86_64\r\nApr 23, 2015 2:53:55 PM com.ochafik.lang.jnaerator.JNAerator jnaerate\r\nINFO: Include path : \r\n\t.\r\n\t/usr/include\r\n\t/usr/local/include\r\n\t/usr/include/c++/4.2.1\r\n\t/usr/include/c++/4.2.1/tr1\r\nParsing native headers...\r\n/usr/include/sys/cdefs.h:74:25: warning: #warning \"Unsupported compiler detected\"\r\n./dlib_include_path_tutorial.txt:1:1: error: #error \"Don't put the dlib folder in your include path\"\r\n/usr/include/_types/_wctype_t.h:30:19: warning: No newline before end of file\r\n<path redacted>/image_processing/../geometry/../matrix/matrix_utilities_abstract.h:5:0: error: Unknown preprocessor directive inclue\r\n<path redacted>/image_processing/../geometry/../matrix/matrix_mat_abstract.h:3:0: error: Unknown preprocessor directive inclue\r\nWriting preprocessor output to '_jnaerator.preprocessed.c'\r\nWriting preprocessor macros to '_jnaerator.macros.cpp'\r\nNow parsing 1504 slices\r\nParsing failed : java.util.concurrent.TimeoutException\r\nParsing failed : java.util.concurrent.TimeoutException\r\n```\r\n\r\nThe CPU usage on the development box spikes to 100% and stays there while this is going on. I've let it go for about 30 min, but there isn't any end in sight. \r\n\r\nI also tried adding -parseChunks, but jnaerator tries to treat it like a file:\r\n\r\n```\r\n#\r\n# ERROR: JNAeration failed !\r\n#\r\n#\tError parsing arguments :\r\n#\t-o . -v -parseChunks -library libdlib -parseChunks <path redacted>/image_processing/correlation_tracker.h -runtime BridJ -mode StandaloneJar : java.io.FileNotFoundException: <path redacted>/-parseChunks\r\n#\tPlease use -h for help on the command-line options available.\r\n#\r\n```\r\n\r\nAny help would be greatly appreciated.\r\n\r\nThanks."}}