Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1

    compilation problems on osx

    This is on a jive checked out yesterday. Any ideas?

    --dan



    Dan-Aronsons-Computer:~/projects/jive/src/pkg danaronson$ sudo gcc_select
    Password:
    Current default compiler:
    gcc version 4.0.0 20041026 (Apple Computer, Inc. build 4061)
    Dan-Aronsons-Computer:~/projects/jive/src/pkg danaronson$ make -f Makefile.osx
    cd SDL-1.2.11; make && make install
    /bin/sh ./libtool --mode=compile gcc -I/Users/danaronson/projects/jive//build/osx/include -I/Users/danaronson/projects/jive//build/osx/include/SDL -I/opt/local/include -g -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -faltivec -force_cpusubtype_ALL -fpascal-strings -c ./src/SDL.c -o build/SDL.lo
    gcc -I/Users/danaronson/projects/jive//build/osx/include -I/Users/danaronson/projects/jive//build/osx/include/SDL -I/opt/local/include -g -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -faltivec -force_cpusubtype_ALL -fpascal-strings -c ./src/SDL.c -fno-common -DPIC -o build/.libs/SDL.o
    cc1: error: unrecognized command line option "-fpascal-strings"
    make[1]: *** [build/SDL.lo] Error 1
    make: *** [sdl] Error 2

  2. #2
    Senior Member
    Join Date
    Jun 2005
    Location
    Switzerland
    Posts
    610
    Intel or PPC? At some point we got issues with 4.0 on PPC so switched to 3.3 (and never changed).

    On macIntel I am using gcc 4.0.1 (build 5363), i.e. newer version of XCode...

    Anything in the SDL forums? We're just compiling it, I don't think we changed anything in there.

    HTH

    Fred

  3. #3
    PPC, I'll try GCC 3 series... Can the rest of the stuff be compiled on 3? Or are you interested in getting it to work with 4 on PPC?

  4. #4
    Senior Member
    Join Date
    Jun 2005
    Location
    Switzerland
    Posts
    610
    On PPC, 10.4.9, using:
    Code:
    [fred@imac:~]$ gcc_select
    Current default compiler:
    gcc version 3.3 20030304 (Apple Computer, Inc. build 1819)
    The whole thing compiles fine.

    Supporting 4.0 on PPC is not a current project priority. We'll gladly accept patches however

    Fred

  5. #5
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,324
    As I'm encountering problems on OS X as well, here are my details (and bare in mind I've been a Mac user for three days :-)):

    OS X 10.4 Intel
    gcc 4.0.1
    Darwin Ports 1.4

    Did a clean checkout, installed the needed libraries (copy/pasted the command from the readme file). Run "make -f Makefile.osx" and got the following result:

    Code:
    test -z "/Users/mh/Documents//build/osx/include/SDL" || /Users/mh/Documents/workspace/Jive/SDL_image-1.2.5/install-sh -d "/Users/mh/Documents//build/osx/include/SDL"
     /usr/bin/install -c -m 644 'SDL_image.h' '/Users/mh/Documents//build/osx/include/SDL/SDL_image.h'
    cd SDL_ttf-2.0.8; SDL_CONFIG=/Users/mh/Documents//build/osx/bin/sdl-config ./configure --prefix=/Users/mh/Documents//build/osx
    checking build system type... i686-apple-darwin8.9.1
    checking host system type... i686-apple-darwin8.9.1
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... yes
    checking for style of include used by make... GNU
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables... 
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking dependency style of gcc... gcc3
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for egrep... grep -E
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... no
    checking for /usr/bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /usr/bin/nm -p
    checking whether ln -s works... yes
    checking how to recognise dependent libraries... pass_all
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking dependency style of g++... gcc3
    checking how to run the C++ preprocessor... g++ -E
    checking for g77... no
    checking for f77... no
    checking for xlf... no
    checking for frt... no
    checking for pgf77... no
    checking for fort77... no
    checking for fl32... no
    checking for af77... no
    checking for f90... no
    checking for xlf90... no
    checking for pgf90... no
    checking for epcf90... no
    checking for f95... no
    checking for fort... no
    checking for xlf95... no
    checking for ifc... no
    checking for efc... no
    checking for pgf95... no
    checking for lf95... no
    checking for gfortran... no
    checking whether we are using the GNU Fortran 77 compiler... no
    checking whether  accepts -g... no
    checking the maximum length of command line arguments... 196608
    checking command to parse /usr/bin/nm -p output from gcc object... ok
    checking for objdir... .libs
    checking for ar... ar
    checking for ranlib... ranlib
    checking for strip... strip
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fno-common
    checking if gcc PIC flag -fno-common works... yes
    checking if gcc static flag -static works... no
    checking if gcc supports -c -o file.o... yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... darwin8.9.1 dyld
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    configure: creating libtool
    appending configuration tag "CXX" to libtool
    checking for ld used by g++... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... no
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking for g++ option to produce PIC... -fno-common
    checking if g++ PIC flag -fno-common works... yes
    checking if g++ static flag -static works... no
    checking if g++ supports -c -o file.o... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... darwin8.9.1 dyld
    checking how to hardcode library paths into programs... immediate
    appending configuration tag "F77" to libtool
    checking whether make sets $(MAKE)... (cached) yes
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ANSI C... (cached) none needed
    checking dependency style of gcc... (cached) gcc3
    checking for a BSD-compatible install... /usr/bin/install -c
    checking for working alloca.h... yes
    checking for alloca... yes
    checking for freetype-config... no
    configure: error:
    *** Unable to find FreeType2 library (http://www.freetype.org/)
    
    make: *** [SDL_ttf-2.0.8/Makefile] Error 1
    What exactly is the script looking for? I do have a ~/Document/build/osx/include/freetype2 folder.
    Michael

    http://www.herger.net/slim-plugins - Spotty, MusicArtistInfo

  6. #6
    Senior Software Engineer - Logitech/Slim Devices
    Join Date
    Apr 2005
    Location
    Ipswich, UK
    Posts
    1,394
    Quote Originally Posted by mherger View Post
    As I'm encountering problems on OS X as well, here are my details (and bare in mind I've been a Mac user for three days :-))
    You should find a better description of the error in the SDL_ttf-2.0.8/config.log file. What's that say?

  7. #7
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,324
    What exactly are you looking for? I can't see anything freetype related besides that simple error message.
    Last edited by mherger; 2008-11-21 at 06:09.
    Michael

    http://www.herger.net/slim-plugins - Spotty, MusicArtistInfo

  8. #8
    Senior Software Engineer - Logitech/Slim Devices
    Join Date
    Apr 2005
    Location
    Ipswich, UK
    Posts
    1,394
    So it can't find the file freetype-config, this should have been installed in .../build/osx/bin earlier in the build. Can you find it?

    You could try to rebuild all the packages:
    make -f Makefile.osx clean
    make -f Makefile.osx

    I think freetype should be the first package built.

  9. #9
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,324
    Quote Originally Posted by rtitmuss View Post
    So it can't find the file freetype-config, this should have been installed in .../build/osx/bin earlier in the build. Can you find it?
    Yep, it's there.

    You could try to rebuild all the packages:
    make -f Makefile.osx clean
    make -f Makefile.osx

    I think freetype should be the first package built.
    I've even removed the Jive and build directories and started from scratch. No change.

    I don't have to run "sudo make", do I?
    Last edited by mherger; 2008-11-21 at 06:09.
    Michael

    http://www.herger.net/slim-plugins - Spotty, MusicArtistInfo

  10. #10
    Senior Member
    Join Date
    Jun 2005
    Location
    Switzerland
    Posts
    610
    Heh, on my system it gets freetype from /opt..., that is, from DarwinPorts not from the distribution. Oooops, the perils of ./configure nosing around to find stuff.

    I am fixing it so that we use our freetype. This should solve your issue Michael...

    Fred

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •