commontk / CTK

A set of common support code for medical imaging, surgical navigation, and related purposes.
https://commontk.org
Apache License 2.0
865 stars 492 forks source link

Failed to compile Log4Qt with Visual Studio 2010 #19

Closed jcfr closed 13 years ago

jcfr commented 13 years ago

http://my.cdash.org/viewBuildError.php?buildid=214707

For some reasons, Log4Qt refuses to get compiled by the Superbuild with Visual Studio 2010 (Log4t source dir is correctly downloaded, however, Log4Qt-build is empty). However, it compiles fine when running cmake on the project manually.

Any idea ?

Thanks, Julien.

Build started 7/31/2011 5:27:36 PM.
     1>Project "C:\work\CTK\Dashboards\CTK-Superbuild-Release-experimental\Log4Qt.vcxproj" on node 2 (build target(s)).
     1>InitializeBuildStatus:
         Creating "x64\Release\Log4Qt\Log4Qt.unsuccessfulbuild" because "AlwaysCreate" was specified.
       ComputeCustomBuildOutput:
         Creating directory "C:\work\CTK\Dashboards\CTK-Superbuild-Release-experimental\Log4Qt-cmake\src\Log4Qt-stamp\Release\".
       CustomBuild:
         Creating directories for 'Log4Qt'
         Performing download step (git clone) for 'Log4Qt'
         Cloning into Log4Qt...
         Note: checking out 'origin/patched'.

         You are in 'detached HEAD' state. You can look around, make experimental
         changes and commit them, and you can discard any commits you make in this
         state without impacting any branches by performing another checkout.

         If you want to create a new branch to retain commits you create, you may
         do so (now or later) by using -b with the checkout command again. Example:

           git checkout -b new_branch_name

         HEAD is now at 8d3558b... Do not export Target
         Performing update step (git fetch) for 'Log4Qt'
       FinalizeBuildStatus:
         Deleting file "x64\Release\Log4Qt\Log4Qt.unsuccessfulbuild".
         Touching "x64\Release\Log4Qt\Log4Qt.lastbuildstate".
     1>Done Building Project "C:\work\CTK\Dashboards\CTK-Superbuild-Release-experimental\Log4Qt.vcxproj" (build target(s)).
Build succeeded.
Time Elapsed 00:00:04.30
jcfr commented 13 years ago

which version of CMake ? Could you try with CMake 2.8.5 ?

saschazelzer commented 13 years ago

So it is not only me. I was trying to compile CTK with Visual Studio 2010 like one week ago. I had the same errors and posted to ctk-developers and JC forwarded it to the CMake users list.

finetjul commented 13 years ago

Yes, I use CMake 2.8.5

saschazelzer commented 13 years ago

This is being discussed here:

http://thread.gmane.org/gmane.comp.programming.tools.cmake.user/37472

finetjul commented 13 years ago

Fixed in ec0344d464fadf7adc78