Macos X compilation: head git w 10.9.1

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

Macos X compilation: head git w 10.9.1

Julien T
Hello,

to align w my previous thread on ubuntu/lubuntu (still unsolved), I'm trying to compile latest git on macosx (10.9.1) w macports for the dependencies and compare.

I followed the following link and integrate it in my previous linux script
https://projects.kde.org/projects/extragear/graphics/digikam/digikam-software-compilation/repository/revisions/master/entry/README.MACOSX

but it fails w nepomuk
>>>
[ 95%] Building CXX object core/digikam/CMakeFiles/digikamnepomukservice.dir/__/utilities/nepomuk/digikamnepomukservice.cpp.o
In file included from /opt/tmp/build-digikam/digikam-software-compilation/core/utilities/nepomuk/digikamnepomukservice.cpp:25:
In file included from /opt/tmp/build-digikam/digikam-software-compilation/build/core/digikam/digikamnepomukservice.moc:9:
In file included from /opt/tmp/build-digikam/digikam-software-compilation/build/core/digikam/../../../core/utilities/nepomuk/digikamnepomuks
ervice.h:34:
In file included from /opt/local/include/ksharedconfig.h:25:
In file included from /opt/local/include/kconfig.h:27:
In file included from /opt/local/include/kconfigbase.h:27:
In file included from /opt/local/include/kdecore_export.h:24:
/opt/local/include/kdemacros.h:31:9: warning: '__KDE_HAVE_GCC_VISIBILITY' macro redefined
#define __KDE_HAVE_GCC_VISIBILITY
        ^    
<command line>:11:9: note: previous definition is here
#define __KDE_HAVE_GCC_VISIBILITY 1
        ^    
In file included from /opt/tmp/build-digikam/digikam-software-compilation/core/utilities/nepomuk/digikamnepomukservice.cpp:25:
In file included from /opt/tmp/build-digikam/digikam-software-compilation/build/core/digikam/digikamnepomukservice.moc:9:
/opt/tmp/build-digikam/digikam-software-compilation/build/core/digikam/../../../core/utilities/nepomuk/digikamnepomukservice.h:36:10: fatal
error: 'Nepomuk2/Service' file not found
#include <Nepomuk2/Service>
         ^    
1 warning and 1 error generated.
<<<

any way to solve this or disable nepomuk at build?

Thanks a lot.
Cheers,

Julien

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

Re: Macos X compilation: head git w 10.9.1

Gilles Caulier-4
Look in README. This is a cmake option to disable Nepomuk...

https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/README#L124

Gilles Caulier

2014-02-15 3:29 GMT+01:00 Julien T <[hidden email]>:

> Hello,
>
> to align w my previous thread on ubuntu/lubuntu (still unsolved), I'm trying
> to compile latest git on macosx (10.9.1) w macports for the dependencies and
> compare.
>
> I followed the following link and integrate it in my previous linux script
> https://projects.kde.org/projects/extragear/graphics/digikam/digikam-software-compilation/repository/revisions/master/entry/README.MACOSX
>
> but it fails w nepomuk
>>>>
> [ 95%] Building CXX object
> core/digikam/CMakeFiles/digikamnepomukservice.dir/__/utilities/nepomuk/digikamnepomukservice.cpp.o
> In file included from
> /opt/tmp/build-digikam/digikam-software-compilation/core/utilities/nepomuk/digikamnepomukservice.cpp:25:
> In file included from
> /opt/tmp/build-digikam/digikam-software-compilation/build/core/digikam/digikamnepomukservice.moc:9:
> In file included from
> /opt/tmp/build-digikam/digikam-software-compilation/build/core/digikam/../../../core/utilities/nepomuk/digikamnepomuks
> ervice.h:34:
> In file included from /opt/local/include/ksharedconfig.h:25:
> In file included from /opt/local/include/kconfig.h:27:
> In file included from /opt/local/include/kconfigbase.h:27:
> In file included from /opt/local/include/kdecore_export.h:24:
> /opt/local/include/kdemacros.h:31:9: warning: '__KDE_HAVE_GCC_VISIBILITY'
> macro redefined
> #define __KDE_HAVE_GCC_VISIBILITY
>         ^
> <command line>:11:9: note: previous definition is here
> #define __KDE_HAVE_GCC_VISIBILITY 1
>         ^
> In file included from
> /opt/tmp/build-digikam/digikam-software-compilation/core/utilities/nepomuk/digikamnepomukservice.cpp:25:
> In file included from
> /opt/tmp/build-digikam/digikam-software-compilation/build/core/digikam/digikamnepomukservice.moc:9:
> /opt/tmp/build-digikam/digikam-software-compilation/build/core/digikam/../../../core/utilities/nepomuk/digikamnepomukservice.h:36:10:
> fatal
> error: 'Nepomuk2/Service' file not found
> #include <Nepomuk2/Service>
>          ^
> 1 warning and 1 error generated.
> <<<
>
> any way to solve this or disable nepomuk at build?
>
> Thanks a lot.
> Cheers,
>
> Julien
>
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
>
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Macos X compilation: head git w 10.9.1

