JuPedSim / jpseditor

Editor for the goemetry
Other
4 stars 6 forks source link

Cannot compile v0.8.8 on MacOs 10.14.4 #153

Closed chraibi closed 5 years ago

chraibi commented 5 years ago

In Gitlab by @schroedtert on May 17, 2019, 09:27 [origin]

When I tried to compile the newest version of JPSeditor, I got the following error:

cmake.out

-- The CXX compiler identification is AppleClang 10.0.1.10010046
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- System ........................................ Darwin (18.5.0, x86_64)
-- Generating  ................................... JPSeditor (0.8.7) -- Release
-- JPSeditor will be installed to /Applications
-- CMAKE_BINARY_DIR .............................. /Users/tobias/development/jupedsim/jpseditor/build-v0.8.8
-- CMAKE_SOURCE_DIR .............................. /Users/tobias/development/jupedsim/jpseditor
-- CMAKE_CURRENT_SOURCE_DIR ...................... /Users/tobias/development/jupedsim/jpseditor
-- CMAKE_RUNTIME_OUTPUT_DIRECTORY ................ /Users/tobias/development/jupedsim/jpseditor/build-v0.8.8/bin
-- EXECUTABLE_OUTPUT_PATH ........................ /Users/tobias/development/jupedsim/jpseditor/build-v0.8.8/bin
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Performing Test COMPILER_SUPPORTS_CXX0X
-- Performing Test COMPILER_SUPPORTS_CXX0X - Success
-- Checking for C++11 compiler ................... yes
-- Searching for Qt version ...................... 5
-- Found Qt version .............................. 5.12.3
-- Working with Qt5
-- Release flags ................................. -std=c++11  ,  -O3 -DNDEBUG
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/tobias/development/jupedsim/jpseditor/build-v0.8.8

make.out

Scanning dependencies of target JPSeditor_autogen
[  1%] Automatic MOC for target JPSeditor
[  1%] Built target JPSeditor_autogen
[  3%] Generating ui_goalwidget.h
[  5%] Generating qrc_resources.cpp
[  7%] Generating ui_mainwindow.h
[  9%] Generating ui_roomwidget.h
/Users/tobias/development/jupedsim/jpseditor/forms/roomwidget.ui: Warning: The name 'layoutWidget' (QWidget) is already in use, defaulting to 'layoutWidget1'.
/Users/tobias/development/jupedsim/jpseditor/forms/roomwidget.ui: Warning: The name 'layoutWidget' (QWidget) is already in use, defaulting to 'layoutWidget2'.
[ 11%] Generating ui_widgetlandmark.h
[ 12%] Generating ui_widgetsettings.h
[ 14%] Generating ui_settingdialog.h
[ 16%] Generating ui_inifilewidget.h
/Users/tobias/development/jupedsim/jpseditor/forms/inifilewidget.ui: Warning: The name 'layoutWidget' (QWidget) is already in use, defaulting to 'layoutWidget1'.
/Users/tobias/development/jupedsim/jpseditor/forms/inifilewidget.ui: Warning: The name 'layoutWidget' (QWidget) is already in use, defaulting to 'layoutWidget2'.
/Users/tobias/development/jupedsim/jpseditor/forms/inifilewidget.ui: Warning: The name 'layoutWidget' (QWidget) is already in use, defaulting to 'layoutWidget3'.
/Users/tobias/development/jupedsim/jpseditor/forms/inifilewidget.ui: Warning: The name 'layoutWidget' (QWidget) is already in use, defaulting to 'layoutWidget4'.
[ 18%] Generating ui_snappingoptions.h
[ 20%] Generating ui_sourcewidget.h
Scanning dependencies of target JPSeditor
[ 22%] Building CXX object CMakeFiles/JPSeditor.dir/JPSeditor_autogen/mocs_compilation.cpp.o
In file included from /Users/tobias/development/jupedsim/jpseditor/build-v0.8.8/JPSeditor_autogen/mocs_compilation.cpp:2:
/Users/tobias/development/jupedsim/jpseditor/build-v0.8.8/JPSeditor_autogen/M4YTXQ7V2H/moc_jpselementlistmodel.cpp:9:10: fatal error: '../../../../../../Documents/development/jupedsim/jpseditor/src/models/jpselementlistmodel.h' file not found
#include "../../../../../../Documents/development/jupedsim/jpseditor/src/models/jpselementlistmodel.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/JPSeditor.dir/JPSeditor_autogen/mocs_compilation.cpp.o] Error 1
make[1]: *** [CMakeFiles/JPSeditor.dir/all] Error 2
make: *** [all] Error 2
chraibi commented 5 years ago

In Gitlab by @sainho93 on May 17, 2019, 09:57

From the error message that jpeelementlistmodel.h isn't in folder "models", could you check your working copy if it's in the folder ?

chraibi commented 5 years ago

In Gitlab by @schroedtert on May 17, 2019, 10:14

It's in the folder

chraibi commented 5 years ago

In Gitlab by @schroedtert on May 17, 2019, 10:50

Tested it on a Linux Machine, everything worked

chraibi commented 5 years ago

In Gitlab by @schroedtert on May 23, 2019, 13:51

Solved: CMake and/or Qt can not deal with soft links ...

chraibi commented 5 years ago

In Gitlab by @schroedtert on May 23, 2019, 13:51

closed