LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unknown linux platform error

I'm creating a DLL on a Red Hat flavor of linux.  However when i'm running into the error "Unknown Linux platform" from platdefines.h.  I don't know why its throwing this error or idea of how to fix this problem.  If anyone could help it will be greatly appriciated.
0 Kudos
Message 1 of 5
(3,469 Views)

Hello Mess88,

 

Thank you for contacting National Instruments!  After reading through your post I have a few questions for you to continue troubleshooting. 

 

First of all, what version of Red Hat are you using?  There are specific versions that you need to use in order to use National Instruments products. 

 

That leads to my second question.  What National Instruments products are you using?  Are you using LabVIEW or any of our hardware?

 

When you get the chance please post a reply with the answers to these questions and I will do my best to assist you towards a solution.  Have a great day! 

 

Thanks!
Bob H
Applications Engineer
National Instruments
0 Kudos
Message 2 of 5
(3,446 Views)
I am using Labview 8.2 on Red Hat Enterprise 3.1, and no I am not using any of NI's daq devices for this project.
0 Kudos
Message 3 of 5
(3,440 Views)

Hello Mess88,

 

I noticed in your first post you mentioned that you are trying to create a DLL.  I would assume that you are actually trying to create .so file as Linux is unable to handle DLLs.  I noticed that LabVIEW will still have a default name of My DLL but it will actually be a .so file.

 

After looking through the platdefines.h file I was able to determine the section that yields this error:

  #if defined(i386)
        #define ProcessorType    kX86
        #define NI_BIG_ENDIAN        0
    #elif defined(__alpha)
        #define ProcessorType    kDECAlpha
        #define NI_BIG_ENDIAN        0
    #elif defined(powerpc)
        #define ProcessorType    kPPC
        #define NI_BIG_ENDIAN        1
    #elif defined(sparc)
        #define ProcessorType    kSparc
        #define NI_BIG_ENDIAN        1
    #elif defined(mips)
        #define ProcessorType    kMIPS
        #define NI_BIG_ENDIAN        1
    #elif defined(arm) || defined(__arm__)
        #define ProcessorType    kARM
        #define NI_BIG_ENDIAN        0
    #elif defined(__x86_64__)
        #define ProcessorType    kX64
        #define NI_BIG_ENDIAN        0
    #else
        #error "Unknown Linux platform"
    #endif

 

So it looks like it checks to see the type of processor that you have and if it is not one of the types listed in the "if else" statements then it will eventually get to the "Unknown Linux Platform" error.  Can you verify what processor you are using?

 

Also, is this the first time that you have tried to implement a solution like this before?  Did it ever work in the past or would you get this error no matter what you tried to do.  Please just let me know if you have any further questions!  I hope this helps!

 

 

Thanks!
Bob H
Applications Engineer
National Instruments
0 Kudos
Message 4 of 5
(3,420 Views)

Hallo,

I'm wondering if the problem was solved or not. 

I have the same problem (the same error "Unknown Linux platform").

I'm runing Labview 8.2 on  Red Hat Enterprise Linux 4 with  Dual Core Opteron 885 processors.

 

Thanks!

H.Shbaita

0 Kudos
Message 5 of 5
(3,286 Views)