The Compilation of mkvrscan

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
liuxinming
Posts: 83
Joined: Thu, 2009-03-19, 04:19

The Compilation of mkvrscan

#1 Post by liuxinming »

When compiling mkvrscan,the error MSB6006 appeared,with this message been showed:"flex" It is not an internal or external command, nor is it a program or batch file that can run.

What is "flex"? Could anyone give me some advice? Thanks in advance!

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: The Compilation of mkvrscan

#2 Post by Michael Onken »

Hi,

you do not need mkvrscan in order to compile DCMTK. Does CMake or autoconf try to build it on your system?

mkvrscan is used in order to create data type (VR) checks in DCMTK, i.e. it generates vrscanl.c/h which is code that DCMTK uses. vrscnanl.c/h already ship with DCMTK so you do not have to re-generate with mkvrscan.

If you want to anyway, you have to install "flex" which is included with most (all?) linux distributions (e.g. Ubuntu "apt-get install flex"). It's also available on github.

Best,
Michael

liuxinming
Posts: 83
Joined: Thu, 2009-03-19, 04:19

Re: The Compilation of mkvrscan

#3 Post by liuxinming »

As you' ve said, I don' t need mkvrscan, so before the compilation, I removed the sub item.

Another issue is, when I generated the "INSTALL" project, it failed. The details were as follow:

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: Command“setlocal
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: "C:\Program Files (x86)\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: :cmEnd
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: :cmErrorLevel
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: exit /b %1
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: :cmDone
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: :VCEnd”is quit,code is 1。

I also found that the "RUN_TESTS" didn' t work either.

All the others were successfully compiled.

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: The Compilation of mkvrscan

#4 Post by Michael Onken »

Is the target directory writable for your user running Visual Studio? Otherwise select a different install prefix during cmake configuration.

I'll check the test execution, could be a known issue.

Best,
Michael

liuxinming
Posts: 83
Joined: Thu, 2009-03-19, 04:19

Re: The Compilation of mkvrscan

#5 Post by liuxinming »

When I compiled the project as an administrator, it was not an issue.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest