Tiny Core Base > TCB Talk

need help to compile the fltk projects

(1/2) > >>

si_hussain1:
Hi Everyone,
  I am new to tinycore linux and i just downloaded and got it working. I made some modifications depending on my requirement w.r.t the task bar, rightclick menu etc.
  I want to customise the cpanel as well. I downloaded the source code. But i am not able to compile the fltk projects. Can someone please give some info regarding this if any one has already compiled it?
   Also, i need tiny linux for one particular hardware. i.e no run time new hardware will be connected. therefore, i need to build its kernel with minimal support. how do i go about it? can someone give me .config file with the existing settings so that i modify it according.

Thanks in advance

Juanito:

--- Quote from: si_hussain1 on June 17, 2009, 07:41:21 AM ---   Also, i need tiny linux for one particular hardware. i.e no run time new hardware will be connected. therefore, i need to build its kernel with minimal support. how do i go about it? can someone give me .config file with the existing settings so that i modify it according.

--- End quote ---

http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/release/src/config-2.6.29.1-tinycore

roberts:
For most of the cxx files use:
g++ -Os -fno-exceptions -fno-rtti -fpic -lfltk -o name name.cxx

Note that what is posted are Fltk Fluid projects and directly changing the cxx is not desirable.
It is more desirable to use the extension fluid so as to easly manipulate the gui elements.
The compiler can be called direcly from within fluid (see shell menu item).
Personally, I typically use a less optimized call g++ -lfltk -o hello hello.cxx 2>&1 && ./hello
while interactively adjusting/creating the gui.

si_hussain1:
Hi,
   Thanks for info. I removed some tabs from the cpanel through fluid and generated the source and tried compiling  but i get the below error. I have installed fluid. i.e make and "make install". If i am missing something. I do not know what. Any suggestions will be greatly appreciated.

g++ -lfltk -o cpanel cpanel.cxx 2>&1 && ./cpanel

/tmp/cc7Ykmc2.o: In function `main':
cpanel.cxx:(.text+0x287): undefined reference to `Fl_Button::Fl_Button(int, int, int, int, char const*)'
cpanel.cxx:(.text+0x329): undefined reference to `Fl_Button::Fl_Button(int, int, int, int, char const*)'
cpanel.cxx:(.text+0x3cb): undefined reference to `Fl_Button::Fl_Button(int, int, int, int, char const*)'
cpanel.cxx:(.text+0x46d): undefined reference to `Fl_Button::Fl_Button(int, int, int, int, char const*)'
cpanel.cxx:(.text+0x50f): undefined reference to `Fl_Button::Fl_Button(int, int, int, int, char const*)'
/tmp/cc7Ykmc2.o:cpanel.cxx:(.text+0x5b1): more undefined references to `Fl_Button::Fl_Button(int, int, int, int, char const*)' follow
/tmp/cc7Ykmc2.o: In function `main':
cpanel.cxx:(.text+0x619): undefined reference to `Fl_Group::end()'
cpanel.cxx:(.text+0x72c): undefined reference to `Fl::run()'
/tmp/cc7Ykmc2.o: In function `Fl_Double_Window::Fl_Double_Window(int, int, char const*)':
cpanel.cxx:(.text._ZN16Fl_Double_WindowC1EiiPKc[Fl_Double_Window::Fl_Double_Window(int, int, char const*)]+0x22): undefined reference to `Fl_Window::Fl_Window(int, int, char const*)'
cpanel.cxx:(.text._ZN16Fl_Double_WindowC1EiiPKc[Fl_Double_Window::Fl_Double_Window(int, int, char const*)]+0x27): undefined reference to `vtable for Fl_Double_Window'
/tmp/cc7Ykmc2.o: In function `Fl_Double_Window::show(int, char**)':
cpanel.cxx:(.text._ZN16Fl_Double_Window4showEiPPc[Fl_Double_Window::show(int, char**)]+0x1b): undefined reference to `Fl_Window::show(int, char**)'
collect2: ld returned 1 exit status

si_hussain1:
Hi,
  I sorted out the compiling problem. I had not installed the libfltk's. Now i have no problems in compiling. I am curious about one thing. ALthough i removed the button "crond" from the cpanel and build the source using fluid. I still see couple of lines in the .cxx files and .fl file w.r.t to the crond. I had to comment them to continue with the compilation. how do i build a clean new cpanel with only those components that i require?

Navigation

[0] Message Index

[#] Next page

Go to full version