DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Fri, 2018-08-17, 20:13

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed, 2017-09-06, 04:17 
Offline

Joined: Thu, 2009-03-19, 04:19
Posts: 83
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!


Top
 Profile  
 
PostPosted: Wed, 2017-09-06, 08:42 
Offline
DCMTK Developer

Joined: Fri, 2004-11-05, 13:47
Posts: 1683
Location: Oldenburg, Germany
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


Top
 Profile  
 
PostPosted: Thu, 2017-09-07, 04:24 
Offline

Joined: Thu, 2009-03-19, 04:19
Posts: 83
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.


Top
 Profile  
 
PostPosted: Thu, 2017-09-07, 11:39 
Offline
DCMTK Developer

Joined: Fri, 2004-11-05, 13:47
Posts: 1683
Location: Oldenburg, Germany
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


Top
 Profile  
 
PostPosted: Fri, 2017-09-08, 02:01 
Offline

Joined: Thu, 2009-03-19, 04:19
Posts: 83
When I compiled the project as an administrator, it was not an issue.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group