Re: Installing XJig
Re: Installing XJig
- Subject: Re: Installing XJig
- From: Luke Mackenzie <email@hidden>
- Date: Thu, 6 Jan 2011 18:03:14 +0000
Thanks!
This got me a bit further but it then fails at:
/usr/local/include/ppmcmap.h:110: error: expected declaration before ‘}’ token
make: *** [ppm_image.o] Error 1
This file has:
#ifdef __cplusplus
extern "C" {
#endif
Which according to http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html is the correct way to do things if you are using a c++ compiler which the makefile does seem to be using with its calls like:
c++ -m32 -DUSE_MIT_SHM -c -o objects.o objects.C
I don't really want to go changing loads of dependencies on my system as this will probably cause problems later.
Any further ideas? I'm a PHP developer so not too familiar with compilers. Maybe I should be putting it in xcode and renaming the files to .cpp?
Thanks
Luke.
On 6 Jan 2011, at 15:53, Louis Zulli wrote:
> Hi,
>
> I'd simply edit that file to become
>
>> #include <ppm.h>
>> #include <ppmcmap.h>
>
>
> and then make clean and make.
>
>
>
> On Jan 6, 2011, at 9:47 AM, Luke Mackenzie wrote:
>
>> I'm trying to install XJig on Snow Leopard 10.6.5.
>>
>> https://sourceforge.net/projects/xjig/
>>
>> I've installed dependencies (libjeg, netpbm) using Homebrew but am now getting this error when running 'make'
>>
>>
>> deepthoughtPro:xjig-2.5-2$ make
>> c++ -m32 -DUSE_MIT_SHM -c -o ppm_image.o ppm_image.C
>> ppm_image.C:7: error: expected declaration before ‘}’ token
>> make: *** [ppm_image.o] Error 1
>>
>> The section in the file it is complaining about is:
>>
>> extern "C" {
>> #include <ppm.h>
>> #include <ppmcmap.h>
>> }
>>
>> I've run 'make depend' and also tried 'make clean' then repeating.
>>
>> Can anyone shed any light on this?
>>
>> thanks!
>>
>> Luke. _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> X11-users mailing list (email@hidden)
>>
>> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden