Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #8202
| From | François Rappaz <rappazf@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Compiling a dll for 64-bits W7 with cygwin and mingw-w64 |
| Date | 2011-09-22 07:04 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <e10502cb-fb5a-4fa3-9522-28275240bd6d@c22g2000yqa.googlegroups.com> (permalink) |
| References | <62e49dff-c206-4a0a-910a-9bc6c72911b0@w8g2000yqi.googlegroups.com> <dad64e54-77ae-4914-a53c-5124ec24caf6@glegroupsg2000goo.googlegroups.com> <be3b8825-1780-4577-8607-ed0bee3c3042@k29g2000yqf.googlegroups.com> <n0o77751b965iilop4se0nishggr38u6p8@4ax.com> |
On Sep 17, 1:51 am, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:
> On Fri, 16 Sep 2011 07:32:26 -0700 (PDT), François Rappaz
> <rapp...@gmail.com> wrote, quoted or indirectly quoted someone who
> said :
>
> > {System.loadLibrary("kbhook");}
>
> paths are delicate things. The tiniest typo breaks them.
>
> seehttp://mindprod.com/applet/wassup.html
>
> download and run it to dump your system properties. For Linux you
> should see : instead of ; between the elements.
>
> look particularly at:
>
> java.library.path =
> E:\sys;.;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;F:\Program
> Files (X86)\jet7.2-pro\bin;E:\Program
> Files\Java\jdk1.7.0\bin;E:\env;E:\sys;F:\Program
> Files\JPSoft\TCMD12x64;F:\Program Files\vslick\win;F:\Program Files
> (x86)\apache-ant-1.8.2\bin;F:\Program
> Files\PostgreSQL\9.0\bin;E:\com\mindprod\reorg;F:\Program
> Files\TortoiseSVN\bin;F:\Program Files (x86)\asm;F:\Program Files
> (x86)\Microsoft Visual Studio 10.0\Common7\IDE\;F:\Program Files
> (x86)\Microsoft Visual Studio 10.0\VC\BIN;F:\Program Files
> (x86)\Microsoft Visual Studio
> 10.0\Common7\Tools;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Program
> Files (x86)\Microsoft SDKs\Windows\v7.0A\bin;c:\Program Files
> (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft
> SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL
> Server\100\DTS\Binn\
> --
> Roedy Green Canadian Mind Productshttp://mindprod.com
> Your top priority should be fixing bugs. If you carry on development,
> you are just creating more places you will have to search for them.
At last, with the help of people on mingw-w64-
public@lists.sourceforge.net, here is the magical lines to have a dll
working with java 64 bits. Under cygwin
jdk='/cygdrive/c/Program Files/Java/Jdk1.7.0'
x86_64-w64-mingw32-g++ -w -mno-cygwin -I"$jdk/include" -I"$jdk/
include/win32" -static -shared -o foo.dll foo.cpp
I could then stripp the size of the dll with
x86_64-w64-mingw32-strip foo.dll
which gives a 88 kb file instead of 509 kb.
F.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar
Compiling a dll for 64-bits W7 with cygwin and mingw-w64 François Rappaz <rappazf@gmail.com> - 2011-09-15 05:41 -0700
Re: Compiling a dll for 64-bits W7 with cygwin and mingw-w64 Roedy Green <see_website@mindprod.com.invalid> - 2011-09-15 10:17 -0700
Re: Compiling a dll for 64-bits W7 with cygwin and mingw-w64 François Rappaz <rappazf@gmail.com> - 2011-09-16 00:18 -0700
Re: Compiling a dll for 64-bits W7 with cygwin and mingw-w64 Roedy Green <see_website@mindprod.com.invalid> - 2011-09-16 14:40 -0700
Re: Compiling a dll for 64-bits W7 with cygwin and mingw-w64 Lew <lewbloch@gmail.com> - 2011-09-16 06:12 -0700
Re: Compiling a dll for 64-bits W7 with cygwin and mingw-w64 François Rappaz <rappazf@gmail.com> - 2011-09-16 07:32 -0700
Re: Compiling a dll for 64-bits W7 with cygwin and mingw-w64 Roedy Green <see_website@mindprod.com.invalid> - 2011-09-16 14:47 -0700
Re: Compiling a dll for 64-bits W7 with cygwin and mingw-w64 Roedy Green <see_website@mindprod.com.invalid> - 2011-09-16 16:51 -0700
Re: Compiling a dll for 64-bits W7 with cygwin and mingw-w64 François Rappaz <rappazf@gmail.com> - 2011-09-22 07:04 -0700
csiph-web