Hey Robert,
thank you for your reply. It actually did help a bit.
I still found several issues when compiling/installing, I couldn't get solved
yet.
1. Install Paths
I can't use an interactive build process, so the ccmake option does not work
in this case.
Instead, I tried to pass parameters to the cmake call to adjust install
directories etc.
e.g.
cmake -DCMAKE_INSTALL_PREFIX="/usr/"
The result is: with make install, everything ends up under "/usr/" (instead of
/usr/local/), even man, lib etc. and not where it should be. I tried passing
those with parameters as well, but they've got ignored by cmake.
2. radiance_support
when running make, it tries to download the rad4R1supp package. I'd prefer to
just provide the already downloaded archive, which does not seemed to be well
supported by the cmake/make system.
However, I placed the archive under the manually created directory
build/Downloads/Download/radiance_support/ .
The problem here seems to be, that the make script seems to accept it (no
download), but nothing from that gets actually build/installed.
If all goes well, I should get some rpm's with the open-build-service in the
end. You can follow the progress on
https://build.opensuse.org/package/show?package=radiance&project=home%3Alumnis
However, there are quite a few things left to get there.
The cmake setup needs some improvements, at the moment a number of "hacks" are
needed to get the current state, which could be fixed in the cmake setup,
mainly the path/install issues.
Any comments/help would be appreciated.
Denny
Am Dienstag, 23. Oktober 2012, 10:36:47 schrieb Guglielmetti, Robert:
> Hi Denny,
>
> Yeah there really isn't any documentation on the NREL site on how to
> actually use the CMake build system in the Radiance source tree, yet. Pally
> at IESve wrote up a great summary of her experience using CMake and posted
> it here a couple/few months ago.
>
> Sounds like you have CMake on your system. The quick bullet list of steps I
> do is as follows:
>
> 1. create build directory in ray/
> 2. cd ray/build
> 3. cmake ..
> 4. ccmake .
> 4a. In the ccmake "gui", type 'c' to configure, fix any errors found
> 4b. Type 'g' to generate themakefiles; ccmake will then exit
> 5. make
> if all goes well, then:
> 6. sudo make install
>
> Lemme know if that helps.
>
> - Rob
>
> ________________________________________
> From: Denny [lum...@googlemail.com]
> Sent: Tuesday, October 23, 2012 9:10 AM
> To: radiance-dev@radiance-online.org
> Subject: [Radiance-dev] compile radiance HEAD 3332 with cmake on command
> line / linux
>
> Dear all,
>
> I tried to compile radiance HEAD 3332 from source (snapshot) on an openSUSE
> 12.2 64bit box with cmake 2.8.9; gcc 4.7.1, but don't get a working version
> of radiance.
>
> As I couldn't find much documentation on the cmake build for radiance and I
> haven't used cmake much, It would be good to get some guidance.
>
> Here is what I did:
>
> 1. Untar src
>
> /> tar xvf radiance-HEAD-ecd3332.tar.gz
>
> 2. change into directory and call cmake
>
> />cd radiance-HEAD-ecd3332
>
> />cmake src/
>
> Everything looks good, except for the following warning:
>
> CMake Warning (dev) in CMakeLists.txt:
>
> No cmake_minimum_required command is present. A line of code such as
>
> cmake_minimum_required(VERSION 2.8)
>
> should be added at the top of the file. The version specified may be lower
>
> if you wish to support older CMake versions for this project. For more
>
> information run "cmake --help-policy CMP0000".
>
> This warning is for project developers. Use -Wno-dev to suppress it.
>
> 3. Build binaries from source
>
> />make -i
>
> 4. Install
>
> />make install -i
>
> Following things I noticed:
>
> 1. Build fails when not using -i with make, as there are many issues
> regarding a missing Version.c file, like:
>
>
>
> [ 37%] Built target genworm
>
> [ 37%] Generating /src/rt/Version.c
>
> CMake Error: Error processing file:/src/rt/create_version.cmake
>
> make[2]: *** [/src/rt/Version.c] Error 1
>
> make[1]: *** [rt/CMakeFiles/radiance.dir/all] Error 2
>
> make: *** [all] Error 2
>
> 2. There is no build/ directory created when building that holds the
> resulting binaries etc.
>
> Questions:
>
> 1. Is there anything obvious, I should do differently?
>
> 2. How do I install executables etc. to /usr/ rather than /usr/local/ e.g
> /usr/bin or /usr/share/radiance/ etc. without patching the sources/cmake
> files?
>
> Thanks for your help.
>
> Denny
>
> _______________________________________________
> Radiance-dev mailing list
> Radiance-dev@radiance-online.org
> http://www.radiance-online.org/mailman/listinfo/radiance-dev
_______________________________________________
Radiance-dev mailing list
Radiance-dev@radiance-online.org
http://www.radiance-online.org/mailman/listinfo/radiance-dev