Hi Malcom,

After many effort, i still can't run in release mode.
I am using the same flags as you do down here, same order of libraries.
I would say it is almost eqaul.

But you can run the sample and i can not.

So can you but your version of all the makefiles you used to achieve this, or 
if 
possible the whole wxArt2D project in which you did this, into a tgz file.
And put it somewhere i can download it, or sent it to me directly.

That way i can see the order of linking of the several modules, and maybe even 
the order of files in a library.
I must be missing something, but i don't know what to try next.

Klaas

Malcolm Nealon wrote:
> klaas.holwerda wrote:
>> Malcolm Nealon wrote:
>>   
>>> Does it need replacing by anything? is it being used in any samples?
>>>     
>> Yes, stsl so skip those also.
>>   
> 
> will do
> 
>>> If it is possible to make a functioning release and debug build using 
>>> the wxdev-c++ makefiles/gcc compiler makefiles, then do you really need 
>>> the MSYS route? (Obviously there may be some
>>> who are using it, but they may be able to achieve the same thing with 
>>> the wxdev/gcc method of building)
>>>   
>>>     
>> Maybe, i think when things do work on Linux, why don't they work on 
>> windows with Cygwin etc??
>>   
> 
> If you ever answer that I'd be interested in knowing why.
>>   
>>> If it saves you time and effort, I would much rather see a change to the 
>>> cmake files which makes it possible to create your library 
>>> (debug/release) without having to go through the time and trouble of 
>>> creating a new project for each library. 
>>>     
>> Well, that is not a cmake problem, much more a compiler/linker problem.
>> But if you can send me the project files needed for wxDevCpp, i can see 
>> if i can generate them directly with Cmake for you.
>> I still do not get how wxDevCpp makes things work, using a project 
>> files, or makefiles ??
>>   
> wxDev-Cpp has project files itself. These have the .dev extension. here 
> is an example for the editor/zoom sample
> 
> [Project]
> FileName=zoom.dev
> Name=zoom
> UnitCount=2
> PchHead=-1
> PchSource=-1
> Ver=3
> IsCpp=1
> ProfilesCount=2
> ProfileIndex=0
> Folders=
> 
> [Unit1]
> FileName=zoom.cpp
> CompileCpp=1
> Folder=zoom
> Compile=1
> Link=1
> Priority=1000
> OverrideBuildCmd=0
> BuildCmd=
> 
> [Unit2]
> FileName=zoom.h
> CompileCpp=1
> Folder=zoom
> Compile=1
> Link=1
> Priority=1000
> OverrideBuildCmd=0
> BuildCmd=
> 
> [VersionInfo]
> Major=0
> Minor=1
> Release=1
> Build=1
> LanguageID=1033
> CharsetID=1252
> CompanyName=
> FileVersion=
> FileDescription=
> InternalName=
> LegalCopyright=
> LegalTrademarks=
> OriginalFilename=
> ProductName=
> ProductVersion=
> AutoIncBuildNrOnRebuild=0
> AutoIncBuildNrOnCompile=0
> UnitCount=2
> 
> [Profile1]
> ProfileName=MingW 3.4.2
> Type=0
> ObjFiles=
> Includes="C:\Program Files\Dev-Cpp\include\wxart2d";"C:\Program 
> Files\Dev-Cpp\include\wxart2d\agg2\include"
> Libs=
> ResourceIncludes=
> MakeIncludes=
> Compiler=-fexceptions_@@_-fno-pcc-struct-return_@@_-fstrict-aliasing_@@_-Wall_@@_
> CppCompiler=-fexceptions_@@_-fno-pcc-struct-return_@@_-fstrict-aliasing_@@_-Wall_@@_
> Linker=-lwxmsw28_stc_@@_-lwxart2d_msw_canvas_@@_-lwxart2d_msw_aggdrawer_@@_-lwxart2d_msw_artbase_@@_-lwxart2d_msw_curves_@@_-lwxart2d_msw_editor_@@_-lwxart2d_msw_docview_@@_-lwxart2d_msw_canextobj_@@_-lwxart2d_msw_gdsio_@@_-lwxart2d_msw_general_@@_-lwxart2d_msw_keyio_@@_-lwxart2d_msw_svgio_@@_-lwxart2d_msw_xmlparse_@@_-lantigrain_@@_-lkbool_@@_-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_@@_
> PreprocDefines=__WXMSW___@@___GNUWIN32___@@___WIN95___@@_
> CompilerSettings=0000000001001000000000
> Icon=
> ExeOutput=.
> ObjectOutput=Objects\MingW
> OverrideOutput=0
> OverrideOutputName=zoom.exe
> HostApplication=
> CommandLine=
> UseCustomMakefile=0
> CustomMakefile=
> IncludeVersionInfo=0
> SupportXPThemes=0
> CompilerSet=0
> compilerType=0
> 
> [Profile2]
> ProfileName=Visual C++ 2005
> Type=0
> ObjFiles=
> Includes=
> Libs=
> ResourceIncludes=
> MakeIncludes=
> Compiler=
> CppCompiler=
> Linker=wxmsw28.lib_@@_wxmsw28_gl.lib_@@_wxtiff.lib_@@_wxjpeg.lib_@@_wxpng.lib_@@_wxzlib.lib_@@_wxregex.lib_@@_wxexpat.lib_@@_kernel32.lib_@@_user32.lib_@@_gdi32.lib_@@_comdlg32.lib_@@_winspool.lib_@@_winmm.lib_@@_shell32.lib_@@_comctl32.lib_@@_ole32.lib_@@_oleaut32.lib_@@_uuid.lib_@@_rpcrt4.lib_@@_advapi32.lib_@@_wsock32.lib_@@_odbc32.lib_@@_opengl32.lib_@@_
> PreprocDefines=_@@_
> CompilerSettings=000000000000010000000000000000000000
> Icon=
> ExeOutput=Output\Visual C++ 2005
> ObjectOutput=Objects\Visual C++ 2005
> OverrideOutput=0
> OverrideOutputName=
> HostApplication=
> CommandLine=
> UseCustomMakefile=0
> CustomMakefile=
> IncludeVersionInfo=0
> SupportXPThemes=0
> CompilerSet=1
> compilerType=1
> 
> When the wxDev-Cpp user selects "compile and run" then wxDev-Cpp 
> converts the information contained within the project into a makefile 
> (called makefile.win) which is passed to the make program.
> 
> The Makefile.Win file for the above editor/zoom sample follows
> 
> # Project: zoom
> # Compiler: Default GCC compiler
> # Compiler Type: MingW 3
> # Makefile created by wxDev-C++ 6.10.2 on 10/02/08 23:02
> 
> CPP       = C:\Progra~1\Dev-Cpp\Bin\g++.exe
> CC        = C:\Progra~1\Dev-Cpp\Bin\gcc.exe
> WINDRES   = C:\Progra~1\Dev-Cpp\Bin\windres.exe
> OBJ       = Objects/MingW/zoom.o
> LINKOBJ   = Objects/MingW/zoom.o
> LIBS      = -L"C:/Program Files/Dev-Cpp/" -L"C:/Program 
> Files/Dev-Cpp/Lib" -lwxmsw28_stc -lwxart2d_msw_canvas 
> -lwxart2d_msw_aggdrawer -lwxart2d_msw_artbase -lwxart2d_msw_curves 
> -lwxart2d_msw_editor -lwxart2d_msw_docview -lwxart2d_msw_canextobj 
> -lwxart2d_msw_gdsio -lwxart2d_msw_general -lwxart2d_msw_keyio 
> -lwxart2d_msw_svgio -lwxart2d_msw_xmlparse -lantigrain -lkbool -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" -I"C:/Program 
> Files/Dev-Cpp/include/wxart2d" -I"C:/Program 
> Files/Dev-Cpp/include/wxart2d/agg2/include"
> CXXINCS   = -I"C:/Program Files/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" 
> -I"C:/Program Files/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Program 
> Files/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Program 
> Files/Dev-Cpp/include/c++/3.4.2" -I"C:/Program Files/Dev-Cpp/include" 
> -I"C:/Program Files/Dev-Cpp/" -I"C:/Program 
> Files/Dev-Cpp/include/common/wx/msw" -I"C:/Program 
> Files/Dev-Cpp/include/common/wx/generic" -I"C:/Program 
> Files/Dev-Cpp/include/common/wx/fl" -I"C:/Program 
> Files/Dev-Cpp/include/common/wx/gizmos" -I"C:/Program 
> Files/Dev-Cpp/include/common/wx/html" -I"C:/Program 
> Files/Dev-Cpp/include/common/wx/mmedia" -I"C:/Program 
> Files/Dev-Cpp/include/common/wx/net" -I"C:/Program 
> Files/Dev-Cpp/include/common/wx/ogl" -I"C:/Program 
> Files/Dev-Cpp/include/common/wx/plot" -I"C:/Program 
> Files/Dev-Cpp/include/common/wx/protocol" -I"C:/Program 
> Files/Dev-Cpp/include/common/wx/stc" -I"C:/Program 
> Files/Dev-Cpp/include/common/wx/svg" -I"C:/Program 
> Files/Dev-Cpp/include/common/wx/xml" -I"C:/Program 
> Files/Dev-Cpp/include/common/wx/xrc" -I"C:/Program 
> Files/Dev-Cpp/include/common/wx" -I"C:/Program 
> Files/Dev-Cpp/include/common" -I"C:/Program 
> Files/Dev-Cpp/include/wxart2d" -I"C:/Program 
> Files/Dev-Cpp/include/wxart2d/agg2/include"
> RCINCS    = --include-dir "C:/PROGRA~1/Dev-Cpp/" --include-dir 
> "C:/PROGRA~1/Dev-Cpp/include/common"
> BIN       = zoom.exe
> DEFINES   =  -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__
> CXXFLAGS  = $(CXXINCS) $(DEFINES) -fexceptions -fno-pcc-struct-return 
> -fstrict-aliasing -Wall -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__   -m32 
> -fexpensive-optimizations -O3
> CFLAGS    = $(INCS) $(DEFINES) -fexceptions -fno-pcc-struct-return 
> -fstrict-aliasing -Wall -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__   -m32 
> -fexpensive-optimizations -O3
> GPROF     = C:\Progra~1\Dev-Cpp\Bin\gprof.exe
> RM        = rm -f
> LINK      = C:\Progra~1\Dev-Cpp\Bin\g++.exe
> 
> .PHONY: all all-before all-after clean clean-custom
> all: all-before $(BIN) all-after
> 
> clean: clean-custom
>     $(RM) $(OBJ) $(BIN)
> 
> $(BIN): $(OBJ)
>     $(LINK) $(LINKOBJ) -o "zoom.exe" $(LIBS)
> 
> Objects/MingW/zoom.o: $(GLOBALDEPS) zoom.cpp zoom.h mondrian.xpm smile.xpm
>     $(CPP) -c zoom.cpp -o Objects/MingW/zoom.o $(CXXFLAGS)
> 
> 
>>> I would much rather a series of 
>>> makefiles for each library/sample which I can call from within a batch 
>>> file and leave to run.
>>>   
>>>     
>> As i said before Cmake generates those makefiles for you, and they are 
>> makefiles like any other makefiles.
>>   
> 
> I understand this
> 
>> Actually they are rather advanced when it comes to dependencies and 
>> things like that.
>> So i am not going to write any makefiles by hand, why should i ??
>> The real problem is how to make order of libraries, flags etc. etc. 
>> work, in such a way that all compilers and runs well.
>> And that problem is the same, if i write makefiles or cmake files to 
>> generate the makefiles.
>>   
> A problem to be sure. If I remember correctly with gcc stuff, the 
> dependancy of one library to another determines the link order.
> 
>> Anyway, if you manage the directdraw sample or something like that, in 
>> release mode, i be glad to have those makefiles.
>>   
> I can successfully build and run the following samples (note I had to 
> remove/replace the resource file in several with the default wx.rc from 
> the wxwidgets distribution)
> aggdrawer/directdraw and tuto
> artbase/directdraw and drawtest
> canvas/boolop, canmdi, cansim, simple and split
> curves/curtuto1 - however it seems to crash when opening documents in 
> the samples/documents list
> docview/auiframe, mdi, multiframe, nonmanaged (although the file menu 
> options result in exceptions), splitwin and tabframe. 
> (docview/singleframe sample crashes on startup)
> editor/mdi, single, single2, tuto, tuto3, tuto4, vdraws, viewmul,  wires 
> and zoom - although there appears to be a missing file "image2.png"  
>           ( vdrawm sample crashes on startup)
> 
>> If that works, i must be able to get things working with Cmake also. But 
>> they should work with MSYS in that case. Or can i use Cmake to generate 
>> for wxDevCpp. When i run CmakeSetup, and choose mingw, it looks like it 
>> tries to do that.
>> Will have another look at that,

-- 
Unclassified

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to