New Particles Build Issue (Jan 8 Patch)

I noticed there was a 1/8 patch for the new particles. I downloaded the patch files and did as I always do:

  1. Run a CLEAN (scons clean) on the source code/output paths
  2. Remove all existing Blender source code
  3. Get latest code matching patch date – 1/8 in this case (tried 1/7 too!)
  4. Add new .h and .c file(s) from particle website in appropriate directory
  5. Apply patch file
  6. Build

The patch had all hunks applied successfully – no errors. This time there was an error with the file “convertblender.c” on line 2169. That file includes “BKE_particle.h”. I get the following error when I try to build:

In file included from source/blender/render/intern/source/convertblender.c:89:
source/blender/blenkernel/BKE_particle.h:102:7: warning: no newline at end of file
source/blender/render/intern/source/convertblender.c: In function ‘render_new_particle’:
source/blender/render/intern/source/convertblender.c:1503: warning: unused variable ‘vec’
source/blender/render/intern/source/convertblender.c:1503: warning: unused variable ‘ptime’
source/blender/render/intern/source/convertblender.c: In function ‘render_new_particle_system’:
source/blender/render/intern/source/convertblender.c:1699: warning: implicit declaration of function ‘vlakren_customdata_layer_num’
source/blender/render/intern/source/convertblender.c: At top level:
source/blender/render/intern/source/convertblender.c:2169: error: static declaration of ‘vlakren_customdata_layer_num’ follows non-static declaration
source/blender/render/intern/source/convertblender.c:1699: error: previous implicit declaration of ‘vlakren_customdata_layer_num’ was here
scons: *** [/tempmr/cvs-blender/build/linux2/source/blender/render/intern/source/convertblender.o] Error 1
scons: building terminated because of errors.

Am I doing something wrong or is there others experiencing this? Seems to me it’s something small, but I just wanted to know if others were getting that error before I start trying to figure out what’s going on on my own.

Many thanks to all in advance!

OK, that was relatively simple. I got it to compile. I didn’t necessarily do it the “right” way, but I just moved the declaration of the “vlakren_custom_data_layer” struct to the beginning of the file.

Another thing – for the 1/3 and 1/8 patches – neither of them will compile if GAME ENGINE support is enabled. Is that known?

Hmm… don’t know what’s the issue with game engine. I don’t think I have it disabled and for me everything compiles fine, but I use msvc projectfiles so it might be a makefile etc problem if you use some other build system.

Cool. It’s not an issue for me right now. But I do use SCONS on Linux, so that may be what it is. Thanks!