c-for-go icon indicating copy to clipboard operation
c-for-go copied to clipboard

Cannot include file if its in <> brackets

Open conner-replogle opened this issue 4 months ago • 0 comments

--- 
GENERATOR: 
  PackageName: vorbis
  PackageDescription: "Package vorbis provides Go bindings for OggVorbis implementation by the Xiph.Org Foundation"
  PackageLicense: "THE AUTOGENERATED LICENSE. ALL THE RIGHTS ARE RESERVED BY ROBOTS."
  PkgConfigOpts: []
  Includes: ["sample_comm.h"]

PARSER: 
  IncludePaths: [
    "./include/",
    "./include/rkaiq/",
    "./include/rkaiq/uAPI2/",
    "./include/rkaiq/common/",
    "./include/rkaiq/xcore/",
    "./include/rkaiq/algos/",
    "./include/rkaiq/iq_parser/",
    "./include/rkaiq/iq_parser_v2/",
    "./include/rkaiq/smartIr/"
  ]
  Arch: "arm"
  SourcesPaths: ["sample_comm.h"]
[ERR] include/sample_comm_isp.h:28:10: include file not found: <rk_aiq_user_api2_camgroup.h>
include/sample_comm_isp.h:29:10: include file not found: <rk_aiq_user_api2_imgproc.h>
include/sample_comm_isp.h:30:10: include file not found: <rk_aiq_user_api2_sysctl.h>

I have confirmed that all 3 header files are in the include paths. I have tried using full paths for the include and passing the CFLAG and LDFLAGS through the generator

This works using normal raw CGO

/*
//Set CXX Compiler



#cgo CFLAGS: -I./include -I./include/rkaiq -I./include/rkaiq/uAPI2 -I./include/rkaiq/common -I./include/rkaiq/xcore -I./include/rkaiq/algos -I./include/rkaiq/iq_parser -I./include/rkaiq/iq_parser_v2 -I./include/rkaiq/smartIr
#cgo LDFLAGS: -L./lib -lrockchip_mpp -lrockit -lsample_comm -lrockiva -lrga -lrkaiq
#include "sample_comm.h"
*/

conner-replogle avatar Jun 21 '25 00:06 conner-replogle