OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

build osg 3.5.4 plugin lua error, on vs 2010


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins]
View previous topic :: View next topic  
Author Message
namdt40
Newbie


Joined: 11 Jun 2012
Posts: 6

PostPosted: Mon Aug 08, 2016 7:11 am    Post subject:
build osg 3.5.4 plugin lua error, on vs 2010
Reply with quote

Hi, help me
log error
All outputs are up-to-date.
3> lstring.c
3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(107): error C2143: syntax error : missing ';' before 'type'
3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(108): error C2065: 'start_of_string' : undeclared identifier
3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(108): warning C4022: 'memcpy' : pointer mismatch for actual parameter 1
3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(109): error C2065: 'start_of_string' : undeclared identifier
3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(109): error C2109: subscript requires array or pointer type
3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(117): error C2143: syntax error : missing '{' before '*'
3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(118): warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(127): warning C4133: 'return' : incompatible types - from 'TString *' to 'int *'
3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(150): warning C4133: 'return' : incompatible types - from 'int *' to 'TString *'
3>
...
anyone show me, how to fix.
Thank you!

Cheers,
nguyen
Back to top
View user's profile Send private message
René Molenaar
Guest





PostPosted: Wed Oct 05, 2016 11:29 am    Post subject:
build osg 3.5.4 plugin lua error, on vs 2010
Reply with quote

Hi all,

i ran into the same problem (when compiling in vs2012), see this changeset:
https://github.com/openscenegraph/OpenSceneGraph/commit/e64e70870d51873621be4f90f1301640d882704d



char* start_of_string;



this is caused by the fact that the file is c code, not c++ and the new variable needs to be declared at the start of the block.


(updated file is attached)


groetjes,
René




2016-08-08 9:11 GMT+02:00 nguyen duy nam < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>:
Quote:
Hi, help me
log error
 All outputs are up-to-date.
3>  lstring.c
3>..........sourcesopenscenegraph3.5.0srcosgPluginslualua-5.2.3srclstring.c(107): error C2143: syntax error : missing ';' before 'type'
3>..........sourcesopenscenegraph3.5.0srcosgPluginslualua-5.2.3srclstring.c(108): error C2065: 'start_of_string' : undeclared identifier
3>..........sourcesopenscenegraph3.5.0srcosgPluginslualua-5.2.3srclstring.c(108): warning C4022: 'memcpy' : pointer mismatch for actual parameter 1
3>..........sourcesopenscenegraph3.5.0srcosgPluginslualua-5.2.3srclstring.c(109): error C2065: 'start_of_string' : undeclared identifier
3>..........sourcesopenscenegraph3.5.0srcosgPluginslualua-5.2.3srclstring.c(109): error C2109: subscript requires array or pointer type
3>..........sourcesopenscenegraph3.5.0srcosgPluginslualua-5.2.3srclstring.c(117): error C2143: syntax error : missing '{' before '*'
3>..........sourcesopenscenegraph3.5.0srcosgPluginslualua-5.2.3srclstring.c(118): warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
3>..........sourcesopenscenegraph3.5.0srcosgPluginslualua-5.2.3srclstring.c(127): warning C4133: 'return' : incompatible types - from 'TString *' to 'int *'
3>..........sourcesopenscenegraph3.5.0srcosgPluginslualua-5.2.3srclstring.c(150): warning C4133: 'return' : incompatible types - from 'int *' to 'TString *'
3>
...
anyone show me, how to fix.
Thank you!

Cheers,
nguyen

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68301#68301





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11275

PostPosted: Wed Oct 05, 2016 11:59 am    Post subject:
build osg 3.5.4 plugin lua error, on vs 2010
Reply with quote

Hi Rene,

Thanks for the fix. I've just compared to master version of lstring.c
against your modification version and there are two difference, first
the declaration of the start_of_string local variable at the top of
the function while resolves the compile issue, and second a memcpy
addition prior to the assingment to start_of_string. This second
addition looks like it's been pulled in from the 3.4 branch.

Robert,

On 5 October 2016 at 12:27, René Molenaar <> wrote:
Quote:
Hi all,

i ran into the same problem (when compiling in vs2012), see this changeset:
https://github.com/openscenegraph/OpenSceneGraph/commit/e64e70870d51873621be4f90f1301640d882704d

char* start_of_string;

this is caused by the fact that the file is c code, not c++ and the new
variable needs to be declared at the start of the block.

(updated file is attached)

groetjes,
René


2016-08-08 9:11 GMT+02:00 nguyen duy nam <>:
Quote:

Hi, help me
log error
All outputs are up-to-date.
3> lstring.c

3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(107):
error C2143: syntax error : missing ';' before 'type'

3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(108):
error C2065: 'start_of_string' : undeclared identifier

3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(108):
warning C4022: 'memcpy' : pointer mismatch for actual parameter 1

3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(109):
error C2065: 'start_of_string' : undeclared identifier

3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(109):
error C2109: subscript requires array or pointer type

3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(117):
error C2143: syntax error : missing '{' before '*'

3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(118):
warning C4431: missing type specifier - int assumed. Note: C no longer
supports default-int

3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(127):
warning C4133: 'return' : incompatible types - from 'TString *' to 'int *'

3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(150):
warning C4133: 'return' : incompatible types - from 'int *' to 'TString *'
3>
...
anyone show me, how to fix.
Thank you!

Cheers,
nguyen

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68301#68301













------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
René Molenaar
Guest





PostPosted: Wed Oct 05, 2016 1:56 pm    Post subject:
build osg 3.5.4 plugin lua error, on vs 2010
Reply with quote

Yes, the additional memcpy, is the old code,
(just in case i added updated/fixed version).


gr.
René




2016-10-05 13:57 GMT+02:00 Robert Osfield < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>:
Quote:
Hi Rene,

