Custom Query (1067 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (115 - 117 of 1067)

Ticket Resolution Summary Owner Reporter
#1355 fixed CID 200497: Incorrect expression (UNINTENDED_INTEGER_DIVISION) KaZeR kazer
Description Reported by coverity, following the merge of https://github.com/navit-gps/navit/pull/359

{{{
** CID 200497: Incorrect expression (UNINTENDED_INTEGER_DIVISION)
/navit/gui/gtk/gui_gtk_statusbar.c: 166 in statusbar_route_update()


________________________________________________________________________________________________________
*** CID 200497: Incorrect expression (UNINTENDED_INTEGER_DIVISION)
/navit/gui/gtk/gui_gtk_statusbar.c: 166 in statusbar_route_update()
160 sprintf(this->gps_text,"GPS:%s %02d/%02d HD:%02.2f %s %4.0f%s %3.0f%-2s %3.1f%s",
161 status_fix2str(status),
162 sats, qual, hdop, buffer,
163 imperial ? height * FEET_PER_METER : height,
164 imperial == TRUE ? "\'" : "m",
165 direction, dir,
>>> CID 200497: Incorrect expression (UNINTENDED_INTEGER_DIVISION)
>>> Dividing integer expressions "1609" and "1000", and then converting the integer quotient to type "double". Any remainder, or fractional part of the quotient, is ignored.
166 imperial == TRUE ? speed / (METERS_PER_MILE / 1000) : speed, /* hard-coded. Ugly */
167 imperial == TRUE ? " mph" : "km/h"
168 );
169
170 gtk_label_set_text(GTK_LABEL(this->gps), this->gps_text);
171 }
}}}
#849 fixed CMake build fails on Ubuntu 11.04 Natty Narwhal KaZeR momcilo majic
Description I'am using jenkins + cmake to build a snapshot of navit.
Recently I've upraded to Ubuntu 11.04 Natty Narwhal.

It seems cmake is unable to fidn glibconfig.h

Once the cmake is invoked, cmake failes to find glibconfig.h

Apparently, the issue is caused by the multiarch support being introduced to both debian and ubuntu.

This is most likely not a bug within navit.

It is reported at:
https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/751940
http://www.cmake.org/Bug/view.php?id=12037
#1025 fixed CMake: error when installing system wide due to dbus cmake file KaZeR korrosa
Description When trying to install system wide from svn for the first time, I do the following:

{{{
svn up in src directory
cmake /path/to/svn/dir/ in build directory
make in build directory
sudo make install in build directory
}}}

(Subsequent compiles I leave out the cmake bit).

I get the following error at the last command:

{{{
-- Installing: /usr/local/lib/navit/binding/libbinding_dbus.so
CMake Error at navit/binding/dbus/cmake_install.cmake:50 (FILE):
file INSTALL cannot find
"/path/to/svn/dir/navit/binding/dbus/org.navit_project.navit.service".
Call Stack (most recent call first):
navit/cmake_install.cmake:60 (INCLUDE)
cmake_install.cmake:37 (INCLUDE)
}}}

To 'fix' this I just went into ''/path/to/build/dir/navit/binding/dbus/cmake_install.cmake'' and altered the line

{{{
FILE(INSTALL DESTINATION "/usr/local/share/dbus-1/services" TYPE FILE FILES "/path/to/svn/dir/navit/binding/dbus/org.navit_project.navit.service")
}}}

to

{{{
FILE(INSTALL DESTINATION "/usr/local/share/dbus-1/services" TYPE FILE FILES "/path/to/svn/dir/navit/binding/dbus/org.navit_project.navit.service.in")
}}}

as ''org.navit_project.navit.service.in'' exists in the source directory, whilst ''org.navit_project.navit.service'' does not. No idea if this is the right thing to do to fix it, but it did mean that I could continue with the system wide install...
Note: See TracQuery for help on using queries.