RE: CVS compilation under Linux

"Michael S. Muegel" <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.wxnet
Message-ID <[email protected]>
> I'm currently trying to run Minimal.exe under Linux. I use 
> wxGTK2 from CVS and wx.NET from CVS, but when trying to 
> compile Minimal.exe, I get this 
> 
> ** (/usr/bin/mcs.exe:16495): WARNING **: Failed to load 
> library libwx-c.so (wx-c): /usr/local/lib/libwx-c.so: 
> undefined symbol:
> _ZTI5wxApp

Robert, did you copy libwx-c.so to /usr/local/lib? I just want to make sure
that the libwx-c.so that is being loaded is not a version from an earlier
build.

I'm still early stage in my wx.NET project so I develop on Windows (my
desktop environment) and occasionally test on Linux (I rsync my
Windows-compiled project assemblies to my VMWARE hosted Linux test
"system"). I setup my environment like this:

export MONO_TOP=/usr/local/packages/mono-20040525
export PATH=$MONO_TOP/bin:$PATH
export
LD_LIBRARY_PATH=/usr/local/src/dotnet/wx-widgets/wx.NET-CVS/wx.NET/Bin:$MONO
_TOP/lib:/usr/local/packages/wx-widgets-cvs/lib:/usr/local/lib:/usr/lib:/lib
export MONO_PATH=${LD_LIBRARY_PATH}

So I don't even bother installing wx.NET yet. It gets picked up from the
wx.NET "Bin" folder (that long /usr/local/src/... Path above). Wx.Widgets
lib also gets added above.

> BTW, is there something like "make install"? When I tried to 
> "make" Minimal.exe, it complained about not being able to 
> find wx.Net.dll. Maybe I overlooked some path variable or 
> some other way to tell Mono where wx.Net.dll is.

Did you do the make from the Samples folder? The Makefiles that get
generated via the premake process should add ../../Bin to the lib path. For
example my Samples/Minimal/Minimal.make has this:

BINDIR = ../../Bin/
FLAGS += /debug /r:System.Drawing.dll /r:wx.NET.dll
...
@mcs /out:$@ /t:winexe -lib:$(BINDIR) $(FLAGS) $^

But you need to do a make from within Samples top-dir, not the individual
directory unless you set CONFIG manually (make CONFIG=Release -f
Minimal.make).

Kind of kludgy but this is what the premake stuff outputs. I believe the
next release of premake will stick with naming the Makefiles Makefile
instead of module.make. I'll also look into setting a default CONFIG in each
Makefile if we can do that on our end.

I have a to-do to improve the overall Linux build process and documentation
some. I will make sure installation is addressed. I will be doing this
before we do a 0.5 release (June after new Mono/wx.Widgets are shipped).
Guess I better get cracking ...

Cheers,
-Mike

--
Michael S. Muegel
Dallas, TX



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.