CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

wmake problems

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2017, 20:55
Question wmake problems
  #1
New Member
 
Carlos Lopez
Join Date: Feb 2017
Location: Mexico
Posts: 4
Rep Power: 9
CarlosLopez is on a distinguished road
Hi,

I'm using OpenFoamV1612 in Ubuntu 16.04.2 LTS and I'm trying to modify the simpleFoam solver. I copied the simpleFoam solver in my user applications folder, then, in the Make folder, I modified the files script, what I did, was to change FOAM_APPBIN to FOAM_USER_APPBIN and the name of the solver by newFoam.C. The options file, I left it the same. Finally, I changed the name of the simpleFoam. C to newFoam.C. That's all. When I write in the terminal "wclean" and "wmake" I obtained this:

calovi@calovi:~/OpenFOAM/calovi-v1612+/applications/newFoam$ wclean
calovi@calovi:~/OpenFOAM/calovi-v1612+/applications/newFoam$ wmake
Making dependency list for source file newFoam.C
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1612 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/home/calovi/OpenFOAM/OpenFOAM-v1612+/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/calovi/OpenFOAM/OpenFOAM-v1612+/src/TurbulenceModels/incompressible/lnInclude -I/home/calovi/OpenFOAM/OpenFOAM-v1612+/src/transportModels -I/home/calovi/OpenFOAM/OpenFOAM-v1612+/src/transportModels/incompressible/singlePhaseTransportModel -I/home/calovi/OpenFOAM/OpenFOAM-v1612+/src/finiteVolume/lnInclude -I/home/calovi/OpenFOAM/OpenFOAM-v1612+/src/meshTools/lnInclude -I/home/calovi/OpenFOAM/OpenFOAM-v1612+/src/sampling/lnInclude -IlnInclude -I. -I/home/calovi/OpenFOAM/OpenFOAM-v1612+/src/OpenFOAM/lnInclude -I/home/calovi/OpenFOAM/OpenFOAM-v1612+/src/OSspecific/POSIX/lnInclude -fPIC -c newFoam.C -o Make/linux64GccDPInt32Opt/newFoam.o
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1612 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/home/calovi/OpenFOAM/OpenFOAM-v1612+/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/calovi/OpenFOAM/OpenFOAM-v1612+/src/TurbulenceModels/incompressible/lnInclude -I/home/calovi/OpenFOAM/OpenFOAM-v1612+/src/transportModels -I/home/calovi/OpenFOAM/OpenFOAM-v1612+/src/transportModels/incompressible/singlePhaseTransportModel -I/home/calovi/OpenFOAM/OpenFOAM-v1612+/src/finiteVolume/lnInclude -I/home/calovi/OpenFOAM/OpenFOAM-v1612+/src/meshTools/lnInclude -I/home/calovi/OpenFOAM/OpenFOAM-v1612+/src/sampling/lnInclude -IlnInclude -I. -I/home/calovi/OpenFOAM/OpenFOAM-v1612+/src/OpenFOAM/lnInclude -I/home/calovi/OpenFOAM/OpenFOAM-v1612+/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/newFoam.o -L/home/calovi/OpenFOAM/OpenFOAM-v1612+/platforms/linux64GccDPInt32Opt/lib \
-lturbulenceModels -lincompressibleTurbulenceModels -lincompressibleTransportModels -lfiniteVolume -lmeshTools -lfvOptions -lsampling -lOpenFOAM -ldl \
-lm -o /home/calovi/OpenFOAM/calovi-v1612+/platforms/linux64GccDPInt32Opt/bin/newFoam
Make/linux64GccDPInt32Opt/newFoam.o: En la función `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::storeOldTimes() const':
newFoam.C.text._ZNK4Foam14GeometricFieldIdNS_12f vPatchFieldENS_7volMeshEE13storeOldTimesEv[_ZNK4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7v olMeshEE13storeOldTimesEv]+0x62): referencia a `Foam::string::endsWith(std::__cxx11::basic_string <char, std::char_traits<char>, std::allocator<char> > const&) const' sin definir
Make/linux64GccDPInt32Opt/newFoam.o: En la función `Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::storeOldTimes() const':
newFoam.C.text._ZNK4Foam14GeometricFieldINS_6Vec torIdEENS_12fvPatchFieldENS_7volMeshEE13storeOldTi mesEv[_ZNK4Foam14GeometricFieldINS_6VectorIdEENS_12fvPat chFieldENS_7volMeshEE13storeOldTimesEv]+0x62): referencia a `Foam::string::endsWith(std::__cxx11::basic_string <char, std::char_traits<char>, std::allocator<char> > const&) const' sin definir
Make/linux64GccDPInt32Opt/newFoam.o: En la función `Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>::storeOldTimes() const':
newFoam.C.text._ZNK4Foam14GeometricFieldIdNS_13f vsPatchFieldENS_11surfaceMeshEE13storeOldTimesEv[_ZNK4Foam14GeometricFieldIdNS_13fvsPatchFieldENS_1 1surfaceMeshEE13storeOldTimesEv]+0x62): referencia a `Foam::string::endsWith(std::__cxx11::basic_string <char, std::char_traits<char>, std::allocator<char> > const&) const' sin definir
Make/linux64GccDPInt32Opt/newFoam.o: En la función `Foam::GeometricField<Foam::Vector<double>, Foam::fvsPatchField, Foam::surfaceMesh>::storeOldTimes() const':
newFoam.C.text._ZNK4Foam14GeometricFieldINS_6Vec torIdEENS_13fvsPatchFieldENS_11surfaceMeshEE13stor eOldTimesEv[_ZNK4Foam14GeometricFieldINS_6VectorIdEENS_13fvsPa tchFieldENS_11surfaceMeshEE13storeOldTimesEv]+0x62): referencia a `Foam::string::endsWith(std::__cxx11::basic_string <char, std::char_traits<char>, std::allocator<char> > const&) const' sin definir
Make/linux64GccDPInt32Opt/newFoam.o.data.rel.ro._ZTVN4Foam8OPstreamE[_ZTVN4Foam8OPstreamE]+0x80): referencia a `Foam::UOPstream::writeQuoted(std::__cxx11::basic_ string<char, std::char_traits<char>, std::allocator<char> > const&, bool)' sin definir
collect2: error: ld returned 1 exit status
/home/calovi/OpenFOAM/OpenFOAM-v1612+/wmake/makefiles/general:140: fallo en las instrucciones para el objetivo '/home/calovi/OpenFOAM/calovi-v1612+/platforms/linux64GccDPInt32Opt/bin/newFoam'
make: *** [/home/calovi/OpenFOAM/calovi-v1612+/platforms/linux64GccDPInt32Opt/bin/newFoam] Error 1

I don't understand what is the problem, hope you guys can help me!

Thanks in advance,

Best regards
Carlos

CarlosLopez is offline   Reply With Quote

Old   May 22, 2017, 22:20
Default
  #2
New Member
 
Carlos Lopez
Join Date: Feb 2017
Location: Mexico
Posts: 4
Rep Power: 9
CarlosLopez is on a distinguished road
Hi again. For those who may present the same problem that I had. What it worked for me was uninstall OpenFoam and install it again, I do not why but it worked. Best regards.
CarlosLopez is offline   Reply With Quote

Old   March 12, 2019, 10:02
Default Hi, Carlos
  #3
New Member
 
Ningyi Li
Join Date: Jun 2018
Location: Germany
Posts: 6
Rep Power: 8
lny200912 is on a distinguished road
Hi, Carlos,
did you solve this problem? I meet the same problem now. Could you help me explain this, if you have solved it. Thank you in advance.
Best regards,
Ning
lny200912 is offline   Reply With Quote

Old   March 12, 2019, 11:35
Default
  #4
New Member
 
Carlos Lopez
Join Date: Feb 2017
Location: Mexico
Posts: 4
Rep Power: 9
CarlosLopez is on a distinguished road
Hi Ningyi,



What I did is what I recommended in my own reply, but I have to mention that is an old treat and I forgot that I posted this. Since then, I had not had any similar problem related to building my own applications. Maybe, if you posted here your problem I can give you some help.



Best regards,
Carlos
CarlosLopez is offline   Reply With Quote

Old   March 12, 2019, 12:18
Default Hi
  #5
New Member
 
Ningyi Li
Join Date: Jun 2018
Location: Germany
Posts: 6
Rep Power: 8
lny200912 is on a distinguished road
Hi, Carlos
Here are my errors when I compiled my programmings. I do not understand the meaning of this error. So I hope you could help me to explain it and give me some advice to solve it. Thank you again.



-lm -o /home/kit/itt/qy5011/OpenFOAM/qy5011-v1706/platforms/linux64GccDPInt32Opt/bin/REDIM_FOAM_premixed
Make/linux64GccDPInt32Opt/my_reactingFoam.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::storeOldTimes() const':
my_reactingFoam.C.text._ZNK4Foam14GeometricField IdNS_12fvPatchFieldENS_7volMeshEE13storeOldTimesEv[_ZNK4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7v olMeshEE13storeOldTimesEv]+0x5e): undefined reference to `Foam::string::endsWith(std::__cxx11::basic_string <char, std::char_traits<char>, std::allocator<char> > const&) const'
Make/linux64GccDPInt32Opt/my_reactingFoam.o: In function `Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>::storeOldTimes() const':
my_reactingFoam.C.text._ZNK4Foam14GeometricField IdNS_13fvsPatchFieldENS_11surfaceMeshEE13storeOldT imesEv[_ZNK4Foam14GeometricFieldIdNS_13fvsPatchFieldENS_1 1surfaceMeshEE13storeOldTimesEv]+0x5e): undefined reference to `Foam::string::endsWith(std::__cxx11::basic_string <char, std::char_traits<char>, std::allocator<char> > const&) const'
Make/linux64GccDPInt32Opt/my_reactingFoam.o: In function `Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::storeOldTimes() const':
my_reactingFoam.C.text._ZNK4Foam14GeometricField INS_6VectorIdEENS_12fvPatchFieldENS_7volMeshEE13st oreOldTimesEv[_ZNK4Foam14GeometricFieldINS_6VectorIdEENS_12fvPat chFieldENS_7volMeshEE13storeOldTimesEv]+0x5e): undefined reference to `Foam::string::endsWith(std::__cxx11::basic_string <char, std::char_traits<char>, std::allocator<char> > const&) const'
Make/linux64GccDPInt32Opt/my_reactingFoam.o: In function `Foam::GeometricField<Foam::Vector<double>, Foam::fvsPatchField, Foam::surfaceMesh>::storeOldTimes() const':
my_reactingFoam.C.text._ZNK4Foam14GeometricField INS_6VectorIdEENS_13fvsPatchFieldENS_11surfaceMesh EE13storeOldTimesEv[_ZNK4Foam14GeometricFieldINS_6VectorIdEENS_13fvsPa tchFieldENS_11surfaceMeshEE13storeOldTimesEv]+0x5e): undefined reference to `Foam::string::endsWith(std::__cxx11::basic_string <char, std::char_traits<char>, std::allocator<char> > const&) const'
Make/linux64GccDPInt32Opt/my_reactingFoam.o.data.rel.ro._ZTVN4Foam8OPstrea mE[_ZTVN4Foam8OPstreamE]+0x80): undefined reference to `Foam::UOPstream::writeQuoted(std::__cxx11::basic_ string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'
collect2: error: ld returned 1 exit status



Best regards,
Ningyi
lny200912 is offline   Reply With Quote

Reply

Tags
wmake problems


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
wmake problem: "sudo: wmake: command not found" Luiggito OpenFOAM Programming & Development 1 January 11, 2015 14:48
OpenFoam 1.6-ext - error ./Allwmake in /src preibie OpenFOAM Installation 14 June 14, 2011 06:57
Beginners problems nadine OpenFOAM Running, Solving & CFD 4 July 2, 2009 14:06
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 05:41
Problems while wmake evgenii OpenFOAM Pre-Processing 3 November 24, 2005 10:24


All times are GMT -4. The time now is 06:50.