Thanks for the fix.  I've just compared to master version of lstring.c
against your modification version and there are two difference, first
the declaration of the start_of_string local variable at the top of
the function while resolves the compile issue, and second a memcpy
addition prior to the assingment to start_of_string.  This second
addition looks like it's been pulled in from the 3.4 branch.

Robert,

On 5 October 2016 at 12:27, René Molenaar < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hi all,

i ran into the same problem (when compiling in vs2012), see this changeset:
https://github.com/openscenegraph/OpenSceneGraph/commit/e64e70870d51873621be4f90f1301640d882704d

char* start_of_string;

this is caused by the fact that the file is c code, not c++ and the new
variable needs to be declared at the start of the block.

(updated file is attached)

groetjes,
René


2016-08-08 9:11 GMT+02:00 nguyen duy nam < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>:
Quote:

Hi, help me
log error
  All outputs are up-to-date.
3>  lstring.c

3>..........sourcesopenscenegraph3.5.0srcosgPluginslualua-5.2.3srclstring.c(107):
error C2143: syntax error : missing ';' before 'type'

3>..........sourcesopenscenegraph3.5.0srcosgPluginslualua-5.2.3srclstring.c(108):
error C2065: 'start_of_string' : undeclared identifier

3>..........sourcesopenscenegraph3.5.0srcosgPluginslualua-5.2.3srclstring.c(108):
warning C4022: 'memcpy' : pointer mismatch for actual parameter 1

3>..........sourcesopenscenegraph3.5.0srcosgPluginslualua-5.2.3srclstring.c(109):
error C2065: 'start_of_string' : undeclared identifier

3>..........sourcesopenscenegraph3.5.0srcosgPluginslualua-5.2.3srclstring.c(109):
error C2109: subscript requires array or pointer type

3>..........sourcesopenscenegraph3.5.0srcosgPluginslualua-5.2.3srclstring.c(117):
error C2143: syntax error : missing '{' before '*'

3>..........sourcesopenscenegraph3.5.0srcosgPluginslualua-5.2.3srclstring.c(118):
warning C4431: missing type specifier - int assumed. Note: C no longer
supports default-int

3>..........sourcesopenscenegraph3.5.0srcosgPluginslualua-5.2.3srclstring.c(127):
warning C4133: 'return' : incompatible types - from 'TString *' to 'int *'

3>..........sourcesopenscenegraph3.5.0srcosgPluginslualua-5.2.3srclstring.c(150):
warning C4133: 'return' : incompatible types - from 'int *' to 'TString *'
3>
...
anyone show me, how to fix.
Thank you!

Cheers,
nguyen

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68301#68301





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




------------------
Post generated by Mail2Forum
Back to top
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11275

PostPosted: Wed Oct 05, 2016 3:34 pm    Post subject:
build osg 3.5.4 plugin lua error, on vs 2010
Reply with quote

Thanks Rene, fix now checked into OSG git master.

On 5 October 2016 at 14:54, René Molenaar <> wrote:
Quote:
Yes,
the additional memcpy, is the old code,
(just in case i added updated/fixed version).

gr.
René


2016-10-05 13:57 GMT+02:00 Robert Osfield <>:
Quote:

Hi Rene,

Thanks for the fix. I've just compared to master version of lstring.c
against your modification version and there are two difference, first
the declaration of the start_of_string local variable at the top of
the function while resolves the compile issue, and second a memcpy
addition prior to the assingment to start_of_string. This second
addition looks like it's been pulled in from the 3.4 branch.

Robert,

On 5 October 2016 at 12:27, René Molenaar <>
wrote:
Quote:
Hi all,

i ran into the same problem (when compiling in vs2012), see this
changeset:

https://github.com/openscenegraph/OpenSceneGraph/commit/e64e70870d51873621be4f90f1301640d882704d

char* start_of_string;

this is caused by the fact that the file is c code, not c++ and the new
variable needs to be declared at the start of the block.

(updated file is attached)

groetjes,
René


2016-08-08 9:11 GMT+02:00 nguyen duy nam <>:
Quote:

Hi, help me
log error
All outputs are up-to-date.
3> lstring.c


3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(107):
error C2143: syntax error : missing ';' before 'type'


3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(108):
error C2065: 'start_of_string' : undeclared identifier


3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(108):
warning C4022: 'memcpy' : pointer mismatch for actual parameter 1


3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(109):
error C2065: 'start_of_string' : undeclared identifier


3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(109):
error C2109: subscript requires array or pointer type


3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(117):
error C2143: syntax error : missing '{' before '*'


3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(118):
warning C4431: missing type specifier - int assumed. Note: C no longer
supports default-int


3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(127):
warning C4133: 'return' : incompatible types - from 'TString *' to 'int
*'


3>..\..\..\..\..\sources\openscenegraph3.5.0\src\osgPlugins\lua\lua-5.2.3\src\lstring.c(150):
warning C4133: 'return' : incompatible types - from 'int *' to 'TString
*'
3>
...
anyone show me, how to fix.
Thank you!

Cheers,
nguyen

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68301#68301



















------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Build OSG on iOS with support OpenGLE... xerxses Build system [build] 1 Tue Dec 12, 2017 1:09 pm View latest post
No new posts Building Nvidia Texture Tools plugin ... hbucher Build system [build] 2 Thu Dec 07, 2017 11:21 pm View latest post
No new posts Fine grained GL error checking during... robertosfield General 0 Wed Dec 06, 2017 10:33 am View latest post
No new posts logo plugin culling Mathieu Submission 1 Wed Nov 29, 2017 10:15 am View latest post
No new posts obj plugin does not support diffuse ... Ralf Habacker Submission 0 Tue Nov 14, 2017 4:18 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP