Sun 16 Aug 2015 02:41:09 AM UTC, original submission:
- Symptom :
When building Cynthiune bundle ID3Tag in MSYS2(mingw32), compiling errors occur. Here are some of logs.
---------------------------------------------------------------
MINGW32 ~/gap/user-apps/Cynthiune/Bundles/ID3Tag
$ make
This is gnustep-make 2.6.7. Type 'make print-gnustep-make-help' for help.
Making all for bundle ID3Tag...
Compiling file ID3Tag.m ...
ID3Tag.m:36:45: error: unknown type name 'id3_ucs4_t'
+ (NSString ) stringWithUCS4String: (const id3_ucs4_t ) ucs4Value;
^
ID3Tag.m:37:4: error: unknown type name 'id3_ucs4_t'
- (id3_ucs4_t *) UCS4String;
^
ID3Tag.m:43:45: error: unknown type name 'id3_ucs4_t'
+ (NSString ) stringWithUCS4String: (const id3_ucs4_t ) ucs4Value
^
ID3Tag.m: In function '+[NSString(ID3TagExtension) stringWithUCS4String:]':
ID3Tag.m:46:3: error: unknown type name 'id3_utf8_t'
id3_utf8_t *UTF8String;
^
ID3Tag.m:48:16: warning: implicit declaration of function 'id3_ucs4_utf8duplicate' [-Wimplicit-function-declaration]
UTF8String = id3_ucs4_utf8duplicate (ucs4Value);
-----------------------------------------------------------------
- Cause :
All headers exist, but errors appear.
There seems to be conflict between that of <id3tag.h> (ID3Tag library) and "ID3Tag.h" (ID3Tag bundle) due to case insensitve of mingw32 and Windows.
-----------------------------------------------------------------
- Workaround :
MINGW32 ~/gap/user-apps/Cynthiune/Bundles/ID3Tag
$ mv ID3Tag.h ID3Tag0.h
$ svn diff
Index: Bundles/ID3Tag/ID3Tag.m
=================================================================
--- Bundles/ID3Tag/ID3Tag.m (Revision 3075)
+++ Bundles/ID3Tag/ID3Tag.m (Working copy)
@@ -27,7 +27,7 @@
#include <id3tag.h>
-#import "ID3Tag.h"
+#import "ID3Tag0.h"
#define LOCALIZED(X) _b ([ID3Tag class], X)
-----------------------------------------------------------------
If there are better patch, please suggest it.
|