Discussion:
[Pixil-devel] Compile in cygwin + gcc 3.4.4
Green Wan
2006-05-26 10:07:14 UTC
Permalink
Hi,



I am try to build Pixil-1.2.3.tar.gz on my cygwin system. I've run
nano-x on it successfully. The following is my setting and compiling
error.



--------< Setting of config in directory, pixil-1.2.3. >---------

a. MW_PREFIX="/usr/src/Pixil/microwindows-0.90/src"

b. CONFIG_PIXILDT=y

c. CONFIG_PIXILDT_FLTKDIR="/usr/src/fltk-1.1.7"



-------< Compile error after typing "make">------------------

a. The first part is like that can't link C++ library.



make[1]: Entering directory `/usr/src/pixil-1.2.3/libs'

make[2]: Entering directory `/usr/src/pixil-1.2.3/libs/flek/src'

gcc -Wl,-soname,`basename libflek.so` -shared -o libflek.so FDate.o
FSocket.o FFile.o FVector.o FImage.o FSGI.o FPNM.o Fl_App_Window.o
Fl_Better_Window.o Fl_Calendar.o Fl_Dockable_Window.o Fl_Stock.o
Fl_Toggle_Node_Base.o Fl_Toggle_Node.o Fl_Toggle_Tree_Base.o
Fl_Toggle_Tree.o Flv_CStyle.o Flv_Style.o Flv_List.o Flv_Table.o
Flve_Check_Button.o Flve_Input.o Flve_Combo.o Fl_Time.o

FDate.o:FDate.cxx:(.text+0x952): undefined reference to `operator
new(unsigned int)'

FDate.o:FDate.cxx:(.text+0x17dc): undefined reference to
`std::ios_base::Init::Init()'

FDate.o:FDate.cxx:(.text+0x17f8): undefined reference to
`std::ios_base::Init::~Init()'





b. the second part is like that can't link with FLTK library, is
it?



Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x1f): undefined reference to
`Fl_Window::~Fl_Window()'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x4f): undefined reference to
`Fl_Window::~Fl_Window()'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x7f): undefined reference to
`Fl_Window::~Fl_Window()'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0xb0): undefined reference to
`___gxx_personality_sj0'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x103): undefined reference to
`operator new(unsigned int)'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x136): undefined reference to
`Fl_Pack::Fl_Pack(int, int, int, int, char const*)'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x162): undefined reference to
`operator new(unsigned int)'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x195): undefined reference to
`Fl_Window::Fl_Window(int, int, int, int, char const*)'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x1cb): undefined reference to
`operator delete(void*)'



Could anyone help me out? =D



Best regards,

Green
Greg Haerr
2006-05-29 00:36:53 UTC
Permalink
Hope this helps... :

a & b: we've only tested the PIXIL build with the older
versions of the C++ compiler documented in the docs/
directory. What version are you running? There are
strange build problems with later versions of the compiler.

c. We suggest using the older version of the FLTK library
as documented in the build/doc instructions. This is why
we included the FLEK source in the tree.

Regards,

Greg
----- Original Message -----
From: Green Wan
To: pixil-***@pixil.org
Sent: Friday, May 26, 2006 4:07 AM
Subject: [Pixil-devel] Compile in cygwin + gcc 3.4.4


Hi,



I am try to build Pixil-1.2.3.tar.gz on my cygwin system. I've run nano-x on it successfully. The following is my setting and compiling error.



--------< Setting of config in directory, pixil-1.2.3. >---------

a. MW_PREFIX="/usr/src/Pixil/microwindows-0.90/src"

b. CONFIG_PIXILDT=y

c. CONFIG_PIXILDT_FLTKDIR="/usr/src/fltk-1.1.7"



-------< Compile error after typing "make">------------------

a. The first part is like that can't link C++ library.



make[1]: Entering directory `/usr/src/pixil-1.2.3/libs'

make[2]: Entering directory `/usr/src/pixil-1.2.3/libs/flek/src'

