Note that there are some explanatory texts on larger screens.

plurals
  1. POCompiling error: "cannot find -lQtCore4"
    text
    copied!<p>Yesterday I downloaded the <a href="http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.3.tar.gz" rel="nofollow">Qt4 Opensource library for linux</a>. After running </p> <pre><code>./configure ./make ./make install </code></pre> <p>And inserting this into my .bashrc-file:</p> <pre><code>PATH=/usr/local/TrollTech/Qt-4.7.3/bin:$PATH export PATH </code></pre> <p>After this, I ran cmake in order to produce a Makefile for me. CMakeLists.txt:</p> <pre><code>project(VTKToVTFx) cmake_minimum_required(VERSION 2.6) find_package(VTK REQUIRED) find_package(Qt4 REQUIRED) include(${VTK_USE_FILE}) include(${QT_USE_FILE}) SET(VTK_TO_VTFX_FORMS main.ui) QT4_WRAP_UI(VTK_TO_VTFX_FORMS_UIC ${VTK_TO_VTFX_FORMS}) SET(MOC_HEADERS VTKToVTFx.h) qt4_wrap_cpp(MOC_OUTFILES ${MOC_HEADERS}) SET(CPP_SOURCES VTKToVTFx.cpp VTKPatch.cpp VTKFile.cpp VTKData.cpp VTKDataHolder.cpp ) add_executable(VTKToVTFx ${CPP_SOURCES} ${VTK_TO_VTFX_FORMS_UIC} ${MOC_OUTFILES}) # Adds folders for Visual Studio solution explorer (and for Xcode explorer) source_group( "Generated" FILES ${MOC_FILES_CPP} ${VTK_TO_VTFX_FORMS_UIC} ${QRC_FILES_CPP} ${MOC_OUTFILES}) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) target_link_libraries(VTKToVTFx vtkHybrid) target_link_libraries(VTKToVTFx QtCore4) target_link_libraries(VTKToVTFx QtGUI4) </code></pre> <p>This CMakeLists.txt works perfectly well on Windows, but when I try to compile the output on my installation of Ubuntu, this error occurs:</p> <pre><code>/usr/bin/ld: cannot find -lQtCore4 /usr/bin/ld: cannot find -lQtGUI4 </code></pre> <p>Anyone who could point me to my problem here?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload