Compile problem
I'm trying to build a project, using $ make, but it fails:
Code:
host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so) Code:
$ ls -l /usr/lib/libz.so Code:
$ arch Code:
sudo apt-get install libz-dev I'm also unable to install some required packages: Code:
E: Couldn't find package lib32z1-dev |
Welcome to LQ. .. .. :)
""cannot find -lz"" You are not supposed to guess package names. sudo apt-cache search zlib sudo apt-get install zlib1g-dev libncurses5-dev .. Good luck ! .. P.S. : Are you quite sure, the OS is i386. And not x86_64 ? ( " amd64 " ). http://packages.ubuntu.com/lucid/zlib1g-dev http://packages.ubuntu.com/lucid/libncurses5-dev .. |
Quote:
It says, I already have those packages installed. As for OS, I run arch, and it says i686. And it still does not compile. |
Quote:
Code:
sudo apt-get install lib64z1-dev P.S. Thanks a lot! |
GCC can be compiled to run on x86 but be able to compile for either x86 or x86_64 (selected by command line switch).
The output of the arch command is a very strong indication that you are running i686. A few of the other things you said are indirect indications that you are building this package x86_64. There may be something in its makefile that causes it to build x86_64 and you may have gcc and other tools set up to support building x86_64 on an i686 system. You haven't given direct enough evidence for all that to be more than just a guess. But regardless of what you can build, you can't run x86_64 on an i686 OS. Are you able to run what you just succeeded in building? If so, did the makefile build more than one version (build both x86 and x86_64)? Edit, I reached this link indirectly from the one you posted: http://source.android.com/source/download.html That clearly states the build should be 32 bit on either 32 bit or 64 bit Linux. That makes it unlikely it is somehow deciding to build 64 bit on 32 bit Linux. So I don't know what to make of the indirect evidence you've given that looks like a 64 bit build on 32 bit Linux. More likely there is some totally different explanation. |
Quote:
|
Quote:
2) I had already replied to your other thread as well. I didn't pay attention to your name, so I didn't realize I was replying to the same person. That further confirms you have a 32 bit build of Ubuntu. |
Quote:
|
Quote:
|
That link gives instructions for preparing 32 bit Ubuntu. One very important step was
Code:
sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev I didn't see anything on the Android web site that says it should be using 64 bit libs on Ubuntu. |
I'm going to double-post this:
What are you trying to make? You were just told to use a 32-bit JDK, not a 64-bit JDK. Which version of Ubuntu are you using? If you just want to install the JDK, either run Code:
sudo apt-get install sun-java6-jdk Code:
sudo apt-get install sun-java6-jdk For the jre and browser plugin: Code:
sudo apt-get install sun-java6-jre sun-java6-plugin |
Quote:
|
Using apt-get will not give you a make error. You're not installing from source. That one still remains? I asked you what that one is even about. If you're not compiling something, you would not get a make error. What are you compiling? What caused the make error in your other thread?
|
Quote:
Code:
E: Couldn't find package sun-java5-jdk |
What version of Ubuntu are you using? Where did you come up with the idea of installing the Java 5 SDK? What does Android have to do with installing Java on Ubuntu? Did you enable the partner repositories from System->Administration->Software Sources?
|
All times are GMT -5. The time now is 01:00 PM. |