NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

warning when using multiple build platforms

 
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users
View previous topic :: View next topic  
Author Message
charlls



Joined: 27 Jan 2009
Posts: 45

PostPosted: Tue Dec 22, 2009 7:00 pm    Post subject: warning when using multiple build platforms Reply with quote

Hi,

i tried to setup the simplest project that handles at least two build platforms, in this case windows/mingw32 and ubuntu/amd64

for this, i created a new configuration (cloning from the mingw configuration and changing appropiately didn't work because it insisted on trying to compile using g++.exe instead of g++, like it hardcoded somewhere references to the tool collection properties inside the configuration)

after i created a new configuration and edited the properties so the project added appropiate includes for the platform, at clicking apply i get (manually transcribed since the dialog window doesn't seem to allow selecting text)

Quote:
the following configuration(s) were not saved due to mismatch between the current development host Platform "windows" and the build platform in the configuration(s):

linux_amd64_dev [build platform: linux x86 <---- yeah, apparently it doesnt care what i put in the target architecture property]

Please open the project on the appropiate build platform and configure and save these configurations


i moved the project back to windows and the project still builds fine and everything seems to work but i'm curious if i can avoid this warning

i'm using 6.8
Back to top
charlls



Joined: 27 Jan 2009
Posts: 45

PostPosted: Mon Jan 04, 2010 5:04 pm    Post subject: Reply with quote

also, i was wondering if adding new configurations is really the right place to store includes and link configurations on a per user basis, i'm hoping that something much like a configuration can be added to a netBeans project seamlessly (a separate file would be ideal so it could stay out of the version control system) and each user would configure its own according to his working machine

does it make sense to use build configurations for this purpose? can configurations be imported or added in such a way? i've read mentioned by other forum members that NB has some support for pkg-config but i'm not sure how/where to add the pkg-config options (other than the build configuration options, that is)
Back to top
Thomas Preisler
Posted via mailing list.





PostPosted: Mon Jan 04, 2010 10:27 pm    Post subject: warning when using multiple build platforms Reply with quote

The annoying warning problem has been fixed and will be available in a
patch to 6.8. In meanwhile you could download a trunk build from
http://bits.netbeans.org/download/trunk/nightly/latest

--thomas

charlls wrote:
Quote:
Hi,

i tried to setup the simplest project that handles at least two build platforms, in this case windows/mingw32 and ubuntu/amd64

for this, i created a new configuration (cloning from the mingw configuration and changing appropiately didn't work because it insisted on trying to compile using g++.exe instead of g++, like it hardcoded somewhere references to the tool collection properties inside the configuration)

after i created a new configuration and edited the properties so the project added appropiate includes for the platform, at clicking apply i get (manually transcribed since the dialog window doesn't seem to allow selecting text)


Quote:
the following configuration(s) were not saved due to mismatch between the current development host Platform "windows" and the build platform in the configuration(s):

linux_amd64_dev [build platform: linux x86 <---- yeah, apparently it doesnt care what i put in the target architecture property]

Please open the project on the appropiate build platform and configure and save these configurations


i moved the project back to windows and the project still builds fine and everything seems to work but i'm curious if i can avoid this warning

i'm using 6.8



Back to top
Bob Hutchins



Joined: 14 Jul 2010
Posts: 1

PostPosted: Wed Jul 14, 2010 6:26 pm    Post subject: Reply with quote

Hello,

I am running NetBeans 6.9 on both Windows 7 and Ubuntu Linux 10.04. As per the thread, I am trying to create C/C++ configurations so that I can compile with MinGW on Windows 7 and the normal GNU gcc on Ubuntu. However when creating a configuration for Linux on the Ubuntu machine, I get the similar Mismatched platforms warning:

Makefiles for the following configuration(s) were not generated due to mismatch between the current development host Platform "Linux x86" and the build platform in the configuration(s):

Debug [build platform: Windows]

Does anyone know why this is still happening? Was there really a bug fix in NetBeans 6.8?

Thanks,

Bob
Back to top
soldatov



Joined: 05 Nov 2009
Posts: 390

PostPosted: Wed Jul 14, 2010 8:53 pm    Post subject: Reply with quote

Bob Hutchins wrote:
Was there really a bug fix in NetBeans 6.8?

Yes. Some check box is added into NetBeans 6.8 patch1. You can select it in this warning window and this window will not appear. I have small project with Windows/OpenSolaris/Linux+GCC/OracleSolarisStudio and I haven't problems which I can't resolved my hands.
Back to top
jarome



Joined: 29 Sep 2011
Posts: 1

PostPosted: Thu Sep 29, 2011 3:24 pm    Post subject: I am getting this with 7.01 too Reply with quote

Yes, I can check the warning box, but the project does not run on Windows when it says that the platform changed from OS X.

What is the approved method of configuring a project so that the same project can be run on multiple platforms (with perhaps different platform-dependent code)?
Back to top
areeda



Joined: 28 Aug 2008
Posts: 469
Location: Los Angeles

PostPosted: Wed Mar 07, 2012 4:26 pm    Post subject: Reply with quote

Has anyone found the solution to this?

I'm running 7.1.1 and am starting a cross platform C++ project that runs on a couple of flavors of Linux, MacOS and Windows.

I'm not sure what to do about Windows since I can't require mingw or cygwin to run the application. Will projects built under either environment work in standard Windows?

I get ths warning when bringing a project from Ubuntu to MacOS. I'll try try Sceintific Linux (a Fedora derivative) soon.

I'd appreciate a link to some documentation on cross-platoform C++ with NetBeans. Doesn't look anywhere near as easy as Java.

Why not Java, you ask? A combination of necessary libraries that require at minimum JNI code, and a group bias towards C++ and Python.

Joe
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users 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 can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo