I’ve been working quite fervently to get CMake working for a Java project I’ve taken on and have found that it has a couple of issues still.

The first issue is an undefined CMAKE_Java_LINK_EXECUTABLE variable, which because Java doesn’t really do linking (JIT takes care of doing something that I haven’t looked into yet) we don’t really need, but CMake expects it to be there. By simply making it a mv string and setting up the classpath option (via INCLUDE_DIRECTORIES directives) correctly, we can compile our java project using CMake almost the same way we would expect to make a CXX project. If anyone knows of the platform agnostic way to move files in CMake I’d love to know.

Unfortunately the following changes are required to some CMake 2.8 system files for this to work:

In /usr/share/cmake/Modules/CMakeJavaInformation.cmake:

IF(NOT ${CMAKE_Java_LINK_EXECUTABLE})
SET(CMAKE_Java_LINK_EXECUTABLE "mv <objects> <target>")
ENDIF(NOT ${CMAKE_Java_LINK_EXECUTABLE})

In /usr/share/cmake/Modules/CMakeJavaCompiler.cmake.in:

SET(CMAKE_Java_LINK_EXECUTABLE "@CMAKE_Java_LINK_EXECUTABLE@")
Jan 202010
 

Today I found out that some machines can’t handle the load I throw at them. The following was the status of my web server after apache filled up its memory. A quick (quite slow actually) reboot of apache and everything was stabilized.

!Ridiculous System Load

Layman Overlay

 Linux Guides  Comments Off
Jan 112010
 

My Overlay

My overlay has been available via subversion for quite some time now, but not in any easy to use format (integration with layman).  Getting this overlay to work with yours must have been a pain if you wanted to try something I had been working on.

Making My Overlay Available

The first thing I had to do to make my overlay talk with layman, let alone get along with layman, was add an xml definition of the overlay somewhere.  I chose the easy to manipulate path of http://www.alunduil.com/svn/portage/trunk/portage/alunduil-overlay.xml.

Adding My Overlay List to Your Layman

To add my overlay(s) to your layman list, simply add the following path to your overlays variable in /etc/layman/layman.cfg: `http://www.alunduil.com/svn/portage/trunk/portage/alunduil-overlay.xml`.

© 2011 Alunduil's Hosting Suffusion theme by Sayontan Sinha