Changeset 94 in pacpusframework for branches/2.0-beta1/src


Ignore:
Timestamp:
May 22, 2013, 3:25:24 PM (12 years ago)
Author:
DHERBOMEZ Gérald
Message:

fix windows

Location:
branches/2.0-beta1/src
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0-beta1/src/FileLib/CMakeLists.txt

    r89 r94  
    4444target_link_libraries(
    4545    ${PROJECT_NAME}
     46        PacpusLib
    4647)
    4748
  • branches/2.0-beta1/src/PacpusLib/CMakeLists.txt

    r89 r94  
    9595    ${QT_LIBRARIES}
    9696    ${PACPUS_DEPENDENCIES_LIB}
    97     FileLib
     97    #FileLib
    9898)
    9999
  • branches/2.0-beta1/src/PacpusSensor/src/main.cpp

    r89 r94  
    1313#include <QThread>
    1414#ifdef WIN32
     15#       define NOMINMAX
    1516#   include <windows.h>
    1617#endif
  • branches/2.0-beta1/src/TestComponents/CMakeLists.txt

    r92 r94  
    1111# ========================================
    1212add_subdirectory(Lidar)
    13 add_subdirectory(Video)
     13#add_subdirectory(Video)
    1414add_subdirectory(CPT)
    1515add_subdirectory(CPT/NMEA0183)
    1616add_subdirectory(test)
    17 add_subdirectory(ShMem)
     17#add_subdirectory(ShMem)
  • branches/2.0-beta1/src/TestComponents/CPT/NMEA0183/CMakeLists.txt

    r89 r94  
    66#link_directories (${QT_LIBRARIES})
    77add_definitions(${QT_DEFINITIONS}
    8 -fPIC)
     8-fPIC
     9-DNOMINMAX)
    910
    1011include_directories(include)
  • branches/2.0-beta1/src/TestComponents/Lidar/CMakeLists.txt

    r90 r94  
    1515  ${QT_DEFINITIONS}
    1616  -DLIDAR_EXPORTS
     17  -DALASCAXT_EXPORTS
     18  -DDBTPLYALASCA_EXPORTS
    1719)
    1820
     
    100102    ${QT_LIBRARIES}
    101103    ${PACPUS_DEPENDENCIES_LIB}
     104        road_time
    102105)
    103106
  • branches/2.0-beta1/src/TestComponents/Video/CMakeLists.txt

    r90 r94  
    1515  ${QT_DEFINITIONS}
    1616  -DVIDEO_EXPORTS
     17  -DDBTPLYVISION_EXPORTS
    1718)
    1819
  • branches/2.0-beta1/src/TestComponents/Video/sensor/Camera1394.cpp

    r89 r94  
    7979  imageMutex_ = new QMutex;
    8080
    81   if (displaying_)
     81/*  if (displaying_)
    8282  {
    8383    viewer_ = new ImageViewer;
     
    8686    viewer_->setWindowTitle(componentName);
    8787    connect(this, SIGNAL( newImage(QImage*) ), viewer_, SLOT( display(QImage*) ) );
    88   }
     88  }*/
    8989
    9090  return ComponentBase::CONFIGURED_OK;
     
    282282    // send image in shared memory
    283283    if (firstTime) {
    284       shMem = new ShMem("IMAGE", qimage_->numBytes());
     284//      shMem = new ShMem("IMAGE", qimage_->numBytes());
    285285      firstTime = false;
    286286    }
    287287    assert(shMem);
    288     shMem->write(qimage_->bits(), qimage_->numBytes());
     288//    shMem->write(qimage_->bits(), qimage_->numBytes());
    289289
    290290#ifdef MEASURE_TIME
  • branches/2.0-beta1/src/TestComponents/test/CMakeLists.txt

    r90 r94  
    102102    ${QT_LIBRARIES}
    103103    ${OpenCV_LIBRARIES}
     104        road_time
    104105)
    105106
  • branches/2.0-beta1/src/TestComponents/test/testComponent1.cpp

    r89 r94  
    9797
    9898        LOG_INFO("Send data " << i << " time " << get_timestamp());
    99         fprintf(fp,"%u %lld \n",i, get_timestamp());
     99//        fprintf(fp,"%u %lld \n",i, get_timestamp());
    100100        usleep(waitTime);
    101101        i++;
  • branches/2.0-beta1/src/TestComponents/test/testComponent1.h

    r89 r94  
    55@date created 2010-06-03 16:13
    66@author Julien Moras
    7 @author Sergio Rodriguez
    87@version $Id: $
    98*/
     
    2221#include "Pacpus/structure/genericStructures.h"
    2322
    24 namespace pacpus {
    25 
    26 typedef unsigned long long timestamp_t;
    27 
    28 static timestamp_t get_timestamp ()
    29 {
    30   struct timeval now;
    31   gettimeofday (&now, NULL);
    32   return  now.tv_usec + (timestamp_t)now.tv_sec * 1000000;
    33 }
    34 
    35 //class PacpusImage : public PacpusTimeStampedData {
    36 //public :
    37 //    QImage image;
    38 //};
    39 
     23namespace pacpus {                                                                             
    4024
    4125class TestComponent2;
  • branches/2.0-beta1/src/TestComponents/test/testComponent2.cpp

    r89 r94  
    9595//        }
    9696//    }
    97         fprintf(fp,"%u %lld \n",i++, get_timestamp());
     97//        fprintf(fp,"%u %lld \n",i++, get_timestamp());
    9898
    9999    setState(MONITOR_OK);
Note: See TracChangeset for help on using the changeset viewer.