-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File not found error while building the project #1
Comments
Yes they are in my other project on GitHub (CoreLibrary). It's listed under
the build requirements in the readme for IP-Freely.
Best regards,
Duncan Crutchley
…On Thu, 18 Apr 2019, 10:15 Sleeba Paul, ***@***.***> wrote:
Would you mind helping with the following files which are not present in
the project but imported in the project?
DebugLog/DebugLogging.h
Serialization/SerializationIncludes.h
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADYRG46AIDUXT5YG5IABDK3PRA33PANCNFSM4HG3FA6Q>
.
|
Thanks for the reply. I'm finding a hard time setting up the third-party libraries you've mentioned. I'm on an I've installed I downloaded the I get Would you mind helping me with the setup (Pretty new to Qt dev)? |
Hi,
You need to build CoreLibrary as a static lib (.a) using the
CoreLibrary.pro project. Make sure you have the code for IP-Freely pulled
from the master (not the last tag) and look in the .pro file you'll see
what it expects and where it will be looking for things.
If you look at my CoreLibrary repo on GitHub I've recently started adding a
Wiki and it gives more details about getting CoreLibrary built. For example
there are example Qt mkspec .prf files. You'll need to edit these to have
paths to the dependencies based on where they are on your system. The wiki
explains where to install these in the Qt folder, close Qt Creator first so
it picks up the files on startup. After which these give you is easy access
to these dependencies in any future project by doing CONFIG += core_lib for
example which will make your project reference the mkspec core_lib.prf and
thus find CoreLibrary.a and its headers.
Make sure you adapt the .pro and .prf files to the contain paths for your
system. CoreLibrary.pro shouldn't need changing but you may need to tweak
IpFreely.pro's paths. I'm using Manjaro Linux and so all the dependencies
are installed through its package manager and so end up in /usr/lib and
/usr/include, hence my .prf files reference these locations and you'll need
to change the paths in these to match your locations.
Hope this helps.
Best regards,
Duncan Crutchley
…On Thu, 25 Apr 2019, 06:15 Sleeba Paul, ***@***.***> wrote:
Thanks for the reply. I'm finding a hard time setting up the third-party
libraries you've mentioned. I'm on an Ubuntu 18.04 machine with Qt 5.12.2.
I've installed boost, loki and cereal through apt-get and downloaded
SingleApplication repo to project folder, added the INCLUDEPATH, added
the singleapplication header and source files. I've compiled OpenCV from
source and linked the library as well.
I downloaded the CoreLibrary repo and included the path. Do I need to
compile the CoreLibrary?
I get undefined reference error to to core_lib, boost and
SingleApplication.
Would you mind helping me with the setup (Pretty new to Qt dev)?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADYRG47VTLA4UW5SDIJKMDLPSE46FANCNFSM4HG3FA6Q>
.
|
I've setup the
The |
Shouldn't do. I use this project file on various PCs (Windows and Linux)
without issue by just pulling from the current code in master from the
repo. Setting up prfs the first time then just building.
Have a look on your disk do those files exist?
I'm currently at work so if I have time I'll check things later.
Best regards,
Duncan Crutchley
…On Thu, 25 Apr 2019, 10:02 Sleeba Paul, ***@***.***> wrote:
I've setup the .prf files and copied the custom_mkspecs folder to my Qt
compiler folder under mkspecs. When I try to compile the CoreLibrary
project, I get the following linking error.
../Source/CsvGrid/CsvGridCell.cpp
../Source/CsvGrid/CsvGridCellDouble.cpp::2727::1010:: fatal error fatal error: : 'CsvGrid/CsvGridCellDouble.h' file not found'CsvGrid/CsvGridCell.h' file not found
#include "CsvGrid/CsvGridCell.h"
^~~~~~~~~~~~~~~~~~~~~~~
#include "CsvGrid/CsvGridCellDouble.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The .pro file needs any addition?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADYRG4YPU66DC6HMFMEPK2LPSFXQTANCNFSM4HG3FA6Q>
.
|
A couple of other things to check...
Make sure as per the Wiki (Requirements and Building section) for
CoreLibrary you disable shadow builds for the CoreLibrary project in Qt
(for Release, Debug and Profile builds - go to project settings when in Qt
Creator IDE).
Make sure you have the correct include path in "core_lib_settings.prf" and
it is installed in the correct place in Qt's install location, again as per
the CoreLibrary Wiki describes.
I've just tried a fresh pull from github and I can just build the project
straightaway (but I already have correct prf files installed in my Qt
folder already).
…On Thu, 25 Apr 2019 at 10:02, Sleeba Paul ***@***.***> wrote:
I've setup the .prf files and copied the custom_mkspecs folder to my Qt
compiler folder under mkspecs. When I try to compile the CoreLibrary
project, I get the following linking error.
../Source/CsvGrid/CsvGridCell.cpp
../Source/CsvGrid/CsvGridCellDouble.cpp::2727::1010:: fatal error fatal error: : 'CsvGrid/CsvGridCellDouble.h' file not found'CsvGrid/CsvGridCell.h' file not found
#include "CsvGrid/CsvGridCell.h"
^~~~~~~~~~~~~~~~~~~~~~~
#include "CsvGrid/CsvGridCellDouble.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The .pro file needs any addition?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADYRG4YPU66DC6HMFMEPK2LPSFXQTANCNFSM4HG3FA6Q>
.
--
Duncan Crutchley
duncan.crutchley@gmail.com
|
Thanks for your update. I did uncheck the shadow build, and copy
|
Yes a known issue with Qt on Linux sometimes. Happens to me too.
Go to the Qt install mkspecs folder find qconfig.pri open in text editor.
Add following lines and save, then reopen Qt Creator.
QMAKE_DEFAULT_INCDIRS=
QMAKE_CFLAGS_IFLAGS=
Clean and rebuild project once you've reopen Qt Creator after making the
above change.
Best regards,
Duncan Crutchley
…On Thu, 25 Apr 2019, 11:22 Sleeba Paul, ***@***.***> wrote:
Thanks for your update. I did uncheck the shadow build, and copy .prf
files to the features/unix folder and the linking issue is over. But I've
a new error which might not be related to project. But have you seen this
one before?
/usr/include/c++/7.3.0/cstdlib:75: error: 'stdlib.h' file not found
#include_next <stdlib.h>
^~~~~~~~~~
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADYRG45S5CIASPSYWI3AXOTPSGA7FANCNFSM4HG3FA6Q>
.
|
That seems not working. The same error popped again. I tried Tried this one too, not helping.
Added
Update 2/5/2019I've built the project with the following tweaks.
On I linked the static file to
|
Would you mind helping with the following files which are not present in the project but imported in the project?
DebugLog/DebugLogging.h
Serialization/SerializationIncludes.h
The text was updated successfully, but these errors were encountered: