[Q] Need help to compile CM build from source on Mac - Android Software Development

Hello folks, I hope this is going to the right section, otherwise mods please move it to the right one as I have no clue of where to post it ...
Ok, lets being saying I followed this to letter and even though I did exactly what is said on the wiki I am facing lots of weird errors when trying to compile fastboot and mkbootimg from my mac (intel).. I didn't try to compile anything else as I just need those two tools atm and however I don't think it will work..
Those are the errors I am talking about
Code:
Pietros-MacBook-Pro:fastboot Pietro$ make fastboot
cc fastboot.c -o fastboot
fastboot.c:40:21: error: bootimg.h: No such file or directory
fastboot.c:41:29: error: zipfile/zipfile.h: No such file or directory
fastboot.c:45: error: expected ‘)’ before ‘*’ token
fastboot.c:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
fastboot.c: In function ‘load_bootable_image’:
fastboot.c:261: error: ‘BOOT_MAGIC’ undeclared (first use in this function)
fastboot.c:261: error: (Each undeclared identifier is reported only once
fastboot.c:261: error: for each function it appears in.)
fastboot.c:261: error: ‘BOOT_MAGIC_SIZE’ undeclared (first use in this function)
fastboot.c:262: error: ‘boot_img_hdr’ undeclared (first use in this function)
fastboot.c:262: error: expected expression before ‘)’ token
fastboot.c:282: warning: assignment makes pointer from integer without a cast
fastboot.c:287: error: expected expression before ‘)’ token
fastboot.c: At top level:
fastboot.c:294: error: expected ‘)’ before ‘zip’
fastboot.c:414: error: expected ‘)’ before ‘zip’
fastboot.c: In function ‘do_update’:
fastboot.c:430: error: ‘zipfile_t’ undeclared (first use in this function)
fastboot.c:430: error: expected ‘;’ before ‘zip’
fastboot.c:437: error: ‘zip’ undeclared (first use in this function)
fastboot.c:440: warning: assignment makes pointer from integer without a cast
fastboot.c:444: warning: assignment makes pointer from integer without a cast
fastboot.c:457: warning: assignment makes pointer from integer without a cast
fastboot.c:462: warning: assignment makes pointer from integer without a cast
fastboot.c:468: warning: assignment makes pointer from integer without a cast
make: *** [fastboot] Error 1
Code:
Pietros-MacBook-Pro:mkbootimg Pietro$ make mkbootimg
cc mkbootimg.c -o mkbootimg
mkbootimg.c:25:26: error: mincrypt/sha.h: No such file or directory
mkbootimg.c: In function ‘main’:
mkbootimg.c:111: error: ‘SHA_CTX’ undeclared (first use in this function)
mkbootimg.c:111: error: (Each undeclared identifier is reported only once
mkbootimg.c:111: error: for each function it appears in.)
mkbootimg.c:111: error: expected ‘;’ before ‘ctx’
mkbootimg.c:112: error: nested functions are disabled, use -fnested-functions to re-enable
mkbootimg.c:112: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
mkbootimg.c:112: error: ‘sha’ undeclared (first use in this function)
mkbootimg.c:224: error: ‘ctx’ undeclared (first use in this function)
mkbootimg.c:232: error: ‘SHA_DIGEST_SIZE’ undeclared (first use in this function)
make: *** [mkbootimg] Error 1
I have posted this already on the Cyanogenmod forum but I have gotten no response so far ..
Any help would be much appreciated.
Thanks

any help??

If you have missing header file, first thing you have to do is get those files. If you have those files u have to set the environment so that ur compilers gets those files.
Sent from my LG-P500 using XDA Premium App

There's a thread on the g2 section about building cm on Mac by fat tire
Sent from my HTC Vision using XDA App

http://forum.xda-developers.com/showthread.php?t=840079
Sent from my HTC Vision using XDA App

Sorry about the delay, but I been kinda busy with crazy shifts at work and I was unable to check out the post.
However, the guide posted on the link you gave me is the same as the one I followed on the cyanogenmod wiki, the only different among the guides is that the guidein the post u gave me covers the G2 compiling process on the mac, instead the one I followed covers the Hero.
Same process though...
ultma75 said:
http://forum.xda-developers.com/showthread.php?t=840079
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
What are those header files you'r talking about???
Thanks for helping
4silvertooth said:
If you have missing header file, first thing you have to do is get those files. If you have those files u have to set the environment so that ur compilers gets those files.
Sent from my LG-P500 using XDA Premium App
Click to expand...
Click to collapse

Related

Problems with NDK... zlib

