![]() |
|
Cannot open *.plt File in linux - Printable Version +- RouteConverter Forum (https://forum.routeconverter.com) +-- Forum: Users (https://forum.routeconverter.com/forum-17.html) +--- Forum: English: Discussions (https://forum.routeconverter.com/forum-12.html) +--- Thread: Cannot open *.plt File in linux (/thread-1566.html) |
Cannot open *.plt File in linux - UsamaBinLady - 19.05.2013 I have problem in RouteConverter 2.8.3 on linux (downloaded via yaourt on Manjaro). It fails opening plt file (created by SmartcomGPS). Message : Could not open /tmp/l.plt since its file format was not detected. File sample: OziExplorer Track Point File Version 2.1 WGS 84 Altitude is in Feet Reserved 3 0,2,255,SmartComGPS 2 Track file,0,0,2,8421376 878 49.434118,14.628107,-1,1426,42412.320255 49.434099,14.628103,0,1418,42412.320822 RE: Cannot open *.plt File in linux - kumo - 20.05.2013 Hi, welcome at this forum! Two positions at Tábor-Všechov Ultralight Airport, right? I don't have linux, I don't know linux. But just had a problem with your data, too: I copied your data into a *.txt file and drag&dropped it into RouteConverter and got a message regarding GPSBabel although I have NOT defined a external GPSBabel in RouteConverter options. BUT I had the whole GPSBabel package installed at the PC for test purposes, a long time ago. I uninstalled the GPSBabel package from my PC (RouteConverter has a internal GPSBabel) and everything was OK. The file with your data was detected. Curious. RE: Cannot open *.plt File in linux - UsamaBinLady - 20.05.2013 The previous attempt was without gpsbabel. Today I compiled gpsbabel and tried. In options dialog (the 'path to gpsbabel') a chose "/tmp/gpsbabel-1.4.4". It didn't work. Then i tried "/tmp/gpsbabel-1.4.4/gpsbabel", which is correct. Thanks for advice. RE: Cannot open *.plt File in linux - kumo - 20.05.2013 Thanks for the report. This may help others. @Christian: My symptom in post #2 indicates that a external GPSBabel is adressed in the Windows version although no external GPSBabel is specified in RouteConverter options. But I may have specified it in the past and removed the options setting later. I used the present prerelease snapshot 433, dated May 16, 2013. UBL's symptom in post #1 and #3 indicates that no internal GPSBabel is adressed (or delivered) in the linux version. Is a internal GPSBabel delivered with the linux version as well as with the Windows version? RE: Cannot open *.plt File in linux - routeconverter - 20.05.2013 (20.05.2013, 12:33)kumo Wrote: My symptom in post #2 indicates that a external GPSBabel is adressed in the Windows version although no external GPSBabel is specified in RouteConverter options. That is true: RouteConverter tries to be clever to reduce the number of support requests. In BabelFormat#findBabel you find the current resolution: Code: private String findBabel() throws IOException {
// 1. check if there is a preference and try to find its file
File babelFile = getBabelPathPreference() != null ? new File(getBabelPathPreference()) : null;
if (babelFile == null || !babelFile.exists()) {
babelFile = null;
}
// 2a. look for "c:\Program Files\GPSBabel\gpsbabel.exe"
if (babelFile == null && Platform.isWindows()) {
babelFile = checkIfBabelExists(System.getenv("ProgramFiles") + "\\GPSBabel\\gpsbabel.exe");
}
// 2b. look for "c:\Program Files (x86)\GPSBabel\gpsbabel.exe"
if (babelFile == null && Platform.isWindows()) {
babelFile = checkIfBabelExists(System.getenv("ProgramFiles(x86)") + "\\GPSBabel\\gpsbabel.exe");
}
// 3. look for "/usr/bin/gpsbabel" in path
if (babelFile == null && !Platform.isWindows()) {
babelFile = checkIfBabelExists("/usr/bin/gpsbabel");
}
// 4. extract from classpath into temp directrory and execute there
if (babelFile == null) {
String path = Platform.getOperationSystem() + "/" + Platform.getArchitecture() + "/";
if (Platform.isWindows()) {
Externalization.extractFile(path + "libexpat.dll");
babelFile = Externalization.extractFile(path + "gpsbabel.exe");
} else if (Platform.isLinux() || Platform.isMac()) {
babelFile = Externalization.extractFile(path + "gpsbabel");
}
}
// 4. look for unqualified "gpsbabel"
return babelFile != null ? babelFile.getAbsolutePath() : "gpsbabel";
}(20.05.2013, 12:33)kumo Wrote: Is a internal GPSBabel delivered with the linux version as well as with the Windows version? Yes, but it might be too old such that current Linux distributions do not install the compatibility libraries which it requires by default. It's a 1.3.6 statically compiled with Ubuntu 09.04 (?) or 10.04 |