Re: std_container.i for Java?

Kustaa Nyholm <[email protected]>
Newsgroups gmane.comp.programming.swig
Message-ID <[email protected]>
Sorry William, I of course wanted to mail to the list and not you personally. Apologies.

wbr Kusti

-------

Ok, thanks for the insight.

I will try to work with that.

However, did you see my other post where I fumbled to forward  and got a syntax error in std_list.i?

As I presume SWIG/Java must be in use widely it must be more or less correct and this is likely my fault?

Do you agree?

wbr Kusti


> On 24 Jul 2020, at 16.47, William S Fulton <[email protected]> wrote:
> 
> std_container.i is an implementation detail file for the scripting languages. It shouldn't be included in user code unless you have a really good understanding of the implementation details of the STL for the scripting languages and want to implement an STL container-like class. The std_vector.i, std_list.i files etc should be used instead.
> 
> William
> 
> 
> On Fri, 24 Jul 2020 at 07:50, Kustaa Nyholm <[email protected]> wrote:
> Hi,
> 
> I'm trying to use the very nice OpenCascade SWIG interface files from pythonOCC with Java.
> 
> However it never gets anywhere because (I guess) missing std_container.i for Java.
> 
> pythonOCC uses CMake and when I modified it to produce Java like this:
> 
>   swig_add_module(${OCE_MODULE} python ${FILE})
> 
> => 
> 
>   swig_add_module(${OCE_MODULE} java ${FILE})
> 
> 
> 
> the 'cmake' configuration runs to completion and produces a Makefile but when I make it I get:
> 
> [  0%] Swig compile src/SWIG_files/wrapper/IGESCAFControl.i for java
> /usr/local/Cellar/swig/4.0.2/share/swig/4.0.2/std/std_list.i:5: Error: Unable to find 'std_container.i'
> make[2]: *** [CMakeFiles/IGESCAFControl.dir/IGESCAFControlJAVA.stamp] Error 1
> make[2]: *** Deleting file `CMakeFiles/IGESCAFControl.dir/IGESCAFControlJAVA.stamp'
> make[1]: *** [CMakeFiles/IGESCAFControl_swig_compilation.dir/all] Error 2
> make: *** [all] Error 2
> 
> Looking for it:
> 
> ls /usr/local/Cellar/swig/4.0.2/share/swig/4.0.2/java/
> arrays_java.i           enumsimple.swg          javakw.swg              std_except.i            std_shared_ptr.i        std_wstring.i
> boost_intrusive_ptr.i   enumtypesafe.swg        std_array.i             std_list.i              std_string.i            stl.i
> boost_shared_ptr.i      enumtypeunsafe.swg      std_auto_ptr.i          std_map.i               std_unordered_map.i     swiginterface.i
> director.swg            java.swg                std_common.i            std_pair.i              std_unordered_set.i     typemaps.i
> enums.swg               javahead.swg            std_deque.i             std_set.i               std_vector.i            various.i
> 
> I see it is not there although some other std_ stuff exists.
> 
> Is there a special reason for the omission or is it just that no-one has created it?
> 
> Is it a mammoth task for mortals to create it by myself?
> 
> Are there alternative approaches?
> 
> wbr Kusti
> 
> 
> 
> 
> 
> _______________________________________________
> Swig-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/swig-user
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.