[Rock-dev] Multiple projects - one Rock source folder?
Steffen Planthaber
Steffen.Planthaber at dfki.de
Fri Aug 29 15:25:15 CEST 2014
Hi,
Am 29.08.2014 um 15:13 schrieb Matthias Goldhoorn:
> What does help is if you switch you prackages to release (not debug
> which is default)
>
> This dramatically decreses the binary output size.
>
> You can do this by adding
>
> <tags>needs_opt</tags> (level 1)
>
> or
>
> <tags>release</tags>
Instead of doing this per package, you can also override the default in
your autoproj/overrides.rb
#build all as Release, if the build type is not already defined
Autobuild::Package.each do |name, pkg|
if pkg.kind_of?(Autobuild::CMake) and
!pkg.defines.has_key?('CMAKE_BUILD_TYPE')
pkg.define "CMAKE_BUILD_TYPE", "Release"
end
if pkg.kind_of?(Autobuild::Orogen)
pkg.define "CMAKE_BUILD_TYPE", "Release"
end
end
If you want to select it more carefully you can also define it for
selected packages or revert the changes made globally (see above)
Autobuild::Package['my_dev_package'].define "CMAKE_BUILD_TYPE", "Debug"
Additionally you may use a regexp to select folders like /mars\/*/,
/tools\/*/, or /external\/*/ to be build as release:
#build tools as Release
Autobuild::Package.each do |name, pkg|
if name =~ /tools\/*/ and pkg.kind_of?(Autobuild::CMake)
if pkg.kind_of?(Autobuild::CMake)
pkg.define "CMAKE_BUILD_TYPE", "Release"
end
#disable assertions
#pkg.define "CMAKE_CXX_FLAGS_INIT", "-DNDEBUG"
end
end
Best, Steffen
>
> in you manifext.xml inside the packages.
>
> Best,
> Matthias
>
>
>
>
> On 29.08.2014 15:04, Steffen Planthaber wrote:
>> Hi,
>>
>> Am 29.08.2014 um 11:47 schrieb Leif Christensen:
>>> This right now accumulates to 48G on my system.
>> Following is not a direct solution, but often the log files are taking a
>> good amount of space on the device, you can possibly delete some logs
>>
>> You can check log size with:
>> $> du -hs $(find ${AUTOPROJ_CURRENT_ROOT}/bundles -name logs)
>>
>>> Is there an easy way to prevent this doubling of source trees? Manually
>>> creating a "fusion"-buildconf seems not feasible.
>> I think this could be further discussed.
>>
>> In ROS there there is the workspaces approach. Is it feasible to have a
>> single checkout of rock-core and set it from projects as environment
>> variable like "ROCK_CORE_ROOT". Without breaking functionality?
>>
>>
>> Best, Steffen
>>
>
>
--
Steffen Planthaber
Weltraumrobotik
Besuchsadresse der Nebengeschäftstelle:
DFKI GmbH
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany
Postadresse der Hauptgeschäftsstelle Standort Bremen:
DFKI GmbH
Robotics Innovation Center
Robert-Hooke-Straße 1
28359 Bremen, Germany
Tel.: +49 421 178 45-4125
Zentrale: +49 421 178 45-0
Fax: +49 421 178 45-4150 (Faxe bitte namentlich kennzeichnen)
E-Mail: Steffen.Planthaber at dfki.de
Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.: DE 148646973
Steuernummer: 19/673/0060/3
-----------------------------------------------------------------------
More information about the Rock-dev
mailing list