Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error C1900 building the project on windows #65

Closed
gcode-importer opened this issue Feb 28, 2011 · 4 comments
Closed

fatal error C1900 building the project on windows #65

gcode-importer opened this issue Feb 28, 2011 · 4 comments

Comments

@gcode-importer
Copy link

Originally reported on Google Code with ID 65

-Steps to reproduce the problem
1. Create the visual studio solution with cmake
2. Open OPENJPEG.sln with visual studio 2008
3. Build the project ALL_BUILD

-What is the expected output? What do you see instead?
Only the openjpeg project is compiled correctly. The other projects get the error C1900.
Moreover the openjepeg.lib size is only 7KB.
I've already checked the compiler, all its components have the same version, this is
the output of cl -Bv:

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

Compiler Passes:
 D:\Programmi\Microsoft Visual Studio 9.0\VC\BIN\cl.exe:           Version 15.00.21022.8
 D:\Programmi\Microsoft Visual Studio 9.0\VC\BIN\c1.dll:           Version 15.00.21022.8
 D:\Programmi\Microsoft Visual Studio 9.0\VC\BIN\c1xx.dll:         Version 15.00.21022.8
 D:\Programmi\Microsoft Visual Studio 9.0\VC\BIN\c2.dll:           Version 15.00.21022.8
 D:\Programmi\Microsoft Visual Studio 9.0\VC\BIN\link.exe:         Version  9.00.21022.8
 D:\Programmi\Microsoft Visual Studio 9.0\Common7\IDE\mspdb80.dll: Version  9.00.21022.8
 D:\Programmi\Microsoft Visual Studio 9.0\VC\BIN\1033\clui.dll:    Version 15.00.21022.8

cl : Command line error D8003 : missing source filename

-What version of the product are you using? On what operating system?
This happen with openjpeg 1.4 and svn version on windows xp and vista.

-Please provide any additional information below.
The attachment contains the building output.

Reported by leonardo.ciman on 2011-02-28 09:55:16


- _Attachment: [output.txt](https://storage.googleapis.com/google-code-attachments/openjpeg/issue-65/comment-0/output.txt)_
@gcode-importer
Copy link
Author

Hi,

It seems that this kind of problem might be due to VS2008 and not openjpeg : 

http://social.msdn.microsoft.com/Forums/en/vclanguage/thread/9abfefe0-56bd-4a82-ae14-b08f262972bd

Could you give it a another try after having installed SP1 ?

A

Reported by detonin on 2011-02-28 10:19:48

@gcode-importer
Copy link
Author

Thanks for your answer. I've installed the sp1 without any success, however I solved
the problem removing the libs directory. Maybe some of the libraries are compiled with
the /GL switch to optimize the code, that makes these libraries incompatible with other
versions of the compiler.

The second issue. I understand that the static library it's only a wrapper for the
dll (that's why it's so small) Is there a way to build a completely static library
like the one provided by yours binary package?

Reported by leonardo.ciman on 2011-03-02 08:47:34

@gcode-importer
Copy link
Author

Hi Leonardo,

Thanks for having pointed this out. The libs directory is in the process of being entirely
replaced by the source code of the 3rd party libraries, instead of binaries. This should
fix the issue.

Concerning the static building, this is an option you have to specify when using cmake:

cmake -DBUILD_SHARED_LIBS:bool=off

This should build the static version of libopenjpeg.

Cheers,

Antonin

Reported by detonin on 2011-03-02 08:59:12

  • Status changed: Accepted

@gcode-importer
Copy link
Author

Reported by detonin on 2011-03-04 11:31:25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants