From: Tony R. <re...@al...> - 2009-07-26 16:10:37
|
> > > As mentioned in my reply to Tony, if it is a simple change to paths etc. > then we could offer a "Running under Wine" option which could implement the > changes in Linux/Wine for the user. > > To expand on what is needed for the makefile: Nuklear and I found that wxWidgets under Linux has a nice program called "wx-config" which "asks" the runtime wxWidgets libraries what flags they were built with (e.g. monolithic, exceptions, debug/releae, unicode/ansi, etc.). So instead of a makefile that looks like this: CPP = g++.exe CC = gcc.exe LIBS = -L"C:/Program Files/Dev-Cpp/Lib" -lwxmsw28_stc -mwindows -lwxmsw28 -lwxmsw28_gl -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregex -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 -lopengl32 INCS = -I"C:/Program Files/Dev-Cpp/Include" we'd have something that look like this: CPP = `wx-config --cc` CC = `wx-config --cpp` LIBS =`wx-config --wxlibs` CXXINCS =`wx-config --cxxflags` As you can see, it's an abstraction of the current makefile that just calls "wx-config" at build time. What's brilliant is that we'd be able to use anyone's wxWidgets build (and not have to keep producing our own devpaks). wx-config would just query the unknown lib about what flags it needs. There's an open-source project (http://wxconfig.googlepages.com/) that has ported wx-config to windows. However, we still have the problem that backticks `` aren't handled in Windows makefiles. This would require a work around where we would call wx-config directly from wxDev-C++ at makefile generation time to get the correct compiler types/flags/etc. I'd like to see the wx-config approach used in wxDevIDE, but hesitate to add it to wxDev-C++. Instead it might be good just to give the end-user the information in a Wiki (tutorial) and just let them manually modify the makefile. However, currently I don't have a Linux box to test things on or write more specific instructions. Nuklear and I last tested on 6.10.2 probably more than a year or two ago. No idea how the new plugin version will work. -Tony |