Commit Graph

327 Commits

Author SHA1 Message Date
Luis Diaz Mas
6f8d8e3da6 cleanup header inclusions in API 2019-01-11 15:55:25 +01:00
Luis Díaz Más
4ed5bdc78b CMake: Supress MSVC PDB warnings 2018-11-27 18:20:20 +01:00
Robin Mills
89375979d8 https://github.com/Exiv2/exiv2/issues/555
I have restored the Macro EXIV2_TEST_VERSION in include/exiv2/version.hpp
I have added an option --version-test to exifprint.cpp to test/validate EXIV2_TEST_VERSION works as documented.
Version strings in Exiv2 v0.27 and later have a fourth digit to indicate the pre-release number of the build.
Pre-release builds should never be used for production purposes.
2018-11-19 11:38:26 +00:00
Luis Díaz Más
e20329b8e0 Remove EXV_HAVE_DLL and disable C4251 always on msvc. 2018-11-11 12:27:26 +01:00
Luis Díaz Más
2d1e1fe6ef Reduce the scope of variables 2018-11-07 23:17:26 +01:00
Luis Díaz Más
dc7eb5008b Add explicit to constructors with 1 argument 2018-11-07 23:17:26 +01:00
clanmills
4a1d0962fc Fix samples/tags.cpp to call ExifTags::taglist() (https://github.com/Exiv2/exiv2/issues/465) 2018-10-26 17:47:15 +02:00
Robin Mills
12d44f8f17 Fix https://github.com/Exiv2/exiv2/issues/468 2018-10-26 17:47:15 +02:00
Luis Díaz Más
c43d998457 Fix cppcheck issues: passedByValue 2018-10-11 13:40:03 +02:00
Luis Díaz Más
989acd18c7 Fix cppcheck issues: uninitMemberVar & uninitVar 2018-10-11 13:40:03 +02:00
Robin Mills
8b9cbc5888 Update taglist sample with more functionality 2018-10-11 12:43:25 +02:00
Luis Díaz Más
18690f4c54 Provide default and copy constructor for AnyError 2018-09-14 13:20:08 +02:00
Luis Díaz Más
2afba9b127 Remove useless cmake information message 2018-09-12 19:22:31 +02:00
Luis Díaz Más
603692a1d8 Copyright to Exiv2 authors 2018-09-12 19:22:31 +02:00
Luis Díaz Más
320e186f44 Fix -Wmaybe-uninitialized warnings 2018-09-12 19:22:31 +02:00
Luis Díaz Más
2698490584 Delete CRW samples that were not compatible with MinGW 2018-09-02 19:07:33 +02:00
clanmills
3c42fdddeb Fix include <exiv2/exiv2.hpp> to include exiv2/config.h (and consequential changes)
Fix cltest.cpp and version.cpp to report MSVC 2017 in which _MSC_VER == 1910
2018-09-01 20:19:45 +02:00
Robin Mills
6f5c339859 Fix getopt-test to build on MSVC (which does not have unistd/getopt()) 2018-09-01 20:19:45 +02:00
Robin Mills
74bc0e0535 Changes for cross-platform getopt 2018-09-01 20:19:45 +02:00
Luis Diaz Mas
a9c9451588 Remove localtime.c and any other trick to handle timegm 2018-08-27 13:33:02 +02:00
Luis Diaz Mas
d96b619515 Add braces for the main functions in the new source files at samples 2018-08-26 09:23:08 +02:00
Luis Diaz Mas
00502eabdd Move mrwthumb to samples 2018-08-26 09:23:08 +02:00
Luis Diaz Mas
e9a6597a48 Move xmpdump to samples 2018-08-26 09:23:08 +02:00
Luis Diaz Mas
ac51fda7b5 Move crwparse to samples 2018-08-26 09:23:08 +02:00
Luis Diaz Mas
32b618b1c7 Move crwedit from exiv2lib to samples 2018-08-26 09:23:08 +02:00
Luis Diaz Mas
0d9065274e Remove redefinition of UNUSED 2018-08-24 16:45:52 +02:00
Luis Diaz Mas
145f8fc456 Port redmine issues from the bash test suite to the python one.
* Port redmine issue 1024
 * Port redmine issue 1026
 * Port redmine issue 1040
 * Port redmine issue 1044
 * Port redmine issue 1053
 * Port redmine issue 1054 (not finished yet; I found some issues there)
 * Port redmine issue 1058
 * Port redmine issue 1062
 * Port redmine issue 1080
 * Port redmine issue 1108
 * Port redmine issue 1112
 * Port redmine issue 1114
 * Port redmine issue 1122
 * Port redmine issue 1140
 * Port redmine issue 1144
 * Port redmine issue 1145
 * Port redmine issue 1153
 * Port redmine issue 1155
 * Port redmine issue 1166
 * Port redmine issue 1167
 * Port redmine issue 1170
 * Replace escaped chars in 1054
 * Add brackets in exiv2json::main()
 * Link all sample apps against exiv2lib
 * Changes in 1054
 * test 1054: fix dates depending on Local time
 * Do not run make with VERBOSE=1
 * Use system_tests.path
 * Fix windows issues with quotes
 * Use system_tests.path
 * Use itertools to simplify test code
2018-07-31 18:18:14 +02:00
Luis Diaz Mas
abf6e8ec27 Remove code related with autotools 2018-06-08 14:04:25 +02:00
Luis Díaz Más
8baf07decb Fix warnins reported by -Wunused-variable
This trick is a bit nasty but I do not want to mess up to much with the
XMPSample application at this moment. Once we have more unit tets for
that part of the code, the xmpsample could disappear.
2018-05-31 14:44:24 +02:00
Luis Díaz Más
335607054c Use enforce instead of std::assert to fix warning about unused variable in realease mode 2018-05-31 14:44:24 +02:00
Luis Diaz Mas
773bdfd14e Create a header where to keep an unique definition of UNUSED 2018-05-31 14:44:24 +02:00
Dan Čermák
79f8d63a8b Whitespace cleanup 2018-05-16 10:15:53 +02:00
Dan Čermák
5e36363138 Fix double promotion issues 2018-05-16 10:15:53 +02:00
Dan Čermák
bc58752d18 Remove useless casts
This commit removes only casts where type A is cast to the exactly same
type (and not to a platform dependent typedefs)
2018-05-16 10:15:53 +02:00
Luis Díaz Más
d55b2b1b65 Remove HAVE_STDLIB_H check and replace stdlib.h by cstdlib 2018-05-04 11:20:43 +02:00
Mario Emmenlauer
548d7688c7 samples/geotag.cpp: fixed debugging code to be in the correct ifdef 2018-04-08 07:45:48 +02:00
Dan Čermák
8b7941b733 [cmake] Add EXTRA_COMPILE_FLAGS to samples & unitTests
Add the additional compiler flags added by -DEXIV2_TEAM_EXTRA_WARNINGS=ON to
the targets in samples/ & unitTests/
This fixes #204
2018-03-29 13:17:24 +02:00
Luis Díaz Más
d21e794239 Do not deference value when it does not exist (Thanks D4N) 2018-03-20 21:30:06 +01:00
Dan Čermák
efe2ccdcb6 Replaced all hardcoded error codes with ker... constants 2018-02-18 09:28:57 +01:00
Robin Mills
8f5b795eaa Fixes to autotools build to respect mn_int.cpp files (#186)
* Fixes to autotools build to respect mn_int.cpp files

* Changes following Luis' code review.
2017-12-11 16:48:07 +01:00
tbeu
2efc2e79da Remove obsolete id 2017-11-19 11:17:12 +01:00
tbeu
5df8b01b77 Remove obsolete svn revision 2017-11-19 11:17:11 +01:00
Luis Díaz Más
3dbc7c1969 Fix compilation on Windows 2017-10-03 21:07:43 +02:00
Robin Mills
22aaff8682 Fix cmakeBuild.cmd --static to use zlibstatic.lib 2017-09-15 20:15:58 +01:00
clanmills
d366943297 Refactoring EXV_USE_CURL and EXV_USE_SSH 2017-09-13 16:54:10 +01:00
Robin Mills
60d436c969 Many changes to CMakeLists.txt and cmakeBuild.cmd to support unicode, static linking, passing shared library build flags. 2017-09-05 21:36:56 +01:00
Robin Mills
78e7cc8f69 Fixing samples/Makefile on linux 2017-08-23 10:07:31 +01:00
Robin Mills
b5cac373b1 Merge pull request #39 from Exiv2/autotoolsMacLink
./configure --with-adobe[=2016|2014|2013] for MacOSX
2017-08-23 08:04:48 +01:00
Andreas Sturmlechner
a768b85191 Lowercase target_link_libraries 2017-08-22 18:21:28 +02:00
Andreas Sturmlechner
1fc319c0e4 Lowercase add_custom_target, configure_file, install macros 2017-08-22 18:21:28 +02:00
Andreas Sturmlechner
40565761d1
Lowercase add_{definitions,subdirectory}, set{_*} and option macros 2017-08-22 18:21:18 +02:00
clanmills
573b2cfcd2 XMPsdk fixes. 2013 and 2016 build and (mostly) pass the test suite. 2017-08-22 14:34:01 +01:00
Luis Diaz Mas
90e8ad8a72 Only set CMAKE_RUNTIME_OUTPUT_DIRECTORY once 2017-08-21 23:24:19 +02:00
Luis Díaz Más
6a00d4b282 Move code from CMake_msvc.txt to config/compilerFlags.cmake 2017-08-21 22:39:26 +02:00
Andreas Sturmlechner
aa6374b202
Use more GNUInstallDirs
Conveniently fixes multiarch install dir issues.
2017-08-21 00:12:33 +02:00
Luis Diaz Mas
c415e7f509 Fix CMake configuration when XMP is disabled. Check XMP variable instead LIBXMP 2017-08-20 16:54:49 +02:00
Luis Diaz Mas
35c3e31958 Fixes for MSVC case 2017-08-18 13:55:45 +02:00
Luis Diaz Mas
27cde135d9 Remove more useless include_directories 2017-08-18 13:55:45 +02:00
Luis Diaz Mas
f5f5826c03 Use target_sources to extend the list of sources in exceptional situations 2017-08-18 13:55:45 +02:00
Luis Díaz Más
0ebd53b1fa Simplify CMake code, and unify to lower case commands 2017-08-18 13:55:44 +02:00
Luis Díaz Más
73f53cc6f9 Move sample applications from src/CMakeLists.txt to samples/CMakeLists.txt 2017-08-18 13:55:44 +02:00
Luis Diaz Mas
b387d58507 Remove EXPAT_LIBRARIES from where it is not needed (already inherited from exiv2lib target) 2017-08-16 17:53:21 +02:00
Luis Diaz Mas
b4a2b822c2 Remove usage of global variable INSTALL_TARGET_STANDARD_ARGS. Specify install destinitions in each target 2017-08-14 08:28:24 +02:00
clanmills
2e816165ea Changes to autotools to support C++11 (work in progress) 2017-08-12 14:48:38 +01:00
Luis Díaz Más
291726ae45 The geotag sample depends on EXIV2_ENABLE_LIBXMP 2017-08-10 19:54:01 +02:00
Luis Díaz Más
b6885c8028 Since we are requiring CMake 3.1 we can remove the usage of PRIVATE_VAR and use directly PRIVATE or PUBLIC 2017-08-10 19:39:07 +02:00
clanmills
122cd5737f Cosmetic modifications to Pull-21. Fix to ensure Cygwin uses #include <unistd.h> 2017-08-09 23:41:42 +01:00
Robin Mills
82dbe6199d https://github.com/Exiv2/exiv2/issues/11 Closed. Coincidentally Raphael reported issues with Visual Studio 2015 Community Edition. Issue 11 and Raphael's issues should now be resolved. 2017-06-29 22:13:26 +01:00
clanmills
290164d1b6 Work in progress: https://github.com/Exiv2/exiv2/issues/3
Tested on MacOS-X.  I'll test Linux/Cygwin/MSVC and close if good.
2017-06-05 13:25:14 +01:00
draekko
f23dc54b9c Adding xmpprint sample 2017-05-29 12:13:04 -04:00
clanmills
038fe6cb94 #1233 Fixed bug in samples/geotag.cpp 2017-05-08 10:57:28 +01:00
Robin Mills
7b882f121a #1175 more cast ripples on GCC5/Linux 2017-04-23 20:08:03 +00:00
Robin Mills
1ff0bef409 #1175 Correction to r4597 Additional file (which, in error, I didn't to commit) 2017-04-23 11:00:17 +00:00
Robin Mills
67859f4f4e #1175 I'm going to accept the recommendation to change BasicIo::size() to return size_t. This passes the test suite. The only "ripple" outside of basicio is to iotest.cpp. This change enables several casts to be removed. 2017-04-19 17:03:54 +00:00
Robin Mills
73047ce568 #1279 Correction to r4748 which broke the CMake build. 2017-03-27 09:04:12 +00:00
Robin Mills
be0945016b #1269 Thank You to Ben for reporting this and providing the patch. 2017-03-17 12:58:18 +00:00
Robin Mills
6d5c2c3256 Getting ready to release v0.26 2017-03-08 20:42:28 +00:00
Robin Mills
6ea3b00b02 #1249 Fixes 2016-10-23 22:25:58 +00:00
Robin Mills
e57f238c7e #1230 More MinGW fixes. 2016-10-05 19:08:48 +00:00
Robin Mills
5c6a8e3bad #1230 Buildserver Maintenance. 2016-10-05 09:06:56 +00:00
Robin Mills
f13033b5f4 #1230 CMake build fixes. 2016-10-03 16:55:54 +00:00
Robin Mills
1b536bd0ed #2130 Don't build conntest. Build is broken when --enable-webready. Fixed issue with samples/geotag.cpp on Linux. 2016-09-29 17:06:02 +00:00
Robin Mills
fcd0cb3e19 #1233 Correction to r4573 2016-09-27 18:52:18 +00:00
Robin Mills
86028dd46e #1233 Fixed issue on MacOS-X 10.4 (32 big big-endian PPC, 2003 OS) with realpath() and added additional images for future testing. 2016-09-27 18:47:54 +00:00
Robin Mills
80fd8ee333 #1233 geotag.cpp added option -ascii. The degree sign in the output was upsetting test harness on some platforms. 2016-09-27 13:56:03 +00:00
Robin Mills
24c032c2a2 #1233 Changes to geotag-test to avoid full paths. Added make geotag-test. Sanitized geotag.cpp code 2016-09-27 08:53:35 +00:00
Robin Mills
bd16f3441e #1233 Thank You to Anton for reporting this and providing a patch. I've updated the test suite. 2016-09-26 22:53:42 +00:00
Robin Mills
4ab9c840e4 #1207 Updating comments in samples/mt-test.cpp to document build restrictions. 2016-08-22 13:44:46 +00:00
Robin Mills
208b5110ae #1207 Don't build mt-test by default. It requires C++11. G++ 5.3 will not compile #include <exiv2/exiv2.hpp> because AutoPtr is deprecated. 2016-08-21 22:54:13 +00:00
Robin Mills
ebfd26fb75 #1207 Dynamically new/delete thread array in mt-test.cpp 2016-08-21 09:50:05 +00:00
Robin Mills
3b83918320 #1207 Added samples/mt-test.cpp 2016-08-21 08:16:30 +00:00
Robin Mills
7adaf71d44 #1187 and #1041. Fixing CMake/Linux build breakers concerning libpthread 2016-06-05 06:15:30 +00:00
Robin Mills
4c8158d1d1 #1183 Sample code: samples/toexv.cpp to support the article http://dev.exiv2.org/projects/exiv2/wiki/Guidance_about_serialising_metadata_using_MemIo_and_ExvImage_Classes 2016-05-11 07:22:36 +00:00
Robin Mills
b296460702 #1034 Correction to r4293. Adding forgotton files! 2016-04-29 19:24:52 +00:00
Robin Mills
664af57e10 #1034 Added samples/toexv This is a first step to write exif metadata to memory to send to a web service. 2016-04-29 19:20:30 +00:00
Robin Mills
f02b94a6b4 #1169. Code simplication/clarification. 2016-04-22 12:34:04 +00:00
Robin Mills
30f279787f #1169 Fix submitted. 2016-04-21 11:26:29 +00:00
Robin Mills
62e2fc086b #1034 Added msvc2005/ini-test 2016-03-28 13:33:08 +00:00
Robin Mills
1e33add5e4 #1034. Corrections to r4249 to fix build-breakers 2016-03-25 09:02:56 +00:00
Robin Mills
dbed6f857c #1034 Added exiv2 config file support for lens recognition. 2016-03-25 08:12:16 +00:00
danielkaneider
4c236fce17 #1041. cmakeBuild with static compilation 2015-12-29 20:10:56 +00:00
Robin Mills
5a36dea37d #1061. Added exiv2samples.1 and associate autotools and CMake installer support. Work in progress. 2015-12-29 17:57:37 +00:00
Robin Mills
aa1e9e88e5 #1109 and #1041 Added documentation and log files to the published builds. 2015-12-12 19:10:52 +00:00
Robin Mills
b12aca62cd #1041 get jenkins_daily.sh to work on Mac/Cygwin/MSVC/Linux and publish builds on userContent/builds { daily/weekly/monthly} 2015-12-10 19:27:33 +00:00
Robin Mills
bb032fb6c7 #1041 Still struggling with the test suite 2015-12-10 03:08:18 +00:00
danielkaneider
c90253bc3c [cmake] various msvc fixes 2015-11-10 21:36:48 +00:00
danielkaneider
993a3bd06b [cmake] added travis build file, fixes for osx and linux 2015-10-30 20:55:57 +00:00
Robin Mills
abd5ecedd4 #1129. Fix submitted. 2015-10-13 21:19:25 +00:00
Robin Mills
b44dcdb220 http://dev.exiv2.org/boards/3/topics/2137?r=2259 Thanks to Gilles for the patch. 2015-10-03 11:53:41 +00:00
Robin Mills
8ff86b6875 #1110. Xcode project moved to contrib/xcode. Interesting errors in samples/Makefile. Replaced gsoc13 Exiv2::dict_t with (identical twin) Exiv2::Dictionary 2015-09-23 20:43:16 +00:00
Robin Mills
a37b843839 Correction to r3941 to fix mac build-breaker in src/image.cpp (and odd linux bb in samples/exiv2json.cpp) 2015-09-14 15:47:48 +00:00
Robin Mills
6df03d74cf #640. Correction to r3931. 2015-09-08 13:15:38 +00:00
Robin Mills
bbf8b288ba Correction to r3925. 2015-09-03 20:54:26 +00:00
Robin Mills
3f1380e91a #640 Modified XmpParser::getRegisteredNamespaces to use Exiv2::Dictionary. 2015-09-03 20:51:34 +00:00
Robin Mills
03e51ab470 #640 and # 751. Fixing linux build-breaker. 2015-08-29 20:00:26 +00:00
Robin Mills
c396a92e01 #960 added API: static void Exiv2::XMPParser::getRegisteredNamespaces(std::map<std::string,std::string>&); 2015-08-28 19:57:46 +00:00
Andreas Huggel
f0b4c06ea6 samples/Makefile: Minor fixes to better clean up. 2015-06-20 04:37:37 +00:00
Andreas Huggel
ade51daf7f Only compile ssh module if using SSH and another hack to prevent a compiler warning about undefined EXV_USE_SSH. 2015-06-18 02:46:09 +00:00
danielkaneider
879fd9fa84 cmake: add some windows batch tools 2015-06-14 09:12:19 +00:00
Andreas Huggel
a57317f685 Some API policing 2015-06-08 14:39:59 +00:00
Andreas Huggel
1ca6ae13bc Minor changes to the exiv2json build 2015-05-09 12:17:58 +00:00
Robin Mills
6bd47ebf4a #1071 Correction to r3802 for MSVC (r3802 is removing Jzon from libexiv2) 2015-05-09 09:55:33 +00:00
Robin Mills
f52eacf921 #1071 Remove Jzon from libexiv2
1) Move src/Jzon.cpp and include/exiv2/Jzon.hpp to samples/Jzon.{cpp|hpp}
2) Update build environment appropriately.
2015-05-09 09:24:41 +00:00
Andreas Huggel
fd80993ab0 Updated copyright notice. 2015-05-02 11:55:40 +00:00
Robin Mills
84bf485ebe #922. Fixing -pS and -pX on MSVC. 2015-04-28 19:19:59 +00:00
Robin Mills
4817df0a17 #936. Fix header file. 2015-04-28 14:15:17 +00:00
Robin Mills
bd4004e963 #934 exiv2json.cpp threw an exception on toLong() and I changed it to std::atoi.
The value is '' (the empty string).  The following key seems to be somehow and puzzlingly broken:
0x8827 Photo        ISOSpeedRatings             Short       0
2015-04-28 11:12:58 +00:00
Robin Mills
d2f5abbac5 #1054. exiv2json deep recursion and AltLang support. Regression detector. 2015-04-21 18:48:49 +00:00
Robin Mills
a6a3da9df8 #1054. Write LangAltValue as json object "lang" : { "en-US":"...." , ... } 2015-04-20 08:54:52 +00:00
Robin Mills
d00212f4f6 Fixing typos. 2015-04-11 08:09:06 +00:00
Robin Mills
5ccb535bdc #1054. More polishing. Adding clarification to the recursion. Other code simplification/elimination. 2015-04-10 21:56:17 +00:00
Robin Mills
a93ad78042 #1054. Final polish and comments about the recursion. 2015-04-10 18:56:20 +00:00
Robin Mills
af8e778a55 Fixing more typos. 2015-04-10 18:44:43 +00:00
Robin Mills
e0b5d3f310 Fixed typo. 2015-04-10 18:42:49 +00:00
Robin Mills
4f6b747478 #1054. Replaced the reference mess with a beautiful one-line recursion. Interation is interesting; recursion is really elegant. 2015-04-10 18:42:09 +00:00
Robin Mills
efb790f421 Simplification. 2015-04-10 14:02:22 +00:00
Robin Mills
8c1e79bbd3 Fixed typos. 2015-04-10 10:13:16 +00:00
Robin Mills
779a10454d #1054. Overhauled exiv2json to recursively build a JSON tree. See discussion: http://dev.exiv2.org/boards/3/topics/1951 2015-04-10 09:12:01 +00:00
Robin Mills
624675d665 Adding CMake support for samples/exifdata.cpp and samples/exifvalue.cpp 2015-03-25 18:27:44 +00:00
Robin Mills
917efc5d05 Adding samples/exifdata.cpp and samples/exifvalue.cpp 2015-03-25 18:21:43 +00:00
Robin Mills
856ddd323c #1029 Spell separator correctly everywhere (not seperator). 2015-02-14 15:25:52 +00:00
Robin Mills
0df8356a56 #1029. Thank You, Thomas for reporting this and providing the patch. 2015-02-12 01:24:26 +00:00
Robin Mills
24cb148e11 #1004. Reviewed all include directives in src/*.cpp and samples/*.cpp
fixed svn_version.sh again!
change to test/build-test.py for MacOS-X/Xcode 6.
2015-01-06 12:40:31 +00:00
Robin Mills
cc8fcb08c1 #1012. r3508 broke the build on macosx and linux.
Fixed cosmetic issues in samples/httptest.cpp and <exiv2dir>/Makefile.
2015-01-02 09:49:16 +00:00
Robin Mills
1afb17b527 trunk: webready integration. fixing broken and missing MSVC/vcproj files. 2014-12-27 11:07:07 +00:00
Robin Mills
d393b0fa7e trunk: exiv2 v0.25 2014-12-25 13:55:57 +00:00
Robin Mills
94e6dcbf50 Fix cygwin compilation warning on geotag.cpp 2014-10-07 21:33:02 +00:00
Robin Mills
fdd7e522e7 Issue: 989 "Wrong key name in output of addmoddel sample". Thank You Thomas for the patch. 2014-09-05 20:41:49 +00:00
Andreas Huggel
5bfddd927f Some TLC for samples/Makefile. It still re-builds everything everytime you run make though (and leaves a .libs directory in bin/). Building out-of-place seems not so straightforward with make. Maybe we should build in-place and have a local-install target instead. 2013-10-06 14:04:30 +00:00
Robin Mills
4aebd96cca Very close to 0.24. Passed the test-suite on MinGW. 2013-07-26 20:04:25 +00:00