I am using LabVIEW 7.1 for Linux.
I ran the command to create the makefile:
lvmkmf labviewcode.c
It creates the makefile.
When I type in the command make in order to make the necessary .lsb files, it gives me the following error:
make: *** No rule to make target 'labviewcode.c.o', needed by 'labviewcode.c.lsb'. Stop.
What extra commands do I need to add within the makefile in order to have it create an object file?
This is my CIN source file:
#include "extcode.h"
#include <stdio.h>
#include <stdlib.h>
#include <dlfcn.h>
MgErr CINRun(float64 *Numeric);
MgErr CINRun(float64 *Numeric)
{
/* Insert code here */
void *libhandle;
int (*edge_func)();
libhandle = dlopen("/home/elliot/opencv_code/edge_code/edge.so", RTLD_LAZY);
edge_func = dlsym(libhandle, "main");
(*edge_func)();
dlclose(libhandle);
return noErr;
}
I copied the main body of the code from a C function that wraps around a Linux shared library (.so - Linux equivalent for Windows DLL) file. This C function does compile and execute correctly. I decided to try out the CIN call from Labview 7.1 for Linux since I was running into problems calling the .so file from LabVIEW which is strange since I was able to call it from a C function.