Re: Using Microsoft Compilers to compile Java native libraries

  • From: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Sat, 5 Feb 2011 10:32:09 -0600

Right. I saw your later message. Thanks. We should have all we need now.

John

On Sat, Feb 05, 2011 at 10:51:58AM -0500, Sina Bahram wrote:
> Yes, from the jdk. It's already on your computer, presumably. No downloading 
> or anything involved.
> 
> Take care,
> Sina
> 
> -----Original Message-----
> From: programmingblind-bounce@xxxxxxxxxxxxx 
> [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of John J. Boyer
> Sent: Saturday, February 05, 2011 10:02 AM
> To: programmingblind@xxxxxxxxxxxxx
> Subject: Re: Using Microsoft Compilers to compile Java native libraries
> 
> I thought you said I would have to get them somewhere.
> 
> John
> 
> On Sat, Feb 05, 2011 at 09:11:46AM -0500, Sina Bahram wrote:
> > They come with the jdk
> > 
> > Take care,
> > Sina
> > 
> > 
> > -----Original Message-----
> > From: programmingblind-bounce@xxxxxxxxxxxxx 
> > [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of John J. Boyer
> > Sent: Saturday, February 05, 2011 9:04 AM
> > To: programmingblind@xxxxxxxxxxxxx
> > Subject: Re: Using Microsoft Compilers to compile Java native libraries
> > 
> > On Linux I can get jni.h and jni-md.h by installing a gcc extension. 
> > Isn't something like that available for Windows?
> > 
> > I'm wondering iif the problem with that Microsoft page isn't that it is 
> > not accessible but that it i9s almost unusable by anyone. My sighted 
> > assistants have encountered lots of such pages.
> > 
> > John
> > 
> > On Sat, Feb 05, 2011 at 08:49:23AM -0500, Jamal Mazrui wrote:
> > > Hi Laura,
> > > That was one of the least accessible pages I have encountered on the 
> > > Microsoft site!  Yes, it should work if you install .NET 4.  Note that 
> > > EdSharp and FileDir also have a command for changing environment 
> > > variables, Control+E.
> > > 
> > > Jamal
> > > 
> > > 
> > > On 2/4/2011 11:11 PM, qubit wrote:
> > > >Hi Jamal --
> > > >Thank you for hunting this one down.  I think the info will help list
> > > >members a lot.  I'm a bit relieved I was not the only one battling the
> > > >accessibility of those pages.
> > > >I downloaded the installer from your previous mail ), and tried running 
> > > >it,
> > > >but it couldn't proceed until I install dotnet4.  So if I install dotnet4
> > > >and then the vs 10 express, then this latest C++ compiler, I should have
> > > >everything?
> > > >
> > > >As for editing the path variable on windows, I usually do that in the
> > > >advanced tab of the system properties. There is a button for
> > > >changing/viewing environment variables, at least this works on XP.  I am
> > > >still learning windows7.
> > > >
> > > >Happy hacking.
> > > >--le
> > > >
> > > >----- Original Message -----
> > > >From: "Jamal Mazrui"<empower@xxxxxxxxx>
> > > >To:<programmingblind@xxxxxxxxxxxxx>
> > > >Cc: "John J. Boyer"<john.boyer@xxxxxxxxxxxxxxxxx>
> > > >Sent: Friday, February 04, 2011 9:38 PM
> > > >Subject: Re: Using Microsoft Compilers to compile Java native libraries
> > > >
> > > >
> > > >My information about the C++ compiler and the Windows SDK was based on
> > > >this web page:
> > > >
> > > >Development Resources in the Windows SDK
> > > >http://msdn.microsoft.com/en-us/library/ff660763.aspx
> > > >
> > > >An excerpt reads as follows:
> > > >"The new Windows compilers and CRT for the x86, x64, and Itanium (IA64)
> > > >operating systems are included in the Windows SDK and integrated into
> > > >its command-line build environment. These compilers and CRT are the same
> > > >as those that are included in Visual Studio 2010."
> > > >
> > > >After installing the Windows SDK, however, I also could not find the C++
> > > >compiler.
> > > >
> > > >I then tried to download and install Visual C++ Express Edition, which
> > > >is also supposed to include the command-line compiler.  It took about a
> > > >half hour and some luck to start the download due to the inaccessibility
> > > >of that web page!  To make it easier for others, I have now put a copy
> > > >of the installer at
> > > >
> > > >
> > > >
> > > >http://EmpowermentZone.com/vc_web.exe
> > > >
> > > >
> > > >It is the type of installer that connects to a web source at runtime,
> > > >rather than containing the components to install, itself, so one should
> > > >get the latest directly from Microsoft even if the installer is obtained
> > > >from the above link.
> > > >
> > > >By default, the C++ compiler will be placed in this location:
> > > >c:\program Files\Microsoft Visual Studio 10.0\VC\bin\cl.exe
> > > >
> > > >Instructions on registering Visual C++ 2010 Express are here:
> > > >http://www.microsoft.com/express/support/regins/
> > > >
> > > >It is probably not necessary to register if one is just using the
> > > >command-line compiler rather than the IDE, but I am not sure.  Note that
> > > >certain directories containing .dll files need to be on the Windows
> > > >search path for cl.exe to work.  There is an option in the Windows Start
> > > >Menu that sets the path appropriately at a command prompt, but this
> > > >could also be done in other ways.
> > > >
> > > >Jamal
> > > >
> > > >
> > > >On 2/4/2011 4:55 PM, John J. Boyer wrote:
> > > >>This is great information. I have something in my Program Files (x86)
> > > >>folder called Microsoft SDKs. It has a lot of exe files in its bin
> > > >>directory. I don't see cl.exe but I do see lc.exe and also rc.exe Is the
> > > >>compiler there somewhere? Is there a 64-bit version? The one I have has
> > > >>an x64 directory, but it seems to be empty.
> > > >>
> > > >>John
> > > >>
> > > >>On Fri, Feb 04, 2011 at 03:52:39PM -0500, Jamal Mazrui wrote:
> > > >>>I looked into this, and did not find the C++ command-line compiler
> > > >>>distributed with .NET 4, even though the C#, Visual Basic .NET, and
> > > >>>JScript .NET compilers are distributed that way, located in the
> > > >>>directory
> > > >>>c:\windows\Microsoft.NET\Framework\v4.0.30319
> > > >>>
> > > >>>Based on web research, the C++ 2010 command-line compiler is included 
> > > >>>in
> > > >>>the latest Windows SDK, downloadable from this page:
> > > >>>
> > > >>>Microsoft Windows SDK for Windows 7 and .NET Framework 4 -
> > > >>>http://www.microsoft.com/downloads/en/details.aspx?FamilyID=6b6c21d2-2006-4afa-9702-529fa782d63b&displaylang=en
> > > >>>
> > > >>>Jamal
> > > >>>On
> > > >>>Fri, 4 Feb
> > > >>>2011,
> > > >>>John J. Boyer wrote:
> > > >>>
> > > >>>>Date: Fri, 4 Feb 2011 14:00:40 -0600
> > > >>>>From: John J. Boyer<john.boyer@xxxxxxxxxxxxxxxxx>
> > > >>>>Reply-To: programmingblind@xxxxxxxxxxxxx
> > > >>>>To: programmingblind@xxxxxxxxxxxxx
> > > >>>>Subject: Re: Using Microsoft Compilers to compile Java native 
> > > >>>>libraries
> > > >>>>
> > > >>>>This sounds good, but does .Net include the command-line compiler,
> > > >>>>linker, etc.? My understanding is that with these tools we would be 
> > > >>>>able
> > > >>>>to create make and rc files and then just run them with a .bat file to
> > > >>>>create either 32 or 64 bit versions of the libraries. Only some header
> > > >>>>files would need to be changed, and this could be explained in a short
> > > >>>>README file. Once we have the necessary files porting new releases
> > > >>>>should be easy.
> > > >>>>
> > > >>>>John
> > > >>>>
> > > >>>>On Fri, Feb 04, 2011 at 02:25:25PM -0500, James Homme wrote:
> > > >>>>>Hi,
> > > >>>>>I'd like to have the message that talks about this. According to my
> > > >>>>>memory, Jamal wrote a utility that gets the .Net SDK files for you.
> > > >>>>>Maybe
> > > >>>>>you can find it on nonvisualdevelopment.org. I'll dig around to see 
> > > >>>>>if
> > > >>>>>I
> > > >>>>>saved that announcement.
> > > >>>>>
> > > >>>>>Jim
> > > >>>>>
> > > >>>>>Jim Homme,
> > > >>>>>Usability Services,
> > > >>>>>Phone: 412-544-1810. Skype: jim.homme
> > > >>>>>Internal recipients,  Read my accessibility blog. Discuss 
> > > >>>>>accessibility
> > > >>>>>here. Accessibility Wiki: Breaking news and accessibility advice
> > > >>>>>
> > > >>>>>
> > > >>>>>-----Original Message-----
> > > >>>>>From: programmingblind-bounce@xxxxxxxxxxxxx
> > > >>>>>[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of qubit
> > > >>>>>Sent: Friday, February 04, 2011 1:40 PM
> > > >>>>>To: programmingblind@xxxxxxxxxxxxx
> > > >>>>>Subject: Re: Using Microsoft Compilers to compile Java native 
> > > >>>>>libraries
> > > >>>>>
> > > >>>>>Hi John -- Have you tried downloading it? I dropped it temporarily, 
> > > >>>>>but
> > > >>>>>after a day of poking around on that site I concluded finding the
> > > >>>>>executable
> > > >>>>>is a nontrivial exercise for jaws.
> > > >>>>>I'll go back again and look around, which may yield success as I
> > > >>>>>believe
> > > >>>>>there was an internet problem last weekend with the weather.
> > > >>>>>--le
> > > >>>>>
> > > >>>>>
> > > >>>>>
> > > >>>>>----- Original Message -----
> > > >>>>>From: "John J. Boyer"<john.boyer@xxxxxxxxxxxxxxxxx>
> > > >>>>>To:<programmingblind@xxxxxxxxxxxxx>
> > > >>>>>Sent: Friday, February 04, 2011 6:47 AM
> > > >>>>>Subject: Using Microsoft Compilers to compile Java native libraries
> > > >>>>>
> > > >>>>>
> > > >>>>>For the BrailleBlaster project we need to compile the liblouis and
> > > >>>>>liblouisutdml libraries for various platforms. In looking at the 
> > > >>>>>source
> > > >>>>>code for the Windows native libraries used by SWT I see that they use
> > > >>>>>cl
> > > >>>>>nmake rc and I think link at the command line. There is also a .bat
> > > >>>>>file
> > > >>>>>that can produce either 32 or 64 bit code. Unfortunately, there is no
> > > >>>>>inndiccation of which version of the compiler they used. I've been
> > > >>>>>trying to find the 2010 version of Visual Studio with the command 
> > > >>>>>line
> > > >>>>>without success. Of course an earlier version will work if it is
> > > >>>>>capable
> > > >>>>>of both architectures and can supply the jni.h header. Does anyone 
> > > >>>>>have
> > > >>>>>a direct URL to download it?
> > > >>>>>
> > > >>>>>I don't think you need a Windows Live ID, regardless of what the
> > > >>>>>Microsoft page says. That page is an example of a website with awful
> > > >>>>>usability. This is a separate issue from accessibility. I wonder how
> > > >>>>>they can get away with it.
> > > >>>>>
> > > >>>>>Thanks,
> > > >>>>>John
> > > >>>>>
> > > >>>>>--
> > > >>>>>John J. Boyer; President, Chief Software Developer
> > > >>>>>Abilitiessoft, Inc.
> > > >>>>>http://www.abilitiessoft.com
> > > >>>>>Madison, Wisconsin USA
> > > >>>>>Developing software for people with disabilities
> > > >>>>>
> > > >>>>>__________
> > > >>>>>View the list's information and change your settings at
> > > >>>>>//www.freelists.org/list/programmingblind
> > > >>>>>
> > > >>>>>__________
> > > >>>>>View the list's information and change your settings at
> > > >>>>>//www.freelists.org/list/programmingblind
> > > >>>>>
> > > >>>>>
> > > >>>>>This e-mail and any attachments to it are confidential and are 
> > > >>>>>intended
> > > >>>>>solely for use of the individual or entity to whom they are 
> > > >>>>>addressed.
> > > >>>>>If you have received this e-mail in error, please notify the sender
> > > >>>>>immediately and then delete it.  If you are not the intended 
> > > >>>>>recipient,
> > > >>>>>you must not keep, use, disclose, copy or distribute this e-mail
> > > >>>>>without
> > > >>>>>the author's prior permission.  The views expressed in this e-mail
> > > >>>>>message do not necessarily represent the views of Highmark Inc., its
> > > >>>>>subsidiaries, or affiliates.
> > > >>>>>__________
> > > >>>>>View the list's information and change your settings at
> > > >>>>>//www.freelists.org/list/programmingblind
> > > >>>>
> > > >>>>--
> > > >>>>John J. Boyer; President, Chief Software Developer
> > > >>>>Abilitiessoft, Inc.
> > > >>>>http://www.abilitiessoft.com
> > > >>>>Madison, Wisconsin USA
> > > >>>>Developing software for people with disabilities
> > > >>>>
> > > >>>>__________
> > > >>>>View the list's information and change your settings at
> > > >>>>//www.freelists.org/list/programmingblind
> > > >>>>
> > > >>>__________
> > > >>>View the list's information and change your settings at
> > > >>>//www.freelists.org/list/programmingblind
> > > >>
> > > >__________
> > > >View the list's information and change your settings at
> > > >//www.freelists.org/list/programmingblind
> > > >
> > > >__________
> > > >View the list's information and change your settings at
> > > >//www.freelists.org/list/programmingblind
> > > >
> > > __________
> > > View the list's information and change your settings at 
> > > //www.freelists.org/list/programmingblind
> > 
> > -- 
> > John J. Boyer; President, Chief Software Developer
> > Abilitiessoft, Inc.
> > http://www.abilitiessoft.com
> > Madison, Wisconsin USA
> > Developing software for people with disabilities
> > 
> > __________
> > View the list's information and change your settings at 
> > //www.freelists.org/list/programmingblind
> > 
> > __________
> > View the list's information and change your settings at 
> > //www.freelists.org/list/programmingblind
> 
> -- 
> John J. Boyer; President, Chief Software Developer
> Abilitiessoft, Inc.
> http://www.abilitiessoft.com
> Madison, Wisconsin USA
> Developing software for people with disabilities
> 
> __________
> View the list's information and change your settings at 
> //www.freelists.org/list/programmingblind
> 
> __________
> View the list's information and change your settings at 
> //www.freelists.org/list/programmingblind

-- 
John J. Boyer; President, Chief Software Developer
Abilitiessoft, Inc.
http://www.abilitiessoft.com
Madison, Wisconsin USA
Developing software for people with disabilities

__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

Other related posts: