Problem compiling transupp.cpp

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem compiling transupp.cpp

Bugzilla from gert.kello@gmail.com
Hi.

I'm getting compiling problem of transupp.cpp.. Is it something in my
enviroment? Can I "fix" it somehow, by removing dllimport? (how?) Or
should I just disbale related component(s)?

[ 24%] Building CXX object
digikam/CMakeFiles/digikamcore.dir/__/libs/jpegutils/libjpeg-62/transupp.obj
E:\Kde4Devel\GoSC2010\digikam\libs\jpegutils\libjpeg-62\transupp.cpp:574:1:
error: function 'void
Digikam::jtransform_request_workspace(jpeg_decompres
s_struct*, Digikam::jpeg_transform_info*)' definition is marked dllimport
E:\Kde4Devel\GoSC2010\digikam\libs\jpegutils\libjpeg-62\transupp.cpp:
In function 'void
Digikam::jtransform_request_workspace(jpeg_decompress_struct*,
 Digikam::jpeg_transform_info*)':
E:\Kde4Devel\GoSC2010\digikam\libs\jpegutils\libjpeg-62\transupp.cpp:574:1:
warning: 'void Digikam::jtransform_request_workspace(jpeg_decompress_struc
t*, Digikam::jpeg_transform_info*)' redeclared without dllimport
attribute: previous dllimport ignored
E:\Kde4Devel\GoSC2010\digikam\libs\jpegutils\libjpeg-62\transupp.cpp:
At global scope:
E:\Kde4Devel\GoSC2010\digikam\libs\jpegutils\libjpeg-62\transupp.cpp:738:1:
error: function 'jvirt_barray_control**
Digikam::jtransform_adjust_paramet
ers(jpeg_decompress_struct*, jpeg_compress_struct*,
jvirt_barray_control**, Digikam::jpeg_transform_info*)' definition is
marked dllimport
E:\Kde4Devel\GoSC2010\digikam\libs\jpegutils\libjpeg-62\transupp.cpp:
In function 'jvirt_barray_control**
Digikam::jtransform_adjust_parameters(jpeg_d
ecompress_struct*, jpeg_compress_struct*, jvirt_barray_control**,
Digikam::jpeg_transform_info*)':
E:\Kde4Devel\GoSC2010\digikam\libs\jpegutils\libjpeg-62\transupp.cpp:738:1:
warning: 'jvirt_barray_control**
Digikam::jtransform_adjust_parameters(jpe
g_decompress_struct*, jpeg_compress_struct*, jvirt_barray_control**,
Digikam::jpeg_transform_info*)' redeclared without dllimport
attribute: previous
dllimport ignored
E:\Kde4Devel\GoSC2010\digikam\libs\jpegutils\libjpeg-62\transupp.cpp:
At global scope:
E:\Kde4Devel\GoSC2010\digikam\libs\jpegutils\libjpeg-62\transupp.cpp:825:1:
error: function 'void
Digikam::jtransform_execute_transformation(jpeg_deco
mpress_struct*, jpeg_compress_struct*, jvirt_barray_control**,
Digikam::jpeg_transform_info*)' definition is marked dllimport
E:\Kde4Devel\GoSC2010\digikam\libs\jpegutils\libjpeg-62\transupp.cpp:
In function 'void
Digikam::jtransform_execute_transformation(jpeg_decompress_str
uct*, jpeg_compress_struct*, jvirt_barray_control**,
Digikam::jpeg_transform_info*)':
E:\Kde4Devel\GoSC2010\digikam\libs\jpegutils\libjpeg-62\transupp.cpp:825:1:
warning: 'void Digikam::jtransform_execute_transformation(jpeg_decompress_
struct*, jpeg_compress_struct*, jvirt_barray_control**,
Digikam::jpeg_transform_info*)' redeclared without dllimport
attribute: previous dllimport ign
ored
E:\Kde4Devel\GoSC2010\digikam\libs\jpegutils\libjpeg-62\transupp.cpp:
At global scope:
E:\Kde4Devel\GoSC2010\digikam\libs\jpegutils\libjpeg-62\transupp.cpp:867:1:
error: function 'void
Digikam::jcopy_markers_setup(jpeg_decompress_struct*
, Digikam::JCOPY_OPTION)' definition is marked dllimport
E:\Kde4Devel\GoSC2010\digikam\libs\jpegutils\libjpeg-62\transupp.cpp:
In function 'void
Digikam::jcopy_markers_setup(jpeg_decompress_struct*, Digikam:
:JCOPY_OPTION)':
E:\Kde4Devel\GoSC2010\digikam\libs\jpegutils\libjpeg-62\transupp.cpp:867:1:
warning: 'void Digikam::jcopy_markers_setup(jpeg_decompress_struct*,
Digik
am::JCOPY_OPTION)' redeclared without dllimport attribute: previous
dllimport ignored
E:\Kde4Devel\GoSC2010\digikam\libs\jpegutils\libjpeg-62\transupp.cpp:
At global scope:
E:\Kde4Devel\GoSC2010\digikam\libs\jpegutils\libjpeg-62\transupp.cpp:892:1:
error: function 'void
Digikam::jcopy_markers_execute(jpeg_decompress_struc
t*, jpeg_compress_struct*, Digikam::JCOPY_OPTION)' definition is
marked dllimport
E:\Kde4Devel\GoSC2010\digikam\libs\jpegutils\libjpeg-62\transupp.cpp:
In function 'void
Digikam::jcopy_markers_execute(jpeg_decompress_struct*, jpeg_c
ompress_struct*, Digikam::JCOPY_OPTION)':
E:\Kde4Devel\GoSC2010\digikam\libs\jpegutils\libjpeg-62\transupp.cpp:892:1:
warning: 'void Digikam::jcopy_markers_execute(jpeg_decompress_struct*,
jpe
g_compress_struct*, Digikam::JCOPY_OPTION)' redeclared without
dllimport attribute: previous dllimport ignored
make[2]: *** [digikam/CMakeFiles/digikamcore.dir/__/libs/jpegutils/libjpeg-62/transupp.obj]
Error 1
make[1]: *** [digikam/CMakeFiles/digikamcore.dir/all] Error 2
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problem compiling transupp.cpp

Marcel Wiesweg

> I'm getting compiling problem of transupp.cpp.. Is it something in my
> enviroment? Can I "fix" it somehow, by removing dllimport? (how?) Or
> should I just disbale related component(s)?

Did this appear only recently?
Then it must be related to CMake include dir changes. Gilles, Andi?
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problem compiling transupp.cpp

Bugzilla from gert.kello@gmail.com
It seems to be enviroment-realted... I have had it for some time
already with emerge Kde 4.5  enviroment.

The build for installed Kde enviroment (it was 4.4.1 I think) works
fine. Verified just now, by erased the build folder & watched that
[ 24%] Building CXX object
digikam/CMakeFiles/digikamcore.dir/__/libs/jpegutils/libjpeg-62/transupp.obj
[ 25%] Building CXX object
digikam/CMakeFiles/digikamcore.dir/__/libs/threadimageio/loadsavethread.obj

On 1 December 2010 11:30, Marcel Wiesweg <[hidden email]> wrote:

>
>> I'm getting compiling problem of transupp.cpp.. Is it something in my
>> enviroment? Can I "fix" it somehow, by removing dllimport? (how?) Or
>> should I just disbale related component(s)?
>
> Did this appear only recently?
> Then it must be related to CMake include dir changes. Gilles, Andi?
> _______________________________________________
> Digikam-devel mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-devel
>
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problem compiling transupp.cpp

Gilles Caulier-4
It compile with TDM-GCC. I tested it yesterday.

Gilles

2010/12/1 Gert Kello <[hidden email]>:

> It seems to be enviroment-realted... I have had it for some time
> already with emerge Kde 4.5  enviroment.
>
> The build for installed Kde enviroment (it was 4.4.1 I think) works
> fine. Verified just now, by erased the build folder & watched that
> [ 24%] Building CXX object
> digikam/CMakeFiles/digikamcore.dir/__/libs/jpegutils/libjpeg-62/transupp.obj
> [ 25%] Building CXX object
> digikam/CMakeFiles/digikamcore.dir/__/libs/threadimageio/loadsavethread.obj
>
> On 1 December 2010 11:30, Marcel Wiesweg <[hidden email]> wrote:
>>
>>> I'm getting compiling problem of transupp.cpp.. Is it something in my
>>> enviroment? Can I "fix" it somehow, by removing dllimport? (how?) Or
>>> should I just disbale related component(s)?
>>
>> Did this appear only recently?
>> Then it must be related to CMake include dir changes. Gilles, Andi?
>> _______________________________________________
>> Digikam-devel mailing list
>> [hidden email]
>> https://mail.kde.org/mailman/listinfo/digikam-devel
>>
> _______________________________________________
> Digikam-devel mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-devel
>
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problem compiling transupp.cpp

Bugzilla from gert.kello@gmail.com
> It compile with TDM-GCC. I tested it yesterday.

Yes, but if I try TDM-GCC with emerged kde then it fails. And I have
no idea why, I have near-zero experience in C world. Some
lib/header/?? incorrect?

The emerge applies some huge patch to jpeg lib... Maybe I shopuld just
try to recompile it without patches applied... But I have no idea what
else I need to recompile after that?

Gert
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problem compiling transupp.cpp

Bugzilla from gert.kello@gmail.com
I was able to compile it with the attached diff applied. The jconfig.h
seems to be the guilty one, it defines
    #if defined(libjpeg_EXPORTS)
        #define JPEG_EXPORT __declspec(dllexport)
    #else
        #define JPEG_EXPORT __declspec(dllimport)
    #endif

...
#define GLOBAL(type) JPEG_EXPORT type
#define EXTERN(type) JPEG_EXPORT type

On 1 December 2010 12:27, Gert Kello <[hidden email]> wrote:

>> It compile with TDM-GCC. I tested it yesterday.
>
> Yes, but if I try TDM-GCC with emerged kde then it fails. And I have
> no idea why, I have near-zero experience in C world. Some
> lib/header/?? incorrect?
>
> The emerge applies some huge patch to jpeg lib... Maybe I shopuld just
> try to recompile it without patches applied... But I have no idea what
> else I need to recompile after that?
>
> Gert
>

_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel

jpegutils.diff (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Problem compiling transupp.cpp

Gilles Caulier-4
Do you have compiled digiKam using MSVC or GCC ?

Gilles

2010/12/1 Gert Kello <[hidden email]>:

> I was able to compile it with the attached diff applied. The jconfig.h
> seems to be the guilty one, it defines
>    #if defined(libjpeg_EXPORTS)
>        #define JPEG_EXPORT __declspec(dllexport)
>    #else
>        #define JPEG_EXPORT __declspec(dllimport)
>    #endif
>
> ...
> #define GLOBAL(type) JPEG_EXPORT type
> #define EXTERN(type) JPEG_EXPORT type
>
> On 1 December 2010 12:27, Gert Kello <[hidden email]> wrote:
>>> It compile with TDM-GCC. I tested it yesterday.
>>
>> Yes, but if I try TDM-GCC with emerged kde then it fails. And I have
>> no idea why, I have near-zero experience in C world. Some
>> lib/header/?? incorrect?
>>
>> The emerge applies some huge patch to jpeg lib... Maybe I shopuld just
>> try to recompile it without patches applied... But I have no idea what
>> else I need to recompile after that?
>>
>> Gert
>>
>
> _______________________________________________
> Digikam-devel mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-devel
>
>
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problem compiling transupp.cpp

Bugzilla from gert.kello@gmail.com
GCC.

But it is not about compiler. It is about how emerge builds (or
patches, I can't say for sure) the jpeglib.

Gert

On 1 December 2010 21:06, Gilles Caulier <[hidden email]> wrote:
> Do you have compiled digiKam using MSVC or GCC ?
>
> Gilles
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problem compiling transupp.cpp

Bugzilla from gert.kello@gmail.com
One more patch, again for jpeg but jpeglossless kipi-plugin this time.
Now everything did compile fine.

Unfortunately turned out that my KDE was non-functional (something
causes run time exceptions in many programs) so I can't check out if
digikam works Ok.

Gert

On 1 December 2010 21:15, Gert Kello <[hidden email]> wrote:

> GCC.
>
> But it is not about compiler. It is about how emerge builds (or
> patches, I can't say for sure) the jpeglib.
>
> Gert
>
> On 1 December 2010 21:06, Gilles Caulier <[hidden email]> wrote:
>> Do you have compiled digiKam using MSVC or GCC ?
>>
>> Gilles
>

_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel

jpeglossless.diff (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Problem compiling transupp.cpp

Gilles Caulier-4
Gert,

Thanks for the patch.

Please open a file in bugzilla digiKam component, with your patches
attached. I will include these fix just before 1.7.0 release.

i wil lcheck also compilation with these patch under windows, but not
now, i'm too busy

 Ususally, it's always better to use bugzilla than mailing list,
because it's more easy to follow bug entries against a mailling list
tread.

Generally ML entry is drowning in a huge messages list after 10 days.

Thanks in advance

Gilles caulier

2010/12/2 Gert Kello <[hidden email]>:

> One more patch, again for jpeg but jpeglossless kipi-plugin this time.
> Now everything did compile fine.
>
> Unfortunately turned out that my KDE was non-functional (something
> causes run time exceptions in many programs) so I can't check out if
> digikam works Ok.
>
> Gert
>
> On 1 December 2010 21:15, Gert Kello <[hidden email]> wrote:
>> GCC.
>>
>> But it is not about compiler. It is about how emerge builds (or
>> patches, I can't say for sure) the jpeglib.
>>
>> Gert
>>
>> On 1 December 2010 21:06, Gilles Caulier <[hidden email]> wrote:
>>> Do you have compiled digiKam using MSVC or GCC ?
>>>
>>> Gilles
>>
>
> _______________________________________________
> Digikam-devel mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-devel
>
>
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problem compiling transupp.cpp

Bugzilla from gert.kello@gmail.com
> Please open a file in bugzilla digiKam component, with your patches
> attached. I will include these fix just before 1.7.0 release.

Done, https://bugs.kde.org/show_bug.cgi?id=258600

>  Ususally, it's always better to use bugzilla than mailing list,
> because it's more easy to follow bug entries against a mailling list
> tread.

I was 90% sure that the problem source is between the keyboard and
chair... Or at least specific to my computer.

Gert
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problem compiling transupp.cpp

Gilles Caulier-4
Ok, thanks

Gilles

2010/12/2 Gert Kello <[hidden email]>:

>> Please open a file in bugzilla digiKam component, with your patches
>> attached. I will include these fix just before 1.7.0 release.
>
> Done, https://bugs.kde.org/show_bug.cgi?id=258600
>
>>  Ususally, it's always better to use bugzilla than mailing list,
>> because it's more easy to follow bug entries against a mailling list
>> tread.
>
> I was 90% sure that the problem source is between the keyboard and
> chair... Or at least specific to my computer.
>
> Gert
> _______________________________________________
> Digikam-devel mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-devel
>
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel