Pages

Friday, October 29, 2010

Compilando com MADDE + icecream

Dependências

Você precisa ter as seguintes dependências em seu desktop:
  1. icecc instalado e configurado.
  2. Nokia Qt SDK instalado.
  3. Script madde-icecc-create-env baseado no /usr/lib/icecc/icecc-create-env modificado por mim.
  4. Script madde-icecc-export-var para exportar as variáveis de ambiente.
O MADDE será instalado pelo NokiaQtSDK.

Salve, com permissão de execução, os scripts madde-icecc-create-env e madde-icecc-export-var em algum lugar de sua preferência. Por exemplo no /opt/icecc .

No meu desktop o NokiaQtSDK está instalado no /opt/NokiaQtSDKv101 .


Criando icecc tarball para compilação com MADDE

Exporte o caminho para o script do MADDE na variável de ambiente PATH:

$ export PATH=/caminho_do_NokiaQtSDK/Maemo/version/bin:$PATH

no meu desktop:
$ export PATH=/opt/NokiaQtSDKv101/Maemo/4.6.2/bin:$PATH

Teste se o comando mad está no PATH:

$ mad query install-dir
/opt/NokiaQtSDKv101/Maemo/4.6.2

Agoro você pode criar o arquivo tarball para a variável de ambiente ICECC_VERSION.

Descubra qual é a toolchain usada pelo MADDE:

$ mad list toolchains
arm-2007q3-51sb6-gdb71-arm-none-linux-gnueabi_linux

Agora execute o script madde-icecc-create-env passando como parâmetro o caminho para os compiladores gcc e g++ da toolchain do MADDE:

$ /opt/icecc/madde-icecc-create-env caminho_toolchain_gcc caminho_toolchain_g++

no meu desktop:

$ /opt/icecc/madde-icecc-create-env /opt/NokiaQtSDKv101/Maemo/4.6.2/toolchains/arm-2007q3-51sb6-gdb71-arm-none-linux-gnueabi_linux/bin/arm-none-linux-gnueabi-gcc /opt/NokiaQtSDKv101/Maemo/4.6.2/toolchains/arm-2007q3-51sb6-gdb71-arm-none-linux-gnueabi_linux/bin/arm-none-linux-gnueabi-g++

Se tudo ocorrer bem, você deverá ver um log parecido com:

adding file /usr/bin/gcc=/tmp/gccBIHd
adding file /lib/libc.so.6
adding file /lib/ld-linux.so.2
adding file /usr/bin/g++=/tmp/gxxVcgP
adding file /etc/specs=/opt/NokiaQtSDKv101/Maemo/4.6.2/targets/fremantle-pr13/specs
adding file /usr/bin/arm-gcc=/opt/NokiaQtSDKv101/Maemo...arm-none-linux-gnueabi-gcc
adding file /usr/bin/arm-g++=/opt/NokiaQtSDKv101/Maemo...arm-none-linux-gnueabi-g++
adding file /usr/bin/as=/opt/NokiaQtSDKv101/Maemo.../arm-none-linux-gnueabi/bin/as
adding file /usr/bin/cc1=/opt/NokiaQtSDKv101/Maemo...arm-none-linux-gnueabi/4.2.1/cc1
adding file /usr/bin/cc1plus=/opt/NokiaQtSDKv101/Maemo...ne-linux-gnueabi/4.2.1/cc1plus
adding file /etc/ld.so.conf=/tmp/icecc_ld_so_confNcr3bu
creating 8e05a9e0a927618bb98a19dd6bbb272b.tar.gz


Agora você precisa salvar o tarball gerado em algum lugar de sua preferêcia. Por exeplo no /opt/icecc/8e05a9e0a927618bb98a19dd6bbb272b.tar.gz


Ajustando script export-var

Agora você precisa ajustar o script madde-icecc-export-var para o seu ambiente.

Altere a variável ICECC_VERSION para o caminho do tarball gerado pelo script madde-icecc-create-env acima. Depois delete a linha "echo TODO: Change ICECC_VERSION var first so delete this line!" && return 1"

Descubra o install dir do madde:
$ mad query install-dir
/opt/NokiaQtSDKv101/Maemo/4.6.2

altere a variável MADDE_INSTALL_DIR para o caminho retornado pelo comando acima. Depois delete a linha "echo TODO: Change MADDE_INSTALL_DIR var first so delete this line! && return 1"

Compilando com MADDE + icecc

Com os ajustes feitos, abra um novo terminal e execute o script madde-icecc-export-var:

$ . /path/madde-icecc-export-var

no meu desktop:

$ . /opt/icecc/madde-icecc-export-var

Não esqueça do ponto antes do script para que as variáveis sejam exportadas para o terminal.

Testando:

$ cd /opt/NokiaQtSDKv101/Examples/4.6/graphicsview/elasticnodes/
$ qmake && make -j4
$ file elasticnodes
elasticnodes: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked ...

