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

exiv2api.cpp will compile with exiv2 until version 0.27.7 #132

Closed
RalfPeter opened this issue Jan 13, 2024 · 3 comments
Closed

exiv2api.cpp will compile with exiv2 until version 0.27.7 #132

RalfPeter opened this issue Jan 13, 2024 · 3 comments

Comments

@RalfPeter
Copy link

I guess there was a change in exiv2 api. Comiling with version 0.28.0 and above throws following errors:

**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.11.33
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
        1 Datei(en) kopiert.
Microsoft (R) C/C++-Optimierungscompiler Version 19.38.33133 für x64
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

exiv2api.cpp
exiv2api.cpp(125): error C2039: "AutoPtr" ist kein Member von "Exiv2::Image".
D:\Sources-C\exiv2-0.28.1-2019msvc64\include\exiv2\image.hpp(50): note: Siehe Deklaration von "Exiv2::Image"
exiv2api.cpp(125): error C2143: Syntaxfehler: Es fehlt ";" vor "*"
...

Exiv2 versions before 0.28.0 will compile without errors,

Can i solve it myself? Where to find the corresponding code for the exiv2api.cpp?

@LeoHsiao1
Copy link
Owner

See Exiv2/exiv2#1264
exiv2 v0.28 changed the code to C++11 style, so the old code compiles with some syntax errors.
I'm now trying to resolve these syntax errors.
The C++ code of pyexiv2 is all located in exiv2api.cpp, which calls Exiv2 C++ API .

@LeoHsiao1
Copy link
Owner

I just committed a branch update_exiv2_to_0.28
You can compile its source code.
I'm going to merge that branch into the master branch of pyexiv2 in a couple months.

@RalfPeter
Copy link
Author

Worked perfectly. I'm not familiar with C++ anymore, so i could have done it by myself. TYVM

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

No branches or pull requests

2 participants