gcc -Wl,-soname,`basename libflek.so` -shared -o libflek.so FDate.o FSocket.o FFile.o FVector.o FImage.o FSGI.o FPNM.o Fl_App_Window.o Fl_Better_Window.o Fl_Calendar.o Fl_Dockable_Window.o Fl_Stock.o Fl_Toggle_Node_Base.o Fl_Toggle_Node.o Fl_Toggle_Tree_Base.o Fl_Toggle_Tree.o Flv_CStyle.o Flv_Style.o Flv_List.o Flv_Table.o Flve_Check_Button.o Flve_Input.o Flve_Combo.o Fl_Time.o

FDate.o:FDate.cxx:(.text+0x952): undefined reference to `operator new(unsigned int)'

FDate.o:FDate.cxx:(.text+0x17dc): undefined reference to `std::ios_base::Init::Init()'

FDate.o:FDate.cxx:(.text+0x17f8): undefined reference to `std::ios_base::Init::~Init()'





b. the second part is like that can't link with FLTK library, is it?



Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x1f): undefined reference to `Fl_Window::~Fl_Window()'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x4f): undefined reference to `Fl_Window::~Fl_Window()'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x7f): undefined reference to `Fl_Window::~Fl_Window()'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0xb0): undefined reference to `___gxx_personality_sj0'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x103): undefined reference to `operator new(unsigned int)'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x136): undefined reference to `Fl_Pack::Fl_Pack(int, int, int, int, char const*)'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x162): undefined reference to `operator new(unsigned int)'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x195): undefined reference to `Fl_Window::Fl_Window(int, int, int, int, char const*)'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x1cb): undefined reference to `operator delete(void*)'



Could anyone help me out? =D



Best regards,

Green
Green Wan
2006-05-29 03:45:19 UTC
Permalink
Hi Greg,



Thanks for your reply. I've fixed the C++ compiler's part. But some
functions still can't be linked after I followed the instruction in
./pixil-1.2.3/src/docs/README.microwindows and README.pixilDT. I left
the message below. Do you know where these function should be included?
Libfltk.a? or other library? I think if I add correct library into
Makefile. This message should not appear anymore.



Best regards,

Green



make[1]: Entering directory `/usr/src/Pixil/pixil-1.2.3/libs'

make[2]: Entering directory `/usr/src/Pixil/pixil-1.2.3/libs/flek/src'

gcc -Wl,-soname,`basename libflek.so` -shared -o libflek.so FDate.o
FSocket.o FFile.o FVector.o FImage.o FSGI.o FPNM.o Fl_App_Window.o
Fl_Better_Window.o Fl_Calendar.o Fl_Dockable_Window.o Fl_Stock.o
Fl_Toggle_Node_Base.o Fl_Toggle_Node.o Fl_Toggle_Tree_Base.o
Fl_Toggle_Tree.o Flv_CStyle.o Flv_Style.o Flv_List.o Flv_Table.o
Flve_Check_Button.o Flve_Input.o Flve_Combo.o Fl_Time.o
/usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a
/usr/src/fltk-1.0.11/lib/libfltk.a

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0xa11): undefined reference to
`fl_clip_region(int)'

Fl_App_Window.o:Fl_App_Window.cxx:(.rdata$_ZTV13Fl_App_Window[vtable for
Fl_App_Window]+0x20): undefined reference to
`Fl_Window::resize_notify(int, int, int, int)'

Fl_Better_Window.o:Fl_Better_Window.cxx:(.text+0x1a): undefined
reference to `_GrGetWindowInfo'

Fl_Calendar.o:Fl_Calendar.cxx:(.text+0x1fb): undefined reference to
`NxApp::GlobalColor(NxApp_Color)'

Fl_Calendar.o:Fl_Calendar.cxx:(.text+0x23d): undefined reference to
`NxApp::GlobalColor(NxApp_Color)'

