almindor / harbour-jTox

Sailfish OS native tox implementation for Jolla
GNU General Public License v3.0
12 stars 4 forks source link

Compilation error #76

Open zipotron opened 2 years ago

zipotron commented 2 years ago

Hello, I am having this compilation error: `In file included from src/friend.cpp:1: src/friend.h:6:10: fatal error: tox/tox.h: No such file or directory

include <tox/tox.h>

` I get even when I copy manually the file to "extra" directory. I am not sure what I am doing wrong. Could you guide me please? Thanks

almindor commented 2 years ago

Did you follow the readme? You need to follow all the steps to get the dependencies compiled and populated both on the build machine and in the extra folder.

zipotron commented 2 years ago

Well, I tried again, and I couldn't manage... As I read in the doc, I execute "populate" in my linux, and then "build" inside the VM, all OK. And then copy the "support/4.4.0.58-aarch64" content to "extra" folder. This "In order to select the right library architecture you need to define JTOX_ARCH" don't really know what you mean... Also "You need to also whitelist JTOX_ARCH" have no idea ho to do it... And I am missing the compilation command in the doc, but I assume that shall we use "mb2 -t 4.4.0.58-aarch64 build" And then I get the compilation error.

almindor commented 2 years ago

If you used the populate script you don't need to copy anything over it should just work. NOTE that I only tested this with the SDK/UI I didn't try building jTox itself from commandline.

JTOX_ARCH is an env var that's configured per "kit" in the SDK so that it knows which version of the libraries to use (which folder). The whitelisting is just something needed to enable the env var to "go through" to the build engine in the SDK.

This is used in the .pro file here so that the path to the tox libraries and headers is found correctly.

If you're building from cmdline instead of the IDE you should be able to make it work by specifying JTOX_ARCH for the architecture you're building for in the build step. e.g. JTOX_ARCH=aarch64 <build-cmd-for-aarch64>. Make sure to run qmake with it too!

zipotron commented 2 years ago

Well, I tried the simple way, execute ./populate and build in SDK/UI and have the same error: Desk-0_001

almindor commented 2 years ago

Did you set the env var and the whitelist for the kit you're using?