[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Having build issues on Mac OS X
From: |
Kevin Ingwersen |
Subject: |
Re: Having build issues on Mac OS X |
Date: |
Wed, 27 Nov 2013 23:58:18 +0100 |
Hey.
Oh, I know Xcode is good - but what if you really jUST need the compilers?
Thats my case. I dont really like the Xcode IDE and usually just use
TextWrangler. The only real reason I downloaded Xcode was for the compiler
tools, and for building interfaces.
Whatever, next issue. Appearently, iconv acts up weird. What version are you
compiling against?
config.log:————
conftest.c:3:48: warning: comparison between pointer and integer ('libiconv_t'
(aka 'void *') and 'int')
{ return iconv_open("UTF-8//TRANSLIT","ASCII") == -1 ? 1 : 0; }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~
1 warning generated.
ld: warning: directory not found for option '-L/opt/GNUstep/usr/local/lib'
ld: warning: directory not found for option '-L/opt/GNUstep/usr/local/lib'
ld: warning: directory not found for option '-L/opt/GNUstep/usr/local/lib'
ld: warning: directory not found for option '-L/usr/include'
Undefined symbols for architecture x86_64:
"_libiconv_open", referenced from:
_main in conftest-kRfdTb.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:23586: $? = 1
configure: program exited with status 1
configure: failed program was:
| #include <iconv.h>
| int main(int argc,char **argv)
| { return iconv_open("UTF-8//TRANSLIT","ASCII") == -1 ? 1 : 0; }
|
configure:23669: gcc -o conftest -I/opt/X11/include -I/opt/GNUstep/include
-I/opt/GNUstep/usr/local/include -I/opt/GNUstep/usr/local/include
-I/opt/GNUstep/usr/local/include -I/opt/GNUstep/include
-L/opt/GNUstep/usr/local/lib -L/opt/GNUstep/usr/local/lib
-L/opt/GNUstep/usr/local/lib -L/opt/GNUstep/lib -L/opt/GNUstep/lib conftest.c
-liconv -ldl -lpthread -lz >&5
conftest.c:3:50: warning: comparison between pointer and integer ('libiconv_t'
(aka 'void *') and 'int')
{ return iconv_open("UTF-8//TRANSLIT","ASCII") == -1 ? 1 : 0; }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~
1 warning generated.
ld: warning: directory not found for option '-L/opt/GNUstep/usr/local/lib'
ld: warning: directory not found for option '-L/opt/GNUstep/usr/local/lib'
ld: warning: directory not found for option '-L/opt/GNUstep/usr/local/lib'
ld: warning: directory not found for option '-L/usr/include'
configure:23673: $? = 0
configure:23679: ./conftest
dyld: Library not loaded: /opt/GNUstep/lib/libiconv.2.dylib
Referenced from:
/Users/Ingwie/Downloads/gnustep-startup-0.30.0/sources/gnustep-base-1.24.5/./conftest
Reason: Incompatible library version: conftest requires version 8.0.0 or
later, but libiconv.2.dylib provides version 7.0.0
./configure: line 23681: 35623 Trace/BPT trap: 5 ./conftest$ac_exeext
configure:23683: $? = 133
configure: program exited with status 133
configure: failed program was:
| #include <iconv.h>
| int main(int argc,char **argv)
| { return iconv_open("UTF-8//TRANSLIT","ASCII") == -1 ? 1 : 0; }
|
configure:23736: gcc -o conftest -I/opt/X11/include -I/opt/GNUstep/include
-I/opt/GNUstep/usr/local/include -I/opt/GNUstep/usr/local/include
-I/opt/GNUstep/usr/local/include -I/opt/GNUstep/include
-L/opt/GNUstep/usr/local/lib -L/opt/GNUstep/usr/local/lib
-L/opt/GNUstep/usr/local/lib -L/opt/GNUstep/lib -L/opt/GNUstep/lib conftest.c
-lgiconv -ldl -lpthread -lz >&5
conftest.c:1:10: fatal error: 'giconv.h' file not found
#include <giconv.h>
^
1 error generated.
configure:23740: $? = 1
configure: program exited with status 1
configure: failed program was:
| #include <giconv.h>
| int main(int argc,char **argv)
| { return iconv_open("UTF-8//TRANSLIT","ASCII") == -1 ? 1 : 0; }
|
configure:24021: result: no
configure:24028: error: Missing support for character conversion functionality.
# ./configure --prefix=/opt/GNUstep/ \
--with-x=/opt/X11/ \
--with-include-flags='-I/opt/GNUstep/include/ -I/opt/X11/include/' \
--with-library-flags='-L/opt/GNUstep/lib -L/opt/X11/lib' \
--with-ffi-include=/opt/GNUstep/include \
--with-ffi-library=/opt/GNUstep/lib \
--with-libiconv-library=/opt/GNUstep/lib \
--x-includes=/opt/X11/include/ \
--x-libraries=/opt/X11/lib/ \
--with-config-file=/opt/GNUstep/GNUstep.conf \
--with-default-config=/opt/GNUstep/GNUstep.conf
# set | grep "PATH"
CPATH=/opt/X11/include/:/opt/GNUstep/include/:/Applications/drag0n/drag0n.app/Contents/System/usr/local/include:/usr/include:/usr/local/include
DYLD_LIBRARY_PATH=/Applications/drag0n/drag0n.app/Contents/System/lib:/Applications/drag0n/drag0n.app/Contents/System/usr/lib:/Applications/drag0n/drag0n.app/Contents/System/usr/local/lib:/usr/lib:/usr/local/lib
INCLUDE_PATH=/opt/X11/include/:/opt/GNUstep/include/:/Applications/drag0n/drag0n.app/Contents/System/usr/local/include:/usr/include:/usr/local/include
LIBRARY_PATH=/opt/GNUstep/lib/:/opt/X11/include/:/opt/GNUstep/include/:/Applications/drag0n/drag0n.app/Contents/System/usr/local/include:/usr/include:/usr/local/include
PATH=/Applications/drag0n/drag0n.app/Contents/System/bin:/Applications/drag0n/drag0n.app/Contents/System/usr/bin:/Applications/drag0n/drag0n.app/Contents/System/usr/local/bin::/opt/GNUstep/bin:/Applications/drag0n/drag0n.app/Contents/System/bin:/Applications/drag0n/drag0n.app/Contents/System/usr/bin:/Applications/drag0n/drag0n.app/Contents/System/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/opt/subversion/bin:/Users/Ingwie/Work/bin:/Users/Ingwie/Work/bin/depot_tools:/Users/Ingwie/Work/php-devtools/bin
Am 27.11.2013 um 23:43 schrieb Ivan Vučica <ivan@vucica.net>:
> I highly recommend that under OS X people use Xcode from Mac App Store
> (seriously, that's a one-click install).
>
> For GNUstep work, I used VirtualBox with Ubuntu.
>
> But if you do succeed in your quest to have a reproducibly buildable and
> functional GNUstep under OS X, you'd help a lot of people iterate faster
> (including, based on sights seen at devmeeting in Cambridge, a lot of core
> developers).
>
> On 27 Nov 2013 22:26, "Kevin Ingwersen" <ingwie2000@googlemail.com> wrote:
> The issue for some people is just that they need just a ObjC compiler. For
> most it is not easy to find the devtools that apple seeds - because you need
> to install gigabytes of junk, just to get to the 300MB of build tools. So i
> want to build GNUstep and offer it as an alternative. I also want to use it
> as a toolchain for automatic building for my own projects (drag0n, pcc, etc).
> Thanks!
> Am 27.11.2013 um 23:14 schrieb Adam Fedor <fedor@gnu.org>:
>
> > gnustep-make
> > gnustep-base
> > gnustep-gui
> > gnustep-back
> >
> > Note that building GNUstep on MacOSX is difficult as the symbols used by
> > GNUstep conflict with ones in the standard OSX libraries. It's also not
> > very useful as there is a perfectly acceptable implementation of Cocoa
> > already on OSX. Probably a better approach is to load a virtual machine
> > onto OSX running Linux or Windows and compile GNUstep on that, using that
> > to test any code you have built on OSX.
> >
> >
> > On Nov 27, 2013, at 2:57 PM, Kevin Ingwersen <ingwie2000@googlemail.com>
> > wrote:
> >
> >>
> >> Any specific order?
> >>
> >> Well, I can edit shell scripts. Is InstallGNUstep always the same - not
> >> like, generated? If so, i could optimize it for Mac. :)
> >> Am 27.11.2013 um 22:08 schrieb Adam Fedor <fedor@gnu.org>:
> >>
> >>>
> >>> On Nov 27, 2013, at 12:05 PM, Kevin Ingwersen <ingwie2000@googlemail.com>
> >>> wrote:
> >>>
> >>>> Hey there!
> >>>>
> >>>> I am trying to prepair an installable GNUstep package for Mac OS X. But
> >>>> I have been having slight issues with building.
> >>>>
> >>>> When I supply flags to ./configure then it works. But InstallGNUstep
> >>>> perfectly ignores them - completely.
> >>>>
> >>>> So I am calling it with this
> >>>> sudo ./InstallGNUstep --prefix=/opt/GNUstep/
> >>>> --config-options='--prefix=/opt/GNUstep/ --with-thread-lib=pth
> >>>> --with-x=/opt/X11/ --with-include-flags="-I/opt/GNUstep/include"
> >>>> --enable-libffi --with-library-flags="-L/opt/GNUstep/lib"
> >>>> --x-includes=/opt/X11/include/ --x-libraries=/opt/X11/lib/‚
> >>>>
> >>>
> >>> GNUstep startup doesn't really work on MacOSX. You should try to compile
> >>> the packages separately.
> >>>
> >>
> >>
> >
>
>
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnustep
- Having build issues on Mac OS X, Kevin Ingwersen, 2013/11/27
- Re: Having build issues on Mac OS X, Adam Fedor, 2013/11/27
- Message not available
- Re: Having build issues on Mac OS X, Kevin Ingwersen, 2013/11/27
- Re: Having build issues on Mac OS X, Adam Fedor, 2013/11/27
- Re: Having build issues on Mac OS X, Kevin Ingwersen, 2013/11/27
- Re: Having build issues on Mac OS X, Ivan Vučica, 2013/11/27
- Re: Having build issues on Mac OS X,
Kevin Ingwersen <=
- Re: Having build issues on Mac OS X, Kevin Ingwersen, 2013/11/27
- Re: Having build issues on Mac OS X, Kevin Ingwersen, 2013/11/27
- Re: Having build issues on Mac OS X, Kevin Ingwersen, 2013/11/28
- Re: Having build issues on Mac OS X, David Chisnall, 2013/11/28
- Re: Having build issues on Mac OS X, Kevin Ingwersen, 2013/11/28