View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015198CMakeCMakepublic2014-10-07 08:092015-06-01 08:38
ReporterHelfer Thomas 
Assigned ToBrad King 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformLinuxOSdebianOS Versionwheezy
Product VersionCMake 2.8.9 
Target VersionCMake 3.1Fixed in VersionCMake 3.1 
Summary0015198: ps2pdf not detected when cross-compiling
DescriptionHi,

ps2pdf not detected when cross-compiling (and only when cross-compiling), but latex is.

The main difference seems that latex is an executable and ps2pdf14 a script (I am using the standard texlive distribution).
Steps To Reproduce1) decompress the attached archive and launch cmake in the created directory:

cmake . -DCMAKE_TOOLCHAIN_FILE=../ToolChain-i686-w64-mingw32.cmake


2) check the PS2PDF_CONVERTER value in CMakeCache.txt:
//Path to a program.
PS2PDF_CONVERTER:FILEPATH=PS2PDF_CONVERTER-NOTFOUND

Additional Informationps2pdf is detected when no toolchain file is declared
TagsNo tags attached.
Attached Filesbz2 file icon test-cmake.tar.bz2 [^] (686 bytes) 2014-10-07 08:09

 Relationships
related to 0012036closedMiguel Figueroa Under Cygwin, FindLATEX does not find installed tools 

  Notes
(0036994)
Brad King (manager)
2014-10-07 08:25

The find infrastructure may be trying extensions specific to the target instead of the host.
(0036996)
Helfer Thomas (reporter)
2014-10-07 09:02

I don't think extensions are in cause. pdftex est found, but ps2pdf14 not. None has any extension.

$ ls /usr/bin/pdftex
/usr/bin/pdftex
$ file /usr/bin/pdftex
/usr/bin/pdftex: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=0x547c31050311f4c8893149dd7a9f72fc52003475, strippe
$ ls /usr/bin/ps2pdf14
/usr/bin/ps2pdf14
$ file /usr/bin/ps2pdf14
/usr/bin/ps2pdf14: POSIX shell script, ASCII text executable
(0036997)
Brad King (manager)
2014-10-07 09:39

One can see in the FindLATEX script of CMake 3.0.2:

 http://www.cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/FindLATEX.cmake;hb=v3.0.2#l105 [^]

that in the if(WIN32) block it searches only for names "ps2pdf14.bat ps2pdf" but not plain "ps2pdf14" as it does in the else() block.
(0036998)
Brad King (manager)
2014-10-07 09:45

I've committed this fix:

 FindLATEX: Search for ps2pdf14 even on Windows
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=63262434 [^]

Please try it out.
(0037002)
Helfer Thomas (reporter)
2014-10-08 03:15

The patch works. I think this can be marked as solved.

Thank you for your help.
(0037003)
Brad King (manager)
2014-10-08 08:37

Great, thanks for reporting back.
(0038829)
Robert Maynard (manager)
2015-06-01 08:38

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2014-10-07 08:09 Helfer Thomas New Issue
2014-10-07 08:09 Helfer Thomas File Added: test-cmake.tar.bz2
2014-10-07 08:25 Brad King Note Added: 0036994
2014-10-07 09:02 Helfer Thomas Note Added: 0036996
2014-10-07 09:39 Brad King Note Added: 0036997
2014-10-07 09:45 Brad King Note Added: 0036998
2014-10-07 09:45 Brad King Assigned To => Brad King
2014-10-07 09:45 Brad King Status new => assigned
2014-10-07 09:45 Brad King Target Version => CMake 3.1
2014-10-08 03:15 Helfer Thomas Note Added: 0037002
2014-10-08 08:37 Brad King Note Added: 0037003
2014-10-08 08:37 Brad King Status assigned => resolved
2014-10-08 08:37 Brad King Resolution open => fixed
2014-10-08 08:37 Brad King Fixed in Version => CMake 3.1
2015-01-08 10:53 Brad King Relationship added related to 0012036
2015-06-01 08:38 Robert Maynard Note Added: 0038829
2015-06-01 08:38 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team