Julien T



2014-02-15 2:27 GMT-05:00 Gilles Caulier <[hidden email]>:
Look in README. This is a cmake option to disable Nepomuk...

https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/README#L124
 

Not working for me ...
tried
-DENABLE_NEPOMUKSUPPORT=NO
-DENABLE_NEPOMUKSUPPORT=no
-DENABLE_NEPOMUKSUPPORT=off
or removing the line in bootstrap.macports

still failing on Nepomuk2/Services :(
what is supposed to be "#include <Nepomuk2/Service>" ?

I have
$ locate nepomukservice.h
/opt/local/include/nepomuk/nepomukservice.h
/opt/local/include/nepomuk2/nepomukservice.h

compiling with the following script
>>>
#!/bin/sh
##    build digikam from source on linux/debian/ubuntu to /usr/local
## http://www.digikam.org/node/621

export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/local/bin
umask 022

work_dir=/opt/tmp/${0##*/}
work_dir=${work_dir%.sh}
sys=`uname -s`

if [ "X$sys" = "XLinux" ]; then
## remove "official" one
sudo apt-get purge digikam digikam-data kipi-plugins kipi-plugins-common
sudo apt-get autoremove

## deps
sudo apt-get install git perl
# libkexiv2-dev libkipi-dev libkdcraw-dev
sudo apt-get -y build-dep digikam kipi-plugins

elif [ "X$sys" = "XDarwin" ]; then
    ## https://projects.kde.org/projects/extragear/graphics/digikam/digikam-software-compilation/repository/revisions/master/entry/README.MACOSX
#    sudo port install libkipi git-core cmake libraw
#    sudo port -v install marble +debug
#    sudo port -v install libkdcraw +debug
    :
fi

[ ! -d $work_dir ] && mkdir $work_dir
cd $work_dir

if [ ! -d digikam-software-compilation ]; then
    git clone git://anongit.kde.org/digikam-software-compilation digikam-software-compilation
else
    cd digikam-software-compilation && perl gits pull && cd ..
    :
fi
cd digikam-software-compilation
perl download-repos

if [ "X$sys" = "XDarwin" ]; then
    cp bootstrap.macports bootstrap.macports.orig
    perl -pi -e 's@-DENABLE_NEPOMUKSUPPORT=ON@-DENABLE_NEPOMUKSUPPORT=no@;' bootstrap.macports ## NOK
    ./bootstrap.macports
    cd build && make
else

[ ! -d build ] && mkdir build
cd build && \
    cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=/usr/local $CFLAGS .. && make

fi

#make install
#make uninstall

<<<

sadly, the initial cmake always says nepomuk libraries are there and don't say, disabling support.

Any ideas?

Thanks.
Cheers,

Julien

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

Re: Macos X compilation: head git w 10.9.1

Gilles Caulier-4
Before to change cmake configuration arguments, please clean up cmake
cache file to be sure that all will be handle properly...

Gilles Caulier

2014-02-16 21:55 GMT+01:00 Julien T <[hidden email]>:

>
>
>
> 2014-02-15 2:27 GMT-05:00 Gilles Caulier <[hidden email]>:
>
>> Look in README. This is a cmake option to disable Nepomuk...
>>
>>
>> https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/README#L124
>
>
>
> Not working for me ...
> tried
> -DENABLE_NEPOMUKSUPPORT=NO
> -DENABLE_NEPOMUKSUPPORT=no
> -DENABLE_NEPOMUKSUPPORT=off
> or removing the line in bootstrap.macports
>
> still failing on Nepomuk2/Services :(
> what is supposed to be "#include <Nepomuk2/Service>" ?
>
> I have
> $ locate nepomukservice.h
> /opt/local/include/nepomuk/nepomukservice.h
> /opt/local/include/nepomuk2/nepomukservice.h
>
> compiling with the following script
>>>>
> #!/bin/sh
> ##    build digikam from source on linux/debian/ubuntu to /usr/local
> ## http://www.digikam.org/node/621
>
> export
> PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/local/bin
> umask 022
>
> work_dir=/opt/tmp/${0##*/}
> work_dir=${work_dir%.sh}
> sys=`uname -s`
>
> if [ "X$sys" = "XLinux" ]; then
> ## remove "official" one
> sudo apt-get purge digikam digikam-data kipi-plugins kipi-plugins-common
> sudo apt-get autoremove
>
> ## deps
> sudo apt-get install git perl
> # libkexiv2-dev libkipi-dev libkdcraw-dev
> sudo apt-get -y build-dep digikam kipi-plugins
>
> elif [ "X$sys" = "XDarwin" ]; then
>     ##
> https://projects.kde.org/projects/extragear/graphics/digikam/digikam-software-compilation/repository/revisions/master/entry/README.MACOSX
> #    sudo port install libkipi git-core cmake libraw
> #    sudo port -v install marble +debug
> #    sudo port -v install libkdcraw +debug
>     :
> fi
>
> [ ! -d $work_dir ] && mkdir $work_dir
> cd $work_dir
>
> if [ ! -d digikam-software-compilation ]; then
>     git clone git://anongit.kde.org/digikam-software-compilation
> digikam-software-compilation
> else
>     cd digikam-software-compilation && perl gits pull && cd ..
>     :
> fi
> cd digikam-software-compilation
> perl download-repos
>
> if [ "X$sys" = "XDarwin" ]; then
>     cp bootstrap.macports bootstrap.macports.orig
>     perl -pi -e 's@-DENABLE_NEPOMUKSUPPORT=ON@-DENABLE_NEPOMUKSUPPORT=no@;'
> bootstrap.macports ## NOK
>     ./bootstrap.macports
>     cd build && make
> else
>
> [ ! -d build ] && mkdir build
> cd build && \
>     cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=/usr/local
> $CFLAGS .. && make
>
> fi
>
> #make install
> #make uninstall
>
> <<<
>
> sadly, the initial cmake always says nepomuk libraries are there and don't
> say, disabling support.
>
> Any ideas?
>
> Thanks.
> Cheers,
>
> Julien
>
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
>
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Macos X compilation: head git w 10.9.1

Julien T



2014-02-16 16:55 GMT-05:00 Gilles Caulier <[hidden email]>:
Before to change cmake configuration arguments, please clean up cmake
cache file to be sure that all will be handle properly...

I did some build from zero and also try to remove build/CMakeCache.txt but it doesn't change a thing.
after a "cleaned" call of cmake, got this
>>>
$  grep -i nepomuk /opt/tmp/build-digikam/digikam-software-compilation.1/build/CMakeCache.txt
//Build digiKam with Nepomuk support (default=ON)
ENABLE_NEPOMUKSUPPORT:BOOL=no
NEPOMUK2_ADDONTOLOGYCLASSES_FILE:FILEPATH=/opt/local/lib/cmake/NepomukCore/Nepomuk2AddOntologyClasses.cmake
//The directory containing a CMake configuration file for NepomukCore.
NepomukCore_DIR:PATH=/opt/local/lib/cmake/NepomukCore
digikamnepomukservice_LIB_DEPENDS:STATIC=general;Qt4::QtSql;general;KDE4__kio;general;KDE4__solid;general;KDE4__kdeui;general;kipi;general;kexiv2;general;kdcraw;general;nepomukcore;general;digikamcore;general;digikamdatabase;
<<<

Also sadly, it seems it has messed things w the 3.5.0 installed w macports and this one fails now :(

got either Apple report problem if start from gui/spotlight:
>>>
Process:         digikam [42902]
Path:            /Applications/MacPorts/*/digikam.app/Contents/MacOS/digikam
Identifier:      ???
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  launchd [170]
Responsible:     digikam [42902]
User ID:         502

Date/Time:       2014-02-16 22:55:18.579 -0500
OS Version:      Mac OS X 10.9.1 (13B42)
Report Version:  11
Anonymous UUID:  1FB7B059-0764-A365-0D04-CC101A941B07

Sleep/Wake UUID: 0587F456-FE58-4599-9FB9-1077CDB7D37B

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_GUARD
Exception Codes: 0x4000000100000004, 0x00007fff96af8c48

Application Specific Information:
abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib            0x00007fff949d60c2 close + 10
1   libkdeui.5.dylib                  0x0000000106d02c27 KCrash::defaultCrashHandler(int) + 247
2   libsystem_platform.dylib          0x00007fff904c95aa _sigtramp + 26
3   ???                               000000000000000000 0 + 0
4   libsystem_c.dylib                 0x00007fff97c5ebba abort + 125
5   QtCore_debug                      0x000000010848a76b qt_message_output(QtMsgType, char const*) + 200
6   QtCore_debug                      0x000000010848a918 qt_message(QtMsgType, char const*, __va_list_tag*) + 203
7   QtCore_debug                      0x000000010848a361 qFatal(char const*, ...) + 159
8   QtGui_debug                       0x00000001072a56a4 qt_pixmap_thread_test() + 111
9   QtGui_debug                       0x00000001072a55da QPixmap::QPixmap() + 42
10                                    0x000000010335d790 Digikam::ScanController::Private::Private() + 160
11                                    0x000000010335813e Digikam::ScanController::ScanController() + 62
12                                    0x000000010335804f Digikam::ScanController::instance() + 127
13                                    0x0000000103328180 Digikam::AlbumManager::setDatabase(Digikam::DatabaseParameters const&, bool, QString) + 80
14                                    0x0000000103473c1b main + 5051
15  libdyld.dylib                     0x00007fff8d0715fd start + 1
[...]
<<<


In cli
>>>
[...]
objc[41662]: Class QNSMenu is implemented in both /opt/local/Library/Frameworks/QtGui.framework/Versions/4/QtGui and /opt/local/Library/Frameworks/QtGui.framework/Versions/4/QtGui_debug. One of the two will be used. Which one is undefined.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QObject: Cannot create children for a parent that is in a different thread.
(Parent is Digikam::AlbumWatch(0x7fa8c2770cc0), parent's thread is QThread(0x7fa8c276e150), current thread is QThread(0x7fa8c2402000)
digikam(41662)/digikam (core) Digikam::AlbumWatch::connectToKDirWatch: KDirWatch method =  "FAM"
QPixmap: Must construct a QApplication before a QPaintDevice
Killed: 9
<<<

try to uninstall/re-install digikam, but stays the same
$ sudo port uninstall digikam marble libkipi libkdcraw opencv
$ sudo port install digikam +debug

Julien

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