On Tue, Aug 2, 2011 at 9:18 AM, Ryan Harter <ryanjhar...@gmail.com> wrote:

> Those of you that are regulars on the list probably recognize me by now.
>  I've been working on getting Etoile compiled for a while now.  I've talked
> to Greg at GNUstep about the same issues on their side, the high barrier to
> entry that is, and he agreed that it was an issue and suggested that I
> mention something here.
>
> I don't want to just complain, and I certainly don't want to give the
> impression that I don't think you guys are doing some really cool things, as
> that wouldn't be very productive.  That's why I've been taking detailed
> notes the whole way through so I can attempt to write (or add to the
> existing) documentation with version numbers, compile flags, etc, to make
> the process easier for others.  Eventually I'd like to get past that and
> into helping out on the Frameworks/Apps.
>
> I've been following the instructions on the web site, and learning lots of
> required minor tweaks along the way, but still need some help on two main
> issues.
>
> *First of all*, and this could be that I have some weird version of sudo,
> the -E flag on sudo doesn't seem to work for me.  I get complaints about
> GNUstep tools not being in my path.  That's not a big deal, I just open a
> new terminal, sudo -i, source the GNUstep scripts, and leave it up for all
> of my 'make install's.
>
> man sudo shows:
>
> -E          The -E (preserve environment) option will override the
> env_reset option in sudoers(5)).
>                    It is only available when either the matching command
> has the SETENV tag or the setenv
>                    option is set in sudoers(5).
>
> Perhaps I don't hav the setenv option set in sudoers, I'll check later.
>
> *Secondly*, I've installed GNUstep and libobjc2 exactly as instructed
> (several times).  I've compiled and installed GNUstep make, compiled and
> installed libobjc2, recompiled and installed GNUstep make so that it builds
> with libobjc2, then compiled and installed the rest of the GNUstep
> components.  I've even tried recompiling and installing llvm/clang after
> having libobjc2 installed.  Still, once I get to running make in Etoile, I
> get through most projects, then I get this:
>
> Making all for subproject bindings...
>  Compiling file poppler_objc.m ...
> g++: poppler_objc.m: Objective-C compiler not installed on this system
> make[5]: *** [obj/bindings.obj/poppler_objc.m.o] Error 1
> make[4]: *** [internal-subproject-all_] Error 2
> make[3]: *** [bindings.all.subproject.variables] Error 2
> make[2]: *** [PopplerKit.all.framework.variables] Error 2
> make[1]: *** [internal-all] Error 2
> make: *** [internal-all] Error 2
>
> I'm not sure why clang thinks there isn't an Objective C compiler
> installed.  Is that even clang? I noticed the line starts with g++.  Do I
> have to set an environment variable, in addition to CC, to tell the system
> to use clang instead of g++ as well?
>

I did find that "export CXX=clang" fixes this issue.  It looks like g++ was
still being used for poppler.

Now, I'm running into issues with Melodie:

Linking app Melodie ...
clang: warning: argument unused during compilation: '-shared-libgcc'
/home/ryan/Etoile/Build/libMediaKit.so: undefined reference to
`av_seek_frame'
/home/ryan/Etoile/Build/libMediaKit.so: undefined reference to
`av_open_input_file'
/home/ryan/Etoile/Build/libMediaKit.so: undefined reference to
`av_read_frame'
/home/ryan/Etoile/Build/libMediaKit.so: undefined reference to
`av_close_input_file'
/home/ryan/Etoile/Build/libMediaKit.so: undefined reference to
`avcodec_decode_audio3'
/home/ryan/Etoile/Build/libMediaKit.so: undefined reference to
`av_find_stream_info'
/home/ryan/Etoile/Build/libMediaKit.so: undefined reference to
`av_register_all'
/home/ryan/Etoile/Build/libMediaKit.so: undefined reference to
`avcodec_open'
/home/ryan/Etoile/Build/libMediaKit.so: undefined reference to `dump_format'
/home/ryan/Etoile/Build/libMediaKit.so: undefined reference to
`avcodec_find_decoder'
/home/ryan/Etoile/Build/libMediaKit.so: undefined reference to
`av_free_packet'
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[6]: *** [Melodie.app/./Melodie] Error 1


I'm guessing this is related to the version of ffmpeg
(libavcodec/libavformat) I'm using.  I've installed version 0.7.2 since "It
contains almost all features and bugfixes of 0.8.1 while being compatible
with the 0.6 ABI and API." I think I'll try an older version and see if that
fixes it.



>
> I was briefly able to get past this, but somewhere in my recompiling the
> workaround escaped me.  So much for my detailed notes :)
>
> Thanks again for all of your help,
> Ryan
>
_______________________________________________
Etoile-dev mailing list
Etoile-dev@gna.org
https://mail.gna.org/listinfo/etoile-dev

Reply via email to