From: Francesco M. <f18...@ya...> - 2007-04-05 11:01:10
|
Hi , jbu...@if... ha scritto: > Hello Francesco, > >> To complete the movement of the component you'd just need to remove the >> CVS sources... I can do it for you if you say it's ok (i.e. you've >> already moved all source files and don't need the CVS repo anymore). > > ok, you can remove it. The svn sources are the newest one. done >> Last, I see wxCtb has a bakefile build system which is not however based >> on wxCode bakefiles... that's fine but I wonder how it can adapt to the >> many possible wxWidgets different configurations... using wxCode >> bakefiles probably would result in a smaller bakefile and a better build >> system :) > > Yes, because the ctb library is used in some embedded systems and other pc > applications without any wxWidget installation. It's possible to make a bakefile which builds a lib without anything wx-related and then add a target (e.g. a sample) which builds against that lib and wxWidgets... BTW I didn't know CTB could build also without wx given that its classes are named with the 'wx' prefix (AFAIR). > I want to make the bakefile >as simple as possible and my first trials with the wxCode based bakefiles >(one or more years ago) let me run in some trouble, I couldn't solve. probably they do not exist anymore :) >Also I want to build the library independently from some needed directory structs >(maybe it's possible, but I couldn't figure out it), so the user can build the >libs without a wxWidget or wxCode installation. that's possible too. You could just create an option USE_WXWIDGETS which would enable/disable the wx-specific portions. > If you can give me some hints for a better, wxCode conform bakefile, that also >create makefiles also for people without a wxWidget or wxCode installation, >that would be great :-) wxCode stuff is not required at all by wxCode components build system. However wxWidgets stuff is. >> Also I'm currently getting this: >> >> g++ -c -o release/wxctb_lib_timer.o -DNDEBUG -D_THREAD_SAFE -pthread >> -O0 -I../include -MTrelease/wxctb_lib_timer.o -MF`echo >> release/wxctb_lib_timer.o | sed -e 's,\.o$,.d,'` -MD ../src/linux/timer.cpp >> ../src/linux/timer.cpp: In function ‘void kill_all_timer()’: >> ../src/linux/timer.cpp:93: error: ‘pthread_kill_other_threads_np’ was >> not declared in this scope >> >> and that's strange because adding a #include <pthread.h> does not solve >> it... > > That function is obsolete. Comment it out and try again. I will do that as soon as possible in the svn. thanks, it now compiles. However I see it does not uses wxWidgets even in the sample... so that in effect it does not uses wxWidgets at all. So, the question is: why call the classes 'wx*' and why make wxCTB a wxWidgets "component" ? :) Francesco |