Hi Hans,
that might be a XCode/Mac problem (compare [1]). We will try to take a
look at it tomorrow.
Best,
Caspar
[1]
http://stackoverflow.com/questions/26185978/os-x-mavericks-wchar-h-file-not-found
*Von:*Hans van Assen [mailto:[email protected]]
*Gesendet:* Dienstag, 25. August 2015 15:35
*An:* Goch, Caspar Jonas; Kislinskiy, Stefan;
'[email protected]'
*Betreff:* Re: AW: AW: [mitk-users] Problems building MITK on Mac OS X
Hi Caspar,
you were right. I tried with Unix Makefiles as generator and that
works, I get a Makefile.
Now running 'make' gives me a fatal error: 'wchar.h' file not found
Here are the last 30 lines of the make output (stdout and stderr):
-- Generating done
-- Build files have been written to:
/Users/hxxxx/Development/MITK/MITK-superbuild/MITK-build
[ 98%] No build step for 'MITK-Configure'
[ 99%] No install step for 'MITK-Configure'
[100%] Completed 'MITK-Configure'
[100%] Built target MITK-Configure
[ 0%] Built target mbilog
[ 1%] Built target usResourceCompiler
[ 1%] Built target qtsingleapplication
[ 1%] Built target MitkPluginGenerator
[ 1%] Linking C shared library ../../lib/libMitkIpPic.dylib
[ 1%] Linking resources zip file for CppMicroServices
In file included from
/Users/hxxxx/Development/MITK/Modules/CppMicroServices/cmake/usCMakeResourceDependencies.cpp:22:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:38:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:215:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:90:10:
fatal error: 'wchar.h' file not found
#include <wchar.h> // for mbstate_t
^
[ 2%] Built target MitkIpPic
[ 2%] Linking C shared library ../../lib/libMitkIpFunc.dylib
[ 6%] Built target MitkIpFunc
[ 6%] Linking CXX shared library
../../lib/plugins/liborg_blueberry_core_runtime.dylib
[ 6%] Linking CXX shared library ../../lib/libMitkIpSegmentation.dylib
[ 7%] Built target MitkIpSegmentation
1 error generated.
make[5]: ***
[Modules/CppMicroServices/core/us_CppMicroServices/us_resources.o] Error 1
make[4]: ***
[Modules/CppMicroServices/core/CMakeFiles/CppMicroServices.dir/all]
Error 2
make[4]: *** Waiting for unfinished jobs....
[ 11%] Built target org_blueberry_core_runtime
make[3]: *** [all] Error 2
make[2]: *** [CMakeFiles/MITK-build] Error 2
make[1]: *** [CMakeFiles/MITK-build.dir/all] Error 2
make: *** [all] Error 2
Goch, Caspar Jonas wrote on 25/08/15 14:04:
Hi Hans,
I am no Mac user, but I would assume that cmake with XCode as
generator generates XCode project files. Presumably those are not
found or used by make. You could either open them in XCode or use
“Unix MakeFiles” as a generator.
Best,
Caspar
*Von:*Hans van Assen [mailto:[email protected]]
*Gesendet:* Dienstag, 25. August 2015 13:45
*An:* Kislinskiy, Stefan; Goch, Caspar Jonas;
[email protected]
<mailto:[email protected]>
*Betreff:* Re: AW: [mitk-users] Problems building MITK on Mac OS X
Generator is XCode. Yes I clicked on Generate.
Output from CMake, both Configure and Generate:
Performing Test HAS_FLAG_-std=c11
Performing Test HAS_FLAG_-std=c11 - Success
Generated: /Users/hxxxx/Development/MITK/MITK-superbuild/Project.xml
------- FEATURE SUMMARY FOR MITK-superbuild -------
-- The following REQUIRED packages have been found:
* Qt4 (required version >= 4.7)
Configuring done
Generating done
I attached the CMakeOutput.log and CMakeError.log.
Kislinskiy, Stefan wrote on 25/08/15 12:14:
Which generator did you choose? Are you sure you also clicked on
Generate? Please post the CMake output, otherwise it's hard to help
efficiently. :)
________________________________________
Von: Hans van Assen [[email protected] <mailto:[email protected]>]
Gesendet: Dienstag, 25. August 2015 11:25
An: Goch, Caspar Jonas;[email protected]
<mailto:[email protected]>
Betreff: Re: [mitk-users] Problems building MITK on Mac OS X
Hi Caspar,
so now I installed Qt 4.8.7, and I downloaded the MITK source snapshot
2015.05.
Cmake goes OK now, I can configure and generate; at least, it doesn't
say anything is wrong.
The next step in the process of building MITK according to
http://docs.mitk.org/2015.05/BuildInstructionsPage.html is to just run
'make' (perhaps with -j6 as an option), I assume in the MITK-superbuild
directory.
However, there are no makefiles to be found, so make quits saying:
"make: *** No targets specified and no makefile found. Stop."
Any ideas?
Regards, Hans
Goch, Caspar Jonas wrote on 21/08/15 19:26:
Hi Hans,
generally, if in doubt try generating a fresh superbuild. That way
you avoid any errors that might have been introduced by playing around with the
settings.
If you cloned our git repository you are probably working on the
current master, which might be unstable (depending on the current commit).
Unless you need new features/a bug fixed that you know is fixed in the master
it is advisable to use a release (either checkout one of the release branches
or download the source from the release page on mitk.org).
On Mac we do not support Qt5 yet (build should work fine, but there
are some issues when handling application events), so you will need to build
using Qt4.
Best,
Caspar
________________________________________
Von: Hans van Assen [[email protected] <mailto:[email protected]>]
Gesendet: Freitag, 21. August 2015 18:07
An: Goch, Caspar Jonas;[email protected]
<mailto:[email protected]>
Cc:[email protected] <mailto:[email protected]>
Betreff: Re: AW: [mitk-users] Problems building MITK on Mac OS X
Hi Caspar,
I followed the superbuild route, but already get the problems there
while generating files with CMake.
At first it worked fine, but after switching on and off the options
for
USE_CTK USE_DCMTK and USE_Poco, I get the problems with the tinyxml
directory setting.
To answer the questions in [1]:
- I work on Mac OS X 10.10.5, 64 bit
- I specified the clang_64 source directory for Qt5.5, and choose
XCode
as the generator for the project with the use of native compilers
- CMake 3.3.1, built with Qt 4.8.6
- I am not sure about the MITK version, I used the command git clone
http://git.mitk.org/MITK.git this afternoon as specified on the
MITK
website. I guess it is the latest stable version.
- no configure or build errors are reported on cdash.mitk.org
- I have the config problems in the superbuild
- the error output was:
CMake Error at CMakeExternals/tinyxml.cmake:7 (message):
tinyxml_DIR variable is defined but corresponds to
non-existing directory Call Stack (most recent call first):
SuperBuild.cmake:236 (include)
CMakeLists.txt:528 (include)
Regards, Hans
Goch, Caspar Jonas wrote on 21/08/15 17:16:
Hi Hans,
the usual build workflow to build MITK is:
1. Download MITK (either a source release or a git clone)
2. Configure and generate the superbuild using CMake
3. call make in the superbuild directory
At this point you already have a default MITK-build
Optional:
4. If desired change, configure and generate the MITK build using CMake
(binary directory "xxx/MITK-superbuild/MITK-build/")
5. call make in the build directory
If any of these steps fails you cannot continue to the next
step.
However, to advise you on your build problem we need some more
information. Could you answer the questions at [1], please?
Best,
Caspar
[1]http://mitk.org/wiki/BuildErrorHelpQuestions
-----Ursprüngliche Nachricht-----
Von: Hans van Assen [mailto:[email protected]]
Gesendet: Freitag, 21. August 2015 16:58
An:[email protected]
<mailto:[email protected]>
Betreff: [mitk-users] Problems building MITK on Mac OS X
Hi,
just started with MITK, trying to follow the build instructions
on the website.
At first I managed to configure / generate files for MITK with
CMake, however, now CMake is complaining about tinyxml:
CMake Error at CMakeExternals/tinyxml.cmake:7 (message):
tinyxml_DIR variable is defined but corresponds to
non-existing directory Call Stack (most recent call first):
SuperBuild.cmake:236 (include)
CMakeLists.txt:528 (include)
Furthermore, when I could generate a (make?)file, I tried to
compile MITK following these instructions:
To change the configuration of the MITK build itself, choose the
MITK-build directory as the binary directory in the CMake GUI (not the MITK-superbuild
directory). After generating the project files, build the MITK project by either issuing
"make" in the MITK-build directory (Linux, Mac OS X), or ...
Both the MITK-build directory was empty, and so issueing a make
there, does not do anything. However, executing make in the MITK-superbuild
also could not find makefiles. So, it looks like a mess is developing on my
system....
Any help would be much appreciated, Hans
------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/mitk-users