The Powder Toy
Download
Forum
Browse
Wiki
FAQ
Play online
Register
Login
Discussions
/
Development Assistance
/
mac compiling error
«
1
»
mac compiling error
awesome
11th Nov 2011
Member
0
Permalink
i am on a mac and i installed the SDL and lua properly but when tried to compile by typing "make powder-x",
i got an error. i think it is the source code. i never modded it
src/air.c:7:19: error: fftw3.h: No such file or directory
src/air.c:165: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/air.c:166: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘plan_gravmap’
src/air.c: In function ‘grav_fft_init’:
src/air.c:174: error: ‘fftwf_plan’ undeclared (first use in this function)
src/air.c:174: error: (Each undeclared identifier is reported only once
src/air.c:174: error: for each function it appears in.)
src/air.c:174: error: expected ‘;’ before ‘plan_ptgravx’
src/air.c:180: error: ‘th_ptgravxt’ undeclared (first use in this function)
src/air.c:180: error: ‘fftwf_complex’ undeclared (first use in this function)
src/air.c:181: error: ‘th_ptgravyt’ undeclared (first use in this function)
src/air.c:183: error: ‘th_gravmapbigt’ undeclared (first use in this function)
src/air.c:186: error: ‘th_gravxbigt’ undeclared (first use in this function)
src/air.c:187: error: ‘th_gravybigt’ undeclared (first use in this function)
src/air.c:190: error: ‘plan_ptgravx’ undeclared (first use in this function)
src/air.c:190: error: ‘FFTW_MEASURE’ undeclared (first use in this function)
src/air.c:191: error: ‘plan_ptgravy’ undeclared (first use in this function)
src/air.c:192: error: ‘plan_gravmap’ undeclared (first use in this function)
src/air.c:193: error: ‘plan_gravx_inverse’ undeclared (first use in this function)
src/air.c:194: error: ‘plan_gravy_inverse’ undeclared (first use in this function)
src/air.c: In function ‘grav_fft_cleanup’:
src/air.c:229: error: ‘th_ptgravxt’ undeclared (first use in this function)
src/air.c:230: error: ‘th_ptgravyt’ undeclared (first use in this function)
src/air.c:232: error: ‘th_gravmapbigt’ undeclared (first use in this function)
src/air.c:235: error: ‘th_gravxbigt’ undeclared (first use in this function)
src/air.c:236: error: ‘th_gravybigt’ undeclared (first use in this function)
src/air.c:237: error: ‘plan_gravmap’ undeclared (first use in this function)
src/air.c:238: error: ‘plan_gravx_inverse’ undeclared (first use in this function)
src/air.c:239: error: ‘plan_gravy_inverse’ undeclared (first use in this function)
src/air.c: In function ‘update_grav’:
src/air.c:274: error: ‘plan_gravmap’ undeclared (first use in this function)
src/air.c:278: error: ‘th_gravmapbigt’ undeclared (first use in this function)
src/air.c:280: error: ‘th_ptgravxt’ undeclared (first use in this function)
src/air.c:284: error: ‘th_gravxbigt’ undeclared (first use in this function)
src/air.c:286: error: ‘th_ptgravyt’ undeclared (first use in this function)
src/air.c:290: error: ‘th_gravybigt’ undeclared (first use in this function)
src/air.c:294: error: ‘plan_gravx_inverse’ undeclared (first use in this function)
src/air.c:295: error: ‘plan_gravy_inverse’ undeclared (first use in this function)
make: *** [powder-x] Error 1
__________________:FacialTurd-The-Powder-Toy-aade1ff___________
abczyx123987
11th Nov 2011
Member
0
Permalink
Remove -DGRAVFFT from the makefile. (it should be under CFLAGS, so just delete it)
awesome
11th Nov 2011
Member
0
Permalink
now i get
ld: framework not found SDL
collect2: ld returned 1 exit status
make: *** [powder-x] Error 1
devast8a
11th Nov 2011
Former Staff
0
Permalink
@awesome
(View Post)
Install SDL.
«
1
»