LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 10-27-2017, 04:37 AM   #1
Tonystark
LQ Newbie
 
Registered: Jul 2013
Posts: 21

Rep: Reputation: Disabled
fatal error: ui_about.h: No such file or directory


I am trying to compile the following github package

https://github.com/openalpr/plate_tagger

Which makes use of **qt**. The output of cmake is as follows,

-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tonystark124/plate_tagger-master/build

When I try make, I am met with the following error :

[ 1%] Built target openalpr_tagger_automoc
Scanning dependencies of target openalpr_tagger
[ 3%] Building CXX object CMakeFiles/openalpr_tagger.dir/about.cpp.o
/home/tonystark124/plate_tagger-master/about.cpp:4:22: fatal error: ui_about.h: No such file or directory
#include "ui_about.h"

I raised an issue in the git, as no one else seems to have met this obstacle. Upon further search, I am inclined to conclude that am missing some installation/part of **qt5**. [Link1](http://lists.subsurface-divelog.org/...er/016390.html) and [Link2](https://stackoverflow.com/questions/...f-qt5-in-cmake) suggest that this is to do with the **qt5** and **cmake** too, but am not able to pinpoint the actual issue.

How do I solve this issue?

**UPDATE**

Have included my CMakeLists.txt

cmake_minimum_required(VERSION 2.8.11)

project(openalpr_tagger)

SET(VERSION_MAJOR 1)
SET(VERSION_MINOR 0)
SET(VERSION_PATCH 0)

SET (VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
add_definitions(-DVERSION_MAJOR=${VERSION_MAJOR})
add_definitions(-DVERSION_MINOR=${VERSION_MINOR})
add_definitions(-DVERSION_PATCH=${VERSION_PATCH})
add_definitions(-DVERSION_STRING="${VERSION}")


add_definitions(-DTARGET="openalpr_tagger")
add_definitions(-DTARGET_STRING="openalpr_tagger")
add_definitions(-DTARGET_UPPER_STRING="OPENALPR_TAGGER")
add_definitions(-DTARGET_HUMAN_STRING="openalpr_tagger")

ADD_DEFINITIONS(
-std=c++11
)


# Find the QtWidgets library
find_package(Qt5Widgets)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)

# Tell CMake to create the helloworld executable
add_executable(openalpr_tagger
about.cpp
directoryloader.cpp
dot.cpp
imagefile.cpp
imageview.cpp
imageviewerbase.cpp
imageviewerobserver.cpp
imageviewerplateselector.cpp
main.cpp
mainwindow.cpp
options.cpp
platefile.cpp
plateselector.cpp
polygons.cpp
selection.cpp
settings.cpp
squeezedlabel.cpp
threadedimageloader.cpp
utils.cpp
qprogressindicator/QProgressIndicator.cpp

extra/yaml-cpp/src/nodeevents.cpp
extra/yaml-cpp/src/exceptions.cpp
extra/yaml-cpp/src/nodebuilder.cpp
extra/yaml-cpp/src/contrib/graphbuilder.cpp
extra/yaml-cpp/src/contrib/graphbuilderadapter.cpp
extra/yaml-cpp/src/exp.cpp
extra/yaml-cpp/src/binary.cpp
extra/yaml-cpp/src/null.cpp
extra/yaml-cpp/src/parser.cpp
extra/yaml-cpp/src/convert.cpp
extra/yaml-cpp/src/scantag.cpp
extra/yaml-cpp/src/singledocparser.cpp
extra/yaml-cpp/src/scanner.cpp
extra/yaml-cpp/src/directives.cpp
extra/yaml-cpp/src/emitterstate.cpp
extra/yaml-cpp/src/node_data.cpp
extra/yaml-cpp/src/scanscalar.cpp
extra/yaml-cpp/src/scantoken.cpp
extra/yaml-cpp/src/node.cpp
extra/yaml-cpp/src/regex_yaml.cpp
extra/yaml-cpp/src/emitfromevents.cpp
extra/yaml-cpp/src/emitterutils.cpp
extra/yaml-cpp/src/tag.cpp
extra/yaml-cpp/src/memory.cpp
extra/yaml-cpp/src/simplekey.cpp
extra/yaml-cpp/src/ostream_wrapper.cpp
extra/yaml-cpp/src/emit.cpp
extra/yaml-cpp/src/emitter.cpp
extra/yaml-cpp/src/stream.cpp
extra/yaml-cpp/src/parse.cpp

)

include_directories(
${CMAKE_SOURCE_DIR}/qprogressindicator
${CMAKE_SOURCE_DIR}/extra/yaml-cpp/include/
)

# Use the Widgets module from Qt 5.
target_link_libraries(openalpr_tagger Qt5::Widgets)
 
Old 10-27-2017, 05:00 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,068

Rep: Reputation: 7128Reputation: 7128Reputation: 7128Reputation: 7128Reputation: 7128Reputation: 7128Reputation: 7128Reputation: 7128Reputation: 7128Reputation: 7128Reputation: 7128
duplicate of https://www.linuxquestions.org/quest...ry-4175616479/
and
https://askubuntu.com/questions/9697...e-or-directory

Last edited by pan64; 10-27-2017 at 05:04 AM.
 
Old 10-27-2017, 05:03 AM   #3
Tonystark
LQ Newbie
 
Registered: Jul 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
Smile Posted by me

That's my post again. I thought this thread wasn't posted, due to my network issues. Could you please let me know if you have a way to solve this?
 
Old 10-27-2017, 08:59 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,838
Blog Entries: 13

Rep: Reputation: 4893Reputation: 4893Reputation: 4893Reputation: 4893Reputation: 4893Reputation: 4893Reputation: 4893Reputation: 4893Reputation: 4893Reputation: 4893Reputation: 4893
I'll close this one and leave the other post open. It is fine here or in the other forum.

Meanwhile that one has no replies as yet, so it will show as a zero reply thread, awaiting possible answers.

I do not know the answer to your problem, but my experiences with Qt are that you sometimes need to configure, and reconfigure the toolkit a lot to get it to compile.
 
  


Closed Thread

Tags
cmake, make, ubuntu 14.04


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] fatal error: ui_about.h: No such file or directory Tonystark Linux - General 10 10-27-2017 01:16 PM
[SOLVED] fatal error: X11/Xlib.h: No such file or directory joakim12 Linux From Scratch 12 07-22-2017 09:56 AM
dsr/linkcache . fatal error : list.h No such file or directory monasayed Linux - Newbie 15 10-12-2015 03:50 PM
fatal error: goo/gmem.h: No such file or directory; but file does exist!! lgoldma Linux - General 3 03-07-2013 05:00 PM
gcc fatal error :no such file or directory question NoobLion Programming 2 08-26-2011 01:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration