[CMake] LNK1104 Cannot open 'lv.simplon.lib'

dlwlfjd csw5321 at hotmail.com
Thu Jun 6 12:45:19 EDT 2013


Sorry about that.
Here is the CMakeList.txt:
------------------------------------------------------------------------
CMAKE_MINIMUM_REQUIRED (VERSION 2.6)

PROJECT (MyQyProject CXX C)


SET(CMAKE_CXX_COMPILER "M:/Program Files (x86)/Microsoft Visual Studio
10.0/VC/bin/cl.exe")


#set QL libraries

# eg - SET(QT_USE_QTOPENGL TRUE)


#find required packages for the project
FIND_PACKAGE(Qt4 REQUIRED)

FIND_PACKAGE(PCL 1.6 REQUIRED)

#FIND_PACKAGE(OpenGL REQUIRED)

find_package(VTK REQUIRED)

INCLUDE(${VTK_USE_FILE})



#Include folders 

INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR})

include_directories(${PCL_INCLUDE_DIRS}) 

#This will addQT header location

INCLUDE(${QT_USE_FILE})



#Here we add our source files

SET(myprj_src
	ui/main.cpp
        ui/mainwindow.cpp
   ui/ui_mainwindow.h)



#Define QT resource file.this file may define icons,images.

SET(myprj_rccs
    resources/test1_rcs.qrc
   )




#QT headers needed to be processed with QT MOH compiler

SET(myprj_moh_hdrs
	ui/mainwindow.h
)



#QT UI files needed to be processed

SET(myprj_uis
	ui/mainwindow.ui)

SET(Camera_src
               ui/camera/camera.cpp
               ui/camera/lv.simplon.class.cpp
               ui/camera/osdep.cpp
               ui/camera/paint.cpp
    )

SET(Camera_hdr
               ui/camera/lv.simplon.class.h
               ui/camera/lv.simplon.defs.h
               ui/camera/lv.simplon.display.h
               ui/camera/lv.simplon.dlg.h
               ui/camera/lv.simplon.enums.h
               ui/camera/lv.simplon.h
               ui/camera/lv.simplon.imgproc.h
               ui/camera/lv.simplon.ini.h
               ui/camera/lv.simplon.status.h
               ui/camera/osdep.h
               ui/camera/paint.h
	       ui/camera/camera.h
    )

SET(Camera_rsc
	      ui/camera/icons.qrc
    )

SET(SIMPLONLIB lv.simplon lib)
SET(SIMPLONIMGPROC lv.simplon.imgproc lib)



#Generate CPP files from moh headers

QT4_WRAP_CPP(myprj_moh_srcs ${myprj_moh_hdrs})



#Generate resource header files 

QT4_ADD_RESOURCES(myprj_rccs_srcs ${myprj_rccs} ${Camera_rsc})



#Generate headers using QT UI files

QT4_WRAP_UI(myprj_ui_hdrs ${myprj_uis})



link_directories(${PCL_LIBRARY_DIRS})

add_definitions(${PCL_DEFINITIONS}) 


ADD_EXECUTABLE(test1_UI ${myprj_src} ${myprj_ui_hdrs} ${myprj_moh_srcs}
${myprj_rccs_srcs} ${Camera_src} ${Camera_hdr}) # ${dl3dview_moc_srcs}
${rinzo_plugin_rccs_srcs})
# set_target_properties(test1_UI PROPERTIES LINK_FLAGS "-mwindows")


TARGET_LINK_LIBRARIES(test1_UI ${QT_LIBRARIES} ${PCL_LIBRARIES}
${VTK_LIBRARIES} ${SIMPLONLIB} ${SIMPLONIMGPROC} QVTK)

----------------------------------------------------------------------------
Let me know if the txt still doesnt appear.

Thank you



--
View this message in context: http://cmake.3232098.n2.nabble.com/LNK1104-Cannot-open-lv-simplon-lib-tp7584634p7584655.html
Sent from the CMake mailing list archive at Nabble.com.


More information about the CMake mailing list