[Galaxy S 4 i9505 Original Android Development] broodplank1337:
I will post the actuall errors when facing them, I really hope someone can help me with this. As I'm no expert or (real) programmer, I'm just dedicated to get this working.

This is what hardware/qcom/display says when I haven't modified it:

hardware/qcom/display/msm8960/libqdutils/mdp_version.cpp:33:27: fatal error: linux/msm_mdp.h: No such file or directory
compilation terminated.
make: *** [out/target/product/jfltexx/obj/SHARED_LIBRARIES/libqdutils_intermediates/mdp_version.o] Error 1
make: *** Waiting for unfinished jobs....
hardware/qcom/display/msm8960/libcopybit/copybit_c2d.cpp:34:28: fatal error: linux/msm_kgsl.h: No such file or directory
compilation terminated.
make: *** [out/target/product/jfltexx/obj/SHARED_LIBRARIES/copybit.msm8960_intermediates/copybit_c2d.o] Error 1

So I figured to just change the location of the includes, I just copy the (linux) include folder with (msm_kgsl and msm_ion) inside the display folders and compile again.

but then i get this:

In file included from bionic/libc/include/sys/types.h:37:0,
from bionic/libc/include/unistd.h:33,
from hardware/qcom/display/msm8960/libgralloc/gpu.cpp:19:
hardware/qcom/display/msm8960/libcopybit/linux/types.h:13:2: error: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" [-Werror=cpp]
In file included from bionic/libc/include/sys/types.h:37:0,
from bionic/libc/include/sys/time.h:32,
from bionic/libc/include/time.h:32,
from bionic/libc/include/pthread.h:31,
from hardware/qcom/display/msm8960/libgralloc/mapper.cpp:20:
hardware/qcom/display/msm8960/libcopybit/linux/types.h:13:2: error: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" [-Werror=cpp]
In file included from bionic/libc/include/sys/types.h:37:0,
from bionic/libc/include/sys/mman.h:32,
from hardware/qcom/display/msm8960/libgralloc/framebuffer.cpp:18:
hardware/qcom/display/msm8960/libcopybit/linux/types.h:13:2: error: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" [-Werror=cpp]
In file included from bionic/libc/include/sys/types.h:37:0,
from bionic/libc/include/unistd.h:33,
from hardware/qcom/display/msm8960/libgralloc/gralloc.cpp:18:
hardware/qcom/display/msm8960/libcopybit/linux/types.h:13:2: error: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" [-Werror=cpp]
In file included from bionic/libc/include/sys/types.h:37:0,
from bionic/libc/include/sys/mman.h:32,
from hardware/qcom/display/msm8960/libgralloc/ionalloc.cpp:32:
hardware/qcom/display/msm8960/libcopybit/linux/types.h:13:2: error: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" [-Werror=cpp]
hardware/qcom/display/msm8960/libgralloc/gpu.cpp: In constructor 'gralloc::gpu_context_t::gpu_context_t(const private_module_t*, gralloc::IAllocController*)':
hardware/qcom/display/msm8960/libgralloc/gpu.cpp:49:5: error: 'allocSize' was not declared in this scope
cc1plus: all warnings being treated as errors
make: *** [out/target/product/jfltexx/obj/SHARED_LIBRARIES/gralloc.msm8960_intermediates/gpu.o] Error 1
make: *** Waiting for unfinished jobs....
hardware/qcom/display/msm8960/libgralloc/mapper.cpp: In function 'int gralloc_perform(const gralloc_module_t*, int, ...)':
hardware/qcom/display/msm8960/libgralloc/mapper.cpp:344:14: error: 'GRALLOC_MODULE_PERFORM_UPDATE_BUFFER_GEOMETRY' was not declared in this scope
cc1plus: all warnings being treated as errors
make: *** [out/target/product/jfltexx/obj/SHARED_LIBRARIES/gralloc.msm8960_intermediates/mapper.o] Error 1
cc1plus: all warnings being treated as errors
make: *** [out/target/product/jfltexx/obj/SHARED_LIBRARIES/gralloc.msm8960_intermediates/gralloc.o] Error 1
cc1plus: all warnings being treated as errors
make: *** [out/target/product/jfltexx/obj/SHARED_LIBRARIES/libmemalloc_intermediates/ionalloc.o] Error 1
cc1plus: all warnings being treated as errors
make: *** [out/target/product/jfltexx/obj/SHARED_LIBRARIES/gralloc.msm8960_intermediates/framebuffer.o] Error 1

:/

Can anyone assist on this one? I fixed all other hardware folders but I cannot seem to fix this one.

Ill post more soon