Você não está autenticado.

Anúncio

Arch Linux Brasil está precisando de sua colaboração para realizar o pagamento do domínio e do host, para colaborar, realizar doações via paypal.

Para mais informações: contato at archlinux-br.org.

#1 23/06/2013 17:05:49

almoura
Membro
Registrado: 22/06/2013
Mensagens: 1

problema com OpenCV + Movid

Estou tentando compilar o Movid, mas todas as tentativas resultam neste tipo de erro:

g++ -o src/modules/moCalibrationModule.o -c -Icontrib -Icontrib/cJSON -Icontrib/libevent-1.4.13-stable -Icontrib/WOscLib-00.09 -Icontrib/ptypes-2.1.1/include -Icontrib/XgetOpt -Icontrib/bitmap_munkres -I/usr/include/opencv src/modules/moCalibrationModule.cpp

src/modules/moCalibrationModule.cpp: In member function 'virtual void moCalibrationModule::guiBuild()':
src/modules/moCalibrationModule.cpp:197:51: error: 'cvSubdiv2DEdgeOrg' was not declared in this scope
    org_pt = cvSubdiv2DEdgeOrg((CvSubdiv2DEdge)edge);
                                                                                          ^

Tentei instalar o OpenCV através do pacman e manualmente utilizando make && make install. O Movid usa o scons para compilar e o pkg-config retorna corretamente o caminho das bibliotecas, mas não consigo compila-lo

Arquivo de configuração do scons

#################################################################
# Command line options to controll build
#################################################################
AddOption( '--clean-contrib',
  help='force rebuilding of contrib libraries',
  dest='clean-contrib', action="store_true"
)


#################################################################
# Source files list for each target we are building
#################################################################

#source files for the daemon ####################################
daemon_src = [
  'src/movid.cpp',
  'contrib/cJSON/cJSON.c'
]

#source files for libmovid, core+modules ########################
libmovid_src = [
  'src/moDaemon.cpp',
  'src/moDataGenericContainer.cpp',
  'src/moDataStream.cpp',
  'src/moFactory.cpp',
  'src/moLog.cpp',
  'src/moModule.cpp',
  'src/moOSC.cpp',
  'src/moPipeline.cpp',
  'src/moProperty.cpp',
  'src/moThread.cpp',
  'src/moUtils.cpp',
  'src/modules/moAmplifyModule.cpp',
  'src/modules/moBackgroundSubtractModule.cpp',
  'src/modules/moBinaryMaskModule.cpp',
  'src/modules/moBlobFinderModule.cpp',
  'src/modules/moCalibrationModule.cpp',
  'src/modules/moCameraModule.cpp',
  'src/modules/moCannyModule.cpp',
  'src/modules/moCombineModule.cpp',
  'src/modules/moDilateModule.cpp',
  'src/modules/moDistanceTransformModule.cpp',
  'src/modules/moDumpModule.cpp',
  'src/modules/moErodeModule.cpp',
  'src/modules/moEqualizeHistModule.cpp',
  'src/modules/moFiducialFinderModule.cpp',
  'src/modules/moFingerTipFinderModule.cpp',
  'src/modules/moGreedyBlobTrackerModule.cpp',
  'src/modules/moMunkresBlobTrackerModule.cpp',
  'src/modules/moAbstractBlobTrackerModule.cpp',
  'src/modules/moGrayScaleModule.cpp',
  'src/modules/moHighpassModule.cpp',
  'src/modules/moHsvModule.cpp',
  'src/modules/moHuObjectFinderModule.cpp',
  'src/modules/moImageDisplayModule.cpp',
  'src/modules/moImageFilterModule.cpp',
  'src/modules/moImageModule.cpp',
  'src/modules/moInvertModule.cpp',
  'src/modules/moJustifyModule.cpp',
  'src/modules/moMaskModule.cpp',
  'src/modules/moMirrorImageModule.cpp',
  'src/modules/moPeakFinderModule.cpp',
  'src/modules/moRoiModule.cpp',
  'src/modules/moSmoothModule.cpp',
  'src/modules/moThresholdModule.cpp',
  'src/modules/moTuioModule.cpp',
  'src/modules/moTuio2Module.cpp',
  'src/modules/moVideoModule.cpp',
  'src/modules/moYCrCbThresholdModule.cpp',
  'contrib/bitmap_munkres/match.c'
]

#################################################################
# Check some arguments in command line
#################################################################
mode = ARGUMENTS.get('mode', 'normal')
if mode not in ('normal', 'debug'):
  print 'Invalid mode <%s>, fallback to normal' % mode
  mode = 'normal'
print 'Doing compilation in %s mode' % mode

#################################################################
# Build contrib and configure env for linking against deps
#################################################################
env = SConscript('contrib/SConscript')

#################################################################
# Platform specific settings for build env and OpenCV flags
#################################################################
import sys, os

# WIN32 #########################################################
if sys.platform == 'win32':
  #on widnows daemon also needs XgetOpt source file
  daemon_src.append('contrib/XgetOpt/XgetOpt.cxx')

  #OpenCV, must config manually on windowze :/
  opencv_dir = ARGUMENTS.get('OPENCV_DIR', 'C:\OpenCV2.2')
  env.Append(
    LIBS = ['opencv_legacy220', 'opencv_imgproc220', 'opencv_core220', 'opencv_highgui220'],
    LIBPATH = [opencv_dir+'\lib'],
    CPPPATH = [opencv_dir+'\include\opencv', opencv_dir+'\include'])

  #gotta set up msvc compiler and linker for list of options see:
  #see http://msdn.microsoft.com/en-us/library/fwkeyyhe(v=VS.71).aspx
  #and http://msdn.microsoft.com/en-us/library/y0zzbyt4(VS.80).aspx
  env.Append(
    CPPDEFINES = ['WIN32'],
    CCFLAGS = ['/O2', '/Oi', '/GL', '/EHsc', '/MD'], #mainly optimization
    LIBS = ['ws2_32.lib', 'user32.lib'], #ws_32.lib is needed buy libevent
    LINKFLAGS = ['/LTCG', '/OPT:REF', '/OPT:ICF']) #mainly optimization



# UNIX #######################################################
else:
  #add OpenCV flags and libs
  env.ParseConfig('pkg-config --cflags --libs opencv') #gotta love unix :P
  #set the compiler if set in ENV, used e.g. to force 32bit by setting to g++ -m32
  if os.environ.get('CC'): env.Replace(CC=os.environ['CC'])
  if os.environ.get('CXX'): env.Replace(CXX=os.environ['CXX'])

  if mode == 'debug':
    env.Append(CCFLAGS = ['-ggdb', '-O0'])




#################################################################
# Build Rules for libmovid and movid daemon
#################################################################
libmovid = env.Library('libmovid', libmovid_src )
env.Program('movid', daemon_src + [libmovid])

Movid: http://movid.org/

Última edição por almoura (23/06/2013 17:08:31)

Offline

#2 16/09/2013 18:38:18

sistematico
Admin
De: Campo Grande / MS
Registrado: 13/06/2008
Mensagens: 1.022
Website

Re: problema com OpenCV + Movid

Cole a linha de comando e o link do arquivo.
Como usou o pacman? Não achei pacotes para o Arch Linux do Movid.

Tentou fazer o que ele sugere no site:
   1. Download Movid
   2. Launch ./movid (or double click on it)
   3. Open your webbrowser on http://127.0.0.1:7500/

?

Última edição por sistematico (16/09/2013 18:39:28)

Offline

Rodapé do site