Have it building now but after dumping gnew for malloc have tried things like gcc -shared -o mono-profiler-sample.so profiler.c -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -lglib-2.0 -fPIC
with malloc it can compile with gcc -shared -o mono-profiler-sample.so profiler.c -fPIC On Tue, Jan 20, 2015 at 11:48 PM, Greg Young <gregoryyou...@gmail.com> wrote: > So after some work I am back to where I was. > > [mono] \w @ pkg-config --cflags --libs mono > > 1 ↵ > > [mono] \w @ pkg-config --cflags --libs dotnet > -r:Accessibility.dll -r:cscompmgd.dll -r:Microsoft.VisualC.dll > -r:System.Configuration.Install.dll -r:System.Data.dll > -r:System.Data.OracleClient.dll -r:System.Design.dll > -r:System.DirectoryServices.dll -r:System.dll > -r:System.Drawing.Design.dll -r:System.Drawing.dll > -r:System.EnterpriseServices.dll -r:System.Management.dll > -r:System.Messaging.dll -r:System.Runtime.Remoting.dll > -r:System.Runtime.Serialization.Formatters.Soap.dll > -r:System.Security.dll -r:System.ServiceProcess.dll -r:System.Web.dll > -r:System.Web.Services.dll -r:System.Windows.Forms.dll > -r:System.Xml.dll > > I am guessing I need to go through the task of installing gnome to > /opt/gnome but keep thinking there must be an easier way (the bit > missing is from gnome though I am a bit surprised that I get nothing > at all on --libs mono > > I am curious can you actually build the sample with your parallel > build? I have been able to most everything else so far > > On Tue, Jan 20, 2015 at 9:44 PM, Greg Young <gregoryyou...@gmail.com> wrote: >> >> >> On Tuesday, January 20, 2015, Andres G. Aragoneses <kno...@gmail.com> wrote: >>> >>> On 20/01/15 20:19, Greg Young wrote: >>>> >>>> This is roughly what our scripts do. >>>> >>>> https://github.com/EventStore/EventStore/blob/dev/src/Scripts/get-mono >>> >>> >>> So, are you running your pkg-config test inside the `[mono]` shell? >> >> >> Have pkg config paths set to include /opt/mono/lib/pkgconfig >> >> Pkg-config for dotnet gives back things but not mono. >> >> I have most of the paths there setup except for the gnome ones. I am >> guessing I have to build gnome to /opt/gnome is this part of what you are >> doing? The gnew function is gnome iirc >> >>> >>> >>>> We don't rebuild all the dependencies from source as specified but >>> >>> >>> Rebuild dependencies of mono from sources? I don't do that either, I don't >>> think the URL I gave you recommends this. >> >> >> Hmm they have like 5 things to build from source >>> >>> >>> >>>> mono is definitely done this way also it being that documentation is >>>> from Mono 1.1.9.1 I can only imagine the shear amount of yak shaving >>>> in trying to get it to work with current sources. >>> >>> >>> I've been using a mono parallel environment for years in order to run two >>> mono installations in the same computer at the same time (especially to test >>> master branch). I don't think the wiki page I pointed you is obsolete at >>> all. >>> >>> >>>> On Tue, Jan 20, 2015 at 9:06 PM, Andres G. Aragoneses <kno...@gmail.com> >>>> wrote: >>>>> >>>>> Are you using a parallel mono environment[1] for your /opt/mono >>>>> installation? >>>>> >>>>> If not, then I'm not surprised that you're having pkg-config problems >>>>> and >>>>> the like. >>>>> >>>>> [1] >>>>> >>>>> http://www.mono-project.com/docs/compiling-mono/parallel-mono-environments/ >>>>> >>>>> >>>>> On 20/01/15 19:54, Greg Young wrote: >>>>>> >>>>>> >>>>>> from looking: >>>>>> >>>>>> greg@orc ~/src/shit » pkg-config --cflags --libs mono >>>>>> >>>>>> greg@orc ~/src/shit » >>>>>> >>>>>> I'd guess this should be returning something? I am running with mono >>>>>> in /opt/mono built from source. >>>>>> >>>>>> Is there some step I am missing here in getting setup? >>>>>> >>>>>> On Tue, Jan 20, 2015 at 4:18 PM, Greg Young <gregoryyou...@gmail.com> >>>>>> wrote: >>>>>>> >>>>>>> >>>>>>> Was trying to build the profiler example in the source tree it >>>>>>> mentions to build with >>>>>>> >>>>>>> gcc -shared -o mono-profiler-sample.so profile.c `pkg-config --cflags >>>>>>> --libs mono` >>>>>>> >>>>>>> I am guessing I also need a -I /mymono/includes/mono-2.0 >>>>>>> >>>>>>> I am still getting build errors though. >>>>>>> >>>>>>> ~/Code/profiletest gcc -shared -o mono-profiler-sample.so >>>>>>> profile.c >>>>>>> `pkg-config --cflags --libs mono` -I /opt/mono/include/mono-2.0 >>>>>>> profile.c:19:9: warning: implicit declaration of function 'g_print' is >>>>>>> invalid in C99 [-Wimplicit-function-declaration] >>>>>>> g_print ("total number of calls: %d\n", prof->ncalls); >>>>>>> ^ >>>>>>> profile.c:39:16: warning: implicit declaration of function 'g_new0' is >>>>>>> invalid in C99 [-Wimplicit-function-declaration] >>>>>>> prof = g_new0 (MonoProfiler, 1); >>>>>>> ^ >>>>>>> profile.c:39:24: error: unexpected type name 'MonoProfiler': expected >>>>>>> expression >>>>>>> prof = g_new0 (MonoProfiler, 1); >>>>>>> ^ >>>>>>> 2 warnings and 1 error generated. >>>>>>> >>>>>>> What am I missing to get this to build? >>>>>>> >>>>>>> -- >>>>>>> Studying for the Turing test >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Mono-devel-list mailing list >>>>> Mono-devel-list@lists.ximian.com >>>>> http://lists.ximian.com/mailman/listinfo/mono-devel-list >>>> >>>> >>>> >>>> >>> >>> >>> _______________________________________________ >>> Mono-devel-list mailing list >>> Mono-devel-list@lists.ximian.com >>> http://lists.ximian.com/mailman/listinfo/mono-devel-list >> >> >> >> -- >> Studying for the Turing test >> > > > > -- > Studying for the Turing test -- Studying for the Turing test _______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list