Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated code with errors #100

Open
techburner opened this issue Aug 28, 2015 · 0 comments
Open

Generated code with errors #100

techburner opened this issue Aug 28, 2015 · 0 comments

Comments

@techburner
Copy link

Hi Olivier, I'm trying to use JNAerator and I was able to generate some classes but some of them contains errors. I have the header files and *.so file and this is the script I'm running:

export JNAERATOR_INCLUDE_PATH=.:/usr/include:/usr/local/include:/usr/include/linux/:/usr/lib/gcc/x86_64-linux-gnu/4.8/include/
java -jar jnaerator.jar -library GEN /home/mycompany/Desktop/test/sdk/sfm/include/*.h /home/mycompany/Desktop/test/sdk/sfm/library/linux/myApi.so -o . -v -noJar -noComp

the files are generated but I get some errors:

Parsing native headers...
/home/mycompany/Desktop/test/sdk/sfm/include/SfmexDeclarations.h:24:5: error: #error Unsupported platform, data types must be defined!

The lines below is where it is failing:

elif defined(SOLARIS) || defined(LINUX)

ifdef _LP64

typedef unsigned long SfmexU64;
typedef unsigned int SfmexU32;

About the generated java code, some classes look like this, which results in a compilation error:

/** Undefined type */
public static interface list<SfmexMMSUPTLV* > {

};
/** Undefined type */
public static interface list<SfmexMMSCPTLV* > {

Can you give me any hint about what's happening?

Thanks for you time.
Bruno

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant