## Smile DLL x64 for jSmile

The engine

### Smile DLL x64 for jSmile

I would like to second that post: viewtopic.php?f=2&t=626#p2541
I am using Win7 x64, so jSmile can't use the x32 DLL that is delivered with it. However, on the download page there's only x32 available.
So my questions are:
a) Can someone from the staff compile an x64 version of jsmile.dll and put it online for download?
b) Can someone give a short walkthrough of how to compile it yourself?
It's not possible to compile x64 with VC++ Express (the free edition), and I don't know how to do it in Eclipse CDT...
Thanks, jo
jonnie

Posts: 41
Joined: Mon Feb 06, 2012 12:49 pm

### Re: Smile DLL x64 for jSmile

Hi Jonnie,

This should help you compile Jsmile for 64 bit windows, but this is with the "full" VS 2010.
I still have your email I believe, I'll send you the dll I've created with the following procedure.

Download the VS2010 64 bit SMILE and put it in the smilecpp dir in the
jsmile source dir

You may want to make sure that the path where you jsmile source code
directory is doesnt have any spaces in it, I had some issues with that
and put it in c:\ to fix that

open the jsmile solution in VS2010
add the x64 configuration in the configuration manager
Make sure you have the java jdk installed and the \bin directory in
the path environment variable, we need to run javac and this makes it
easier

you will need to add the following include directories to the project
(the directories are in the jdk directory):
~\java\include
~\java\include\win32 (Using this one, it compiled successfully, but I
don't have access to a 64 bit windows to test the end result, if it
doesnt work you'll have to try the 64 bit jdk

Let me know if everything works out.

Best,

Martijn
Martijn

Posts: 77
Joined: Sun May 29, 2011 12:23 am

### Re: Smile DLL x64 for jSmile

Yes, everything is working now! Thank you very much!

I did it with the VC++ Professional edition now. I'm student and so I have free access to this software through my university.
- got VC++ prof
- set the x64 architecture of the project
- compiled the .dll
- pointed the java project to that dll (did that with eclipse)
- the tutorial code on the docu wiki runs!

Still, if someone finds a way to compile the x64 .dll with eclipse cdt (which is free & open source), feel free to post a description here
jonnie

Posts: 41
Joined: Mon Feb 06, 2012 12:49 pm