Error while building

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

Error while building

Swati Lodha
Hello

I'm trying to build digiKam and I'm receiving this error as I run [make] command:

CMakeFiles/cameranamehelpertest.dir/cameranamehelpertest.cpp.o: In function `CameraNameHelperTest::testCreateCameraName()':
/home/swati/dk/core/tests/advancedrename/cameranamehelpertest.cpp:94: undefined reference to `Digikam::CameraNameHelper::createCameraName(QString con
st&, QString const&, QString const&, bool)'
CMakeFiles/cameranamehelpertest.dir/cameranamehelpertest.cpp.o: In function `CameraNameHelperTest::testCameraName()':
/home/swati/dk/core/tests/advancedrename/cameranamehelpertest.cpp:127: undefined reference to `Digikam::CameraNameHelper::cameraName(QString const&)'
CMakeFiles/cameranamehelpertest.dir/cameranamehelpertest.cpp.o: In function `CameraNameHelperTest::testCameraNameAutoDetected()':
/home/swati/dk/core/tests/advancedrename/cameranamehelpertest.cpp:147: undefined reference to `Digikam::CameraNameHelper::cameraNameAutoDetected(QStr
ing const&)'
CMakeFiles/cameranamehelpertest.dir/cameranamehelpertest.cpp.o: In function `CameraNameHelperTest::testSameDevices()':
/home/swati/dk/core/tests/advancedrename/cameranamehelpertest.cpp:156: undefined reference to `Digikam::CameraNameHelper::sameDevices(QString const&,
QString const&)'
collect2: error: ld returned 1 exit status
core/tests/advancedrename/CMakeFiles/cameranamehelpertest.dir/build.make:161: recipe for target 'core/tests/advancedrename/cameranamehelpertest' fail
ed
make[2]: *** [core/tests/advancedrename/cameranamehelpertest] Error 1
CMakeFiles/Makefile2:13367: recipe for target 'core/tests/advancedrename/CMakeFiles/cameranamehelpertest.dir/all' failed
make[1]: *** [core/tests/advancedrename/CMakeFiles/cameranamehelpertest.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2


Please help to fix this.

 

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

Re: Error while building

Gilles Caulier-4
Strange. Here i can reproduce under Linux, OSX and Windows (through MXE/Mingw)

Did you use 32 or 64 computer ?

Gilles Caulier

2016-05-20 2:07 GMT+02:00 Swati Lodha <[hidden email]>:
Hello

I'm trying to build digiKam and I'm receiving this error as I run [make] command:

CMakeFiles/cameranamehelpertest.dir/cameranamehelpertest.cpp.o: In function `CameraNameHelperTest::testCreateCameraName()':
/home/swati/dk/core/tests/advancedrename/cameranamehelpertest.cpp:94: undefined reference to `Digikam::CameraNameHelper::createCameraName(QString con
st&, QString const&, QString const&, bool)'
CMakeFiles/cameranamehelpertest.dir/cameranamehelpertest.cpp.o: In function `CameraNameHelperTest::testCameraName()':
/home/swati/dk/core/tests/advancedrename/cameranamehelpertest.cpp:127: undefined reference to `Digikam::CameraNameHelper::cameraName(QString const&)'
CMakeFiles/cameranamehelpertest.dir/cameranamehelpertest.cpp.o: In function `CameraNameHelperTest::testCameraNameAutoDetected()':
/home/swati/dk/core/tests/advancedrename/cameranamehelpertest.cpp:147: undefined reference to `Digikam::CameraNameHelper::cameraNameAutoDetected(QStr
ing const&)'
CMakeFiles/cameranamehelpertest.dir/cameranamehelpertest.cpp.o: In function `CameraNameHelperTest::testSameDevices()':
/home/swati/dk/core/tests/advancedrename/cameranamehelpertest.cpp:156: undefined reference to `Digikam::CameraNameHelper::sameDevices(QString const&,
QString const&)'
collect2: error: ld returned 1 exit status
core/tests/advancedrename/CMakeFiles/cameranamehelpertest.dir/build.make:161: recipe for target 'core/tests/advancedrename/cameranamehelpertest' fail
ed
make[2]: *** [core/tests/advancedrename/cameranamehelpertest] Error 1
CMakeFiles/Makefile2:13367: recipe for target 'core/tests/advancedrename/CMakeFiles/cameranamehelpertest.dir/all' failed
make[1]: *** [core/tests/advancedrename/CMakeFiles/cameranamehelpertest.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2


Please help to fix this.

 

_______________________________________________
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: Error while building

Maik Qualmann

I can reproduce it, CameraName Helper must be exported now. I fix it.

Maik

Am 20.05.2016 10:33 schrieb "Gilles Caulier" <[hidden email]>:
Strange. Here i can reproduce under Linux, OSX and Windows (through MXE/Mingw)

Did you use 32 or 64 computer ?

Gilles Caulier

2016-05-20 2:07 GMT+02:00 Swati Lodha <[hidden email]>:
Hello

I'm trying to build digiKam and I'm receiving this error as I run [make] command:

CMakeFiles/cameranamehelpertest.dir/cameranamehelpertest.cpp.o: In function `CameraNameHelperTest::testCreateCameraName()':
/home/swati/dk/core/tests/advancedrename/cameranamehelpertest.cpp:94: undefined reference to `Digikam::CameraNameHelper::createCameraName(QString con
st&, QString const&, QString const&, bool)'
CMakeFiles/cameranamehelpertest.dir/cameranamehelpertest.cpp.o: In function `CameraNameHelperTest::testCameraName()':
/home/swati/dk/core/tests/advancedrename/cameranamehelpertest.cpp:127: undefined reference to `Digikam::CameraNameHelper::cameraName(QString const&)'
CMakeFiles/cameranamehelpertest.dir/cameranamehelpertest.cpp.o: In function `CameraNameHelperTest::testCameraNameAutoDetected()':
/home/swati/dk/core/tests/advancedrename/cameranamehelpertest.cpp:147: undefined reference to `Digikam::CameraNameHelper::cameraNameAutoDetected(QStr
ing const&)'
CMakeFiles/cameranamehelpertest.dir/cameranamehelpertest.cpp.o: In function `CameraNameHelperTest::testSameDevices()':
/home/swati/dk/core/tests/advancedrename/cameranamehelpertest.cpp:156: undefined reference to `Digikam::CameraNameHelper::sameDevices(QString const&,
QString const&)'
collect2: error: ld returned 1 exit status
core/tests/advancedrename/CMakeFiles/cameranamehelpertest.dir/build.make:161: recipe for target 'core/tests/advancedrename/cameranamehelpertest' fail
ed
make[2]: *** [core/tests/advancedrename/cameranamehelpertest] Error 1
CMakeFiles/Makefile2:13367: recipe for target 'core/tests/advancedrename/CMakeFiles/cameranamehelpertest.dir/all' failed
make[1]: *** [core/tests/advancedrename/CMakeFiles/cameranamehelpertest.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2


Please help to fix this.

 

_______________________________________________
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: Error while building

Swati Lodha
I'm using 64.

Do I need to install package for CameraName Helper?

On Fri, May 20, 2016 at 2:15 PM, Maik Qualmann <[hidden email]> wrote:

I can reproduce it, CameraName Helper must be exported now. I fix it.

Maik

Am 20.05.2016 10:33 schrieb "Gilles Caulier" <[hidden email]>:
Strange. Here i can reproduce under Linux, OSX and Windows (through MXE/Mingw)

Did you use 32 or 64 computer ?

Gilles Caulier

2016-05-20 2:07 GMT+02:00 Swati Lodha <[hidden email]>:
Hello

I'm trying to build digiKam and I'm receiving this error as I run [make] command:

CMakeFiles/cameranamehelpertest.dir/cameranamehelpertest.cpp.o: In function `CameraNameHelperTest::testCreateCameraName()':
/home/swati/dk/core/tests/advancedrename/cameranamehelpertest.cpp:94: undefined reference to `Digikam::CameraNameHelper::createCameraName(QString con
st&, QString const&, QString const&, bool)'
CMakeFiles/cameranamehelpertest.dir/cameranamehelpertest.cpp.o: In function `CameraNameHelperTest::testCameraName()':
/home/swati/dk/core/tests/advancedrename/cameranamehelpertest.cpp:127: undefined reference to `Digikam::CameraNameHelper::cameraName(QString const&)'
CMakeFiles/cameranamehelpertest.dir/cameranamehelpertest.cpp.o: In function `CameraNameHelperTest::testCameraNameAutoDetected()':
/home/swati/dk/core/tests/advancedrename/cameranamehelpertest.cpp:147: undefined reference to `Digikam::CameraNameHelper::cameraNameAutoDetected(QStr
ing const&)'
CMakeFiles/cameranamehelpertest.dir/cameranamehelpertest.cpp.o: In function `CameraNameHelperTest::testSameDevices()':
/home/swati/dk/core/tests/advancedrename/cameranamehelpertest.cpp:156: undefined reference to `Digikam::CameraNameHelper::sameDevices(QString const&,
QString const&)'
collect2: error: ld returned 1 exit status
core/tests/advancedrename/CMakeFiles/cameranamehelpertest.dir/build.make:161: recipe for target 'core/tests/advancedrename/cameranamehelpertest' fail
ed
make[2]: *** [core/tests/advancedrename/cameranamehelpertest] Error 1
CMakeFiles/Makefile2:13367: recipe for target 'core/tests/advancedrename/CMakeFiles/cameranamehelpertest.dir/all' failed
make[1]: *** [core/tests/advancedrename/CMakeFiles/cameranamehelpertest.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2


Please help to fix this.

 

_______________________________________________
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



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

Re: Error while building

Gilles Caulier-4


2016-05-20 11:01 GMT+02:00 Swati Lodha <[hidden email]>:
I'm using 64.

Do I need to install package for CameraName Helper?

No it's a code in digiKam core.

The problem that you have is an import/export of C++ symbols. The linker is lost for some classes.

This is due to my last changes to be able to compile all code under Windows.

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: Error while building

Swati Lodha
I'll try with DBUILD_TESTING=OFF then and see if it works.




On Fri, May 20, 2016 at 2:37 PM, Gilles Caulier <[hidden email]> wrote:


2016-05-20 11:01 GMT+02:00 Swati Lodha <[hidden email]>:
I'm using 64.

Do I need to install package for CameraName Helper?

No it's a code in digiKam core.

The problem that you have is an import/export of C++ symbols. The linker is lost for some classes.

This is due to my last changes to be able to compile all code under Windows.

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: Error while building

Swati Lodha
It solved that issue and I'm able to run [make] successfully. But encountering this new error on running [make install] 

[100%] Built target digikamimageplugin_transform
[100%] Automatic moc for target digikamdatabaseserver
[100%] Built target digikamdatabaseserver_automoc
[100%] Built target digikamdatabaseserver
Install the project...
-- Install configuration: "debug"
-- Installing: /usr/lib/x86_64-linux-gnu/cmake/KF5Kipi/KF5KipiConfig.cmake
CMake Error at extra/libkipi/cmake_install.cmake:36 (file):
 file INSTALL cannot copy file
 "/home/swati/dk/build/extra/libkipi/KF5KipiConfig.cmake" to
 "/usr/lib/x86_64-linux-gnu/cmake/KF5Kipi/KF5KipiConfig.cmake".
Call Stack (most recent call first):
 extra/cmake_install.cmake:37 (include)
 cmake_install.cmake:37 (include)
  


Makefile:61: recipe for target 'install' failed
make: *** [install] Error 1


 

On Fri, May 20, 2016 at 2:42 PM, Swati Lodha <[hidden email]> wrote:
I'll try with DBUILD_TESTING=OFF then and see if it works.




On Fri, May 20, 2016 at 2:37 PM, Gilles Caulier <[hidden email]> wrote:


2016-05-20 11:01 GMT+02:00 Swati Lodha <[hidden email]>:
I'm using 64.

Do I need to install package for CameraName Helper?

No it's a code in digiKam core.

The problem that you have is an import/export of C++ symbols. The linker is lost for some classes.

This is due to my last changes to be able to compile all code under Windows.

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: Error while building

Swati Lodha
I'm able to resolve this. 
Sorry for inconvenience. 

On Fri, May 20, 2016 at 3:16 PM, Swati Lodha <[hidden email]> wrote:
It solved that issue and I'm able to run [make] successfully. But encountering this new error on running [make install] 

[100%] Built target digikamimageplugin_transform
[100%] Automatic moc for target digikamdatabaseserver
[100%] Built target digikamdatabaseserver_automoc
[100%] Built target digikamdatabaseserver
Install the project...
-- Install configuration: "debug"
-- Installing: /usr/lib/x86_64-linux-gnu/cmake/KF5Kipi/KF5KipiConfig.cmake
CMake Error at extra/libkipi/cmake_install.cmake:36 (file):
 file INSTALL cannot copy file
 "/home/swati/dk/build/extra/libkipi/KF5KipiConfig.cmake" to
 "/usr/lib/x86_64-linux-gnu/cmake/KF5Kipi/KF5KipiConfig.cmake".
Call Stack (most recent call first):
 extra/cmake_install.cmake:37 (include)
 cmake_install.cmake:37 (include)
  


Makefile:61: recipe for target 'install' failed
make: *** [install] Error 1


 

On Fri, May 20, 2016 at 2:42 PM, Swati Lodha <[hidden email]> wrote:
I'll try with DBUILD_TESTING=OFF then and see if it works.




On Fri, May 20, 2016 at 2:37 PM, Gilles Caulier <[hidden email]> wrote:


2016-05-20 11:01 GMT+02:00 Swati Lodha <[hidden email]>:
I'm using 64.

Do I need to install package for CameraName Helper?

No it's a code in digiKam core.

The problem that you have is an import/export of C++ symbols. The linker is lost for some classes.

This is due to my last changes to be able to compile all code under Windows.

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: Error while building

Maik Qualmann
Build CameraNameHelperTest is now fixed in the current git version.

Maik

On Freitag, 20. Mai 2016 15:23:06 CEST Swati Lodha wrote:

> I'm able to resolve this.
> Sorry for inconvenience.
> ᐧ
>
> On Fri, May 20, 2016 at 3:16 PM, Swati Lodha <[hidden email]> wrote:
> > It solved that issue and I'm able to run [make] successfully. But
> > encountering this new error on running [make install]
> >
> > [100%] Built target digikamimageplugin_transform
> >
> >> [100%] Automatic moc for target digikamdatabaseserver
> >> [100%] Built target digikamdatabaseserver_automoc
> >> [100%] Built target digikamdatabaseserver
> >
> > Install the project...
> >
> >> -- Install configuration: "debug"
> >> -- Installing:
> >> /usr/lib/x86_64-linux-gnu/cmake/KF5Kipi/KF5KipiConfig.cmake
> >>
> >> CMake Error at extra/libkipi/cmake_install.cmake:36 (file):
> >>  file INSTALL cannot copy file
> >>  "/home/swati/dk/build/extra/libkipi/KF5KipiConfig.cmake" to
> >>  "/usr/lib/x86_64-linux-gnu/cmake/KF5Kipi/KF5KipiConfig.cmake".
> >>
> >> Call Stack (most recent call first):
> >>  extra/cmake_install.cmake:37 (include)
> >>  cmake_install.cmake:37 (include)
> >>
> >> Makefile:61: recipe for target 'install' failed
> >> make: *** [install] Error 1
> >
> > ᐧ
> >
> > On Fri, May 20, 2016 at 2:42 PM, Swati Lodha <[hidden email]>
> >
> > wrote:
> >> I'll try with DBUILD_TESTING=OFF then and see if it works.
> >>
> >>
> >>
> >> ᐧ
> >>
> >> On Fri, May 20, 2016 at 2:37 PM, Gilles Caulier <[hidden email]
> >>
> >> > wrote:
> >>> 2016-05-20 11:01 GMT+02:00 Swati Lodha <[hidden email]>:
> >>>> I'm using 64.
> >>>>
> >>>> Do I need to install package for CameraName Helper?
> >>>
> >>> No it's a code in digiKam core.
> >>>
> >>> The problem that you have is an import/export of C++ symbols. The linker
> >>> is lost for some classes.
> >>>
> >>> This is due to my last changes to be able to compile all code under
> >>> Windows.
> >>>
> >>> 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: Error while building

Maik Qualmann-2
In reply to this post by Swati Lodha
Build CameraNameHelperTest is now fixed in the current git version.

Maik

On Freitag, 20. Mai 2016 15:23:06 CEST Swati Lodha wrote:

> I'm able to resolve this.
> Sorry for inconvenience.
> ᐧ
>
> On Fri, May 20, 2016 at 3:16 PM, Swati Lodha <[hidden email]> wrote:
> > It solved that issue and I'm able to run [make] successfully. But
> > encountering this new error on running [make install]
> >
> > [100%] Built target digikamimageplugin_transform
> >
> >> [100%] Automatic moc for target digikamdatabaseserver
> >> [100%] Built target digikamdatabaseserver_automoc
> >> [100%] Built target digikamdatabaseserver
> >
> > Install the project...
> >
> >> -- Install configuration: "debug"
> >> -- Installing:
> >> /usr/lib/x86_64-linux-gnu/cmake/KF5Kipi/KF5KipiConfig.cmake
> >>
> >> CMake Error at extra/libkipi/cmake_install.cmake:36 (file):
> >>  file INSTALL cannot copy file
> >>  "/home/swati/dk/build/extra/libkipi/KF5KipiConfig.cmake" to
> >>  "/usr/lib/x86_64-linux-gnu/cmake/KF5Kipi/KF5KipiConfig.cmake".
> >>
> >> Call Stack (most recent call first):
> >>  extra/cmake_install.cmake:37 (include)
> >>  cmake_install.cmake:37 (include)
> >>
> >> Makefile:61: recipe for target 'install' failed
> >> make: *** [install] Error 1
> >
> > ᐧ
> >
> > On Fri, May 20, 2016 at 2:42 PM, Swati Lodha <[hidden email]>
> >
> > wrote:
> >> I'll try with DBUILD_TESTING=OFF then and see if it works.
> >>
> >>
> >>
> >> ᐧ
> >>
> >> On Fri, May 20, 2016 at 2:37 PM, Gilles Caulier <[hidden email]
> >>
> >> > wrote:
> >>> 2016-05-20 11:01 GMT+02:00 Swati Lodha <[hidden email]>:
> >>>> I'm using 64.
> >>>>
> >>>> Do I need to install package for CameraName Helper?
> >>>
> >>> No it's a code in digiKam core.
> >>>
> >>> The problem that you have is an import/export of C++ symbols. The linker
> >>> is lost for some classes.
> >>>
> >>> This is due to my last changes to be able to compile all code under
> >>> Windows.
> >>>
> >>> Gilles Caulier
> >>>
> >>> _______________________________________________
> >>> Digikam-devel mailing list
> >>> [hidden email]
> >>> https://mail.kde.org/mailman/listinfo/digikam-devel


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