Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #8089
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | Roedy Green <see_website@mindprod.com.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Compiling a dll for 64-bits W7 with cygwin and mingw-w64 |
| Date | Fri, 16 Sep 2011 14:40:42 -0700 |
| Organization | Canadian Mind Products |
| Lines | 71 |
| Message-ID | <5fg7775sc6nmi0su91ekt2pipfh4ds716p@4ax.com> (permalink) |
| References | <62e49dff-c206-4a0a-910a-9bc6c72911b0@w8g2000yqi.googlegroups.com> <3fc477pu50dtv7f56dk7ko9kcbk0f0nrr7@4ax.com> <ff86ac12-4fb6-4cab-9569-5138eb795f9c@l4g2000vbz.googlegroups.com> |
| Reply-To | Roedy Green <see_website@mindprod.com.invalid> |
| NNTP-Posting-Host | RCd/Ul4tyxGUBII8WGwa5g.user.speranza.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 8bit |
| X-Complaints-To | abuse@aioe.org |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| X-Newsreader | Forte Agent 6.00/32.1186 |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8089 |
Show key headers only | View raw
On Fri, 16 Sep 2011 00:18:11 -0700 (PDT), François Rappaz
<rappazf@gmail.com> wrote, quoted or indirectly quoted someone who
said :
>The script just says
><echo message="You must compile the C/C++ JNI manually, copy to
>java.libary.path somewhere" />
>
>Could you be more specific ?
This is not what you want, but it might contain a clue. Here is how to
compile C++ to create an exe file with ANT.
I forgot that I have been doing my JNI C++ compiles with the gui.
<!-- C O M P I L E -->
<target name="compile">
<echo message=" ::: honk ::: compiling C++ files." />
<exec executable="cl.exe" dir="com/mindprod/honk">
<arg value="/O2" />
<arg value="/Oi" />
<arg value="/D" />
<arg value="WIN32" />
<arg value="/D" />
<arg value="NDEBUG" />
<arg value="/D" />
<arg value="_CONSOLE" />
<arg value="/D" />
<arg value="_UNICODE" />
<arg value="/D" />
<arg value="UNICODE" />
<arg value="/EHsc" />
<arg value="/MT" />
<arg value="/Gy" />
<arg value="/W3" />
<arg value="/nologo" />
<arg value="/c" />
<arg value="/TP" />
<arg value="/errorReport:prompt" />
<arg value="honk.cpp" />
</exec>
<exec executable="link.exe" dir="com/mindprod/honk">
<arg value="/INCREMENTAL:NO" />
<arg value="/NOLOGO" />
<arg value="/MANIFEST:NO" />
<arg value="/SUBSYSTEM:CONSOLE" />
<arg value="/OPT:REF" />
<arg value="/OPT:ICF" />
<arg value="/DYNAMICBASE" />
<arg value="/NXCOMPAT" />
<arg value="/MACHINE:X86" />
<arg value="/ERRORREPORT:PROMPT" />
<arg value="/OUT:honk.exe" />
<arg value="kernel32.lib" />
<arg value="user32.lib" />
<arg value="gdi32.lib" />
<arg value="winspool.lib" />
<arg value="comdlg32.lib" />
<arg value="advapi32.lib" />
<arg value="shell32.lib" />
<arg value="winmm.lib" />
<arg value="honk.obj" />
</exec>
--
Roedy Green Canadian Mind Products
http://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.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next 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