(Please cc the list) Maybe it's best to file a bug on our github page
providing full information on the command line you used, mcs version and
operating system version. I should note that I used the github master (i.e.
the development code) rather than the OB 2.4.1 release.
- Noel
On 21 June 2018 at 20:16, Yang, Chengxi <yangc...@oregonstate.edu> wrote:
> Hi,
>
> Use the mcs complier actually helps!
> However, there might be the last problem.
> When I run *make, *it will report:
>
> ./VectorBond.cs(47,23): error CS0246: The type or namespace name `Action'
> could not be found. Are you missing `System' using directive?
>
> ./VectorDouble.cs(47,23): error CS0246: The type or namespace name
> `Action' could not be found. Are you missing `System' using directive?
>
> ./VectorInt.cs(47,23): error CS0246: The type or namespace name `Action'
> could not be found. Are you missing `System' using directive?
>
> ./VectorMol.cs(47,23): error CS0246: The type or namespace name `Action'
> could not be found. Are you missing `System' using directive?
>
> ./VectorOBExternalBond.cs(47,23): error CS0246: The type or namespace
> name `Action' could not be found. Are you missing `System' using directive?
>
> ./VectorOBVector3.cs(47,23): error CS0246: The type or namespace name
> `Action' could not be found. Are you missing `System' using directive?
>
> ./VectorResidue.cs(47,23): error CS0246: The type or namespace name
> `Action' could not be found. Are you missing `System' using directive?
>
> ./VectorRing.cs(47,23): error CS0246: The type or namespace name `Action'
> could not be found. Are you missing `System' using directive?
>
> ./VectorString.cs(47,23): error CS0246: The type or namespace name
> `Action' could not be found. Are you missing `System' using directive?
>
> ./VectorTorsion.cs(47,23): error CS0246: The type or namespace name
> `Action' could not be found. Are you missing `System' using directive?
>
> ./VectorUInt.cs(47,23): error CS0246: The type or namespace name `Action'
> could not be found. Are you missing `System' using directive?
>
> ./VectorUShort.cs(47,23): error CS0246: The type or namespace name
> `Action' could not be found. Are you missing `System' using directive?
>
> ./VectorVecDouble.cs(47,23): error CS0246: The type or namespace name
> `Action' could not be found. Are you missing `System' using directive?
>
> ./VectorVecInt.cs(47,23): error CS0246: The type or namespace name
> `Action' could not be found. Are you missing `System' using directive?
>
> ./VectorVecOBVector3.cs(47,23): error CS0246: The type or namespace name
> `Action' could not be found. Are you missing `System' using directive?
>
> ./VectorVecUInt.cs(47,23): error CS0246: The type or namespace name
> `Action' could not be found. Are you missing `System' using directive?
>
> ./VectorpAtom.cs(47,23): error CS0246: The type or namespace name `Action'
> could not be found. Are you missing `System' using directive?
>
> ./VectorpBond.cs(47,23): error CS0246: The type or namespace name `Action'
> could not be found. Are you missing `System' using directive?
>
> ./VectorpData.cs(47,23): error CS0246: The type or namespace name `Action'
> could not be found. Are you missing `System' using directive?
>
> ./VectorpInternalCoord.cs(47,23): error CS0246: The type or namespace
> name `Action' could not be found. Are you missing `System' using directive?
>
> ./VectorpRing.cs(47,23): error CS0246: The type or namespace name `Action'
> could not be found. Are you missing `System' using directive?
>
> ./VectorpRotor.cs(47,23): error CS0246: The type or namespace name
> `Action' could not be found. Are you missing `System' using directive?
>
>
> I tried to manually add namespace system to these files. But every time I
> run *make*, these files will be regenerated.
>
> Is there anyway to solve this problem?
>
>
> Thanks,
>
> Chengxi
>
> On Tue, Jun 19, 2018 at 1:37 PM, Noel O'Boyle <baoille...@gmail.com>
> wrote:
>
>> (Please cc the list)
>>
>> I've just tested this on Linux, and it compiles fine with system mono
>> (4.6.2) on Centos 7.1 with the original CMakeLists.txt. However the mono
>> compiler is called "mcs" on Linux, not "mono". You should search for
>> something similar on MacOS and specify that as the CSHARP_EXECUTABLE.
>>
>> Your email:
>> I have followed your instruction but it get even worse.
>> If I used openbabel-mono.i instead of openbabel-csharp.i I will get lost
>> of error when I run *make.*
>> I think the key problem here is there is not a directory named target so
>> the program cannot found /target:libary.
>> I tried with -target:library but it says: Unknown command line option:
>> '-target:library'.
>> Do you have any idea?
>>
>>
>>
>> On 18 June 2018 at 17:03, Noel O'Boyle <baoille...@gmail.com> wrote:
>>
>>> The code is targeting the Windows .NET platform. Try altering the
>>> appropriate lines in scripts/CMakeLists.txt so that the command-line
>>> parameters are appropriate for Mono. For example, trying openbabel-mono.i
>>> instead of openbabel-csharp.i. Also try "-target:library" instead of
>>> "/target:library", and so forth. If you figure it out, let us know, and
>>> we'll update the build so that Mono is supported out-of-the-box. It has
>>> worked in the past but nobody has been interested in that for a while.
>>>
>>> - Noel
>>>
>>>
>>>
>>>
>>> On 14 June 2018 at 23:57, Yang, Chengxi <yangc...@oregonstate.edu>
>>> wrote:
>>>
>>>> Dear Openbabel Stuff,
>>>>
>>>> I am having trouble installing openbabel-2.4.1 with C# binding.
>>>> Specifically, after the *Cmake* step, I run *make install*, then the
>>>> error happens.
>>>> At the end of the installation, it says:
>>>>
>>>> [100%] *Linking CXX executable ../bin/test_runner*
>>>>
>>>> [100%] Built target test_runner
>>>>
>>>> [100%] *Generating
>>>> /Users/chengxiyang/Downloads/openbabel-2.4.1/scripts/csharp/openbabel-csharp.cpp,
>>>> /Users/chengxiyang/Downloads/openbabel-2.4.1/scripts/csharp/OBDotNet.dll*
>>>>
>>>> Cannot open assembly '/target:library': No such file or directory.
>>>>
>>>> make[2]: *** [/Users/chengxiyang/Downloads/
>>>> openbabel-2.4.1/scripts/csharp/openbabel-csharp.cpp] Error 2
>>>>
>>>> make[2]: *** Deleting file `/Users/chengxiyang/Downloads/
>>>> openbabel-2.4.1/scripts/csharp/openbabel-csharp.cpp'
>>>>
>>>> make[1]: *** [scripts/CMakeFiles/bindings_csharp.dir/all] Error 2
>>>>
>>>> make: *** [all] Error 2
>>>>
>>>>
>>>> I am using MacOS and here is my system information:
>>>>
>>>>
>>>> *Hardware Overview:*
>>>>
>>>>
>>>> Model Name: MacBook Pro
>>>>
>>>> Model Identifier: MacBookPro13,3
>>>>
>>>> Processor Name: Intel Core i7
>>>>
>>>> Processor Speed: 2.6 GHz
>>>>
>>>> Number of Processors: 1
>>>>
>>>> Total Number of Cores: 4
>>>>
>>>> L2 Cache (per Core): 256 KB
>>>>
>>>> L3 Cache: 6 MB
>>>>
>>>> Memory: 16 GB
>>>>
>>>> Boot ROM Version: MBP133.0242.B00
>>>>
>>>> SMC Version (system): 2.38f7
>>>>
>>>> Serial Number (system): C02T90B2H03M
>>>>
>>>> Hardware UUID: DE3C82F1-E62B-5AEE-AD10-C95E201D62AE
>>>>
>>>>
>>>>
>>>> *System Software Overview:*
>>>>
>>>>
>>>> System Version: macOS 10.13.4 (17E202)
>>>>
>>>> Kernel Version: Darwin 17.5.0
>>>>
>>>> Boot Volume: Macintosh HD
>>>>
>>>> Boot Mode: Normal
>>>>
>>>> Computer Name: Chengxi’s MacBook Pro
>>>>
>>>> User Name: Chengxi Yang (chengxiyang)
>>>>
>>>> Secure Virtual Memory: Enabled
>>>>
>>>> System Integrity Protection: Enabled
>>>>
>>>> Time since boot: 1 day 1:48
>>>>
>>>>
>>>>
>>>> Here is the command I run *cmake**:*
>>>>
>>>>
>>>> *cmake ../openbabel-2.4.1 -DCSHARP_BINDINGS=ON
>>>> -DCSHARP_EXECUTABLE=/Library/Frameworks/Mono.framework/Versions/Current/bin/mono
>>>> -DRUN_SWIG=ON *
>>>>
>>>>
>>>>
>>>> I have attach the output of *cmake* and *make install *in the
>>>> attachment file.
>>>>
>>>> Thank you for taking a look at it and I will really appreciate you help.
>>>>
>>>>
>>>> Best,
>>>>
>>>> Chengxi
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------
>>>> ------------------
>>>> Check out the vibrant tech community on one of the world's most
>>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>>> _______________________________________________
>>>> OpenBabel-discuss mailing list
>>>> openbabel-disc...@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
>>>>
>>>>
>>>
>>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel