|
need help with glib |
Doctor Cop
Member #16,833
April 2018
|
I was trying to compile glib but it kept telling me this error Dell@Dell-PC MINGW64 ~/Desktop/glib-2.54.3 I reinstalled Zlib binaries, even tried to build from source but everything failed.
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
Well, it's clear you haven't installed zlib correctly. First, it's not looking for binaries. It wants archive libraries and headers, which you didn't install properly. Having zlib1.dll on the %PATH% makes no difference when trying to compile a program. They're only for runtime use. I mean, technically you can link to a .dll, but that's only because MinGW isn't made by idiots and gcc makes it easy. It's like linking to a .so file on Linux. Having said that, you need to install zlib development packages. You say you're using MinGW, but from where? And in what context? MSYS? MSYS2? I see you're running configure, and that only comes with linux or msys. And you say the MinGW folder is on your path, but that is misleading. Do you mean C:\MinGW\bin is on your %PATH%? Or C:\MinGW, because that would be wrong. Now, you don't want to compile zlib with configure that's a waste of time. Use CMake and save yourself the hassle. Also, what are you using glib for? Minimum supported windows version is 7, if you don't mind cutting off half of your potential users. It looks like glib only supports configure, so you're using msys I assume. configure is dumb as bricks, so you'll have to install zlib to your compiler directory (c:\mingw\lib , c:\mingw\include) before you can compile glib. It says you need python but it looks like you've already got that. Help us help you by giving us more information. Show us console output and what you typed to get there. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Doctor Cop
Member #16,833
April 2018
|
you said
I have installed TDM-GCC-32 and I have installed autotools separately and latest version of make. I am using zlib from this link https://sourceforge.net/projects/gnuwin32/files/zlib/1.2.3/zlib-1.2.3-src.zip/download?use_mirror=excellmedia&download= yes my env path is MinGW/bin I have attached some files, please tell me what to do? I am building glib for libiohook, I couldn't find any other good hooking library,
|
Peter Hull
Member #1,136
March 2001
|
Have you got pkg-config installed? pkg-config --cflags zlib what does it say? Basically configure can't find your zlib headers and/or library so you need to either
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
zlib 1.2.3 is 8 versions older than 1.2.11. 1.2.11 is the version I'm using and I have no problems building it. Just use CMake for Zlib, using cmake-gui. It's as easy as : cd zlib mkdir build cd build cmake-gui .. (configure cmake and generate makefiles) mingw32-make mingw32-make install You'll need to change the install directory inside cmake-gui, because it defaults to Program Files, which is ridiculous. What are you using hooking for? Low level hooks usually aren't necessary. And there are far easier ways to write a keylogger. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Doctor Cop
Member #16,833
April 2018
|
Peter Hull said "Have you got pkg-config installed? what does it say?" I need glib to build pkg-config. "Basically configure can't find your zlib headers and/or library so you need to either I tried to change path in configure file but I couldn't find a way to do so. Edgar Reynaldo : * I am using hooking for a test project. I need to make a real time employee monitoring system.
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
Doctor Cop said:
I am sure there are working solutions out there already, so unless you're under contract to do this, it seems silly to write one from scratch. Do some googling for real time network monitoring. I'm sure there's software out there for this already. But do what you want. Don't post your configure file, I don't want that thing. I said earlier, you need to install zlib to your compiler directory's lib and include folders. Then configure will find it. Also, when you run configure, pass --prefix=/c/mingw and then libiohook and glib will be installed to your compiler directory for you. Quote:
What do you mean 'found' them? Vagueness is the bane of the internet. Are they ones you built yourself? Or did you download them from somewhere? They have to be compatible with your compiler or else they won't work. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Doctor Cop
Member #16,833
April 2018
|
Edgar yes I downloaded them and they are of the same version. I found them at SourceForge. New errors are: checking for perl5... no Alternatively, you may set the environment variables LIBFFI_CFLAGS To get pkg-config, see <http://pkg-config.freedesktop.org/>.
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
So, install them. *.a files go in mingw/lib and includes go in mingw/includes. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Peter Hull
Member #1,136
March 2001
|
Edgar, what's your opinion on "TDM-GCC-32" which is what Dr Cop is using? As far as I can see (website) it's pretty old and pretty limited. Do you think MSYS2 would be better? As I understand it, MSYS2 comes with a package manager so getting zlib etc. should be trivial. In fact you can get glibc from the package manager and skip this step altogether! Doctor Cop, could you use MSYS2 instead of TDM-GCC?
|
Doctor Cop
Member #16,833
April 2018
|
Thanks for your help, now I'm looking for some tutorial to autoconf. Now I have checked it, and installed it.
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
I didn't know they were still updating TDM. :/ shrug I would personally use I provide an old distro of MSYS 1.0.11 here : My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Peter Hull
Member #1,136
March 2001
|
Edgar Reynaldo said: I didn't know they were still updating TDM Last update July 2015!
|
|