Hello XDA-people again (specifically the developers this time)
i have been recently trying to compile a game (www.teeworlds.com) for android.
it is sdl-based, so i used the NDK and this port of SDL for android:
http://github.com/pelya/commandergenius/archives/sdl_android
things have been going relatively good so far, i think with GLES 2.0 i will be able to compile it so it will finally be working however, i am having issues with zlib when compiling:
Code:
[email protected]:/home/reverse/and/android-ndk-r3# make APP=teeworlds
Android NDK: Building for application 'teeworlds'
Compile thumb : teeworlds <= apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c
apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c: In function 'datafile_get_data_impl':
apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c:244: error: 'Bytef' undeclared (first use in this function)
apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c:244: error: (Each undeclared identifier is reported only once
apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c:244: error: for each function it appears in.)
apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c:244: error: expected expression before ')' token
apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c: In function 'datafile_add_data':
apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c:462: error: 'Bytef' undeclared (first use in this function)
apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c:462: error: expected expression before ')' token
i have been modifying the headers a little, which got some "undefined method" errors removed. here are the original error messages:
Code:
SharedLibrary : libteeworlds.so
out/apps/teeworlds/armeabi/objs/teeworlds/engine/e_datafile.o: In function `datafile_crc':
/home/reverse/and/android-ndk-r3/apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c:671: undefined reference to `crc32'
out/apps/teeworlds/armeabi/objs/teeworlds/engine/e_datafile.o: In function `datafile_add_data':
/home/reverse/and/android-ndk-r3/apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c:458: undefined reference to `compressBound'
/home/reverse/and/android-ndk-r3/apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c:461: undefined reference to `compress'
out/apps/teeworlds/armeabi/objs/teeworlds/engine/e_datafile.o: In function `datafile_get_data_impl':
/home/reverse/and/android-ndk-r3/apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c:243: undefined reference to `uncompress'
collect2: ld returned 1 exit status
any ideas on how to get this fixed?
Hi,
Try to replace in engine/e_datafile.c :
#include <zlib.h>
by
#include "external/zlib/zlib.h"
It looks like that you are using an other zlib while one is included in the Teeworlds sources. If you can say to NDK that he shouldn't use an external zlib.
I've made a barely playable version, just do "git pull" on the libSDL repo, change symlink project/jni/application/src to "teeworlds", run "ChangeAppSettings.sh -a" and compile it.
(Posting links is disabled for new users? This forum is useless).
Hey there Pelya, glad to see y on xda.
To op, listen to Pelya, he knows what he's talking about.

Trying to build the stock kernel from source [SOLVED]

edit: The stock kernel can be built following this thread.
I'm trying to build the stock kernel from source (the one from huaweidevice). I'm running Ubuntu 10.10 64-bit.
I've gotten this far:
- I've extracted config from phone /proc/config.gz and copied it to kernel/.config
- I went through this guide: source.android.com source initializing.html
- I created some symbolic links to get rid of file not found errors when compiling:
kernel-2.6.32-U8800-Froyo/kernel/net/netfilter$ ln -s xt_connmark.c xt_CONNMARK.c
kernel-2.6.32-U8800-Froyo/kernel/net/netfilter$ ln -s xt_HL.c xt_hl.c
kernel-2.6.32-U8800-Froyo/kernel/net/netfilter$ ln -s xt_MARK.c xt_mark.c
kernel-2.6.32-U8800-Froyo/kernel/net/ipv4/netfilter$ ln -s ipt_ECN.c ipt_ecn.c
kernel-2.6.32-U8800-Froyo/kernel/include/linux/netfilter$ ln -s xt_mark.h xt_MARK.h
kernel-2.6.32-U8800-Froyo/kernel/include/linux/netfilter_ipv4$ ln -s ipt_ecn.h ipt_ECN.h
kernel-2.6.32-U8800-Froyo/kernel/include/linux/netfilter$ ln -s xt_DSCP.h xt_dscp.h
kernel-2.6.32-U8800-Froyo/kernel/include/linux/netfilter_ipv4$ ln -s ipt_ttl.h ipt_TTL.h
kernel-2.6.32-U8800-Froyo/kernel/include/linux/netfilter_ipv6$ ln -s ip6t_hl.h ip6t_HL.h
Now for the cross compilation I've tried 3 different toolchains:
- The ones from developer.android.com sdk ndk index.html
- and codesourcery.com sgpp lite arm portal package8734/public/arm-none-eabi/arm-2011.03-42-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
then I've tried compiling with:
make -j8 ARCH=arm CROSS_COMPILE=.../android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-
and
make -j8 ARCH=arm CROSS_COMPILE=.../android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/arm-eabi-
and
make -j8 ARCH=arm CROSS_COMPILE=.../arm-2011.03/bin/arm-none-eabi-
they all give me output similar to this (this is with the 4.4.0 toolchain):
Code:
CHK include/linux/version.h
SYMLINK include/asm -> include/asm-arm
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
CC net/netfilter/xt_MARK.o
CC net/ipv4/netfilter/ipt_ecn.o
CC net/netfilter/xt_NFQUEUE.o
CC net/ipv4/netfilter/ipt_NETMAP.o
CC net/netfilter/xt_comment.o
CC net/netfilter/xt_connlimit.o
net/netfilter/xt_MARK.c: In function 'mark_tg':
net/netfilter/xt_MARK.c:32: error: dereferencing pointer to incomplete type
net/netfilter/xt_MARK.c:32: error: dereferencing pointer to incomplete type
net/netfilter/xt_MARK.c: At top level:
net/netfilter/xt_MARK.c:41: error: invalid application of 'sizeof' to incomplete type 'struct xt_mark_tginfo2'
make[2]: *** [net/netfilter/xt_MARK.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CC net/ipv4/netfilter/ipt_REDIRECT.o
CC net/ipv4/netfilter/ipt_REJECT.o
cc1: warnings being treated as errors
net/ipv4/netfilter/ipt_ecn.c:29: error: 'struct ipt_ECN_info' declared inside parameter list
net/ipv4/netfilter/ipt_ecn.c:29: error: its scope is only this definition or declaration, which is probably not what you want
net/ipv4/netfilter/ipt_ecn.c: In function 'set_ect_ip':
net/ipv4/netfilter/ipt_ecn.c:33: error: 'XT_DSCP_MASK' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:33: error: (Each undeclared identifier is reported only once
net/ipv4/netfilter/ipt_ecn.c:33: error: for each function it appears in.)
net/ipv4/netfilter/ipt_ecn.c:33: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:40: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c: At top level:
net/ipv4/netfilter/ipt_ecn.c:48: error: 'struct ipt_ECN_info' declared inside parameter list
net/ipv4/netfilter/ipt_ecn.c: In function 'set_ect_tcp':
net/ipv4/netfilter/ipt_ecn.c:58: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:58: error: 'IPT_ECN_OP_SET_ECE' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:59: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:60: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:60: error: 'IPT_ECN_OP_SET_CWR' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:61: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:69: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:70: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:71: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:72: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c: In function 'ecn_tg':
net/ipv4/netfilter/ipt_ecn.c:84: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:84: error: 'IPT_ECN_OP_SET_IP' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:85: error: passing argument 2 of 'set_ect_ip' from incompatible pointer type
net/ipv4/netfilter/ipt_ecn.c:29: note: expected 'const struct ipt_ECN_info *' but argument is of type 'const struct ipt_ECN_info *'
net/ipv4/netfilter/ipt_ecn.c:88: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:88: error: 'IPT_ECN_OP_SET_ECE' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:88: error: 'IPT_ECN_OP_SET_CWR' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:90: error: passing argument 2 of 'set_ect_tcp' from incompatible pointer type
net/ipv4/netfilter/ipt_ecn.c:48: note: expected 'const struct ipt_ECN_info *' but argument is of type 'const struct ipt_ECN_info *'
net/ipv4/netfilter/ipt_ecn.c: In function 'ecn_tg_check':
net/ipv4/netfilter/ipt_ecn.c:101: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:101: error: 'IPT_ECN_OP_MASK' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:103: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:106: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:106: error: 'XT_DSCP_MASK' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:108: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:111: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:111: error: 'IPT_ECN_OP_SET_ECE' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:111: error: 'IPT_ECN_OP_SET_CWR' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c: At top level:
net/ipv4/netfilter/ipt_ecn.c:124: error: invalid application of 'sizeof' to incomplete type 'struct ipt_ECN_info'
make[3]: *** [net/ipv4/netfilter/ipt_ecn.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[1]: *** [net/netfilter] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [net/ipv4/netfilter] Error 2
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2
sorry for the messed up links, I'm not allowed to post links (yet).
Any ideas how to get forward?
The reason I'm doing this is that I want to fix the bug that the internal mic is disabled when a stereo headphone / or a 3.5mm jack - 2xrca cable is plugged in. I think I can fix it from kernel-2.6.32-U8800-Froyo/kernel/arch/arm/mach-msm/rpc_server_handset.c, but first I have to get my build environment working
copy missing files instead of link
xt_MARK.c and xt_mark.c are not the same, at least in my source
try copy the missing file from android source
http://android.git.kernel.org/?p=kernel/msm.git;a=tree
wmi543 said:
xt_MARK.c and xt_mark.c are not the same, at least in my source
try copy the missing file from android source
Click to expand...
Click to collapse
It worked I copied all the files from the git instead of ln -s.
"Kernel: arch/arm/boot/zImage is ready"
Thanks for the quick reply.
Then I had to remove comment out CONFIG_FB_MSM_MDDI_NT35582_WVGA=y line from .config and answer no to two questions when running make.
I used the 4.4.0 toolchain
Now I have the zImage but don't know how it'll work because the CONFIG_FB_MSM_MDDI_NT35582_WVGA probably has something to do with the display type.
BTW I've taken a backup with genokolar's recovery img. When I try this new kernel and if I can't boot, I should be able to get it to boot again by doing a restore from the earlier backup?
Now I'll start looking into packing the kernel to an .img (android-dls.com wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images#Structure_of_boot_and_recovery_images)..
OK. I copied the boot.img from the phone in bootloader mode, unpacked it with unpack-bootimg.pl. Then I bsdiffed (binary diff) the resulting boot.img-kernel.gz with the Image file I built, the patch file is only 389K so looks like they are quite similar. The only differences may be because of the display thing I changed in the Makefile.
Might try tomorrow to replace the unpacked kernel with the Image file and see if it works. What is the worst case scenario? I should always be able to restore from the old backup if it doesn't boot?
Maybe I'll also try to get the display thing to build right before trying it on the phone
edit: I read somewhere the .gz extension in the unpacked kernel file is a bug with the unpacking script, so "boot.img-kernel.gz" is actually the unpacked kernel file (so it should be the same as compiled Image) ?
Looks like the unpack-bootimg.pl and repack-bootimg.pl are not working right for the U8800 boot.img. I just tried to unpack the original boot.img and repack it, I got a blue screen when trying to boot. I could restore the original just by going to bootloader mode and copying back the original.
Any ideas how to unpack and repack the boot.img of the U8800?
You can repack the boot/recovery images with the following:
Code:
./mkbootfs RAMDISK DIRECTORY | ./minigzip > ramdisk-boot.img
./mkbootimg --kernel KERNEL --ramdisk ramdisk-boot.img --base 0x00200000 --pagesize 4096 --cmdline 'console=ttyDCC0 androidboot.hardware=huawei' -o boot.img
I just modified the repack perl script accordingly and added lines so that it will mount cust_backup and transfer the image across for me. Saves heaps of time.
stockwell said:
You can repack the boot/recovery images with the following:
Code:
./mkbootfs RAMDISK DIRECTORY | ./minigzip > ramdisk-boot.img
./mkbootimg --kernel KERNEL --ramdisk ramdisk-boot.img --base 0x00200000 --pagesize 4096 --cmdline 'console=ttyDCC0 androidboot.hardware=huawei' -o boot.img
I just modified the repack perl script accordingly and added lines so that it will mount cust_backup and transfer the image across for me. Saves heaps of time.
Click to expand...
Click to collapse
I used the unpack script from http://forum.xda-developers.com/showthread.php?t=891333 then modified the line "#$bootimg = substr($bootimg,2048);" to "$bootimg = substr($bootimg,4096);". There's still a difference of 215 bytes with the repacked img, but it works.
Now I can test the kernel I built myself. Thank you for the help.
edit: Looks like the built kernel doesn't work, now I can start tackling that
CONFIG_FB_MSM_MDDI_NT35582_WVGA=y
if you see only blue screen when you boot your own kernel, refer to my experience, edit .config, change 2 lines as below instead of comment out CONFIG_FB_MSM_MDDI_NT35582_WVGA=y should fix it
CONFIG_FB_MSM_MDDI_AUTO_DETECT=y
CONFIG_FB_MSM_TRY_MDDI_CATCH_LCDC_PRISM=y
BTW, there is a tool "abootimg" which is quite handy for packing the kernel
http://gitorious.org/ac100/abootimg
wmi543 said:
if you see only blue screen when you boot your own kernel, refer to my experience, edit .config, change 2 lines as below instead of comment out CONFIG_FB_MSM_MDDI_NT35582_WVGA=y should fix it
CONFIG_FB_MSM_MDDI_AUTO_DETECT=y
CONFIG_FB_MSM_TRY_MDDI_CATCH_LCDC_PRISM=y
BTW, there is a tool "abootimg" which is quite handy for packing the kernel
http://gitorious.org/ac100/abootimg
Click to expand...
Click to collapse
Works! great! Thanks for the help. Hopefully soon I can release my fixed kernel
Sorry, I'm new to Android. What advantages are there if you get the stock kernel or whatever?
"Stock" means the kernel that comes with the phone when you buy it. I just wanted to build it so I could modify it. I created a modified kernel that allows you to use the internal mic with headphones or for example when you connect the phone to your car stereo. The modified kernel is in the other thread.
Sent from my u8800 using XDA App
So with custom kernel you can achieve more functionality just like normal linux? Good. Would be awesome.

Compiling jb code for defy

can anyone guide how to compile original JB source code for motorola defy ........... i.e. how to make working JB rom for defy ... dont want to use cyanogen mod rom ............. want to create my own
can anyone guide
thank u!
it really helps! thanks for all the tips! master!
Sent from my MB526 using xda premium
nogoodusername said:
thank u!
it really helps! thanks for all the tips! master!
Sent from my MB526 using xda premium
Click to expand...
Click to collapse
i didnt get u!
what exactly you want to say?
Wrong section bro... this should go in Q&A or even in General, but definitely not here...
I think it is also a development part ........ building environment & development of custom rom from source ....
latadswapnil said:
I think it is also a development part ........ building environment & development of custom rom from source ....
Click to expand...
Click to collapse
Development section is meant for development not discussions, tutorials, How-Tos etc. This is where roms, mods and other cool stuff go. It is a place where something is being worked on and where devs and the community can contribute and work together. Questions are for the Q&A and General section whether or not they are development related has Hairo has said.
Kayant said:
Development section is meant for development not discussions, tutorials, How-Tos etc. This is where roms, mods and other cool stuff go. It is a place where something is being worked on and where devs and the community can contribute and work together. Questions are for the Q&A and General section whether or not they are development related has Hairo has said.
Click to expand...
Click to collapse
Ok but this can be moved to the respective section and answered there na?
I too want a lil novice guide on compiling roms
Sent from my MB525 using xda app-developers app
vedhasd said:
Ok but this can be moved to the respective section and answered there na?
I too want a lil novice guide on compiling roms
Sent from my MB525 using xda app-developers app
Click to expand...
Click to collapse
It will be soon
Then your best friend is search google, XDA and whatever else......however, if you know how to code then it should be easy if not look at my github and look at the commits I cherry-pick from our CM team those are what is need to get the defy to boot on an AOSP rom. Look at the android source code and see how it works you will know what to do from there look at other roms like AOKP, CM and CNA etc. When I ported AOKP and CNA and soon Slim i don't know how to code one bit however, I just know how to look at things and see how they work by searching, using my brain, comparing for hours and learning. Learning to use git is necessary for all this to happen it's quite easy once you get the hang of it just search the commands if you don't know what they mean or do.
Good luck and next time latadswapnil please post in the right section.
Moved to Q&A. Please do not posts questions in development sections.
TeeJay3800 said:
Moved to Q&A. Please do not posts questions in development sections.
Click to expand...
Click to collapse
Sorry
Sent from my MB525 using xda app-developers app
---------- Post added at 08:41 AM ---------- Previous post was at 08:37 AM ----------
@kayant yes dude, especially its very good of you, I have used ur aokp builds and luved it! And i just want from where to start...I have a lil knowledge of c,c++,java coding but don't know how to apply in compiling! I have done some apps...dunno if that knowledge is useful..!
Sent from my MB525 using xda app-developers app
sorry ...bro ...
i have sync the android source & build required environment .... please guide me to where to look & what are the important factors to look while learning . .
Kayant said:
It will be soon
Then your best friend is search google, XDA and whatever else......however, if you know how to code then it should be easy if not look at my github and look at the commits I cherry-pick from our CM team those are what is need to get the defy to boot on an AOSP rom. Look at the android source code and see how it works you will know what to do from there look at other roms like AOKP, CM and CNA etc. When I ported AOKP and CNA and soon Slim i don't know how to code one bit however, I just know how to look at things and see how they work by searching, using my brain, comparing for hours and learning. Learning to use git is necessary for all this to happen it's quite easy once you get the hang of it just search the commands if you don't know what they mean or do.
Good luck and next time latadswapnil please post in the right section.
Click to expand...
Click to collapse
Can you post some links!! to start from begin ....! it will be very helpful
latadswapnil said:
Can you post some links!! to start from begin ....! it will be very helpful
Click to expand...
Click to collapse
I won't post links as that will be spoon feeding and you can't do this if I do that
but search the general section i have a guide on compiling roms for the defy and also there's a thread where Quarx helped me when I was porting AOKP JB.
Good luck ^_^
It takes hours to compile the code ....... it will be helpful if you suggest ... some sort of changes for that we have to look..... before compiling
More or less....forum is made for helping each other......providing link will reduce the work......
Sent from my MB526 using xda app-developers app
latadswapnil said:
It takes hours to compile the code ....... it will be helpful if you suggest ... some sort of changes for that we have to look..... before compiling
More or less....forum is made for helping each other......providing link will reduce the work......
Sent from my MB526 using xda app-developers app
Click to expand...
Click to collapse
Yes but you wouldn't be learning the point of a forum is to give a guiding hand and you do the rest = learning less problems and person remembering that skill..... Well I ported gummy rom for the first time(even though it didn't boot probably in the end) no one helped me because I read around, read a lot before doing what I did and I have given a lot of info already on where to find stuff i cba to search it it's already out there for you. You just need to find it like i did
---------- Post added at 08:43 PM ---------- Previous post was at 08:41 PM ----------
vedhasd said:
@kayant yes dude, especially its very good of you, I have used ur aokp builds and luved it! And i just want from where to start...I have a lil knowledge of c,c++,java coding but don't know how to apply in compiling! I have done some apps...dunno if that knowledge is useful..!
Sent from my MB525 using xda app-developers app
Click to expand...
Click to collapse
Once you learn how AOSP works it should help you write in some new code if you want to add some new features and also to identify and fix errors when they come up when compiling.....
ERROR::!!!
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:98:39: error: invalid use of undefined type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:98:39: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:100:39: error: invalid use of undefined type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONN
MARK.c:100:39: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: In function 'connmark_tg_init':
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:133:6: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:133:6: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:134:6: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:134:6: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: In function 'CONNMARK_parse':
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:144:20: error: 'XT_CONNMARK_SET' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:144:20: note: each undeclared identifier is reported only once for each function it appears in
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:144:18: warning: assignment makes integer from pointer without a cast [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:149:20: error: 'XT_CONNMARK_SAVE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:149:18: warning: assignment makes integer from pointer without a cast [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:152:20: error: 'XT_CONNMARK_RESTORE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:152:18: warning: assignment makes integer from pointer without a cast [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: In function 'connmark_tg_parse':
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:167:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:167:7: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:167:18: error: 'XT_CONNMARK_SET' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:168:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:168:7: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:169:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:169:7: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:172:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:172:7: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:173:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:173:7: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:174:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:174:7: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:177:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:177:7: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:178:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:178:7: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:179:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:179:7: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:182:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:182:7: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:183:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:183:7: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:184:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:184:7: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:187:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:187:7: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:188:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:188:7: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:189:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:189:7: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:192:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:192:7: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:192:16: error: 'XT_CONNMARK_SAVE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:195:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:195:7: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:195:16: error: 'XT_CONNMARK_RESTORE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:198:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:198:7: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:198:22: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:198:22: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: In function 'CONNMARK_print':
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:229:7: error: 'XT_CONNMARK_SET' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:234:7: error: 'XT_CONNMARK_SAVE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:238:7: error: 'XT_CONNMARK_RESTORE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: In function 'connmark_tg_print':
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:254:14: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:254:14: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:255:7: error: 'XT_CONNMARK_SET' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:256:11: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:256:11: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:258:40: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:258:40: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:258:35: error: wrong type argument to bit-complement
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:259:16: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:259:16: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:259:32: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:259:32: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:260:36: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:260:36: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:260:4: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:261:16: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:261:16: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:262:37: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:262:37: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:262:4: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:263:16: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:263:16: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:263:25: warning: comparison between pointer and integer [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:264:37: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:264:37: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:264:4: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:267:15: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:267:15: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:267:29: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:267:29: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:267:11: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:267:11: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:269:7: error: 'XT_CONNMARK_SAVE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:270:11: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:270:11: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:270:20: warning: comparison between pointer and integer [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:270:41: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:270:41: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:270:50: warning: comparison between pointer and integer [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:272:16: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:272:16: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:272:32: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:272:32: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:273:43: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:273:43: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:273:4: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:276:15: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:276:15: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:276:29: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:276:29: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:276:11: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:276:11: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:278:7: error: 'XT_CONNMARK_RESTORE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:279:11: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:279:11: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:279:20: warning: comparison between pointer and integer [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:279:41: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:279:41: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:279:50: warning: comparison between pointer and integer [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:281:16: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:281:16: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:281:32: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:281:32: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:282:46: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:282:46: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:282:4: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:285:15: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:285:15: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:285:29: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:285:29: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:285:11: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:285:11: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: In function 'CONNMARK_save':
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:300:7: error: 'XT_CONNMARK_SET' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:305:7: error: 'XT_CONNMARK_SAVE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:309:7: error: 'XT_CONNMARK_RESTORE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: In function 'connmark_tg_save':
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:332:14: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:332:14: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:333:7: error: 'XT_CONNMARK_SET' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:334:40: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:334:40: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:334:54: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:334:54: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:334:3: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:334:3: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:336:7: error: 'XT_CONNMARK_SAVE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:338:14: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:338:14: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:338:28: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:338:28: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:338:10: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:338:10: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:340:7: error: 'XT_CONNMARK_RESTORE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:342:14: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:342:14: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:342:28: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:342:28: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:342:10: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:342:10: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct xt_option_entry const *' [-Wformat]
ERROR::!!! Continue
target thumb C: libext <= out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_conntrack.c
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: At top level:
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: invalid application of 'sizeof' to incomplete type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: invalid application of 'sizeof' to incomplete type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: cast specifies array type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: invalid operands to binary + (have 'struct xt_option_entry const *' and 'struct xt_option_entry const *')
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: invalid application of 'sizeof' to incomplete type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: cast specifies array type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: wrong type argument to bit-complement
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: invalid operands to binary & (have 'struct xt_option_entry const *' and 'struct xt_option_entry const *')
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: initializer element is not constant
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: (near initialization for 'connmark_tg_reg[1].size')
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: invalid application of 'sizeof' to incomplete type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: invalid application of 'sizeof' to incomplete type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: cast specifies array type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: invalid operands to binary + (have 'struct xt_option_entry const *' and 'struct xt_option_entry const *')
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: invalid application of 'sizeof' to incomplete type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: cast specifies array type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: wrong type argument to bit-complement
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: invalid operands to binary & (have 'struct xt_option_entry const *' and 'struct xt_option_entry const *')
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: initializer element is not constant
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: (near initialization for 'connmark_tg_reg[1].userspacesize')
make: *** [out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.o] Error 1
make: *** Waiting for unfinished jobs....
[email protected]:~/defy_rom$ repo status platform/bionic
project bionic/ (*** NO BRANCH ***)
-- libc/kernel/common/linux/netfilter/.goutputstream-A166LW
-- libc/kernel/common/linux/netfilter/.goutputstream-C8EWLW
-- libc/kernel/common/linux/netfilter_ipv6/.goutputstream-I0Z6LW
got this while trying to build the source
first i have installed ubuntu 32bit as guest on virtual box & done all repo sync .........................& later i came to know i have to do it on the ubuntu 64 bit ...........so i have copied all source to host OS windows7 .........then i have installed ubuntu 64bit guest os & copied all source to it.....
then i have done all procedure again & also done repo sync again ........... only some updates downloaded & done successfuly
then tried to build the source & got the above error
You need to read around before trying. Have you done that yet??? You do know you're compiling for the galaxy nexus not the defy at the moment you need to add support for the defy through mk files and changing some things in some other places..... And try and condense the error log it's quite hard to following and am not going to know how to fix everything I have no programming skills it's must better to search first then if you can't find the answer then post..
Kayant said:
You need to read around before trying. Have you done that yet??? You do know you're compiling for the galaxy nexus not the defy at the moment you need to add support for the defy through mk files and changing some things in some other places..... And try and condense the error log it's quite hard to following and am not going to know how to fix everything I have no programming skills it's must better to search first then if you can't find the answer then post..
Click to expand...
Click to collapse
Yes i do know i am compiling for nexus .. but i am doing that for emulator purpose ...............
i read about that error ........ on google group ..but solution is not working & also ubuntu is having case sensitive file system
i am not getting what exactly to do because there is nothing more about it on google ..........
any developer can help me out here ?

[REQ] Firefox OS on Xperia U

Hello guys
Can anyone help this devoloper for Firefox OS on Xperia U ? http://forum.xda-developers.com/showthread.php?t=2296751
Thanks
feherneoh said:
Please anyone who see this post and want to help in development or just want to get FirefoxOS running on STE devices (Xperia P, U, Sola, Go), join us in the thread linked by @gigitux
Click to expand...
Click to collapse
What is your problem for Xperia U ?
feherneoh said:
1: I don't have U
2: my PC is way too weak
3: I'm not an experienced dev
Last problem I can remember was a build error in libpng
Error was zlib related
Click to expand...
Click to collapse
Is there possibility that i compile Firefox OS, it's work ?
feherneoh said:
you can help if you have a strong PC
You will need Ubuntu running on it
Please head over to ROM thread
Click to expand...
Click to collapse
Yeah... i try with BBQLinux http://www.bbqlinux.org/
feherneoh said:
seems to be okay
Click to expand...
Click to collapse
I will compile firefox OS today. Just ends, i will try it and i will update this thread
UPDATE: I download source, but at repo sync i have this error:
Code:
fatal: unable to write new index file
Traceback (most recent call last):
File "/home/gigitux/B2G/.repo/repo/main.py", line 414, in <module>
_Main(sys.argv[1:])
File "/home/gigitux/B2G/.repo/repo/main.py", line 390, in _Main
result = repo._Run(argv) or 0
File "/home/gigitux/B2G/.repo/repo/main.py", line 138, in _Run
result = cmd.Execute(copts, cargs)
File "/home/gigitux/B2G/.repo/repo/subcmds/sync.py", line 630, in Execute
project.Sync_LocalHalf(syncbuf)
File "/home/gigitux/B2G/.repo/repo/project.py", line 1060, in Sync_LocalHalf
self._InitWorkTree()
File "/home/gigitux/B2G/.repo/repo/project.py", line 1991, in _InitWorkTree
raise GitError("cannot initialize work tree")
error.GitError: cannot initialize work tree
Repo sync failed
I will try to compile the same
UPDATE 2: I resolve a this problem. I will continue to compile
Don't work
This is a output:
Code:
ERGEDIR=out/target/product/kumquat/obj/objdir-gecko/b2g/locales/merge-$LOCALE ; \
done && \
make -C out/target/product/kumquat/obj/objdir-gecko package && \
mkdir -p out/target/product/kumquat/obj/DATA/gecko_intermediates && cp out/target/product/kumquat/obj/objdir-gecko/dist/b2g-*.tar.gz out/target/product/kumquat/obj/DATA/gecko_intermediates/gecko
make -C gecko -f client.mk -s
Adding client.mk options from /home/gigitux/B2G/gonk-misc/default-gecko-config:
AUTOCLOBBER=1
MOZ_OBJDIR=/home/gigitux/B2G/out/target/product/kumquat/obj/objdir-gecko
MOZ_MAKE_FLAGS=-s -j16
/home/gigitux/B2G/gecko/client.mk:281: *** Could not find autoconf 2.13. Stop.
make[1]: *** [build] Error 2
make: *** [out/target/product/kumquat/obj/DATA/gecko_intermediates/gecko] Error 2
[[email protected] B2G]$
gigitux said:
Don't work
This is a output:
Code:
ERGEDIR=out/target/product/kumquat/obj/objdir-gecko/b2g/locales/merge-$LOCALE ; \
done && \
make -C out/target/product/kumquat/obj/objdir-gecko package && \
mkdir -p out/target/product/kumquat/obj/DATA/gecko_intermediates && cp out/target/product/kumquat/obj/objdir-gecko/dist/b2g-*.tar.gz out/target/product/kumquat/obj/DATA/gecko_intermediates/gecko
make -C gecko -f client.mk -s
Adding client.mk options from /home/gigitux/B2G/gonk-misc/default-gecko-config:
AUTOCLOBBER=1
MOZ_OBJDIR=/home/gigitux/B2G/out/target/product/kumquat/obj/objdir-gecko
MOZ_MAKE_FLAGS=-s -j16
/home/gigitux/B2G/gecko/client.mk:281: *** Could not find autoconf 2.13. Stop.
make[1]: *** [build] Error 2
make: *** [out/target/product/kumquat/obj/DATA/gecko_intermediates/gecko] Error 2
[[email protected] B2G]$
Click to expand...
Click to collapse
add the autoconf file
check the client.mk at line 218
Sent from my S500 using xda app-developers app
How do i add it?
Excuse me but I'm a noobie on compilation of Android
Sent from my ST25i using xda app-developers app
gigitux said:
How do i add it?
Excuse me but I'm a noobie on compilation of Android
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
can you upload client.mk?
i dont have firefox os synched at the moment
Sent from my S500 using xda app-developers app
It looks to me like you don't have all of the required toolchain installed. Take a look at the link below down the page where it says "Requirements for Linux" and lists all of the packages you need to have. I don't know how BBQLinux works so you'll have to translate what it does for Ubuntu-Fedora-Arch into whatever package manager you're using.
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Firefox_OS_build_prerequisites
SpaceCaker said:
can you upload client.mk?
i dont have firefox os synched at the moment
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
This is client.mk http://www.mediafire.com/download/fy9r6urjw8mhpgo/client.mk
trwrt said:
It looks to me like you don't have all of the required toolchain installed. Take a look at the link below down the page where it says "Requirements for Linux" and lists all of the packages you need to have. I don't know how BBQLinux works so you'll have to translate what it does for Ubuntu-Fedora-Arch into whatever package manager you're using.
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Firefox_OS_build_prerequisites
Click to expand...
Click to collapse
BBQLinux is Arch based
gigitux said:
This is client.mk http://www.mediafire.com/download/fy9r6urjw8mhpgo/client.mk
BBQLinux is Arch based
Click to expand...
Click to collapse
try a repo sync or launch ur device again
as it should be generated
trwrt said:
It looks to me like you don't have all of the required toolchain installed. Take a look at the link below down the page where it says "Requirements for Linux" and lists all of the packages you need to have. I don't know how BBQLinux works so you'll have to translate what it does for Ubuntu-Fedora-Arch into whatever package manager you're using.
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Firefox_OS_build_prerequisites
Click to expand...
Click to collapse
SpaceCaker said:
can you upload client.mk?
i dont have firefox os synched at the moment
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
Guys, I have a BIG problem:
An installed 64 bit GNU/Linux distribution (we recommend Ubuntu 12.04).
I'm on VirtualBox, becouse my distro is Fedora.
I transfer directory B2G form virtualbox to Fedora. Afer i will work on Fedora
feherneoh said:
then you can try their build-environment setup script. It will install required packages
Click to expand...
Click to collapse
Now i have transfered direcotry B2G from VirtualBox to Fedora. After i follow this instruction https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Firefox_OS_build_prerequisites and i try to compile Firefox OS
feherneoh said:
Use this to setup build environment
Click to expand...
Click to collapse
I don't understand. I follow this https://developer.mozilla.org/en-US/docs/Developer_Guide/Build_Instructions/Linux_Prerequisites or this https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Firefox_OS_build_prerequisites
feherneoh said:
Seems to be the same, sorry. I sent the URL I saved when I started working on this ROM
Click to expand...
Click to collapse
Actually i'm transfering B2G from VB to Fedora. I will update this post :laugh:
I'm compiling it. I hope *_*
I have got this problem:
Code:
sh: gperf: command not found
calling gperf failed: 32512 at ./makeprop.pl line 140.
make: *** [out/target/product/kumquat/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/css/CSSPropertyNames.h] Errore 25
I'm installing gperf
Stay tuned !
EDIT: Another problem :/
Code:
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(png.o): in function png_calculate_crc:external/libpng/png.c:239: error: undefined reference to 'crc32'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(png.o): in function png_reset_crc:external/libpng/png.c:213: error: undefined reference to 'crc32'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngpread.o): in function png_process_IDAT_data:external/libpng/pngpread.c:874: error: undefined reference to 'inflate'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngpread.o): in function png_push_read_zTXt:external/libpng/pngpread.c:1405: error: undefined reference to 'inflate'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngpread.o): in function png_push_read_zTXt:external/libpng/pngpread.c:1408: error: undefined reference to 'inflateReset'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngpread.o): in function png_push_read_zTXt:external/libpng/pngpread.c:1466: error: undefined reference to 'inflateReset'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_read_destroy:external/libpng/pngread.c:1485: error: undefined reference to 'inflateEnd'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_destroy_read_struct:external/libpng/pngread.c:1355: error: undefined reference to 'inflateEnd'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_configure_decoder:external/libpng/pngread.c:963: error: undefined reference to 'inflateEnd'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_configure_decoder:external/libpng/pngread.c:964: error: undefined reference to 'inflateCopy'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_read_row:external/libpng/pngread.c:769: error: undefined reference to 'inflate'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_build_index:external/libpng/pngread.c:1039: error: undefined reference to 'inflateCopy'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_read_init_3:external/libpng/pngread.c:333: error: undefined reference to 'inflateInit_'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_create_read_struct_2:external/libpng/pngread.c:164: error: undefined reference to 'inflateInit_'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngrutil.o): in function png_inflate:external/libpng/pngrutil.c:262: error: undefined reference to 'inflate'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngrutil.o): in function png_inflate:external/libpng/pngrutil.c:286: error: undefined reference to 'inflateReset'
collect2: ld returned 1 exit status
make: *** [out/target/product/kumquat/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so] Errore 1
Any fix ?
EDIT: i try with linaro now.
EDIT2: It's same.
You have got my problem, right @feherneoh ?
EDIT 3: It's work, I'm compiling...
Stay tuned!
I have same error. How do I fix libpng?
Sent from my Xperia U using xda app-developers app
feherneoh said:
Could you post the error message?
Click to expand...
Click to collapse
Code:
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(png.o): in function png_calculate_crc:external/libpng/png.c:239: error: undefined reference to 'crc32'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(png.o): in function png_reset_crc:external/libpng/png.c:213: error: undefined reference to 'crc32'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngpread.o): in function png_process_IDAT_data:external/libpng/pngpread.c:874: error: undefined reference to 'inflate'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngpread.o): in function png_push_read_zTXt:external/libpng/pngpread.c:1405: error: undefined reference to 'inflate'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngpread.o): in function png_push_read_zTXt:external/libpng/pngpread.c:1408: error: undefined reference to 'inflateReset'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngpread.o): in function png_push_read_zTXt:external/libpng/pngpread.c:1466: error: undefined reference to 'inflateReset'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_read_destroy:external/libpng/pngread.c:1485: error: undefined reference to 'inflateEnd'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_destroy_read_struct:external/libpng/pngread.c:1355: error: undefined reference to 'inflateEnd'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_configure_decoder:external/libpng/pngread.c:963: error: undefined reference to 'inflateEnd'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_configure_decoder:external/libpng/pngread.c:964: error: undefined reference to 'inflateCopy'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_read_row:external/libpng/pngread.c:769: error: undefined reference to 'inflate'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_build_index:external/libpng/pngread.c:1039: error: undefined reference to 'inflateCopy'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_read_init_3:external/libpng/pngread.c:333: error: undefined reference to 'inflateInit_'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_create_read_struct_2:external/libpng/pngread.c:164: error: undefined reference to 'inflateInit_'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngrutil.o): in function png_inflate:external/libpng/pngrutil.c:262: error: undefined reference to 'inflate'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngrutil.o): in function png_inflate:external/libpng/pngrutil.c:286: error: undefined reference to 'inflateReset'
collect2: ld returned 1 exit status
make: *** [out/target/product/kumquat/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so] Errore 1
Do you have zlib and zlib-devel packages installed? That's what it looks like to me.

Chromium_org gives error all the time

Hello, I'm trying to compile OmniRom but after last repo sync I'm getting this error:
Code:
In file included from external/chromium_org/content/common/android/hash_set.cc:5:0:
/home/lozohcum/OmniRom/out/target/product/jlo/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:24:20: error: expected initializer before '<' token
/home/lozohcum/OmniRom/out/target/product/jlo/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:26:17: error: expected initializer before '<' token
/home/lozohcum/OmniRom/out/target/product/jlo/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected '{' before '<' token
/home/lozohcum/OmniRom/out/target/product/jlo/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected unqualified-id before '<' token
external/chromium_org/content/common/android/hash_set.cc:30:1: error: expected '}' at end of input
cc1plus: all warnings being treated as errors
I have tried with chromium_org from CM11 (which compile without any errors) and the same thing appear.
cc1plus: all warnings being treated as errors
Click to expand...
Click to collapse
So I suppose adding a flag somewhere will fix that error but I'm not sure which flag and where.
Do you have any clue how to solve it?

Categories

Resources