CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Problems with compiling in qtcreator (https://www.cfd-online.com/Forums/openfoam-programming-development/132675-problems-compiling-qtcreator.html)

jd210 April 4, 2014 04:48

Problems with compiling in qtcreator
 
Hello Foamers,

After spending some time trying to work with OpenFOAM in eclipse I gave up because it has too many problems. Qt creator has less problems but I can't get it to compile. I used the tutorial on the OpenFOAM wiki.

During compilation it seems unable to find the shared libraries, they are listed in the Qt creator include file as "/opt/openfoam222/platforms/linux64GccDPOpt/libfourPhaseMixture \" etc and in the make folder options file as " -lfourPhaseMixture \" etc. The console output is as follows: /usr/bin/ld: cannot find -lfourPhaseMixture


I've tried changing the options file but it continues to say things can't be found even though the locations of the things it can't find are in the includes file and options file.


Can anyone think of what I've done wrong?

p, li { white-space: pre-wrap; }/usr/bin/ld: cannot find -lfourPhaseMixture

jd210 April 7, 2014 04:40

I've fixed most of these issues by replacing the -l on the options file to the directory the shared libraries are located in. However it seems the shared library "OpenFOAM.so" is included by default in the make process. Does anyone know where this is defined so I can change it?


All times are GMT -4. The time now is 11:42.