Building Toolkits

So, I've been in the search of a GUI that I can use to design my program. I've been bouncing around between several toolkits, again, trying to find one that I can at least try. SDL is already built on my system, but the only tutorials I can find on that are game related and third party GUI libraries that send compiler errors when trying to build.

My current toolkit I'm trying to build is Fox. Looks promising and simple enough, but I've run into errors trying to build it. System stats again are as follows:
Windows XP
MinGW 4.7.1 (downloaded from nuwen.net/mingw.html)
MSYS 1.0.11
GNU Make 3.81

Any other relevant information you need, feel free to ask. I have tried installing/reinstalling all of the above listed components to try to figure out what was wrong, but I couldn't figure it out.

The ./configure and make dump are supplied here: http://pastebin.com/885ivvv0

The important part of it is located here:
libtool: link: g++ -Wall -Wformat -Woverloaded-virtual -Wshadow -DHAVE_JPEG_H=1
-DHAVE_PNG_H=1 -DHAVE_ZLIB_H=1 -DHAVE_BZ2LIB_H=1 -DHAVE_XFT_H=1 -I/usr/include/f
reetype2 -DNO_XIM -DHAVE_GL_H=1 -DHAVE_GLU_H=1 -rdynamic -o .libs/reswrap.exe re
swrap.o
g++.exe: error: unrecognized command line option '-rdynamic'
make[1]: *** [reswrap.exe] Error 1
make[1]: Leaving directory `/c/fox-1.7.35/utils'
make: *** [all-recursive] Error 1


Please someone help me with this. Even various (realistic) suggestion will be tried.
Last edited on
I know you guys have installed a toolkit at one time or another. What am I doing wrong that every toolkit build has failed me? What do you use? Has anyone successfully built a toolkit on a Windows OS? What did you use? What am I missing?

I have now tried as much as I can possibly think of shy of switching OS's. I am in the process of doing a clean install of XP, going straight to MinGW, downloading the latest version, and installing that. Then, going straight to SFML, and trying to run my first program (the example they give) and see if it still crashes.

If that doesn't work, I'm open to any other suggestions regarding a GUI for C++.
I'm using wxwidgets:

http://www.wxwidgets.org/

together with wxFormBuilder which generates code that I can derive from.

It's not perfect, but it works straightforward and you can build it with GCC and VC++ alike.
It's friendly and so I'm rather happy with it
Now, what did you use to build wxWidgets?

OS?
Compiler?
Version?
Using an IDE? Which one?
Version?

I don't know why, but every time I attempt to build a toolkit, something goes horribly wrong. And using bigger named toolkits, I shouldn't have these issues.
OS?
Windows, but it's also good for linux
Compiler?
Visual C++ 2008/2010 and mingw 4.6.2
Version?
You mean wxWidget? 2.8.12
Using an IDE? Which one?
Visual C++ and Code::Blocks
Version?
Code::Blocks: 10.05

Yes there shouldn't be any problems, but unfortunately there're traps like everywhere...
I like my C++11 and have been stubborn with requiring my compiler to have them (MinGW) so I have been using 4.7.1. This shouldn't cause issues, but regardless, I'll try it with 4.7.1 and if I can't get it to work, I'll downgrade to 4.6.2 (I believe that's the one that comes with Code::Blocks installer) just to see if I can get it to work.

I just can't believe I'm the only person who has been having these ridiculous errors.
You can get past that -rdynamic error by editing the configure script line 17534 nad change LDFLAGS="-rdynamic ${LDFLAGS}" to LDFLAGS="${LDFLAGS}" but I get another error
Making all in lib
make[1]: Entering directory `c:/users/sean/Documents/fox-1.7.35/fox-1.7.35/lib'
C:/MinGW/msys/1.0/bin/sh.exe ../libtool --tag=CXX   --mode=compile g++ -DPACKAGE
_NAME=\"fox\" -DPACKAGE_TARNAME=\"fox\" -DPACKAGE_VERSION=\"1.7.35\" -DPACKAGE_S
TRING=\"fox\ 1.7.35\" -DPACKAGE_BUGREPORT=\"jeroen@fox-toolkit.com\" -DPACKAGE_U
RL=\"\" -DPACKAGE=\"fox\" -DVERSION=\"1.7.35\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES
_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -
DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D__EX
TENSIONS__=1 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_TAN
DEM_SOURCE=1 -DLT_OBJDIR=\".libs/\" -DX_DISPLAY_MISSING=1 -DTIME_WITH_SYS_TIME=1
 -DHAVE_DIRENT_H=1 -DHAVE_PNG_H=1 -DHAVE_ZLIB_H=1 -DHAVE_BZLIB_H=1 -I. -I../incl
ude -I../include    -Wall -Wformat -Woverloaded-virtual -Wshadow -DHAVE_JPEG_H=1
 -DHAVE_PNG_H=1 -DHAVE_ZLIB_H=1 -DHAVE_BZ2LIB_H=1 -DHAVE_XFT_H=1 -I/usr/include/
freetype2 -DNO_XIM -DHAVE_GL_H=1 -DHAVE_GLU_H=1 -MT FX88591Codec.lo -MD -MP -MF
.deps/FX88591Codec.Tpo -c -o FX88591Codec.lo FX88591Codec.cpp
XFX88591Codec.Tpo -c -o FX88591Codec.lo FX88591Codec.lo
libtool: compile: warning: libobj name `FX88591Codec.Tpo -c -o FX88591Codec.lo F
X88591Codec.lo' may not contain shell special characters.
rm: invalid option -- c
Try `rm --help' for more information.
libtool: compile:  g++ "-DPACKAGE_NAME=\\fox\" -DPACKAGE_TARNAME=\"fox\" -DPACKA
GE_VERSION=\"1.7.35\" -DPACKAGE_STRING=\\fox 1.7.35\"" "-DPACKAGE_BUGREPORT=\\je
roen@fox-toolkit.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"fox\" -DVERSION=\"1.7.35\"
 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DH
AVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_S
TDINT_H=1 -DHAVE_UNISTD_H=1 -D__EXTENSIONS__=1 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -
D_POSIX_PTHREAD_SEMANTICS=1 -D_TANDEM_SOURCE=1 -DLT_OBJDIR=\".libs/\" -DX_DISPLA
Y_MISSING=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_DIRENT_H=1 -DHAVE_PNG_H=1 -DHAVE_ZLIB_
H=1 -DHAVE_BZLIB_H=1 -I. -I../include -I../include -Wall -Wformat -Woverloaded-v
irtual -Wshadow -DHAVE_JPEG_H=1 -DHAVE_PNG_H=1 -DHAVE_ZLIB_H=1 -DHAVE_BZ2LIB_H=1
 -DHAVE_XFT_H=1 -I/usr/include/freetype2 -DNO_XIM -DHAVE_GL_H=1 -DHAVE_GLU_H=1 -
MT FX88591Codec.lo -MD -MP -MF .deps/FX88591Codec.Tpo -c -o FX88591Codec.lo FX88
591Codec.cpp" -o FX88591Codec.Tpo -c -o FX88591Codec.lo FX88591Codec.o
g++.exe: error: FX88591Codec.o: No such file or directory
g++.exe: fatal error: no input files
compilation terminated.
rm: invalid option -- c
Try `rm --help' for more information.
make[1]: *** [FX88591Codec.lo] Error 1


EDIT: Actually, it looks like -rdynamic may have been changed to -shared in newer versions of gcc (can anyone confirm?) I changed rdynamic shared in configure and it compiles past your error but still stops at mine.
Last edited on
@naraku9333
I think fox might need to look into the fact that the compilers are all updating for the C++11 features and that some things might need to be changed. I feel if after several attempts (hell, I even installed separate compilers just to try building fox) and I still fail (as well as others now, obviously), then I should move on. I fought and fought with my Desktop today for several hours trying to put Windows XP on for a clean install and I just finally got done (with the exception of the display adapter -.-).

@coder777
I got wxWidgets installed and I opted to go for wxSmith instead of wxFormBuilder. I haven't really gotten anywhere with it yet, but it does compile. And I'm grateful that you suggested it to me. Now, before I get too sidetracked, I have a lot of work to catch up on. These errors have cost me well over a weeks worth of time that I could have been using to learn more about a GUI.

I'm glad there is a WYSIWYG environment for wxWidgets so I don't have to worry about the visual design. The rest of the program is already designed, I just need to incorporate it into a visual design now. Thanks a million.
Last edited on
It is definitely something to do with differences in older and newer versions of gcc. I was able to compile with TDM MinGW which uses gcc-4.6.1, I did also need the edit to the configure script. Can you update your thread on the Fox forum? Hopefully they can fix it and at least someone else won't spend as long on the issue.
Thanks for the reminder. I already linked to this thread, but I'll mark this one as solved and relay the information.

Thanks for taking the time to test it.

Edit: fox-toolkit.org thread has been updated...once their site actually accepts my request...
Last edited on
Topic archived. No new replies allowed.