Compiling on FreeBSD + DB problems

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

Compiling on FreeBSD + DB problems

Sulev-Madis Silber
Hello.

As I saw my wanted feature somewhat implemented (rotate images without
write access), I tried and finally managed to build git version under
FreeBSD 8.2.

However, I'm having all kind of weird problems with database?! I'm using
SQLite. Seems like structure is changed and I don't exactly know how
replicate it. Or just something is changed in code. Or I have messed
something up myself.
I'm kind of stuck here. I can't create DB. If copy one from 1.9.0, I'm
not able to write there (partially)?! Any ideas?

I noticed that code is written as pretty portable. However I found few
bugs and I have few patches to submit. So I can compile it without local
patching.


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

Re: Compiling on FreeBSD + DB problems

Gilles Caulier-4
2012/1/17 Sulev-Madis Silber <[hidden email]>:

> Hello.
>
> As I saw my wanted feature somewhat implemented (rotate images without write
> access), I tried and finally managed to build git version under FreeBSD 8.2.
>
> However, I'm having all kind of weird problems with database?! I'm using
> SQLite. Seems like structure is changed and I don't exactly know how
> replicate it. Or just something is changed in code. Or I have messed
> something up myself.
> I'm kind of stuck here. I can't create DB. If copy one from 1.9.0, I'm not
> able to write there (partially)?! Any ideas?

When you run digiKam, look into the console, there are debug messages.
This can be instructive...

>
> I noticed that code is written as pretty portable. However I found few bugs
> and I have few patches to submit. So I can compile it without local
> patching.

Please post your patch to bugzilla for future review and don't forget
to give a trace of broken compilation.

Thanks in advance

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

Re: Compiling on FreeBSD + DB problems

Sulev-Madis Silber
On 2012-01-17 13:34, Gilles Caulier wrote:

> 2012/1/17 Sulev-Madis Silber<[hidden email]>:
>> Hello.
>>
>> As I saw my wanted feature somewhat implemented (rotate images without write
>> access), I tried and finally managed to build git version under FreeBSD 8.2.
>>
>> However, I'm having all kind of weird problems with database?! I'm using
>> SQLite. Seems like structure is changed and I don't exactly know how
>> replicate it. Or just something is changed in code. Or I have messed
>> something up myself.
>> I'm kind of stuck here. I can't create DB. If copy one from 1.9.0, I'm not
>> able to write there (partially)?! Any ideas?
>
> When you run digiKam, look into the console, there are debug messages.
> This can be instructive...

Sure, from there I got the idea what could be wrong. Here's output when
trying some actions on existing database:

----------------------------
digikam(90813)/digikam (core): No DB action defined for
"changeImageInformation" ! Implementation missing for this database type.
digikam(90813)/digikam (core): Attempt to execute null action
digikam(90813)/digikam (core)
Digikam::ParallelWorkers::ParallelWorkers_qt_metacall: Distributing 5 to
Digikam::FileWorkerInterface(0x3241c290)
digikam(90813)/digikam (core)
Digikam::FileActionMngrFileWorker::transform: "IMG_4169.JPG"
QThread(0x32edd7e0)
digikam(90813)/digikam (core)
Digikam::FileActionMngrFileWorker::transform: Settings database flag to 6
digikam(90813)/digikam (core): No DB action defined for
"changeImageInformation" ! Implementation missing for this database type.
digikam(90813)/digikam (core): Attempt to execute null action
digikam(90813)/digikam (core)
Digikam::ParallelWorkers::ParallelWorkers_qt_metacall: Distributing 5 to
Digikam::FileWorkerInterface(0x3241c290)
digikam(90813)/digikam (core)
Digikam::FileActionMngrFileWorker::transform: "IMG_4169.JPG"
QThread(0x32edd7e0)
digikam(90813)/digikam (core)
Digikam::FileActionMngrFileWorker::transform: Settings database flag to 8
digikam(90813)/digikam (core): No DB action defined for
"changeImageInformation" ! Implementation missing for this database type.
digikam(90813)/digikam (core): Attempt to execute null action
digikam(90813)/digikam (core) Digikam::TagEditDlg::createTAlbum: ("test")
digikam(90813)/digikam (core) Digikam::TagEditDlg::createTAlbum: "test"
  ::  "/test"
digikam(90813)/digikam (core): No DB action defined for "InsertTag" !
Implementation missing for this database type.
digikam(90813)/digikam (core): Attempt to execute null action
----------------------------

Not sure what to do next?


>
>>
>> I noticed that code is written as pretty portable. However I found few bugs
>> and I have few patches to submit. So I can compile it without local
>> patching.
>
> Please post your patch to bugzilla for future review and don't forget
> to give a trace of broken compilation.
>
> Thanks in advance
>
> Gilles Caulier
> _______________________________________________
> 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: Compiling on FreeBSD + DB problems

Sulev-Madis Silber
In reply to this post by Gilles Caulier-4
Ah, false alert, it picked up wrong old "dbconfig.xml" from system. That
happens if you have multiple copies of same program installed.

Not sure what else did it pick up... Now DB seems to work as expected
but read-only rotation still doesn't work. When I rotate image, nothing
happens in thumbnail or view mode. However edit mode shows correctly
rotated image. View mode gets rotated image only after application
restart. Thumbnail is not updated even with restart, to update that I
need to rebuild all thumbnails.

So, rotation almost works...! I'm not sure I can fix those issues by
myself... though, yet :(
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Compiling on FreeBSD + DB problems

Gilles Caulier-4
2012/1/17 Sulev-Madis Silber <[hidden email]>:

> Ah, false alert, it picked up wrong old "dbconfig.xml" from system. That
> happens if you have multiple copies of same program installed.
>
> Not sure what else did it pick up... Now DB seems to work as expected but
> read-only rotation still doesn't work. When I rotate image, nothing happens
> in thumbnail or view mode. However edit mode shows correctly rotated image.
> View mode gets rotated image only after application restart. Thumbnail is
> not updated even with restart, to update that I need to rebuild all
> thumbnails.
>
> So, rotation almost works...! I'm not sure I can fix those issues by
> myself... though, yet :(

yes, we have introduced new code about rotation (look into
metadata/rotation setup page for behavior)

Typically, read only image must be rotted to switch a flage in thumb
database, and thumb must be rotated. It doesn't work with RAW file
currently. I reported this to Marcel who have written code about this
feature...

Gilles Caulier

>
> _______________________________________________
> 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