Se tudo ocorrer bem você terá um abiente MADDE + icecc funcionando perfeitamente.

Referências:
  1. http://en.opensuse.org/Icecream
  2. http://wiki.maemo.org/Icecream_Scratchbox_Howto

20 comments:

Uptravi said...

Why? Because you now know the "secret" to safe and effective weight loss. If you ever feel yourself creeping back up on the dreaded scale o' fat all you have to do is put these 3 steps into action and watch as you stabilize and contradict any unwanted weight gain.
Keto Gedeon

james said...

videos are usually based on popular pills and sexual enhancement supplements, or exercises to help enlarge or enhance the penis. There are penis pumps, homemade extenders, doctor-made extenders, and penis enlargement reviews from men who have tried using or applying them.
Bionatrol Pro Enhance

james said...

It is a well known fact that most men are not satisfied with their penises or sexual performance. There could be many reasons for this, starting from the size of the penis even to the inability to get or maintain a solid and powerful erection.
Ryzex Male Enhancement

james said...

After experiencing the initial rapid weight loss, it is too often the case that a lot of dieters who make use of such quick fat reduction products find that they simply start losing hope as their fat loss rate almost always grinds to a snail pace. And while it might be great if all the

Keto Trim 800

Ronaldo said...

Equally, be it a conventional diet, a fad diet, or a diet pill, the early rapid bodyweight reduction effect mostly likely to be experienced is virtually the same - body water loss. However, diets that employ have severe caloric restrictions or that are high in protein can significantly increase this effect.
Rapid Fast Keto Boost

Watson said...

Some men want to shoot larger ejaculations and they look for seminal volume increasers to do so. With a natural option available at hand, these men can realize their dreams without having
Celaxryn RX

james said...

One of the key amenities of any natural male enhancement product is that they enhance sex in men; which also means that they make sex better for both parties involved. The powerful sexual nutrients go to work to increase your pleasure, sex drive and sexual appetite.
Zydenafil

james said...

Adding a corner electric fireplace to your space just makes sense because it's easy, practical and stylish. They don't require venting, they use minimal electricity and they barely take up any valuable floor space. Basically, you get warmth and ambiance with a push of a button, what could be better than that?
Electric Back Massager Reviews

james said...

make informed decisions about your nutrition. Diet B causes a slow steady weight loss of 8 -10 lbs per month for the next 6 months and the weight stays off because you now know how to eat properly.
Number One Keto

james said...

For those of you that want something more to drink during your healthy weight loss and quick weight loss journey... When it comes to fitness tuning, you want to choose wisely about what you put into your body, and not base your decision upon taste alone. Unfortunately, the majority of people base their beverage choices on taste and usually upon

Keto Shred Biotic Immunity Booster

james said...

junk food are probably not disciplined enough to stick to a workout routine. I do know a few people who, from the outside, look like they are in good shape, because they are not "fat, but who have high cholesterol.
Keto Shred Biotic Immunity Booster

james said...

end of the penis, and just like with pumps, gives you a slow erection which over time can increase the size. Another exercise is called wet milking, which involves a technique similar to Jelqing, but using a lubricant. All of these exercises are discussed in great detail in my free guide below.
Empowered x Energy

Ultiva80 said...
This comment has been removed by the author.
Ultiva80 said...

have been used to overcome the problems of sexual weakness. This herb grows in northern and western parts of India. Rhizome of the plant has been used to treat human aliments and to cure infections.
Formax Lean Male Enhancement

james said...

probably are not going to stick to a ninety day program where you have to eat brussel sprout and cabbage soup at each meal while exercising sixty minutes two times each day. It's just not sustainable. Every program has it's nutrition and exercise requirements so it's up to you to make sure that those requirements will challenge you to improve but that also fit into your current living arrangement.
Reliant Keto

james said...

We left off with my last article of "Discover How a Quick Weight Loss Can Be a Healthy Weight Loss - Phase I". As a recap, you learned how you should adjust your diet to ensure that your
Vaso Prime RX

Intuniv said...

collagen does have its limits. Collagen fibers weaken with age and results in wrinkles. Rapid growth or weight gain also outpaces collagen production in the skin causing areas to over-stretch, leading to stretch marks commonly seen in pregnancy and adolescents going through

Reliant Keto

Udenyca said...

Over Exercise If you exercise too much your body adapts and reaches a point where the extra energy consumed in exercise is offset by a DECREASE in the amount of energy used when not exercising. In other words, when you increase exercise intensity, your body decreases the

Nature Clarity Keto

Harper said...

article. Bottom line: the type of exercise, intensity of that exercise, length of time doing that exercise, etc., are essential variables here when attempting to lose FAT while retaining (LBM).
Viadine Male Enhancement

james said...

Exercise is the key to sustainable, long lasting and real weight loss. For every pound you lose by eating right and exercising that is one more pound that will never come back to haunt you.
Virtus Strong Testo Boost Pro