Fl_Calendar.o:Fl_Calendar.cxx:(.text+0x27f): undefined reference to
`NxApp::GlobalColor(NxApp_Color)'

Fl_Calendar.o:Fl_Calendar.cxx:(.text+0x39c): undefined reference to
`NxApp::GlobalColor(NxApp_Color)'

Fl_Calendar.o:Fl_Calendar.cxx:(.text+0x3d6): undefined reference to
`NxApp::GlobalColor(NxApp_Color)'

Fl_Calendar.o:Fl_Calendar.cxx:(.text+0x410): more undefined references
to `NxApp::GlobalColor(NxApp_Color)' follow

......

/usr/src/fltk-1.0.11/lib/libfltk.a(fl_vertex.o):fl_vertex.cxx:(.text+0x6
de): undefined reference to `_XFillPolygon'

/usr/src/fltk-1.0.11/lib/libfltk.a(fl_vertex.o):fl_vertex.cxx:(.text+0x7
db): undefined reference to `_XFillPolygon'

/usr/src/fltk-1.0.11/lib/libfltk.a(fl_vertex.o):fl_vertex.cxx:(.text+0x8
7b): undefined reference to `_XFillArc'

/usr/src/fltk-1.0.11/lib/libfltk.a(fl_vertex.o):fl_vertex.cxx:(.text+0x8
f1): undefined reference to `_XDrawArc'

/usr/src/fltk-1.0.11/lib/libfltk.a(fl_draw_image.o):fl_draw_image.cxx:(.
text+0xea0): undefined reference to `_XPutImage'

/usr/src/fltk-1.0.11/lib/libfltk.a(fl_draw_image.o):fl_draw_image.cxx:(.
text+0x1051): undefined reference to `_XPutImage'

/usr/src/fltk-1.0.11/lib/libfltk.a(fl_draw_image.o):fl_draw_image.cxx:(.
text+0x11af): undefined reference to `_XListPixmapFormats'

collect2: ld returned 1 exit status

make[2]: *** [libflek.so] Error 1

make[2]: Leaving directory `/usr/src/Pixil/pixil-1.2.3/libs/flek/src'

make[1]: *** [_subdir_flek/src] Error 2

make[1]: Leaving directory `/usr/src/Pixil/pixil-1.2.3/libs'

make: *** [_subdir_libs] Error 2

________________________________

From: Greg Haerr [mailto:***@censoft.com]
Sent: Monday, May 29, 2006 8:37 AM
To: Green Wan; pixil-***@pixil.org
Subject: Re: [Pixil-devel] Compile in cygwin + gcc 3.4.4



Hope this helps... :



a & b: we've only tested the PIXIL build with the older

versions of the C++ compiler documented in the docs/

directory. What version are you running? There are

strange build problems with later versions of the compiler.



c. We suggest using the older version of the FLTK library

as documented in the build/doc instructions. This is why

we included the FLEK source in the tree.



Regards,



Greg

----- Original Message -----

From: Green Wan <mailto:***@marvell.com>

To: pixil-***@pixil.org

Sent: Friday, May 26, 2006 4:07 AM

Subject: [Pixil-devel] Compile in cygwin + gcc 3.4.4



Hi,



I am try to build Pixil-1.2.3.tar.gz on my cygwin system. I've
run nano-x on it successfully. The following is my setting and compiling
error.



--------< Setting of config in directory, pixil-1.2.3.
Post by Green Wan
---------
a. MW_PREFIX="/usr/src/Pixil/microwindows-0.90/src"

b. CONFIG_PIXILDT=y

c. CONFIG_PIXILDT_FLTKDIR="/usr/src/fltk-1.1.7"



-------< Compile error after typing "make">------------------

a. The first part is like that can't link C++ library.



make[1]: Entering directory `/usr/src/pixil-1.2.3/libs'

make[2]: Entering directory `/usr/src/pixil-1.2.3/libs/flek/src'

gcc -Wl,-soname,`basename libflek.so` -shared -o libflek.so
FDate.o FSocket.o FFile.o FVector.o FImage.o FSGI.o FPNM.o
Fl_App_Window.o Fl_Better_Window.o Fl_Calendar.o Fl_Dockable_Window.o
Fl_Stock.o Fl_Toggle_Node_Base.o Fl_Toggle_Node.o Fl_Toggle_Tree_Base.o
Fl_Toggle_Tree.o Flv_CStyle.o Flv_Style.o Flv_List.o Flv_Table.o
Flve_Check_Button.o Flve_Input.o Flve_Combo.o Fl_Time.o

FDate.o:FDate.cxx:(.text+0x952): undefined reference to
`operator new(unsigned int)'

FDate.o:FDate.cxx:(.text+0x17dc): undefined reference to
`std::ios_base::Init::Init()'

FDate.o:FDate.cxx:(.text+0x17f8): undefined reference to
`std::ios_base::Init::~Init()'





b. the second part is like that can't link with FLTK
library, is it?



Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x1f): undefined
reference to `Fl_Window::~Fl_Window()'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x4f): undefined
reference to `Fl_Window::~Fl_Window()'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x7f): undefined
reference to `Fl_Window::~Fl_Window()'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0xb0): undefined
reference to `___gxx_personality_sj0'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x103): undefined
reference to `operator new(unsigned int)'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x136): undefined
reference to `Fl_Pack::Fl_Pack(int, int, int, int, char const*)'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x162): undefined
reference to `operator new(unsigned int)'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x195): undefined
reference to `Fl_Window::Fl_Window(int, int, int, int, char const*)'

Fl_App_Window.o:Fl_App_Window.cxx:(.text+0x1cb): undefined
reference to `operator delete(void*)'



Could anyone help me out? =D



Best regards,

Green


________________________________


_______________________________________________
Pixil-devel mailing list
Pixil-***@pixil.org
http://www.pixil.org/cgi-bin/mailman/listinfo/pixil-devel
Green Wan
2006-05-29 09:35:06 UTC
Permalink
Hi All,



I've tried to modify Makefile and make some linking problems pass.

I mainly have two issues.



a. Fl_Calendar.o:Fl_Calendar.cxx:(.text+0x1fb): undefined
reference to `NxApp::GlobalColor(NxApp_Color)'



I found NxApp::GlobalColor is implemented in
./pixil-1.2.3/libs/pim/nxapp.cxx. But this directory should be compiled
after generating libflek.so.



b. Flve_Combo.o:Flve_Combo.cxx:(.rdata$_ZTV9Flvw_Drop[vtable for
Flvw_Drop]+0x20): undefined reference to `Fl_Window::resize_notify(int,
int, int, int)



Again.... This function is implemented in
./pixil-1.2.3/libs/flnx/Fl_window.cxx. It failed to link because these
libraries are not ready yet.



Any idea? To modify Makefile or wrong setting again?



Best regards,

Green



Complete compiling message is below.

---------------------------------------

make[1]: Entering directory `/usr/src/Pixil/pixil-1.2.3/libs'

make[2]: Entering directory `/usr/src/Pixil/pixil-1.2.3/libs/flek/src'

gcc -Wl,-soname,`basename libflek.so` -shared -o libflek.so FDate.o
FSocket.o FFile.o FVector.o FImage.o FSGI.o FPNM.o Fl_App_Window.o
Fl_Better_Window.o Fl_Calendar.o Fl_Dockable_Window.o Fl_Stock.o
Fl_Toggle_Node_Base.o Fl_Toggle_Node.o Fl_Toggle_Tree_Base.o
Fl_Toggle_Tree.o Flv_CStyle.o Flv_Style.o Flv_List.o Flv_Table.o
Flve_Check_Button.o Flve_Input.o Flve_Combo.o Fl_Time.o -lstdc++
/usr/src/fltk-1.0.11/lib/libfltk.a
/usr/src/Pixil/microwindows-0.90/src/lib/libnano-X.a
/usr/src/Pixil/microwindows-0.90/src/lib/libmwengine.a
/usr/X11R6/lib/libX11.a /usr/X11R6/lib/libXmHTML.a

Fl_Calendar.o:Fl_Calendar.cxx:(.text+0x1fb): undefined reference to
`NxApp::GlobalColor(NxApp_Color)'

Fl_Calendar.o:Fl_Calendar.cxx:(.text+0x410): more undefined references
to `NxApp::GlobalColor(NxApp_Color)' follow

Fl_Calendar.o:Fl_Calendar.cxx:(.text+0xdba): undefined reference to
`NxApp::DefaultFont(Fl_Widget*)'

Fl_Calendar.o:Fl_Calendar.cxx:(.text+0x1251): undefined reference to
`NxApp::GlobalColor(NxApp_Color)'

Fl_Calendar.o:Fl_Calendar.cxx:(.text+0x12bc): undefined reference to
`NxApp::GlobalColor(NxApp_Color)'

Fl_Calendar.o:Fl_Calendar.cxx:(.text+0x1815): more undefined references
to `NxApp::GlobalColor(NxApp_Color)' follow

Fl_Calendar.o:Fl_Calendar.cxx:(.text+0x184f): undefined reference to
`NxApp::DefaultFont(Fl_Widget*)'

Fl_Calendar.o:Fl_Calendar.cxx:(.text+0x1b76): undefined reference to
`NxButton::NxButton(int, int, int, int, char*)'

Fl_Calendar.o:Fl_Calendar.cxx:(.text+0x1de2): undefined reference to
`NxBox::NxBox(int, int, int, int, char*)'

Fl_Calendar.o:Fl_Calendar.cxx:(.text+0x2274): undefined reference to
`NxApp::GlobalColor(NxApp_Color)'

Fl_Calendar.o:Fl_Calendar.cxx:(.text+0x228f): undefined reference to
`NxApp::DefaultFont(Fl_Widget*)'

Fl_Calendar.o:Fl_Calendar.cxx:(.text+0x2786): undefined reference to
`NxButton::NxButton(int, int, int, int, char*)'

Fl_Calendar.o:Fl_Calendar.cxx:(.text+0x2822): undefined reference to
`NxBox::NxBox(int, int, int, int, char*)'

Fl_Calendar.o:Fl_Calendar.cxx:(.text+0x285c): undefined reference to
`NxApp::GlobalColor(NxApp_Color)'

Fl_Calendar.o:Fl_Calendar.cxx:(.text+0x2881): undefined reference to
`NxApp::GlobalColor(NxApp_Color)'

Fl_Calendar.o:Fl_Calendar.cxx:(.text+0x289f): undefined reference to
`NxApp::GlobalColor(NxApp_Color)'

Fl_Dockable_Window.o:Fl_Dockable_Window.cxx:(.rdata$_ZTV18Fl_Dockable_Wi
ndow[vtable for Fl_Dockable_Window]+0x20): undefined reference to
`Fl_Window::resize_notify(int, int, int, int)'

Flve_Combo.o:Flve_Combo.cxx:(.rdata$_ZTV9Flvw_Drop[vtable for
Flvw_Drop]+0x20): undefined reference to `Fl_Window::resize_notify(int,
int, int, int)'

collect2: ld returned 1 exit status

make[2]: *** [libflek.so] Error 1

make[2]: Leaving directory `/usr/src/Pixil/pixil-1.2.3/libs/flek/src'

make[1]: *** [_subdir_flek/src] Error 2

make[1]: Leaving directory `/usr/src/Pixil/pixil-1.2.3/libs'

make: *** [_subdir_libs] Error 2

Loading...