KPhotoAlbum on Windows?
Teemu
sikanauta at pumpuli.net
Tue Dec 17 17:11:21 GMT 2024
On 2024-12-16 01:30, Johannes Zarl-Zierl wrote:
>> And if I comment those out, then the error disappears. I haven't found
>> any solution for this.
>> Any pointers?
I finally got it to build, and the executable even works - KPA demo
database opened successfully on Windows :).
The solution to those "unresolved external symbol"-errors was to RTFM,
and to follow this practice with kpabase and kpathumbnails:
https://doc.qt.io/qt-6/sharedlibrary.html
I.e. for kpabase adding this at the start of the header file:
#if defined(KPABASE_LIB)
#define KPABASE_EXPORT Q_DECL_EXPORT
#else
#define KPABASE_EXPORT Q_DECL_IMPORT
#endif
and then using it like this in couple of lines in the header:
KPABASE_EXPORT Q_FLAG_NS(VideoBackend)
class KPABASE_EXPORT SettingsData : public QObject ...
And of course, had to add also compile definitions to the CMakeLists.txt
for those libraries:
target_compile_definitions(kpabase PRIVATE KPABASE_LIB)
Happy now.
Need to experiment still with MinGW, so that it would compile without
the modifications I did with files needing dirent.h and uninstd.h, but
that can wait...
Teemu
More information about the KPhotoAlbum
mailing list