Author Topic: Installing FLTK v1.1.x-r5734 ?  (Read 7519 times)

Tintin72

  • Guest
Installing FLTK v1.1.x-r5734 ?
« on: March 15, 2007, 01:25:02 pm »
Hi all,

Can someone tells me how to install the fltk v1.1.x-r5734 version under Win XP (with Codeblocks) ?
So far, I use the 1.1.7 version that I installed via a devpack file, but it seems that such file is not available for the 1.1.x-r5734 version.
So I guess I have to install it manually and build the libs (libfltk.a, libfltk_forms.a etc...).
But how to do that in Codeblocks?
Can someone provides a step by step instruction ?

Thanks for advance

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: Installing FLTK v1.1.x-r5734 ?
« Reply #1 on: March 15, 2007, 06:52:39 pm »
Tintin72:

I have spent a little time looking into the issue and I need to know your skill level on a few things and a few other bits of info.

1. You are only using CodeBlocks to compile the C/C++ part of FLTK right?
   ( I noticed there is a dotnet part of FLTK.)
2. Do you know how to use svn?
3. Do you know how to manually convert an Code::Blocks project from using vs2005 or vc6 to gcc
   ( This includes fixing the compiler and linker options.)
4. Do you know how to use MinGW's MSys?
5. Do you know that 1.1.x-r5734 is a snapshot that should normally NOT be used for production work?

Tim S

« Last Edit: March 15, 2007, 07:10:12 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Tintin72

  • Guest
Re: Installing FLTK v1.1.x-r5734 ?
« Reply #2 on: March 15, 2007, 08:50:36 pm »
Thanks for your help  :D
Quote
1. You are only using CodeBlocks to compile the C/C++ part of FLTK right?
yes
Quote
2. Do you know how to use svn?
No (I don't know even what is svn  :?)

Quote
3. Do you know how to manually convert an Code::Blocks project from using vs2005 or vc6 to gcc
No, (I use only Codeblocks)

Quote
4. Do you know how to use MinGW's MSys?
I know that is one way to compile and build the Fltk library but it's a little bit confused to me.
That's why I'd rather solve this pb with Codeblocks.

Quote
5. Do you know that 1.1.x-r5734 is a snapshot that should normally NOT be used for production work?
On the fltk forum, one of the fltk's programmers adviced me to use the 1.1.x-r5734 version rather than the 1.1.7, so I guess he knows what he's talking about.

Can you help me ?


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: Installing FLTK v1.1.x-r5734 ?
« Reply #3 on: March 15, 2007, 09:06:34 pm »
Yeah, I should be able to help you.

Method 1: This method will take too long.

But, I am going to have to write a sed script to do the conversion from Visual C 6 project to Code::Blocks Project. I have no idea of how much work it will be, I should know more sometime tomorrow.

Method 2
Use SVN and MSys to create an devpak setup. I have never done this will only try it if method 1 looks like it will take a long time.

Tim S
« Last Edit: March 15, 2007, 11:35:36 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: Installing FLTK v1.1.x-r5734 ?
« Reply #4 on: March 15, 2007, 09:51:17 pm »
What OS are you using?
I am using Windows XP, I need to write a more complex batch file than I thought I would have to.
I am assuming windows is this correct? I need to know which version 95,98, NT 4.0, 2000, XP or 2003?

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Tintin72

  • Guest
Re: Installing FLTK v1.1.x-r5734 ?
« Reply #5 on: March 15, 2007, 10:46:10 pm »
Yes, I'm under Windows XP pro.

Thank you very much for your help  :)

Offline phireis

  • Single posting newcomer
  • *
  • Posts: 7
Re: Installing FLTK v1.1.x-r5734 ?
« Reply #6 on: March 16, 2007, 01:44:52 am »
just install MinGW and MSYS. Then, inside MSYS, in the fltk-1.1.x-r5734 dir:
$./configure
$make
$make install(for installing in the MinGW directory)
will do the work for Fltk, since Fltk it doesnt have dependences(implements alternative implementations to various libraries like libpng, libjpeg... if they arent installed)
And Fltk 2.0.x have a CodeBlocks project :)

Philipe
« Last Edit: March 16, 2007, 01:46:32 am by phireis »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: Installing FLTK v1.1.x-r5734 ?
« Reply #7 on: March 16, 2007, 02:38:57 am »
just install MinGW and MSYS. Then, inside MSYS, in the fltk-1.1.x-r5734 dir:
$./configure
$make
$make install(for installing in the MinGW directory)
will do the work for Fltk, since Fltk it doesnt have dependences(implements alternative implementations to various libraries like libpng, libjpeg... if they arent installed)
And Fltk 2.0.x have a CodeBlocks project :)

Philipe


Thanks for the info, I was using the supplied make files for mingw and getting bad results.
Using configure seems to be going farther in the build process.

Got the 1.1.7 libraries to build with
./configure --enable-localjpeg=yes --enable-localpng=no --enable-localzlib=no
make

Got fltk-1.1.x-r5734 libraries to build with normal command, I think the 1.1.7 release has issues with png and zlib.
./configure
make

Tim S
« Last Edit: March 16, 2007, 03:22:37 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: Installing FLTK v1.1.x-r5734 ?
« Reply #8 on: March 16, 2007, 06:04:08 am »
Is your FLTK devpak a static library? Or, does it contains DLLs?
If it contains DLLs, where can I download the old 1.1.7 DevPak so I can look at it.

Tim S

Uploaded Static Devpak to
http://www.savefile.com/projects/1039215

FLTK-1.1.x-r5734.DevPak

Script used to create is 7Zip inside of FLTK-1-devcxx.7z

« Last Edit: March 16, 2007, 06:29:01 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Tintin72

  • Guest
Re: Installing FLTK v1.1.x-r5734 ?
« Reply #9 on: March 16, 2007, 05:43:34 pm »
Thank you very much stahta01 for your help  :D
I think later I will learn to use Mingw and Msys cause it seems really helpfull, but
now I have not much time for that.
So thanks again  :)