[Ipe-discuss] Trouble compiling ipe on OSX 10.5 (Leopard)

Zach Teitler zteitler at selu.edu
Mon Jan 28 21:48:22 CET 2008


Thanks, that fixed it up! Ipe now compiles and runs happily.

Zach


On Jan 28, 2008, at 3:18 AM, Norbert Zeh wrote:

> The problem is the section in include/ipebase.h that defines uint.   
> It normally starts with #ifdef WIN32, making it visible only on  
> windows, presumably because Linux (and FreeBSD?) already has is  
> definitions of these types in standard include files.  MacOS, as  
> Windows, doesn't.  The fix is easy:  Change line 46 of ipebase.h from
>
> #ifdef WIN32
>
> to
>
> #if defined(WIN32) || defined(__APPLE__)
>
> and things will compile just fine.  (I believe this was the only  
> tweak necessary to make it compile on Leopard.)
>
> Cheers,
> Norbert
>
> On 27-Jan-08, at 11:06 PM, Zach Teitler wrote:
>
>> Hello,
>>
>> I have been having trouble compiling IPE on Mac OS X 10.5  
>> ("Leopard").
>>
>> I can run a copy of ipe6.0pre28 that I compiled back in OS X 10.4,  
>> but it crashes sometimes, has trouble running pdflatex, etc. So I  
>> decided to rebuild it in OS X 10.5. I get the same error trying to  
>> compile pre28 or pre30. I was wondering if there's anyone here who  
>> has successfully built ipe in in OS X 10.5 and can share some tips?
>>
>> Here is the error.
>>
>> zteitler% gcc --version
>> i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)
>> Copyright (C) 2005 Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions.   
>> There is NO
>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR  
>> PURPOSE.
>>
>> zteitler% make
>> cd ipelib/ && make -f Makefile
>> c++ -c -pipe -Os -Wall -W -fPIC -DQT_NO_CAST_FROM_ASCII -I/usr/ 
>> local/Qt4.3/mkspecs/macx-g++ -I. -I../include -I. -o ../../build/ 
>> obj/ipelib/ipebase.o ipebase.cpp
>> ipebase.cpp: In member function ‘IpeString IpeLex::NextToken()’:
>> ipebase.cpp:310: error: ‘uint’ was not declared in this scope
>> ipebase.cpp:310: error: expected `;' before ‘mark’
>> ipebase.cpp:313: error: ‘mark’ was not declared in this scope
>> make[1]: *** [../../build/obj/ipelib/ipebase.o] Error 1
>> make: *** [sub-ipelib-make_default-ordered] Error 2
>>
>>
>> Any help will be appreciated. Thanks.
>>
>> Zach
>>
>> _______________________________________________
>> Ipe-discuss mailing list
>> Ipe-discuss at cs.uu.nl
>> https://mail.cs.uu.nl/mailman/listinfo/ipe-discuss
>




More information about the Ipe-discuss mailing list