Re: [fltk.general] application developped on linux running on windows
On 29.05.2012 18:19, belahcene wrote: > Hi, > I am newer to windows environnement, I install mingwto cretae executable > for application cretaed under linux. ( written in c). > My application is just a client/server program ( I replaced the linux > included by windows include, namely > > I used #include > > The compilation is done without error, but when I tryed to link it I got > errors : > WSAGet.. , WSACleanup > I tryed option -lwinsock, -lwinsock2 ,and other and other but no one > has been succeded!!! There are a few other slight differences between Linux (BSD) sockets and Windows sockets, but for a start, it should almost work. The lib to link with on Windows would be -lws2_32 (winsock2). > An,other problem: > I created a graphical interface with fltk on linux, i compile it and lined > it without error, but when I tryied to run it on windows I got errors > like cannot find libstdc++-6.dll and others a lot. > > I conclude that I need to compile it with static library, in oder to use it > on any windows machien!Am I right ?? > how to do it Yes, you either must link the program with static versions of libstdc++ and maybe a few others, or you can redistribute these few dll's w/o license problems (there are explicit exceptions for these dll's). Static linking (under MinGW) can be done if you define LDFLAGS like this when you configure FLTK: LDFLAGS="-static-libgcc -static-libstdc++" \ ./configure <... further options> If you do it this way, `fltk-config --ldflags' will also return these flags for your later builds. If there are other undefined symbols or problems, please post (parts of the) real error messages, so that we can see what is missing. Albrecht ___ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk
[fltk.general] application developped on linux running on windows
Hi, I am newer to windows environnement, I install mingwto cretae executable for application cretaed under linux. ( written in c). My application is just a client/server program ( I replaced the linux included by windows include, namely I used #include The compilation is done without error, but when I tryed to link it I got errors : WSAGet.. , WSACleanup I tryed option -lwinsock, -lwinsock2 ,and other and other but no one has been succeded!!! An,other problem: I created a graphical interface with fltk on linux, i compile it and lined it without error, but when I tryied to run it on windows I got errorslike cannot find libstdc++-6.dll and others a lot. I conclude that I need to compile it with static library, in oder to use it on any windows machien!Am I right ?? how to do it thanks a lot. bets regards ___ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk
Re: [fltk.general] Fl_Scroll issue?
On 28.05.2012, at 16:54, testalucida wrote: >> On 05/28/12 04:44, testalucida wrote: >>> seems as if widgets placed onto a Fl_Scroll don't keep their positions on >>> scrolling. >> >> Yes, when you scroll, it changes the children's >> xy positions in order to move them. >> > > and is there a way to prevent FLTK from doing so? In FLTK3, you can put a Group inside the ScrollGroup. While Group coordinates will change, the coordinates of the widgets inside the Group will not. Then again, FLTK3 is not even Alpha yet. ___ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk
Re: [fltk.general] Fl_Scroll issue?
On 28.05.2012 13:44, testalucida wrote: > seems as if widgets placed onto a Fl_Scroll don't keep their positions on > scrolling. > E.g.: the topmost widget's y-position is 30. There is a vertical scrollbar > due to another widget with y-position 300. > Pull the vertical scrollbar down and move it back to its top position. The > y-value of the topmost widget will be 0. I would expect it keeping its > original value. Am I wrong or is FLTK? Aside from what Greg correctly replied, your problem seems to be that your widget(s) don't fill the entire area of your Fl_Scroll. Fl_Scroll always calculates the bounding box of all your widgets and adjusts the scrolling area accordingly. Hence your observation that your topmost widget doesn't keep its y-position. If you really want to maintain a border around your widgets inside the Fl_Scroll, then you can add an invisible small box widget, in your example at position (0,0). This will keep your border intact, even if you scroll down and back again. Albrecht ___ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk