compilation problem

Asked by Gayanindika on 2011-08-03

I installed 0.60.2 successfully but need to install 0.20.2 because of problems in xml files. But when I try to compile the below error appears. It did not happen in earlier time. Any suggestion please.


gayan@gayan-Prime-Series:~$ cd YADE20
gayan@gayan-Prime-Series:~/YADE20$ cd yade-0.20-2
gayan@gayan-Prime-Series:~/YADE20/yade-0.20-2$ ls
AUTHORS examples LICENSE scons.current-profile Yade.kdevelop
ChangeLog extra NEWS scons.profile-default
core gui pkg SConstruct yadeSCons.pyc
debian INSTALL py scripts yade.spec
doc lib SConscript VERSION
gayan@gayan-Prime-Series:~/YADE20/yade-0.20-2$ scons PREFIX=/home/gayan/YADE20
scons: Reading SConscript files ...
@@@ Using profile default (scons.profile-default) @@@
Yade version is `unknown', installed files will be suffixed with `-unknown'.
All intermediary files will be in `/home/gayan/YADE20/build-unknown'.
Checking whether c++ compiler "g++" works...yes
Checking for pthread_exit(NULL) in C library pthread... yes
Checking for boost::system::error_code(); /* non-essential */ in C++ library boost_system-mt... yes
Checking for boost::thread::thread() in C++ library boost_thread-mt... yes
Checking for boost::posix_time::time_duration::time_duration() in C++ library boost_date_time-mt... yes
Checking for boost::filesystem::path() in C++ library boost_filesystem-mt... yes
Checking for boost::iostreams::file_sink("") in C++ library boost_iostreams-mt... yes
Checking for boost::regex("") in C++ library boost_regex-mt... yes
Checking for try{} catch (const boost::archive::archive_exception& e) {} in C++ library boost_serialization-mt... yes
Checking for boost::program_options::options_description o in C++ library boost_program_options-mt... yes
Checking for C++ header file boost/foreach.hpp... yes
Checking for sqlite3_close(0L) in C++ library sqlite3... yes
Checking for glutGetModifiers() in C++ library glut... yes
Checking for gts_object_class() in C++ library gts... yes
Checking for qt-mt in /usr/share/qt3... no
Checking for qt-mt in /usr/lib/qt... no
Checking for qt-mt in /usr/lib/qt3... no
Checking for qt-mt in /usr/qt/3... no
Checking for qt-mt in /usr/lib/qt-3.3... no
Checking for log4cxx::Logger::getLogger("") in C++ library log4cxx... no

ERROR: Unable to compile with optional feature `log4cxx'.

If you are sure, remove it from features (scons features=featureOne,featureTwo for example) and build again.

Sorry for the length of message.
Do I have to install log4cxx again in the YADE20 folder?

Question information

English Edit question
Yade Edit question
No assignee Edit question
Last query:
Last reply:
Anton Gladky (gladky-anton) said : #1

If you do not know, why you need this log4cxx, just delete it from features.
Otherwise, install liblog4cxx10-dev


tranviet (tranviet2302) said : #2


Can you tell us which version of Linux you are using? As I know, you can install YADE 0.20 with older version of Linux. I use Kubuntu 8.04 or Kubuntu 9.04, or Kubuntu 9.10 to install old versions of YADE. The reason I think is because some required libraries for your version are not properly installed in the new version of Linux. You can also install the libraries manually by downloading and installing each missing library.

Good luck,

Gayanindika (wanasinghegi) said : #3

I tried to install log4cxx by the command sudo apt-get install liblog4cxx10-dev but it fails.

gayan@gayan-Prime-Series:~$ sudo apt-get install liblog4cxx10-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
liblog4cxx10-dev is already the newest version.
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.35-22 yade-0.60
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 331 not upgraded.

If I want to compile Yade without log4cxx, what is the command I should use?
(I use Ubuntu)

Anton Gladky (gladky-anton) said : #4

Just edit your scons.profile-default file. Remove from "features" log4cxx.


Can you help with this problem?

Provide an answer of your own, or ask Gayanindika for more information if necessary.

To post a message you must log in.