trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: May 2016

Re: Re: Re: TDEPIM cmake question

From: deloptes <deloptes@...>
Date: Thu, 19 May 2016 21:07:04 +0200
Slávek Banko wrote:

> On Thursday 19 of May 2016 10:10:08 Michele Calgaro wrote:
>> On 2016/05/19 05:07 PM, Michael Howard wrote:
>> >>>   Michele
>> >>
>> >> Hi Michele,
>> >> you misunderstood. I did not want to build package, but build the
>> >> tdepim source.
>> >> For this I git clone tdepim and clone the cmake submodule. I try cmake
>> >> but nothing happens. I guess the dpkg-buildpackage would also not
>> >> work, but thats a guess.
>> >>
>> >> regards
>> >
>> > I don't think Michele misunderstood, he described how to build 'tdepim'
>> > from source, which is what you say you want to do.
>> >
>> > Off the top of my head I can't remember if 'tdepim' is cmake ready or
>> > not. Actually, just checked, it is.
>> >
>> > Cheers,
>> > Mike.
>>
>> Hi Emanoil,
>> as Mike said, that is the way you build package starting from source in
>> Debian/Ubuntu. I build them the same way. It building tdepim fails, there
>> are two possibilities:
>> 1) you are missing some dependency packages. This is most likely not
>> highlighted when invoking cmake directly from CLI. If you use
>> dpkg-buildpackage or pbuilder, they will check dependencies as well in
>> the process and inform you if a required package is missing.
>> 2) you are using Debian/Stretch and a recent change in a package cause a
>> FTBFS, in which case we will need to prepare a fix for.
>>
>> Most likely you are in case 1), although occasionally I run into 2) here
>> and there (I use Debian/Stretch).
>>
>> Cheers
>>   Michele
> 
> I've done a rebuild tdepim 14.0.4~pre on Stretch and was completely
> without problems. It seems that so far no updates in Stretch did not cause
> breakage tdepim.
> 
> Tip for installing necessary dependencies:
> 
>   apt-get build-dep tdepim-trinity
> 
> Tip for building: in debian/rules you can find DEB_CMAKE_EXTRA_FLAGS ==
> options, which are used to build on Debian / Ubuntu.
> 

Hi all,
I still feel misunderstood.
Let me describe in more detail the situation I have.
This is the procedure I used for tdevelop and tdelibs. And this same
procedure does not work for tdepim.

First of all let me clear that I do not want to build a package. I just want
to have a normal build (make) - that's it.

1. git clone http://system@.../scm/git/tdepim
2. cd tdepim
3. git submodule update cmake
Submodule path 'cmake' not initialized
Maybe you want to use 'update --init'?
4. mkdir testbuild
5. cd testbuild
6. cmake ..
7. make

I also tried
3. rm -rf cmake
4. git clone https://system@.../scm/git/tde-common-cmake

I guess I miss the proper step for checking out the cmake submodule

Sorry for being brief in the previous posts. I attached a log of what I did
just now 

Thanks in advance


localhost:/opt/software/KDE/TDE/tdepim$ cat .gitmodules
[submodule "admin"]
        path = admin
        url = http://system@.../scm/git/tde-common-admin
[submodule "cmake"]
        path = cmake
        url = http://system@.../scm/git/tde-common-cmake
localhost:/opt/software/KDE/TDE/tdepim$ git clone submodule tde-common-cmake
fatal: repository 'submodule' does not exist
localhost:/opt/software/KDE/TDE/tdepim$ git clone tde-common-cmake
fatal: repository 'tde-common-cmake' does not exist
localhost:/opt/software/KDE/TDE/tdepim$ git submodule tde-common-cmake
usage: git submodule [--quiet] add [-b <branch>] [-f|--force] [--name <name>] [--reference <repository>] [--] <repository> [<path>]
   or: git submodule [--quiet] status [--cached] [--recursive] [--] [<path>...]
   or: git submodule [--quiet] init [--] [<path>...]
   or: git submodule [--quiet] deinit [-f|--force] [--] <path>...
   or: git submodule [--quiet] update [--init] [--remote] [-N|--no-fetch] [-f|--force] [--checkout|--merge|--rebase] [--reference <repository>] [--recursive] [--] [<path>...]
   or: git submodule [--quiet] summary [--cached|--files] [--summary-limit <n>] [commit] [--] [<path>...]
   or: git submodule [--quiet] foreach [--recursive] <command>
   or: git submodule [--quiet] sync [--recursive] [--] [<path>...]
localhost:/opt/software/KDE/TDE/tdepim$ git submodule update tde-common-cmake
error: pathspec 'tde-common-cmake' did not match any file(s) known to git.
Did you forget to 'git add'?
localhost:/opt/software/KDE/TDE/tdepim$ git submodule update cmake
Submodule path 'cmake' not initialized
Maybe you want to use 'update --init'?
localhost:/opt/software/KDE/TDE/tdepim$ ls cmake/
generate_apidox  install_apidox  modules
localhost:/opt/software/KDE/TDE/tdepim$ cat .gitmodules
[submodule "admin"]
        path = admin
        url = http://system@.../scm/git/tde-common-admin
[submodule "cmake"]
        path = cmake
        url = http://system@.../scm/git/tde-common-cmake
localhost:/opt/software/KDE/TDE/tdepim$ git clone http://system@.../scm/git/tde-common-cmake
Cloning into 'tde-common-cmake'...
fatal: unable to access 'http://system@.../scm/git/tde-common-cmake/': Could not resolve host: scm.trinitydesktop.org
(reverse-i-search)`clone': GIT_ASKPASS=echo git ^Cone --recursive https://anonymous@.../scm/git/tdepim1
localhost:/opt/software/KDE/TDE/tdepim$ git clone https://system@.../scm/git/tde-common-cmake
Cloning into 'tde-common-cmake'...
remote: Counting objects: 554, done
remote: Finding sources: 100% (554/554)
remote: Getting sizes: 100% (75/75)
remote: Total 554 (delta 375), reused 554 (delta 375)
Receiving objects: 100% (554/554), 77.11 KiB | 0 bytes/s, done.
Resolving deltas: 100% (375/375), done.
Checking connectivity... done.
localhost:/opt/software/KDE/TDE/tdepim$ rmdir cmake/
rmdir: failed to remove ‘cmake/’: Directory not empty
localhost:/opt/software/KDE/TDE/tdepim$ rm -rf cmake/
localhost:/opt/software/KDE/TDE/tdepim$ mv tde-common-cmake/ cmake
localhost:/opt/software/KDE/TDE/tdepim$ mkdir testbuild
mkdir: cannot create directory ‘testbuild’: File exists
localhost:/opt/software/KDE/TDE/tdepim$ cd testbuild/
localhost:/opt/software/KDE/TDE/tdepim/testbuild$ rm -rf ./*
localhost:/opt/software/KDE/TDE/tdepim/testbuild$ cmake ..
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- Detected x86_64 CPU architecture
-- Performing Test HAVE_PIE_SUPPORT
-- Performing Test HAVE_PIE_SUPPORT - Success
-- checking for one of the modules 'tqt'
--   tmoc path: /usr/bin/tmoc
--   moc path: /usr/bin/tqmoc
--   uic path: /usr/bin/tquic
--   tqt-replace path: /usr/bin/tqt-replace
-- Performing Test HAVE_USABLE_TQT
-- Performing Test HAVE_USABLE_TQT - Success
-- checking for 'TDE'
-- checking for one of the modules 'tqt'
--   found 'TDE', version 14.1.0
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/software/KDE/TDE/tdepim/testbuild
localhost:/opt/software/KDE/TDE/tdepim/testbuild$ make
localhost:/opt/software/KDE/TDE/tdepim/testbuild$ find ../cmake
../cmake
../cmake/generate_apidox
../cmake/install_apidox
../cmake/.git
../cmake/.git/packed-refs
../cmake/.git/config
../cmake/.git/HEAD
../cmake/.git/index
../cmake/.git/branches
../cmake/.git/refs
../cmake/.git/refs/tags
../cmake/.git/refs/remotes
../cmake/.git/refs/remotes/origin
../cmake/.git/refs/remotes/origin/HEAD
../cmake/.git/refs/heads
../cmake/.git/refs/heads/master
../cmake/.git/hooks
../cmake/.git/hooks/pre-commit.sample
../cmake/.git/hooks/update.sample
../cmake/.git/hooks/prepare-commit-msg.sample
../cmake/.git/hooks/pre-push.sample
../cmake/.git/hooks/pre-rebase.sample
../cmake/.git/hooks/post-update.sample
../cmake/.git/hooks/pre-applypatch.sample
../cmake/.git/hooks/commit-msg.sample
../cmake/.git/hooks/applypatch-msg.sample
../cmake/.git/logs
../cmake/.git/logs/HEAD
../cmake/.git/logs/refs
../cmake/.git/logs/refs/remotes
../cmake/.git/logs/refs/remotes/origin
../cmake/.git/logs/refs/remotes/origin/HEAD
../cmake/.git/logs/refs/heads
../cmake/.git/logs/refs/heads/master
../cmake/.git/description
../cmake/.git/objects
../cmake/.git/objects/pack
../cmake/.git/objects/pack/pack-ac9fd5da7c2bfaa61c4e808bc5cc2b3eb0c37ed5.idx
../cmake/.git/objects/pack/pack-ac9fd5da7c2bfaa61c4e808bc5cc2b3eb0c37ed5.pack
../cmake/.git/objects/info
../cmake/.git/info
../cmake/.git/info/exclude
../cmake/modules
../cmake/modules/template_tdeinit_module.cmake
../cmake/modules/template_dummy_cpp.cmake
../cmake/modules/TDEMacros.cmake
../cmake/modules/template_libtool_file.cmake
../cmake/modules/FindTDE.cmake
../cmake/modules/template_export_library.cmake
../cmake/modules/FindTQt.cmake
../cmake/modules/template_tdeinit_executable.cmake
../cmake/modules/FindTQtQUI.cmake
../cmake/modules/TDESetupPaths.cmake
../cmake/modules/tde_uic.cmake
localhost:/opt/software/KDE/TDE/tdepim/testbuild$