Showing posts with label cmake. Show all posts
Showing posts with label cmake. Show all posts

Tuesday, December 11, 2012

ninja on debian/squeeze

ninja has recently been uploaded to debian sid:

http://packages.qa.debian.org/n/ninja-build.html

However it needs a recent gtest to build. Here is an easy workaround:

$ apt-get source ninja-build
$ cd ninja-build-1.0.0/
$ vim debian/rules

replace :

./bootstrap.py -- --with-gtest=/usr/src/gtest/
with:
./bootstrap.py

$ export DEB_BUILD_OPTIONS=nocheck
$ dpkg-buildpackage -rfakeroot -us -uc -d

Et voilĂ  !

Thursday, March 31, 2011

Unhandled exception: page fault on read access to 0x00342000 in 32-bit code (0x00560b16).

wine has made some fantastic progress. I can configure/build GDCM now. Some options needs to be turned off for now:




Unhandled exception: page fault on read access to 0x00342000 in 32-bit code (0x00560b16).
Register dump:
CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
EIP:00560b16 ESP:0100e390 EBP:ffffffff EFLAGS:00010297( R- -- I S -A-P-C)
EAX:0000a1a5 EBX:00319938 ECX:00319968 EDX:00007d53
ESI:010cd300 EDI:00000000
Stack dump:
0x0100e390: 0100e3cc 0100e3dc 010cd300 00000000
0x0100e3a0: 00561e29 ffffffff 00000000 00000010
0x0100e3b0: 010cd300 00000018 00000000 00000000
0x0100e3c0: 00000000 00000004 00000000 ff676980
0x0100e3d0: ffffffff d316536e 01cbefa1 00000004
0x0100e3e0: 00000000 004d35b1 010cd300 0100e43c
Backtrace:
0x00560b16: movl 0x4(%ecx,%eax,4),%edx
Modules:
Module Address Debug info Name (60 modules)
PE 400000- 67e000 Export cmake
PE 78480000-7850d000 Deferred msvcp90
PE 78520000-785c3000 Deferred msvcr90
ELF 7b800000-7b8e6000 Deferred kernel32
\-PE 7b810000-7b8e6000 \ kernel32
ELF 7bc00000-7bcbb000 Deferred ntdll
\-PE 7bc10000-7bcbb000 \ ntdll
ELF 7bf00000-7bf03000 Deferred
ELF 7e589000-7e5a7000 Deferred libgcc_s.so.1
ELF 7e5a7000-7e5b0000 Deferred libxcursor.so.1
ELF 7e5b0000-7e5b5000 Deferred libxfixes.so.3
ELF 7e5b5000-7e5b8000 Deferred libxcomposite.so.1
ELF 7e5b8000-7e5bf000 Deferred libxrandr.so.2
ELF 7e5bf000-7e5c8000 Deferred libxrender.so.1
ELF 7e5c8000-7e5cd000 Deferred libxxf86vm.so.1
ELF 7e5cd000-7e5d0000 Deferred libxinerama.so.1
ELF 7e5d0000-7e5f0000 Deferred imm32
\-PE 7e5e0000-7e5f0000 \ imm32
ELF 7e5f0000-7e5f5000 Deferred libxdmcp.so.6
ELF 7e5f5000-7e60e000 Deferred libxcb.so.1
ELF 7e60e000-7e72b000 Deferred libx11.so.6
ELF 7e72b000-7e73a000 Deferred libxext.so.6
ELF 7e73a000-7e751000 Deferred libice.so.6
ELF 7e751000-7e759000 Deferred libsm.so.6
ELF 7e77e000-7e827000 Deferred winex11
\-PE 7e790000-7e827000 \ winex11
ELF 7e83d000-7e863000 Deferred libexpat.so.1
ELF 7e863000-7e892000 Deferred libfontconfig.so.1
ELF 7e892000-7e8a6000 Deferred libz.so.1
ELF 7e8a6000-7e91d000 Deferred libfreetype.so.6
ELF 7e942000-7ea2e000 Deferred oleaut32
\-PE 7e960000-7ea2e000 \ oleaut32
ELF 7ea2e000-7eb31000 Deferred ole32
\-PE 7ea50000-7eb31000 \ ole32
ELF 7eb31000-7eba5000 Deferred rpcrt4
\-PE 7eb40000-7eba5000 \ rpcrt4
ELF 7eba5000-7ec00000 Deferred advapi32
\-PE 7ebb0000-7ec00000 \ advapi32
ELF 7ec00000-7ec8e000 Deferred gdi32
\-PE 7ec10000-7ec8e000 \ gdi32
ELF 7ec8e000-7edbd000 Deferred user32
\-PE 7eca0000-7edbd000 \ user32
ELF 7edbd000-7edfa000 Deferred winmm
\-PE 7edd0000-7edfa000 \ winmm
ELF 7edfa000-7ee28000 Deferred ws2_32
\-PE 7ee00000-7ee28000 \ ws2_32
ELF 7ee28000-7ee3f000 Deferred libnsl.so.1
ELF 7efb5000-7efdb000 Deferred libm.so.6
ELF 7efdd000-7efe1000 Deferred libuuid.so.1
ELF 7efe8000-7f000000 Deferred version
\-PE 7eff0000-7f000000 \ version
ELF f7450000-f745c000 Deferred libnss_files.so.2
ELF f745d000-f7461000 Deferred libdl.so.2
ELF f7461000-f75a8000 Deferred libc.so.6
ELF f75a9000-f75c2000 Deferred libpthread.so.0
ELF f75c2000-f7703000 Deferred libwine-unstable.so.1
ELF f7703000-f7706000 Deferred libxau.so.6
ELF f7706000-f7710000 Deferred libnss_nis.so.2
ELF f7720000-f7728000 Deferred libnss_compat.so.2
ELF f772a000-f7748000 Deferred ld-linux.so.2
Threads:
process tid prio (all id:s are in hex)
0000000e services.exe
0000001c 0
00000014 0
00000010 0
0000000f 0
00000011 winedevice.exe
00000017 0
00000013 0
00000012 0
00000019 plugplay.exe
0000001d 0
0000001b 0
0000001a 0
0000001e explorer.exe
0000001f 0
00000036 mspdbsrv.exe
00000023 0
00000022 0
0000002b hh.exe
00000037 0
00000035 wineconsole.exe
0000002e 0
00000045 cmd.exe
00000038 0
0000003b (D) C:\Program Files\CMake 2.8\bin\cmake.exe
00000028 0
00000009 0
00000040 0
00000041 0
00000031 0 <== Backtrace:

