[Moto G 2015 Original Android Development] firefoxjds:
kk Im home, now I can do this properly

Thankyou for offering to help, any help is appreciated and helpful. The file that it is looking for is msm_ion.h. I have found this file in my kernel folder in include/linux/msm_ion.h How do I direct the make file to look for it there. I think I just figured it out. In the contenst of msm_ion.h it gives the path to #include "../../drivers/staging/android/ion/msm/msm_ion.h" Im gonna try adding that to the make file. One the terminal tells me where the make file is again. The is a similar issue with the motorola camera. Hopefully I can fix it the same way. If this doesnt work hopefully you might see a solution. Oh msm_ion.h is the file for the camera. I still have to find the other one.

OK the file that I need and cant find in my own kernel but can find in hardware/qcommsm8960.

Here is the Log:

compilation terminated.

build/core/binary.mk:706: recipe for target 'out/target/product/osprey/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlay.o' failed

make: *** [out/target/product/osprey/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlay.o] Error 1

In file included from hardware/qcom/display-caf/msm8916/liboverlay/overlayUtils.cpp:36:0:

hardware/qcom/display-caf/msm8916/liboverlay/overlayUtils.h:39:31: fatal error: linux/msm_rotator.h: No such file or directory

#include <linux/msm_rotator.h>

^

compilation terminated.

build/core/binary.mk:706: recipe for target 'out/target/product/osprey/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlayUtils.o' failed

make: *** [out/target/product/osprey/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlayUtils.o] Error 1

In file included from hardware/qcom/display-caf/msm8916/liboverlay/overlayMdp.cpp:20:0:

hardware/qcom/display-caf/msm8916/liboverlay/overlayUtils.h:39:31: fatal error: linux/msm_rotator.h: No such file or directory

#include <linux/msm_rotator.h>

^

compilation terminated.

build/core/binary.mk:706: recipe for target 'out/target/product/osprey/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlayMdp.o' failed

make: *** [out/target/product/osprey/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlayMdp.o] Error 1

When I look at the contens of rotator.h this one does not give me a useable path to add to the make file. I really appreciate any thought on the matter .

---------- Post added at 08:52 PM ---------- Previous post was at 08:43 PM ----------

If my kernel doesnt have the file can i just remove the " #include <linux/msm_rotator.h>", from hardware/qcom/display-caf/msm8916/liboverlay/overlayUtils.h:39:31? I hope it works. Just dont want to break something.

---------- Post added at 08:56 PM ---------- Previous post was at 08:52 PM ----------

/*

* Copyright (c) 2011-2014, The Linux Foundation. All rights reserved.

*

* Redistribution and use in source and binary forms, with or without

* modification, are permitted provided that the following conditions are

* met:

* * Redistributions of source code must retain the above copyright

* notice, this list of conditions and the following disclaimer.

* * Redistributions in binary form must reproduce the above

* copyright notice, this list of conditions and the following

* disclaimer in the documentation and/or other materials provided

* with the distribution.

* * Neither the name of The Linux Foundation nor the names of its

* contributors may be used to endorse or promote products derived

* from this software without specific prior written permission.

*

* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED

* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF

* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT

* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS

* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR

* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF

* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR

* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,

* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE

* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN

* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

*/

#ifndef OVERLAY_UTILS_H

#define OVERLAY_UTILS_H

#include <cutils/log.h> // ALOGE, etc

#include <errno.h>

#include <fcntl.h> // open, O_RDWR, etc

#include <hardware/hardware.h>

#include <hardware/gralloc.h> // buffer_handle_t

#include <linux/msm_mdp.h> // flags

#include <linux/msm_rotator.h>

#include <stdio.h>

#include <stdlib.h>

#include <string.h>

#include <sys/stat.h>

#include <sys/types.h>

#include <utils/Log.h>

#include "gralloc_priv.h" //for interlace