Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: Tintin72 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
-
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
-
Thanks for your help :D
1. You are only using CodeBlocks to compile the C/C++ part of FLTK right?
yes
2. Do you know how to use svn?
No (I don't know even what is svn :?)
3. Do you know how to manually convert an Code::Blocks project from using vs2005 or vc6 to gcc
No, (I use only Codeblocks)
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.
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 ?
-
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
-
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
-
Yes, I'm under Windows XP pro.
Thank you very much for your help :)
-
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
-
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
-
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
-
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 :)