Solved Compile error when building project (process: "/usr/bin/make" -j8)
-
Hi,
Do you have that static library available in the project sources ?
-
@SGaist I do have the header file ftd2xx.h. However, I do not have the compiled static file libftd2xx.a. On my Windows machine, I think (and I might be wrong) the library is being compiled at run time because I just checked there and only the header file is available in the project sources.
-
In that case you should first get the library for your OS.
-
@SGaist I installed the libftd2xx.a static library and copied it into usr/lib as well as usr/local/lib and I am getting the same error. Am I missing something?
-
The PRE_TARGETDEPS points within your sources.
One thing you can do is comment out this line.
It's usually used to ensure that if a static library is changed, then it will trigger a rebuild of the target. In your can you do not seem to build libftd2xx so you should be safe from that point of vue.
-
@SGaist I commented out the line you mentioned, and now I get a bunch more errors relating to that same library. Seems to be originating from line above the one I removed:
/usr/bin/ld: skipping incompatible /usr/local/lib/libftd2xx.so when searching for -lftd2xx
/usr/bin/ld: skipping incompatible /usr/local/lib/libftd2xx.a when searching for -lftd2xx
/usr/bin/ld: cannot find -lftd2xx
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
make: *** [Makefile:626: SS] Error 1
12:14:39: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project SS-QT (kit: Desktop Qt 5.12.10 GCC 64bit)
When executing step "Make"
12:14:39: Elapsed time: 01:03. -
You are missing the OpenGL development package for your distribution.
You likely have a 32bit build of ftd2xx.
-
@SGaist Awesome, you were right. Now with the 64bit ftd2xx and OpenGL package installed, it builds and runs. I guess I'll leave that last line commented out until I figure out the problem with it.
Thanks for your help, highly appreciated.
-
@Adham said in Compile error when building project (process: "/usr/bin/make" -j8):
I guess I'll leave that last line commented out until I figure out the problem with it.
As I wrote before, this line expects to find the static libftd2xx library file within the project sources.
-
@SGaist I heard you, I tried throwing it in there but I got the same error. Anyways I should be good for now. I'll come back if I can't figure it out later on lol. Thanks again.