Closed Bug 866489 Opened 11 years ago Closed 11 years ago

Can't build B2G on Ubuntu 13.04: zconf.h is missing

Categories

(Firefox OS Graveyard :: GonkIntegration, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: justin.lebar+bug, Unassigned)

Details

Attachments

(5 files)

This is some multilib crap that I don't really understand.

https://bugs.launchpad.net/ubuntu/+source/zlib/+bug/1155307

I'm not sure if there's anything we can do to work around this, but at the very least I wanted to have a bug on file.
See also bug 865856.
This seemed to let my build proceed.  It's probably no more broken than it was in the old version of Ubuntu...

ln -s /usr/include/x86_64-linux-gnu/zconf.h /usr/include
You can install both zlib1g-dev:amd64 and zlib1g-dev:i386 at the same time.
Attached file Github PR for B2G.git
Address requiring zlib1g-dev:{amd64,i386} on Ubuntu 13.04 in README.md only.
Attachment #742915 - Flags: review?(justin.lebar+bug)
Or, you might rather close this issue as WORKFORME :)
Comment on attachment 742915 [details]
Github PR for B2G.git

Clearing this r? until we get things cleared up in the PR.
Attachment #742915 - Flags: review?(justin.lebar+bug)
Minimum installed package set for building B2G emulator.
Minimum installed package set for building B2G emulator.
Minimum installed package set for building B2G emulator.
Minimum installed package set for building B2G emulator.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
I've modified the build prerequisites page on MDN with the new information, can you please double-check if the packages listed and options are correct?

https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Firefox_OS_build_prerequisites#64_bit_install_examples.3A
(In reply to Gabriele Svelto [:gsvelto] from comment #12)
> I've modified the build prerequisites page on MDN with the new information,
> can you please double-check if the packages listed and options are correct?
> 
> https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/
> Firefox_OS_build_prerequisites#64_bit_install_examples.3A

Hi Gabriele,

This takes a long long time to verify and I have only packages list for Ubuntu 12.04 Precise for now. I'll try my best to gather necessary information asap, okay?

  $ sudo aptitude --visual-preview -R install libgl1-mesa-dev libgl1-mesa-dev \
  libncurses5-dev:i386 libasound2 flex ccache git zlib1g-dev zlib1g-dev:i386 \
  libxt6 autoconf2.13 g++-4.6-multilib bison libgtk2.0-0 patch zip unzip \
  libgl1-mesa-glx:i386 libdbus-glib-1-2 libx11-dev:i386 make

Note that `aptitude --visual-preview -R` works exactly the same with `apt-get install --no-install-recommends` but with visual preview, of course.
Great! Just found why I can't re-create a new chroot with selections above.  libncurses5-dev listed is actually libncurses5-dev:i386, but it seems `dpkg --get-selections` doesn't reflect this.  I have to attach results of `dpkg -l` instead for more detailed, complete information of all installed packages.
This error occurred to me in Mint 17 Qiana 64 bits.
Solved by manually installing this package: https://launchpad.net/ubuntu/trusty/i386/zlib1g-dev/1:1.2.8.dfsg-1ubuntu1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: