Help save net neutrality! Learn more.
Close

PNL on MacOsX 10.

Help
RobMar
2007-08-04
2013-04-16
  • RobMar

    RobMar - 2007-08-04

    Is it possible to install PNL in MacOsX 10.4.10 (centrino core duo)??

     
    • BrettC

      BrettC - 2007-08-18

      Not quite what you're asking, but on my Mac I use PNL on a VMWare-hosted Ubuntu VM, and it runs well (in fact, Ubuntu 7.04 enables paravirtualization, so it runs at bare-metal speeds).

       
    • Jason Briceno

      Jason Briceno - 2008-02-26

      It may be a bit late, but I was able to get the 1.0 release running on 10.4.11.

      I had the following issues, which were resolved:

      - Configure.gcc requires execution permissions

      - Install.sh requires execution permissions

      - Malloc.h not in expected location
         - ln /usr/include/malloc/malloc.h /usr/include/malloc.h

      - Missing library dependencies in makefile
         - https://sourceforge.net/tracker/index.php?func=detail&aid=1431838&group_id=96402&atid=614673

      - make check didn't work perfectly, although a lot of the tests worked fine.

      As a quick test, I was also able to compile and run:
        $PNL/c_pgmtk/examples/mixture_gaussian_bnet/Src/mixture_gaussian_bnet.cpp

       
      • Jason Briceno

        Jason Briceno - 2008-02-26

        I just tested the current CVS version, and it compiles with the same fixes. It also passes make check with flying colors.

        Booyah.

         
        • Jason Briceno

          Jason Briceno - 2008-03-10

          But, while compiling some test code, there appears to be something wrong with the new cxcore library. When trying to link to the static library, I get this error:

          Invoking: MacOS X C++ Linker
          g++ -L/usr/local/pnl_current/lib -o "TEST"  ./Cognitive/Test/Source/pnltest.o ./Cognitive/Test/Source/smiletest.o   -lcxcore -lhigh -lsmile -lsmilearn -lpnl
          /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
          _cvCloneSparseMat
          _cvCreateSparseMat
          _cvInitSparseMatIterator
          _cvPtrND
          _cvReleaseSparseMat
          _cvSetZero
          _cvClearND
          _cvCreateMat
          _cvGEMM
          _cvRandArr
          _cvReleaseMat
          _cvSVD
          _cvError
          collect2: ld returned 1 exit status
          make: *** [TEST] Error 1

          but, when I nm -g /usr/local/pnl_current/lib/libcxcore.a, all of those "Undefined symbols" appear to be exported. So, I'm not sure what the problem is...

           
          • Jason Briceno

            Jason Briceno - 2008-03-11

            OK, it works again. It had to do with link order (stupid one-pass linker).

            g++ ... -lcxcore -lhigh -lsmile -lsmilearn -lpnl
            does not work

            g++ ... -lhigh -lsmile -lsmilearn -lpnl -lcxcore
            does work

            Two days gone.
            JB

             

Log in to post a comment.