[Mono-dev] Building Profiler Example

Andres G. Aragoneses knocte at gmail.com
Tue Jan 20 19:31:34 UTC 2015


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?


> 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.


> 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 <knocte at 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 at orc ~/src/shit » pkg-config --cflags --libs mono
>>>
>>> greg at 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 <gregoryyoung1 at 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 at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
>




More information about the Mono-devel-list mailing list