Friday, July 30, 2010

Still struggling with cmake/git

  cd CMake
  git checkout master
  git pull
  git checkout -b fix-issue-9611
  cp ~/tmp/cmake-2.8.2/Modules/FindJNI.cmake Modules/FindJNI.cmake
  git add --  Modules/FindJNI.cmake
  git commit -m"BUG: 0009611 Fix Arch independent FindJNI.cmake on Linux to support Sun Java, OpenJDK, Kaffe and GCJ paths. Based on patch from debian"
  git checkout -b next origin/next
  git checkout next
  git pull
  git merge  fix-issue-9611
  git push
Counting objects: 15, done.
Delta compression using up to 16 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 1.58 KiB, done.
Total 8 (delta 6), reused 0 (delta 0)
----------------------------------------------------------------------
commit 6a3d7d46 has an invalid message:
  the first line must not be more than 78 characters
commit message is:
BUG: 0009611 Fix Arch independent FindJNI.cmake on Linux to support Sun Java, OpenJDK, Kaffe and GCJ paths. Based on patch from debian
----------------------------------------------------------------------
error: hook declined to update refs/heads/next
To git@cmake.org:cmake.git
 ! [remote rejected] next -> next (hook declined)
error: failed to push some refs to 'git@cmake.org:cmake.git'

Tuesday, June 15, 2010

git: New workflow for CMake

git clone git://cmake.org/cmake.git CMake
cd CMake
git checkout master
git checkout -b finddcmtk
cp ~/Perso/gdcm/trunk/CMake/FindDCMTK.cmake Modules
git add -- Modules/FindDCMTK.cmake
git commit -m"Cleanup FindDCMTK (using foreach). Fix linking on win32 static libs."
git checkout -b next origin/next
git checkout next
git pull
git merge finddcmtk
git config remote.origin.pushurl git@cmake.org:cmake.git
git push

watchout that commit message should be single-lined:

$ git push -v
Pushing to git@cmake.org:cmake.git
Counting objects: 15, done.
Delta compression using up to 16 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 2.19 KiB, done.
Total 8 (delta 5), reused 0 (delta 0)
------------------------------------------------------------------------------
commit 7cc81454 has an invalid message:
the second line must be empty (if it exists)
commit message is:
Adding simplified version of DCMTK.
Fix linking on win32 static build
------------------------------------------------------------------------------
error: hook declined to update refs/heads/next
To git@cmake.org:cmake.git
! [remote rejected] next -> next (hook declined)
error: failed to push some refs to 'git@cmake.org:cmake.git'

References:
* http://public.kitware.com/Wiki/Git/Workflow/Topic
* http://www.cmake.org/Wiki/CMake/Git
* http://cmake.org/gitweb?p=cmake.git;a=tree

Tuesday, February 23, 2010

Syntax Highlighting in DocBook

I am continuing to use DocBook, and I discovered that you can have syntax highlighting within your element.

* http://www.sagehill.net/docbookxsl/SyntaxHighlighting.html

Well technically you can only do that using a customization layer:

* http://www.sagehill.net/docbookxsl/CustomMethods.html

Then set the appropriate params:

* http://docbook.sourceforge.net/release/xsl/current/doc/fo/highlight.source.html

You also need to set this one:

* http://docbook.sourceforge.net/release/xsl/current/doc/html/highlight.xslthl.config.html

I had to use the following syntax on my linux box:


$ java -classpath /usr/share/java/saxon.jar:/home/mathieu/Software/xslthl/xslthl-2.0.1.jar -Dxslthl.config="file:////home/mathieu/Software/xslthl/highlighters/xslthl-config.xml" com.icl.saxon.StyleSheet -o myfile.html input.xml myhtml.xsl
Because I could not figure out how to use highlight.xslthl.config. After struggling for a bit:

* http://www.mail-archive.com/docbook-apps@lists.oasis-open.org/msg13791.html

One simply needs to use the URL notation for file address, in this case:


<xsl:param name="highlight.xslthl.config">file:////home/mathieu/Software/xslthl/highlighters/xslthl-config.xml</xsl:param>

I then started to play with xslthl, and make a cmake DocBook syntax highlighting file:

* http://gdcm.svn.sf.net/viewvc/gdcm/Sandbox/debian-med/xslthl/cmake-hl.xml?view=markup

Reference:
* http://sourceforge.net/apps/mediawiki/xslthl/index.php?title=Syntax_Highlighters

Monday, November 23, 2009

Installing CMake on MacOSX from the command line

I thought I could just :

curl -O http://www.cmake.org/files/v2.8/cmake-2.8.0-Darwin-universal.dmg

hdiutil attach cmake-2.8.0-Darwin-universal.dmg

cd /Volumes/cmake-2.8.0-Darwin-universal

sudo installer -pkg cmake-2.8.0-Darwin-universal.pkg -target /

Oh well ... it still starts up a message box, where you have to click, yes I want the /usr/bin cmake symlink.

D'oh !