Skip to content

Building JVMTI project

seanws edited this page Aug 14, 2012 · 14 revisions

These are instructions to build the C++ project ca.uvic.chisel.diver.tracing.jvmti

Please see this README.

Before you can build the JVMTI project you have to have the pre-built Boost Library binaries. Read Building the Boost Libraries to find out how to do this.

32bit

The following should be configured to build in your environment:

  • Path to the Boost libraries. Default: C:\boost\boost_1_##_0. Change it in Project properties -> C/C++ Build -> Build Variables
  • Path to the Java JDK. Change it in Project properties -> C/C++ Build -> Build Variables
  • Boost libraries includes in linker. When boost is built it embeds the version on Mingw that built it. Check the lib/win32 directory in your boost directory for the file names to see what version of Mingw built it. An example would be boost_date_time-mgw46-1_42.a where the version is 4.6. This need to be reflected in the library references in the project properties. Go to the JVMTI project properties -> C/C++ Builder -> Settings -> Mingw C++ Linker -> Libraries to update.
  • Boost built libraries subpath. Default: $boost/lib/win32. Go to the JVMTI project properties -> C/C++ Builder -> Settings -> Mingw C++ Linker -> Libraries to change.

64bit

Prerequisites: 64bit gcc compiler from Mingw64 (Mingw builds) 64bit gcc compiled Boost library

Clone this wiki locally