dcmmkcrv fatal error LNK1146: no argument specified with option '/LIBPATH:'

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
palei
Posts: 4
Joined: Fri, 2004-12-03, 14:22

dcmmkcrv fatal error LNK1146: no argument specified with option '/LIBPATH:'

#1 Post by palei »

Hi,

I am trying to compile DCMTK unde Visual Studio 2003 .Net and get the following error:

dcmmkcrv fatal error LNK1146: no argument specified with option '/LIBPATH:'

dcmmkcrv is just one of the places (10 in all)

What have I missed?

Best regards
Pål Eilertsen

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

How did you create the project make files (.sln)? There are some notes on this in the INSTALL file of DCMTK 3.5.3.

palei
Posts: 4
Joined: Fri, 2004-12-03, 14:22

#3 Post by palei »

I used CMake 2.0.5. And everything seemed to work fine. Got some initial errors saying I was missing some of the optional libraries but after building in CMake again I got these errors out. But I got these new ones.

Pål

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#4 Post by Jörg Riesmeier »

dcmmkcrv fatal error LNK1146: no argument specified with option '/LIBPATH:'
I guess that the VS project file is incorrect. Could you please check whether there is any "/LIBPATH:" option with no argument in the .sln file.

Btw, did you remove the .dsw and .dsp files before starting CMake as suggested in the INSTALL file?

palei
Posts: 4
Joined: Fri, 2004-12-03, 14:22

#5 Post by palei »

Where do I check whether there is any "/LIBPATH:" option with no argument in the .sln file?

Yes I removed the .dsw and .dsp files.

In CMake I am leaving the executable and output properties open.

Pål

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#6 Post by Jörg Riesmeier »

I suppose that the .sln files are stored in textual format. Therefore, you should be able to open them in a text editor/viewer.

Unfortunately, I have never used VS7. Testing has been done by a colleague (external DCMTK tester).

palei
Posts: 4
Joined: Fri, 2004-12-03, 14:22

#7 Post by palei »

I am trying different approaches to make the build succeed. In the mean while:

Can I build the dcmtk library in VC++ 6.0 and then use it in a VC++ .Net app?

Pål

xucanhua
Posts: 2
Joined: Mon, 2005-11-14, 14:12
Location: China

#8 Post by xucanhua »

Hi, palei

I got the same problem with you :cry: . However, I have fixed it now :lol: .

I think it is a bug of MSVC++7.0.

FIX method:
First, Cut off the path length.
for example, change the source code path "D:\Program File\DCMTk-3.5.3" to "D:\a\", and change the support libraries path "D:\Program File\dcmtk-3.5.3-win32-i386-support\libpng-1.2.5" to "D:\b\png\"

Next, Use CMake program to configure and generate build files for DCMTK projects. You can set the Lib output path to put the lib files into one directory.

Finally, Open the MSVC solution file that CMake generated, and Build them. Take a cup of coffee, there will be no errors.
Enjoy it!
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::=)

Hi, Jörg Riesmeier:

:?: I wonder why you do not distribute the lib files and could I distribute them within the license? :?:

My e-mail: canhuaxu@gmail.com
comments welcome!
code,code,code
fun,fun,fun

xucanhua
Posts: 2
Joined: Mon, 2005-11-14, 14:12
Location: China

#9 Post by xucanhua »

Hi, palei

I got the same problem with you :cry: . However, I have fixed it now :lol: .

I think it is a bug of MSVC++7.0.

FIX method:
First, Cut off the path length.
for example, change the source code path "D:\Program File\DCMTk-3.5.3" to "D:\a\", and change the support libraries path "D:\Program File\dcmtk-3.5.3-win32-i386-support\libpng-1.2.5" to "D:\b\png\"

Next, Use CMake program to configure and generate build files for DCMTK projects. You can set the Lib output path to put the lib files into one directory.

Finally, Open the MSVC solution file that CMake generated, and Build them. Take a cup of coffee, there will be no errors.
Enjoy it!
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::=)

Hi, Jörg Riesmeier:

:?: I wonder why you do not distribute the lib files and could I distribute them within the license? :?:

My e-mail: canhuaxu@gmail.com
comments welcome!
code,code,code
fun,fun,fun

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest